]> _ Git - cubedesigners-v7.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 20 Nov 2014 16:03:50 +0000 (16:03 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 20 Nov 2014 16:03:50 +0000 (16:03 +0000)
17 files changed:
framework/application/Cubedesigners/Util.php [new file with mode: 0644]
framework/application/forms/CMS/Agence.php
framework/application/forms/CMS/Sub/Casestudies/Content/Bloc.php
framework/application/views/helpers/CasestudiesDetail.php
framework/application/views/helpers/CasestudiesList.php
framework/application/views/helpers/CategoriesList.php
framework/application/views/helpers/RealisationsList.php
framework/application/views/scripts/studies/index.phtml
framework/application/views/scripts/templates/agence.phtml
framework/application/views/scripts/templates/casestudies.phtml
framework/application/views/scripts/templates/realisations.phtml
js/admin.js
less/casestudies.less
less/common.less
less/list.less
less/realisations.less
less/twocols.less

diff --git a/framework/application/Cubedesigners/Util.php b/framework/application/Cubedesigners/Util.php
new file mode 100644 (file)
index 0000000..05cdf9b
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+class Cubedesigners_Util {
+
+       protected static $_categories = null;
+
+       public static function getCategoryById($id) {
+               self::_getCategories();
+               return CubeIT_Util_Cms::unserialize(self::$_categories[$id]->getName());
+       }
+
+       protected static function _getCategories() {
+               if (null !== self::$_categories) {
+                       return;
+               }
+
+               self::$_categories = Cubedesigners_Model_Categorie::factory()->find();
+       }
+
+}
index ba3aca2c4a1ffa30968099e15ac5cd6cea68ed22..df32a309702ef5ae7340c012c06ea0f2f729a855 100644 (file)
@@ -10,8 +10,7 @@ class Cubedesigners_Form_CMS_Agence extends Cubedesigners_Form_CMS_Twocolumns {
                $this->addSubForm($pictos, 'pictos');
 
                $photo = new CubeIT_Form_Element_File_Image('photo');
-               $photo->setMaxItems(1);
-               $photo->setLabel('Photo');
+               $photo->setLabel('Photos de l\'agence');
                $this->addElement($photo);
 
                $equipe = new Cubedesigners_Form_CMS_Sub_Agence_Persons();
@@ -20,5 +19,3 @@ class Cubedesigners_Form_CMS_Agence extends Cubedesigners_Form_CMS_Twocolumns {
        }
 
 }
-
-?>
\ No newline at end of file
index a73f07743c1a2112cd90f86af162676af7dd054a..2807cf4ee29654cfddd209e8847a197119c86982 100644 (file)
@@ -2,60 +2,63 @@
 
 class Cubedesigners_Form_CMS_Sub_Casestudies_Content_Bloc extends CubeIT_Form_SubForm {
 
-        public function init() {
-                parent::init();
-
-                $isCompactTrad = false;
-
-                $select = new Cubedesigners_Form_Element_ContentType("selected-type");
-                $select->setAttrib('data-name', 'selected-type');
-                $this->addElement($select);
-
-                $margin = new Zend_Form_Element_Text('margin');
-                $margin->setLabel("Décalage vertical du bloc (en pixels)");
-                $this->addElement($margin);
-
-                $zindex = new Zend_Form_Element_Select('zindex');
-                $options = array('default' => 'Par défaut');
-                for ($i = 1; $i <= 10; $i++) {
-                        $options[$i] = $i;
-                }
-                $zindex->setMultiOptions($options);
-                $zindex->setLabel('z-index du bloc');
-                $this->addElement($zindex);
-
-                $annee = new Zend_Form_Element_Text('annee');
-                $annee->setLabel('Année');
-                $this->addElement($annee);
-
-                $titre = new Zend_Form_Element_Text('titre');
-                $titre->setLabel('Titre');
-                $this->addElementLocalized($titre, $isCompactTrad);
-
-                $texte = new CubeIT_Form_Element_Markitup_Basic('texte');
-                $texte->setLabel('Texte');
-                $this->addElementLocalized($texte, $isCompactTrad);
-
-                $visuel = new CubeIT_Form_Element_File_Image('visuel');
-                $visuel->setLabel('Visuel');
-                $visuel->setMaxItems(1);
-                $this->addElementLocalized($visuel, $isCompactTrad);
-
-                $video = new CubeIT_Form_Element_WebVideo('video');
-                $video->setLabel('URL de la vidéo');
-                $this->addElementLocalized($video, $isCompactTrad);
-
-                $video_background = new CubeIT_Form_Element_File_Image('video_background');
-                $video_background->setLabel('Fond de la vidéo');
-                $video_background->setMaxItems(1);
-                $this->addElement($video_background);
-
-                $type = new Zend_Form_Element_Hidden('form-type');
-                $type->setAttrib('data-name', 'form-type');
-                $type->setValue('test');
-                $this->addElement($type);
-        }
+       public function init() {
+               parent::init();
 
-}
+               $isCompactTrad = false;
+
+               $select = new Cubedesigners_Form_Element_ContentType("selected-type");
+               $select->setAttrib('data-name', 'selected-type');
+               $this->addElement($select);
+
+               $margin = new Zend_Form_Element_Text('margin');
+               $margin->setLabel("Décalage vertical du bloc (en pixels)");
+               $this->addElement($margin);
+
+               $zindex = new Zend_Form_Element_Select('zindex');
+               $options = array('default' => 'Par défaut');
+               for ($i = 1; $i <= 10; $i++) {
+                       $options[$i] = $i;
+               }
+               $zindex->setMultiOptions($options);
+               $zindex->setLabel('z-index du bloc');
+               $this->addElement($zindex);
+
+               $annee = new Zend_Form_Element_Text('annee');
+               $annee->setLabel('Année');
+               $this->addElement($annee);
+
+               $titre = new Zend_Form_Element_Text('titre');
+               $titre->setLabel('Titre');
+               $this->addElementLocalized($titre, $isCompactTrad);
+
+               $texte = new CubeIT_Form_Element_Markitup_Basic('texte');
+               $texte->setLabel('Texte');
+               $this->addElementLocalized($texte, $isCompactTrad);
 
-?>
+               $visuel = new CubeIT_Form_Element_File_Image('visuel');
+               $visuel->setLabel('Visuel');
+               $visuel->setMaxItems(1);
+               $this->addElementLocalized($visuel, $isCompactTrad);
+
+               $visuelpadding = new Zend_Form_Element_Text('visuelpadding');
+               $visuelpadding->setLabel('Margin intérieur sous le visuel');
+               $visuelpadding->setValue(50);
+               $this->addElement($visuelpadding);
+
+               $video = new CubeIT_Form_Element_WebVideo('video');
+               $video->setLabel('URL de la vidéo');
+               $this->addElementLocalized($video, $isCompactTrad);
+
+               $video_background = new CubeIT_Form_Element_File_Image('video_background');
+               $video_background->setLabel('Fond de la vidéo');
+               $video_background->setMaxItems(1);
+               $this->addElement($video_background);
+
+               $type = new Zend_Form_Element_Hidden('form-type');
+               $type->setAttrib('data-name', 'form-type');
+               $type->setValue('test');
+               $this->addElement($type);
+       }
+
+}
index 06e2b16ebf1cab27c06aa40792a25c40606ae475..f71984db9f2a3659f90e74c5f6d2f447bbbdcdbd 100644 (file)
@@ -1,96 +1,95 @@
-<?php\r
-\r
-class Cubedesigners_View_Helper_CasestudiesDetail extends Zend_View_Helper_Abstract {\r
-\r
-        public function CasestudiesDetail($studie) {\r
-\r
-                $visuel_detail = $this->view->imageProcess($studie->visuel_detail, $studie->titre, 980, 400);\r
-\r
-                $res = '<div id="casestudies-detail-visuel">';\r
-                $res .= '<div class="visuel-holder">';\r
-                $res .= '<div class="visuel">' . $visuel_detail . '</div>';\r
-\r
-\r
-                $res .= '<div class="legende">' . $studie->legende . '</div>';\r
-\r
-                if ($studie->url != '') {\r
-                        $res .= '<a href="' . $studie->url . '" style="float:right">' . __("Voir le site") . '</a>';\r
-                }\r
-\r
-                $res .= '</div>';\r
-                $res .= '</div>';\r
-\r
-                $style = '';\r
-                if ($studie->couleur != '') {\r
-                        $style = 'background-color:' . $studie->couleur;\r
-                }\r
-\r
-                $res .= '<div id="casestudies-detail-content" style="' . $style . ';">';\r
-\r
-                $blocs = $studie->blocs;\r
-\r
-                foreach ($blocs as $bloc) {\r
-\r
-                        // fb($bloc);\r
-                        $margin = '';\r
-                        if ($bloc->margin != '') {\r
-                                $margin = 'margin-top:' . $bloc->margin . 'px;';\r
-                        }\r
-\r
-                        $zindex = '';\r
-                        if ($bloc->zindex != 'default') {\r
-                                $zindex = 'z-index:' . $bloc->zindex . ';';\r
-                        }\r
-\r
-                        if ($bloc->selectedtype == "text") {\r
-\r
-                                $res .= '<div class="detail-text" style="' . $margin . '' . $zindex . '" >';\r
-                                $res .= '<div class="titre">' . $bloc->titre . '</div>';\r
-                                $res .= '<div class="texte">' . $bloc->texte . '</div>';\r
-                                $res .= '</div>';\r
-                        }\r
-\r
-                        if ($bloc->selectedtype == "visuel") {\r
-                                $visuel = $this->view->imageProcess()->imageProcessGetUrl($bloc->visuel, '', 1200, null);\r
-                                $width = -1;\r
-                                $height = -1;\r
-                                CubeIT_Image::getDimensions($visuel, $width, $height);\r
-\r
-                                $res .= '<div class="detail-visuel" style="background-image:url(\'' . $visuel . '\');height:' . $height . 'px;' . $margin . '' . $zindex . '"></div>';\r
-                        }\r
-\r
-\r
-                        $addVideoBackground = false;\r
-                        if ($bloc->video_background != false) {\r
-                                $addVideoBackground = true;\r
-                        }\r
-\r
-                        if ($bloc->selectedtype == "video") {\r
-\r
-                                $res .= '<div class="detail-video" style="' . $margin . '' . $zindex . '" >';\r
-                                $video = $this->view->videoWeb($bloc->video, 980);\r
-\r
-                                if ($addVideoBackground) {\r
-                                        $background = $this->view->imageProcess()->imageProcessGetUrl($bloc->video_background, '', 1200, null);\r
-                                        $width = -1;\r
-                                        $height = -1;\r
-                                        CubeIT_Image::getDimensions($background, $width, $height);\r
-                                        $top = ($height - 550) / 2;\r
-                                        $res.= '<div class="detail-video-background" style="width:100%;background-position:50%;background-image:url(\'' . $background . '\');height:' . $height . 'px;top:' . $top . 'px;">';\r
-                                }\r
-                                if ($addVideoBackground) {\r
-                                        $res.= "</div>";\r
-                                }\r
-\r
-                                $res .= '<div style="z-index:10;position:relative">' . $video . '</div>';\r
-                                $res .= '</div>';\r
-                        }\r
-                }\r
-                $res .= '</div>';\r
-\r
-                return $res;\r
-        }\r
-\r
-}\r
-\r
-?>\r
+<?php
+
+class Cubedesigners_View_Helper_CasestudiesDetail extends Zend_View_Helper_Abstract {
+
+       public function CasestudiesDetail($studie) {
+
+               $visuel_detail = $this->view->imageProcess($studie->visuel_detail, $studie->titre, 980, 400);
+
+               $res = '<div id="casestudies-detail-visuel">';
+               $res .= '<div class="visuel-holder">';
+               $res .= '<div class="visuel">' . $visuel_detail . '</div>';
+
+               $res .= '<div class="legende">' . $studie->legende . '</div>';
+
+               if ($studie->url != '') {
+                       $res .= '<a href="' . $studie->url . '" style="float:right">' . __("Voir le site") . '</a>';
+               }
+
+               $res .= '</div>';
+               $res .= '</div>';
+
+               $style = '';
+               if ($studie->couleur != '') {
+                       $style = 'background-color:' . $studie->couleur;
+               }
+
+               $res .= '<div id="casestudies-detail-content" style="' . $style . ';">';
+
+               $blocs = $studie->blocs;
+
+               foreach ($blocs as $bloc) {
+
+                       // fb($bloc);
+                       $margin = '';
+                       if ($bloc->margin != '') {
+                               $margin = 'margin-top:' . $bloc->margin . 'px;';
+                       }
+
+                       $zindex = '';
+                       if ($bloc->zindex != 'default') {
+                               $zindex = 'z-index:' . $bloc->zindex . ';';
+                       }
+
+                       if ($bloc->selectedtype == "text") {
+
+                               $res .= '<div class="detail-text" style="' . $margin . '' . $zindex . '" >';
+                               $res .= '<div class="titre">' . $bloc->titre . '</div>';
+                               $res .= '<div class="texte">' . $bloc->texte . '</div>';
+                               $res .= '</div>';
+                       }
+
+                       if ($bloc->selectedtype == "visuel") {
+                               $visuel = CubeIT_View_Helper_ImageCms::getPath($bloc->visuel);
+                               $width = -1;
+                               $height = -1;
+                               CubeIT_Image::getDimensions($visuel, $width, $height);
+                               $padding = isset($bloc->visuelpadding) ? $bloc->visuelpadding : 50;
+                               $res .= '<div class="detail-visuel" style="background-image:url(\'' . $visuel . '\');height:' . $height . 'px;' . $margin . '' . $zindex . ';padding-bottom:' . $padding . 'px;"></div>';
+                       }
+
+
+                       $addVideoBackground = false;
+                       if ($bloc->video_background != false) {
+                               $addVideoBackground = true;
+                       }
+
+                       if ($bloc->selectedtype == "video") {
+
+                               $res .= '<div class="detail-video" style="' . $margin . '' . $zindex . '" >';
+                               $video = $this->view->videoWeb($bloc->video, 980);
+
+                               if ($addVideoBackground) {
+                                       $background = $this->view->imageProcess()->imageProcessGetUrl($bloc->video_background, '', 1200, null);
+                                       $width = -1;
+                                       $height = -1;
+                                       CubeIT_Image::getDimensions($background, $width, $height);
+                                       $top = ($height - 550) / 2;
+                                       $res.= '<div class="detail-video-background" style="width:100%;background-position:50%;background-image:url(\'' . $background . '\');height:' . $height . 'px;top:' . $top . 'px;">';
+                               }
+                               if ($addVideoBackground) {
+                                       $res.= "</div>";
+                               }
+
+                               $res .= '<div style="z-index:10;position:relative">' . $video . '</div>';
+                               $res .= '</div>';
+                       }
+               }
+               $res .= '</div>';
+
+               return $res;
+       }
+
+}
+
+?>
index 65a8d8f1ac47be94b3aa6cf9893be0d3a56b54e8..dfc93272fffe8dd089a4466cf8d8ecc88418e2d3 100644 (file)
@@ -5,7 +5,7 @@ class Cubedesigners_View_Helper_CasestudiesList extends CubeIT_View_Helper_Abstr
        protected $_datas;
 
        public function CasestudiesList($datas, $currentStudie = null) {
-
+               $this->addScriptAndStyle('casestudies');
                $this->_datas = $datas;
                $listStudies = array();
                $listStudiesPropulsed = array();
@@ -125,14 +125,15 @@ class Cubedesigners_View_Helper_CasestudiesList extends CubeIT_View_Helper_Abstr
                        $listStudies = array_reverse($listStudies);
 
 
-                       foreach ($listStudies as $s) {
-                               $res.=$this->_case($s);
+                       foreach ($listStudies as $i => $s) {
+                               $res.=$this->_case($s, $i);
                        }
                }
                return $res;
        }
 
-       protected function _case($s) {
+       protected function _case($s, $i) {
+
                $addOffline = '';
                if ($acl && $s->online == 0) {
                        $addOffline = 'data-offline="1"';
@@ -145,7 +146,12 @@ class Cubedesigners_View_Helper_CasestudiesList extends CubeIT_View_Helper_Abstr
                $c.= '<h2>' . $s->titre . '</h2>';
                $c.='<h3>' . $s->description . '</h3>';
 
-               return $this->link($c, $url, array('data-cat' => $s->categories));
+               $class = array();
+               if ($i % 3 == 2) {
+                       $class[] = 'last';
+               }
+
+               return $this->link($c, $url, array('data-cat' => $s->categories, 'class' => $class));
        }
 
 }
index 01d35a84cc865c63376e5127d465c54a9e1f7547..8ad7142c44207d5037c5c7e71b36a9d8ef91d151 100644 (file)
@@ -2,7 +2,7 @@
 
 class Cubedesigners_View_Helper_CategoriesList extends Zend_View_Helper_Abstract {
 
-       public function CategoriesList($rubrique, $listId) {
+       public function CategoriesList($rubrique, $listId, $itemsPerLine) {
 
                $acl = Bootstrap::getInstance()->isAllowed("edition");
 
@@ -36,7 +36,7 @@ class Cubedesigners_View_Helper_CategoriesList extends Zend_View_Helper_Abstract
                                $tags[$r->id] = $r->name;
                        }
                }
-               $res.=$this->view->tags($tags, array('data-perline' => 3, 'data-list' => '#' . $listId));
+               $res.=$this->view->tags($tags, array('data-perline' => $itemsPerLine, 'data-list' => '#' . $listId));
 
 
                return $res;
index 688692c5a684a88c6b5eeba72e72069cdab00ad9..471e198e0db355afac20666b56906a359760b05d 100644 (file)
@@ -21,30 +21,22 @@ class Cubedesigners_View_Helper_RealisationsList extends CubeIT_View_Helper_Abst
 
                $test = 0;
                while ($r = $q->fetch()) {
-
                        $r = CubeIT_Util_Cms::unserialize($r);
 
-                       $addSpacer = false;
-
-                       $addClass = ' blocmargin';
-
-
                        $addOffline = '';
                        if ($acl && $r->online == 0) {
                                $addOffline = 'data-offline="1"';
                        }
 
-
                        $visuel = $this->view->imageProcess($r->visuel_detail, '', null, 440);
 
+                       $rea = $this->view->imageProcess($r->visuel, $r->titre, 170, 127);
+                       $rea.='<h2>' . $r->titre . '</h2>';
+                       $rea.='<h3>' . Cubedesigners_Util::getCategoryById($r->categories) . ' // ' . $this->dateTime($r->date, Zend_Date::YEAR) . '</h3>';
 
-                       $image = $this->view->imageProcess($r->visuel, $r->titre, 127, 127);
                        $url = CubeIT_Navigation_Page::generateAutoUri($r, $datas['seourl_rea']);
 
-                       $res .= $this->link($image, $url, array('data-id' => $r->id, 'data-categorie' => $r->categories));
-                       $test++;
-
-                       $count++;
+                       $res .= $this->link($rea, $url, array('data-id' => $r->id, 'data-cat' => $r->categories));
                }
 
                return $res;
index 03ceb752a76f74b952d39b8fa2ea823edd78583f..d6b9424f0f62c004e91136273c0fa89f0b666788 100644 (file)
@@ -1,17 +1,15 @@
-<?php\r
-$this->headScript()->addScriptAndStyle('casestudies');\r
-$this->headScript()->addScriptAndStyle('casestudies_detail');\r
-//fb($this->studie);\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, $this->studie); ?>\r
+<?php
+$this->headScript()->addScriptAndStyle('casestudies_detail');
+?>
+
+<div class="casestudies-detail-title"><?php echo $this->markupDotclear($this->titre); ?></div>
+
+<?php
+echo $this->CasestudiesDetail($this->studie);
+?>
+
+<div class="title content margin"><?php echo $this->markupDotclear($this->casestudies_titre); ?></div>
+
+<div id="casestudies-list">
+       <?php echo $this->CasestudiesList($this->datas, $this->studie); ?>
 </div>
\ No newline at end of file
index b8a26988373b375a493ad63ce65a723ec4aefbdc..7fbd109f3327573b4405da4a39d11baa142e2a0e 100644 (file)
@@ -13,7 +13,7 @@ echo $this->twocols();
 </section>
 
 <section>
-    <div class="agency-photo"><?php echo $this->imageProcess($this->photo, '', 1200, 545); ?></div>
+    <div class="agency-photo"><?php echo $this->imageSlideshowContinuous($this->photo, 545); ?></div>
 </section>
 
 <section>
index d49ede2753f0f86c6bf0103bd690216084d52f37..afa7782252b9a621bb81f614c533fd80bb17e3a3 100644 (file)
@@ -7,7 +7,7 @@ $this->headScript()->addScriptAndStyle('casestudies');
 
        <div id="casestudies-tagslist">
                <?php
-               echo $this->CategoriesList('casestudies', 'casestudies-list');
+               echo $this->CategoriesList('casestudies', 'casestudies-list', 3);
                ?>
        </div>
 
index ce461b0aac75d72286b077243d718b67d803f610..db3ceecb18260e6c335bc3814c7e33b19a79a88b 100644 (file)
@@ -6,7 +6,7 @@ $this->headScript()->addScriptAndStyle('realisations');
 
        <div id="realisations-tagslist">
                <?php
-               echo $this->CategoriesList("realisations");
+               echo $this->CategoriesList("realisations", 'realisations-list', 5);
                ?>
        </div>
 
index 09ee701c3166d71a8c3848d1ac861aaae39348f1..e9ffcab089c0775a74f5c5437ab9d1d9bf3caab5 100644 (file)
@@ -1,47 +1,50 @@
-TO_LOAD[TO_LOAD.length] = 'load_admin();';\r
-\r
-function load_admin() {\r
-        initSelectType();\r
-}\r
-\r
-function initSelectType() {\r
-    $( "select[data-name='selected-type']" ).each( function() {\r
-        var cible = $(this).parent().parent();\r
-        displayFormTypeElements( cible, this.value );\r
-    });\r
-    \r
-    $(document).on("change", "select[data-name='selected-type']", function() {\r
-       var cible = $(this).parent().parent();\r
-       displayFormTypeElements( cible, this.value );\r
-    });\r
-}\r
-\r
-function displayFormTypeElements( cible, choice ) {\r
-\r
-    switch ( choice ) {\r
-        case 'text' :\r
-            cible.children("#titre-element").css("display","block");\r
-            cible.children("#texte-element").css("display","block");\r
-            cible.children("#visuel-element").css("display","none");\r
-            cible.children("#video-element").css("display","none");\r
-            cible.children(".elementwrap-video_background").css("display","none");\r
-        break;\r
-            \r
-        case 'visuel' :\r
-            cible.children("#titre-element").css("display","none");\r
-            cible.children("#texte-element").css("display","none");\r
-            cible.children("#visuel-element").css("display","block");\r
-            cible.children("#video-element").css("display","none");\r
-            cible.children(".elementwrap-video_background").css("display","none");\r
-        break;\r
-        \r
-        case 'video' :\r
-            cible.children("#titre-element").css("display","none");\r
-            cible.children("#texte-element").css("display","none");\r
-            cible.children("#visuel-element").css("display","none");\r
-            cible.children("#video-element").css("display","block");\r
-            cible.children(".elementwrap-video_background").css("display","block");\r
-        break;\r
-    }\r
-    \r
+TO_LOAD[TO_LOAD.length] = 'load_admin();';
+
+function load_admin() {
+       initSelectType();
+}
+
+function initSelectType() {
+       $("select[data-name='selected-type']").each(function () {
+               var cible = $(this).parent().parent();
+               displayFormTypeElements(cible, this.value);
+       });
+
+       $(document).on("change", "select[data-name='selected-type']", function () {
+               var cible = $(this).parent().parent();
+               displayFormTypeElements(cible, this.value);
+       });
+}
+
+function displayFormTypeElements(cible, choice) {
+
+       switch (choice) {
+               case 'text' :
+                       cible.children("#titre-element").css("display", "block");
+                       cible.children("#texte-element").css("display", "block");
+                       cible.children("#visuel-element").css("display", "none");
+                       cible.children("#visuelpadding-element").css("display", "none");
+                       cible.children("#video-element").css("display", "none");
+                       cible.children(".elementwrap-video_background").css("display", "none");
+                       break;
+
+               case 'visuel' :
+                       cible.children("#titre-element").css("display", "none");
+                       cible.children("#texte-element").css("display", "none");
+                       cible.children("#visuel-element").css("display", "block");
+                       cible.children("#visuelpadding-element").css("display", "block");
+                       cible.children("#video-element").css("display", "none");
+                       cible.children(".elementwrap-video_background").css("display", "none");
+                       break;
+
+               case 'video' :
+                       cible.children("#titre-element").css("display", "none");
+                       cible.children("#texte-element").css("display", "none");
+                       cible.children("#visuel-element").css("display", "none");
+                       cible.children("#visuelpadding-element").css("display", "none");
+                       cible.children("#video-element").css("display", "block");
+                       cible.children(".elementwrap-video_background").css("display", "block");
+                       break;
+       }
+
 }
\ No newline at end of file
index 1e0287ae561dde260b7d08f32b2a05e7589de2d9..4d1dedaee98ec87809d1f175d10d8d7a837e70e3 100644 (file)
@@ -1,3 +1,7 @@
+.title.margin{
+       margin-bottom: 40px;
+}
+
 #casestudies-list {
     min-width: 980px;
     max-width: 980px;
index ddc930825e50b6f00b6f11e3e749755c36484824..74243e136eba4b894e6b3cf48bd15ba33892746d 100644 (file)
@@ -91,3 +91,9 @@ a.but {
                line-height: 25px;
        }
 }
+
+.dotclear{
+       h3,h4{
+               font-weight: 500;
+       }
+}
\ No newline at end of file
index 707964805caafe5293691f593460642ab9fde6e8..19269dce9bfadad832f6abcbac8b2089a467b864 100644 (file)
@@ -3,6 +3,10 @@ section.list{
        &#agency,&#expertises{
                background-color:#3885e0;
                color:#fff;
+               a{
+                       color:#fff;
+                       text-decoration: underline;
+               }
        }
 
        &#expertisehome {
index 7f3c85717ea731e66fe552284b5c1176ffaff632..c2eaf9087bcaf13632500a49ebf50340c3b0c7e1 100644 (file)
@@ -7,15 +7,37 @@
     a,a:hover {
         color:#000;
                display:inline-block;
-               margin:0 15px 10px 0;
-               width:127px;
-               height:127px;
+               margin:0 32px 30px 0;
+               width:170px;
+               height:170px;
                img{
                        display: block;
-                       width:127px;
+                       width:170px;
                        height:127px;
                }
-               &:nth-child(7n){
+               h2,h3{
+                       white-space: nowrap;
+                       overflow-x: hidden;
+                       overflow-y: visible;
+                       max-width: 170px;
+                       text-overflow: ellipsis;
+               }
+
+               h2 {
+                       font-size: 23px;
+                       line-height: 20px;
+                       color:#1b1b1b;
+                       margin:8px 0 0 0;
+                       height:25px;
+               }
+               h3 {
+                       font-size: 14px;
+                       line-height: 16px;
+                       color:#545454;
+                       height:18px;
+                       margin:0 0 20px 0;
+               }
+               &.last{
                        margin-right: 0px;
                }
     }
index baf66775d9b366e68541bf05e55ea280e89cbd1f..7949ddfaa7875cbbb14f700794b57db6132a0a38 100644 (file)
@@ -5,7 +5,7 @@
                }
 
                ul{
-                       margin:-30px 0 30px 0;
+                       margin:15px 0 30px 0;
                        list-style: none;
                        li{
                                &:before{