Commit 37983dce authored by Raph El's avatar Raph El
Browse files

Modif notragora

parent 8d11aa3e
......@@ -341,7 +341,7 @@ class AppController extends CommunecterController {
if(@$mode=="noedit"){ $params["edit"] = false; }
//var_dump($params);exit;
//echo $this->renderPartial("../../../costum/views/custom/notragora/element",$params,true);
if(@$_POST["preview"] == true){
//echo "oui";exit;
$params["preview"]=$_POST["preview"];
......
......@@ -50,10 +50,16 @@
if(@$members) $params["members"] = $members;
if(@$invitedMe) $params["invitedMe"] = $invitedMe;
//Rest::json(array("view" => $view, "onepageKey" => $onepageKey)); exit ;
if(Yii::app()->params["CO2DomainName"] == "terla")
if( !empty(Yii::app()->session['costum']) &&
!empty(Yii::app()->session['costum']['htmlConstruct']) &&
!empty(Yii::app()->session['costum']['htmlConstruct']['element']) &&
!empty(Yii::app()->session['costum']['htmlConstruct']['element']['url']) ) {
echo $this->renderPartial(Yii::app()->session['costum']['htmlConstruct']['element']['url'],$params);
} else if(Yii::app()->params["CO2DomainName"] == "terla")
$this->renderPartial('co2.views.element.terla.index', $params );
else if(!empty($view) && !empty($onepageKey) && in_array($view, $onepageKey)) {
$this->renderPartial("co2.views.element.onepage", $params);
}
else
......
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