Commit f515eaf6 authored by Ahmad Asjad's avatar Ahmad Asjad
Browse files

leftover renderPartial echo/return

parent 986d9cd2
......@@ -22,8 +22,8 @@
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item <?php if($slide=='affiches' || $slide == '') echo "active"; ?>"><?php $this->renderPartial("../docs/communication/affiches", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='video') echo "active"; ?>"><?php $this->renderPartial("../docs/communication/video", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='affiches' || $slide == '') echo "active"; ?>"><?php echo $this->renderPartial("../docs/communication/affiches", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='video') echo "active"; ?>"><?php echo $this->renderPartial("../docs/communication/video", array("renderPartial"=>true)); ?></div>
</div>
<!-- Left and right SLIDER controls -->
......
......@@ -26,12 +26,12 @@
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item <?php if($slide=='ocdb') echo "active"; ?>"><?php $this->renderPartial("../docs/comprendre/ocdb", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='openSystem') echo "active"; ?>"><?php $this->renderPartial("../docs/comprendre/openSystem", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='import') echo "active"; ?>"><?php $this->renderPartial("../docs/comprendre/import", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='dda') echo "active"; ?>"><?php $this->renderPartial("../docs/comprendre/dda", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='financement') echo "active"; ?>"><?php $this->renderPartial("../docs/comprendre/financement", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='smarterre') echo "active"; ?>"><?php $this->renderPartial("../docs/comprendre/smarterre", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='ocdb') echo "active"; ?>"><?php echo $this->renderPartial("../docs/comprendre/ocdb", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='openSystem') echo "active"; ?>"><?php echo $this->renderPartial("../docs/comprendre/openSystem", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='import') echo "active"; ?>"><?php echo $this->renderPartial("../docs/comprendre/import", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='dda') echo "active"; ?>"><?php echo $this->renderPartial("../docs/comprendre/dda", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='financement') echo "active"; ?>"><?php echo $this->renderPartial("../docs/comprendre/financement", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='smarterre') echo "active"; ?>"><?php echo $this->renderPartial("../docs/comprendre/smarterre", array("renderPartial"=>true)); ?></div>
</div>
<!-- Left and right SLIDER controls -->
......
......@@ -26,10 +26,10 @@
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active"><img src="<?php echo $this->module->assetsUrl; ?>/images/docs/elements/index.png" class="img-schemas img-responsive "></div>
<div class="item"><?php $this->renderPartial("../docs/elements/person", array("renderPartial"=>true)); ?></div>
<div class="item"><?php $this->renderPartial("../docs/elements/organisation", array("renderPartial"=>true)); ?></div>
<div class="item"><?php $this->renderPartial("../docs/elements/projects", array("renderPartial"=>true)); ?></div>
<div class="item"><?php $this->renderPartial("../docs/elements/events", array("renderPartial"=>true)); ?></div>
<div class="item"><?php echo $this->renderPartial("../docs/elements/person", array("renderPartial"=>true)); ?></div>
<div class="item"><?php echo $this->renderPartial("../docs/elements/organisation", array("renderPartial"=>true)); ?></div>
<div class="item"><?php echo $this->renderPartial("../docs/elements/projects", array("renderPartial"=>true)); ?></div>
<div class="item"><?php echo $this->renderPartial("../docs/elements/events", array("renderPartial"=>true)); ?></div>
</div>
<!-- Left and right SLIDER controls -->
......
......@@ -31,10 +31,10 @@ echo $this->renderPartial("../docs/assets");
<div class="carousel-inner" role="listbox">
<div class="item <?php if($slide=='') echo "active"; ?>"><img src="<?php echo $this->module->assetsUrl; ?>/images/docs/elements/index.png" class="img-schemas img-responsive "></div>
<div class="item <?php if($slide=='person') echo "active"; ?>"><?php $this->renderPartial("../docs/elements/person", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='organisation') echo "active"; ?>"><?php $this->renderPartial("../docs/elements/organisation", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='projects') echo "active"; ?>"><?php $this->renderPartial("../docs/elements/projects", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='events') echo "active"; ?>"><?php $this->renderPartial("../docs/elements/events", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='person') echo "active"; ?>"><?php echo $this->renderPartial("../docs/elements/person", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='organisation') echo "active"; ?>"><?php echo $this->renderPartial("../docs/elements/organisation", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='projects') echo "active"; ?>"><?php echo $this->renderPartial("../docs/elements/projects", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='events') echo "active"; ?>"><?php echo $this->renderPartial("../docs/elements/events", array("renderPartial"=>true)); ?></div>
</div>
<!-- Left and right SLIDER controls -->
......
......@@ -26,11 +26,11 @@ echo $this->renderPartial("../docs/assets");
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item <?php if($slide=='') echo "active"; ?>"><img src="<?php echo $this->module->assetsUrl; ?>/images/docs/modules/index.png" class="img-schemas img-responsive "></div>
<div class="item <?php if($slide=='news') echo "active"; ?>"><?php $this->renderPartial("../docs/modules/news", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='sig') echo "active"; ?>"> <?php $this->renderPartial("../docs/modules/sig", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='agenda') echo "active"; ?>"> <?php $this->renderPartial("../docs/modules/agenda", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='annuaire') echo "active"; ?>"> <?php $this->renderPartial("../docs/modules/annuaire", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='dda') echo "active"; ?>"> <?php $this->renderPartial("../docs/comprendre/dda2", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='news') echo "active"; ?>"><?php echo $this->renderPartial("../docs/modules/news", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='sig') echo "active"; ?>"> <?php echo $this->renderPartial("../docs/modules/sig", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='agenda') echo "active"; ?>"> <?php echo $this->renderPartial("../docs/modules/agenda", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='annuaire') echo "active"; ?>"> <?php echo $this->renderPartial("../docs/modules/annuaire", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='dda') echo "active"; ?>"> <?php echo $this->renderPartial("../docs/comprendre/dda2", array("renderPartial"=>true)); ?></div>
</div>
<!-- Left and right SLIDER controls -->
......
......@@ -24,8 +24,8 @@ echo $this->renderPartial("../docs/assets");
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item <?php if($slide=='roadmap' || $slide=='') echo "active"; ?>"><?php $this->renderPartial("../docs/rd/roadmap", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='architecture') echo "active"; ?>"><?php $this->renderPartial("../docs/rd/architecture", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='roadmap' || $slide=='') echo "active"; ?>"><?php echo $this->renderPartial("../docs/rd/roadmap", array("renderPartial"=>true)); ?></div>
<div class="item <?php if($slide=='architecture') echo "active"; ?>"><?php echo $this->renderPartial("../docs/rd/architecture", array("renderPartial"=>true)); ?></div>
</div>
<!-- Left and right SLIDER controls -->
......
......@@ -681,8 +681,8 @@ HtmlHelper::registerCssAndScriptsFiles( $cssAnsScriptFilesModule ,Yii::app()->re
</div>
</div>
<?php if (Authorisation::canDeleteElement((String)$element["_id"], $type, Yii::app()->session["userId"]) && !@$deletePending) $this->renderPartial('../element/confirmDeleteModal'); ?>
<?php if (@$deletePending && (Authorisation::isElementAdmin((String)$element["_id"], $type, Yii::app()->session["userId"]) || Authorisation::isUserSuperAdmin(Yii::app()->session["userId"]))) $this->renderPartial('../element/confirmDeletePendingModal'); ?>
<?php if (Authorisation::canDeleteElement((String)$element["_id"], $type, Yii::app()->session["userId"]) && !@$deletePending) echo $this->renderPartial('../element/confirmDeleteModal'); ?>
<?php if (@$deletePending && (Authorisation::isElementAdmin((String)$element["_id"], $type, Yii::app()->session["userId"]) || Authorisation::isUserSuperAdmin(Yii::app()->session["userId"]))) echo $this->renderPartial('../element/confirmDeletePendingModal'); ?>
<?php
$emptyAddress = (empty($element["address"]["codeInsee"])?true:false);
......
......@@ -987,10 +987,10 @@ function archive(collection,id){
<?php
if($where["type"]==Survey::TYPE_ENTRY){
Yii::app()->controller->renderPartial(Yii::app()->params["modulePath"].Yii::app()->controller->module->id.'.views.survey.modals.voterloiDesc');
Yii::app()->controller->renderPartial(Yii::app()->params["modulePath"].Yii::app()->controller->module->id.'.views.survey.modals.cgu');
echo Yii::app()->controller->renderPartial(Yii::app()->params["modulePath"].Yii::app()->controller->module->id.'.views.survey.modals.voterloiDesc');
echo Yii::app()->controller->renderPartial(Yii::app()->params["modulePath"].Yii::app()->controller->module->id.'.views.survey.modals.cgu');
if($commentActive){
Yii::app()->controller->renderPartial(Yii::app()->params["modulePath"].Yii::app()->controller->module->id.'.views.survey.modals.comments');
echo Yii::app()->controller->renderPartial(Yii::app()->params["modulePath"].Yii::app()->controller->module->id.'.views.survey.modals.comments');
}
}
......
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