-<?php\r
-\r
-class RealisationsController extends CubeIT_Controller_PageController {\r
-\r
- public function indexAction() {\r
- $parent = $this->view->currentPage->getParent();\r
-\r
- $datas = $this->getBootstrap()->getCMSDatasOfNavigationPage($parent);\r
- $this->view->datas = $datas;\r
-\r
- $url = $this->getRequest()->getParam('page');\r
-\r
- $ok = false;\r
-\r
- $db = Zend_Db_Table::getDefaultAdapter();\r
- $s = $db->select()->from('realisations')\r
- ->order('id ASC');\r
- $q = $s->query();\r
-\r
- while ($r = $q->fetch()) {\r
- if (CubeIT_Navigation_Page::generateAutoUri($r, $datas['seourl_rea'], null) == $url) {\r
-\r
- $this->view->casestudies_titre = $datas["titre"];\r
- $this->view->titre = $r->titre;\r
- $this->view->studie = $r;\r
-\r
- $ok = true;\r
- break;\r
- }\r
- }\r
-\r
- if (!$ok) {\r
- $this->_404();\r
- return;\r
- }\r
- }\r
-\r
-}\r
-\r
-?>\r
+<?php
+
+class RealisationsController extends CubeIT_Controller_PageController {
+
+ public function indexAction() {
+ $parent = $this->view->currentPage->getParent();
+
+ $datas = $this->getBootstrap()->getCMSDatasOfNavigationPage($parent);
+ $this->view->datas = $datas;
+
+ $url = $this->getRequest()->getParam('page');
+
+ $ok = false;
+
+ $db = Zend_Db_Table::getDefaultAdapter();
+ $s = $db->select()->from('realisations')
+ ->order('id ASC');
+ $q = $s->query();
+
+ while ($r = $q->fetch()) {
+ if (CubeIT_Navigation_Page::generateAutoUri($r, $datas['seourl_rea'], null) == $url) {
+ $this->view->casestudies_titre = $datas["titre"];
+ $this->view->titre = $r->titre;
+ $this->view->realisation = $r;
+
+ $ok = true;
+ break;
+ }
+ }
+
+ if (!$ok) {
+ $this->_404();
+ return;
+ }
+ }
+
+}
-<?php\r
-\r
-class Cubedesigners_Form_CMS_Realisations extends Cubedesigners_Form_CMS {\r
-\r
- public function init() {\r
- parent::init();\r
-\r
- $titre = new CubeIT_Form_Element_Markitup('titre');\r
- $titre->setLabel('Titre');\r
- $this->addElement($titre);\r
-\r
- $reaurl = new Zend_Form_Element_Text('seourl_rea');\r
- $reaurl->setLabel("Modèle d'URL des réalisations");\r
- $this->addElement($reaurl);\r
-\r
- $realisations = new Cubedesigners_Form_CMS_Element_Realisations('realisations');\r
- $realisations->setLabel('Gestion des réalisations');\r
- $this->addElement($realisations);\r
- }\r
-\r
-}\r
-\r
-?>
\ No newline at end of file
+<?php
+
+class Cubedesigners_Form_CMS_Realisations extends Cubedesigners_Form_CMS {
+
+ public function init() {
+ parent::init();
+
+ $titre = new CubeIT_Form_Element_Markitup('titre');
+ $titre->setLabel('Titre');
+ $this->addElement($titre);
+
+ $reaurl = new Zend_Form_Element_Text('seourl_rea');
+ $reaurl->setLabel("Modèle d'URL des réalisations");
+ $this->addElement($reaurl);
+
+ $realisations = new Cubedesigners_Form_CMS_Element_Realisations('realisations');
+ $realisations->setLabel('Gestion des réalisations');
+ $this->addElement($realisations);
+ }
+
+}
<?php
-class Cubedesigners_View_Helper_CasestudiesDetail extends Zend_View_Helper_Abstract {
+class Cubedesigners_View_Helper_CasestudiesDetail extends CubeIT_View_Helper_Abstract {
public function CasestudiesDetail($studie) {
$res .= '<div class="detail-text" style="' . $margin . '' . $zindex . '" >';
$res .= '<div class="titre">' . $bloc->titre . '</div>';
- $res .= '<div class="texte">' . $bloc->texte . '</div>';
+ $res .= $this->markupDotclear($bloc->texte);
$res .= '</div>';
}
}
if ($currentStudie != null) {
- if ($r->propulse == 1)
+ if ($r->propulse == 1) {
$r->point += 10000;
+ }
- if ($r->categories == $studieCategorie)
+ if ($r->categories == $studieCategorie) {
$r->point += 1000;
+ }
if (is_array($r->tags_secondaires) && is_array($currentStudie->tags_secondaires)) {
if (count($r->tags_secondaires) >= 1 && count($currentStudie->tags_secondaires) >= 1) {
for ($i = 0; $i < count($studieSecondaires); $i++) {
- if (in_array($currentStudie->tags_secondaires[$i], $r->tags_secondaires))
+ if (in_array($currentStudie->tags_secondaires[$i], $r->tags_secondaires)) {
$r->point += 100;
+ }
}
}
}
if (count($r->technologies) >= 1 && count($currentStudie->technologies) >= 1) {
for ($i = 0; $i < count($studieSecondaires); $i++) {
- if (in_array($currentStudie->technologies[$i], $r->technologies))
+ if (in_array($currentStudie->technologies[$i], $r->technologies)) {
$r->point += 15;
+ }
}
}
}
protected function _case($s, $i) {
$addOffline = '';
- if ($acl && $s->online == 0) {
- $addOffline = 'data-offline="1"';
- }
+ /* if ($acl && $s->online == 0) {
+ $addOffline = 'data-offline="1"';
+ } */
$image = $this->view->imageProcess($s->visuel, $s->titre, 300, 225);
$url = CubeIT_Navigation_Page::generateAutoUri($s, $this->_datas['seourl_stu']);
$tags[$r->id] = $r->name;
}
}
- $res.=$this->view->tags($tags, array('data-perline' => $itemsPerLine, 'data-list' => '#' . $listId));
+ $res = $this->view->tags($tags, array('data-perline' => $itemsPerLine, 'data-list' => '#' . $listId));
return $res;
}
--- /dev/null
+<?php
+
+class Cubedesigners_View_Helper_Realisation extends CubeIT_View_Helper_Abstract {
+
+ public function realisation($r) {
+
+ $res = '<div class="content">';
+ $res .= '<h1>' . $r->titre . '</h1>';
+ $res .= '<h2>' . Cubedesigners_Util::getCategoryById($r->categories) . '</h2>';
+ $res.='</div>';
+ $res.=$this->imageSlideshowScroll($r->visuel_detail, 545, array(), array('shortcuts' => false));
+
+ return $res;
+ }
+
+}
class Cubedesigners_View_Helper_Tags extends CubeIT_View_Helper_ListUnordered {
function tags($tags, $attrs = array()) {
- fb($attrs);
$tags = CubeIT_Util_Cms::unserialize($tags);
$this->addScriptAndStyle('taglist');
-<?php\r
-$this->headScript()->addScriptAndStyle('realisations');\r
-?>\r
-\r
-<div class="casestudies-detail-title"><?php echo $this->markupDotclear($this->titre); ?></div>\r
-\r
-<?php\r
-echo $this->CasestudiesDetail($this->studie);\r
-?>\r
-\r
-<div class="title"><?php echo $this->markupDotclear($this->casestudies_titre); ?></div>\r
-\r
-<div id="casestudies-list">\r
- <?php echo $this->CasestudiesList($this->datas); ?>\r
-</div>
\ No newline at end of file
+<?php
+
+$this->headTitle($this->realisation->titre . ' // ' . $this->currentPage->getParent()->getTitle() . ' // Cubedesigners', 'SET');
+$this->headSeo()->setDescription($this->realisation->description);
+$this->headOpenGraph()->setDescription($this->realisation->description);
+
+$this->headScript()->addScriptAndStyle('realisations');
+echo $this->realisation($this->realisation);
<?php
+$this->headTitle($this->titre . ' // ' . $this->currentPage->getParent()->getTitle() . ' // Cubedesigners', 'SET');
+$this->headSeo()->setDescription($this->studie->legende);
+$this->headOpenGraph()->setDescription($this->realisation->legende);
$this->headScript()->addScriptAndStyle('casestudies_detail');
?>
-/* Case studies detail Title */\r
-.casestudies-detail-title {\r
- min-width: 980px;\r
- max-width: 980px;\r
- width:100%;\r
- margin: 0 auto;\r
- padding: 50px 0px 50px 0;\r
- font-size: 32px;\r
-}\r
-\r
-/* Case studies detail visuel */\r
-#casestudies-detail-visuel {\r
- padding-bottom:50px;\r
- \r
- a {\r
- background-color: #3885e0;\r
- border-radius: 2px;\r
- padding: 5px 20px;\r
- color:#fff;\r
- }\r
-\r
- a:hover, a:active {\r
- background-color: #65a8f6;\r
- color:#fff;\r
- }\r
-\r
- .visuel-holder {\r
- min-width: 980px;\r
- max-width: 980px;\r
- width:100%;\r
- margin: 0 auto;\r
- overflow:hidden;\r
- }\r
-\r
- .visuel-holder .visuel {\r
- width:980px;\r
- height:400px;\r
- padding-bottom: 20px;\r
- }\r
-\r
- .visuel-holder .legende {\r
- font-size: 18px;\r
- float:left;\r
- }\r
- \r
-}\r
-\r
-\r
-\r
-#casestudies-detail-content {\r
- text-align: center;\r
- background-color: #0194d5;\r
- padding: 50px 0 0px 0;\r
- \r
- \r
- .detail-text {\r
- color: #fff;\r
- width:640px;\r
- margin:auto;\r
- //padding: 0px 0 50px 0;\r
- position: relative;\r
- z-index: 10;\r
- }\r
-\r
- .detail-text .titre {\r
- font-size:32px;\r
- padding-bottom: 20px;\r
- }\r
-\r
- .detail-text .texte {\r
- font-size:18px;\r
- }\r
-\r
- .detail-visuel {\r
- padding: 0px 0 50px 0;\r
- z-index: 1;\r
- }\r
-\r
- .detail-video-background {\r
- /*display: table;*/\r
- position: absolute;\r
- top: -325px;\r
- //left: 110px;\r
- width:1280xp;\r
- height:1280px;\r
- z-index: 2;\r
- }\r
-\r
- .detail-video {\r
- padding: 0px 0 50px 0;\r
- position: relative;\r
- z-index: 5;\r
- text-align: center;\r
- /* vertical-align: middle;\r
- display: table-cell; */\r
- }\r
-\r
- .detail-visuel {\r
- width:100%;\r
- background-position: 50%;\r
- position: relative;\r
- }\r
-}\r
-\r
-/* max-width pour faibles résolutions */\r
-@media screen and (max-width: 1009px) {\r
- \r
-}\r
+/* Case studies detail Title */
+.casestudies-detail-title {
+ min-width: 980px;
+ max-width: 980px;
+ width:100%;
+ margin: 0 auto;
+ padding: 50px 0px 50px 0;
+ font-size: 32px;
+}
+
+/* Case studies detail visuel */
+#casestudies-detail-visuel {
+ padding-bottom:50px;
+
+ a {
+ background-color: #3885e0;
+ border-radius: 2px;
+ padding: 5px 20px;
+ color:#fff;
+ }
+
+ a:hover, a:active {
+ background-color: #65a8f6;
+ color:#fff;
+ }
+
+ .visuel-holder {
+ min-width: 980px;
+ max-width: 980px;
+ width:100%;
+ margin: 0 auto;
+ overflow:hidden;
+ }
+
+ .visuel-holder .visuel {
+ width:980px;
+ height:400px;
+ padding-bottom: 20px;
+ }
+
+ .visuel-holder .legende {
+ font-size: 18px;
+ float:left;
+ }
+
+}
+
+
+
+#casestudies-detail-content {
+ text-align: center;
+ background-color: #0194d5;
+ padding: 50px 0 0px 0;
+
+
+ .detail-text {
+ color: #fff;
+ width:640px;
+ margin:auto;
+ position: relative;
+ z-index: 10;
+ }
+
+ .detail-text .titre {
+ font-size:32px;
+ padding-bottom: 10px;
+ }
+
+ .detail-text .dotclear {
+ font-size:18px;
+ p{
+ margin:10px 0 0 0;
+ }
+ }
+
+ .detail-visuel {
+ padding: 0px 0 50px 0;
+ z-index: 1;
+ }
+
+ .detail-video-background {
+ /*display: table;*/
+ position: absolute;
+ top: -325px;
+ //left: 110px;
+ width:1280xp;
+ height:1280px;
+ z-index: 2;
+ }
+
+ .detail-video {
+ padding: 0px 0 50px 0;
+ position: relative;
+ z-index: 5;
+ text-align: center;
+ /* vertical-align: middle;
+ display: table-cell; */
+ }
+
+ .detail-visuel {
+ width:100%;
+ background-position: 50%;
+ position: relative;
+ }
+}
+
+/* max-width pour faibles résolutions */
+@media screen and (max-width: 1009px) {
+
+}