Commit 39b54308 authored by Tibor Katelbach's avatar Tibor Katelbach

tweaks

parent 6945f6ef
......@@ -837,6 +837,8 @@ class Form {
}
}
//var_dump($params);exit;
return $params;
}
......
......@@ -111,28 +111,7 @@ if(isset($this->costum["contextType"]) && isset($this->costum["contextId"])){
<div class="col-xs-12 no-padding" id="customHeader" style="background-color: white">
<div id="costumBanner" class="col-xs-12 col-sm-12 col-md-12 no-padding">
<!-- <h1>L'entraide<br/><span class="small">Une interface numérique pour échanger</span></h1>-->
<?php
$banner = Yii::app()->getModule("co2")->assetsUrl."/images/banniere-Campagne-Acoeur.jpg";
if(@$this->costum["metaImg"]){
//ex this.profilBannerUrl
if(substr_count($this->costum["metaImg"], 'this.') > 0 && isset($el)){
$field = explode(".", $this->costum["metaImg"]);
if( isset( $el[ $field[1] ] ) )
$banner = Yii::app()->getRequest()->getBaseUrl(true).$el[$field[1]] ;
}
else if(strrpos($this->costum["metaImg"], "http" ) === false && strrpos($this->costum["metaImg"], "/upload/" ) === false ) {
$banner = Yii::app()->getModule("co2")->getAssetsUrl().$this->costum["metaImg"] ;
}
else
$banner = $this->costum["metaImg"];
}
?>
<img class="img-responsive" style="margin:auto;background-color: black;" src='<?php echo $banner ?>'/>
</div>
<?php
$color1 = "#E63458";
if(isset($this->costum["cms"]["color1"]))
......@@ -330,36 +309,7 @@ var answerObj = <?php echo (!empty($answer)) ? json_encode( $answer ) : "null";
</div>
</div>
<div class="col-md-12" style="color:#293A46; background-color: #dfe7e9; float:left; width:100%;">
<center>
<i class="fa fa-caret-down" style="color:#fff"></i>
<div class="col-xs-12 margin-top-10 margin-bottom-25">
<h4>
<?php
if(isset($this->costum["cms"]["sec2Title"])){
echo htmlentities($this->costum["cms"]["sec2Title"]);
} else { ?> Communauté <?php }
if($canEdit)
echo "<a class='btn btn-xs btn-danger editBtn' href='javascript:;' data-key='sec2Title' data-type='text' data-path='costum.cms.sec2Title' data-label='Votre texte '><i class='fa fa-pencil'></i></a>";
?>
</h4>
<div id="community"></div>
</div>
</center>
</div>
<div class="col-xs-12 margin-top-20">
<?php
$params = array(
"poiList"=>$poiList,
"listSteps" => array("1","2","3","4"),
"el" => $el,
"color1" => $this->costum["colors"]["pink"],
"wizid"=> "wizardInfo"
);
echo $this->renderPartial("survey.views.tpls.wizard",$params); ?>
</div>
</div>
<?php } ?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment