SetEnv SESSION_USE_TRANS_SID 0
</IfModule>
-# Rewrite for Zend Framework
+# Rewrite for Zend Framework
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
# Redirection to www. subdomain
- RewriteCond %{HTTP_HOST} ^example.com$
- RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
+ RewriteCond %{HTTP_HOST} ^cubedesigners.fr$
+ RewriteRule ^(.*)$ http://www.cubedesigners.fr/$1 [R=301,L]
# Redirect auth header to env
RewriteRule ^.*$ - [E=REMOTE_USER:%{HTTP:Authorization}]
# Skip static files
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|swf|zip|exe|mp3|f4v|mp4|flv|gz|pdf|swc|ogv|ogm|ogg|webm|svgz|eot|otf|ttf|woff)$ no-gzip dont-vary
-
+
<IfModule mod_headers.c>
Header append Vary User-Agent
</IfModule>
-
+
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
$p = new CubeIT_Navigation_Page_Locale();
$p->setController('Realisations');
$p->setId($page->getId() . '/' . $r->id);
- $p->setAutoUri($r, $datas['seourl_rea'], $page->getLocale());
+ $p->setUri(Cubedesigners_Util::generateAutoUri($r, $datas['seourl_rea'], $page->getLocale()));
$p->setSitemap(true);
$p->setEditable(false);
public static function getCategoryById($id) {
self::_getCategories();
+ if (!isset(self::$_categories[$id])) {
+ return;
+ }
return CubeIT_Util_Cms::unserialize(self::$_categories[$id]->getName());
}
+ public static function generateAutoUri($datas, $template, $locale = null) {
+ $datas = CubeIT_Util_Cms::unserialize($datas, $locale);
+ if (isset($datas->categories)) {
+ $datas->categories = self::getCategoryById($datas->categories);
+ }
+ return CubeIT_Navigation_Page::generateAutoUri($datas, $template, $locale);
+ }
+
protected static function _getCategories() {
if (null !== self::$_categories) {
return;
$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;
- }
+ $r = new Cubedesigners_Model_Realisation();
+ $r->selectById($this->getParam('realisation_id'));
+ $r = $r->toObject();
+
+ $u = Cubedesigners_Util::generateAutoUri($r, $datas['seourl_rea'], null);
+ $this->view->casestudies_titre = $datas["titre"];
+ $this->view->titre = $r->titre;
+ $this->view->realisation = $r;
}
}
$this->setTitle('Edition des paramètres du site');
+ $locales = new CubeIT_Form_Element_LocalesMultiCheckbox('localesEnabled');
+ $locales->setLabel('Langues actives');
+ $this->addElement($locales);
+
+
$longTitle = new Zend_Form_Element_Text('longTitle');
$longTitle->setLabel('Titre long par défaut (limité à 65 caractères)');
$longTitle->setAttrib('maxlength', 65);
$visuel_detail = $this->view->imageProcess($studie->visuel_detail, $studie->titre, 980, 400);
- $res = '<div id="casestudies-detail-visuel">';
+ $res = '<article class="case">';
+ $res.='<div class="content">';
+ $res.='<h1>' . $studie->titre . '</h1>';
+ $res.='<h2>' . $studie->description . '</h2>';
+ $res.='</div>';
+
+ $res .= '<div id="casestudies-detail-visuel">';
$res .= '<div class="visuel-holder">';
$res .= '<div class="visuel">' . $visuel_detail . '</div>';
}
}
$res .= '</div>';
+ $res .= '</article>';
return $res;
}
if (is_array($r->technologies) && is_array($currentStudie->technologies)) {
if (count($r->technologies) >= 1 && count($currentStudie->technologies) >= 1) {
- for ($i = 0; $i < count($studieSecondaires); $i++) {
- if (in_array($currentStudie->technologies[$i], $r->technologies)) {
+ foreach ($currentStudie->technologies as $t) {
+ if (in_array([$i], $r->technologies)) {
$r->point += 15;
}
}
} */
$image = $this->view->imageProcess($s->visuel, $s->titre, 300, 225);
- $url = CubeIT_Navigation_Page::generateAutoUri($s, $this->_datas['seourl_stu']);
+ $url = Cubedesigners_Util::generateAutoUri($s, $this->_datas['seourl_stu']);
$c = $image;
$c.= '<h2>' . $s->titre . '</h2>';
foreach ($slides as $id => $slide) {
if (null !== $slide['mask']) {
- $image = $this->view->imageMasked($slide['image'], $slide['mask'], $slide['legend']);
+ $image = $this->view->imageMasked($slide['image'], $slide['mask'], $slide['legende']);
$d = CubeIT_View_Helper_Image::$lastDimensions;
} else {
$image = $this->view->imageCms($slide['image'], $slide['legend']);
public function realisation($r) {
- $res = '<div class="content">';
+ $this->addScriptAndStyle('realisation');
+ $r = CubeIT_Util_Cms::unserialize($r);
+
+ $res = '';
+ $res.='<article class="realisation">';
+ $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));
+
+ $slides = array();
+ foreach ($r->visuel_detail as $s) {
+ if (CubeIT_Files::getExtension($s) == 'flv') {
+ $slides[] = $this->view->videoCubetube($s, 780, 16 / 9, array('background' => 'ffffff'));
+ } else {
+ $slides[] = $s;
+ }
+ }
+
+ $res.=$this->imageSlideshowScroll($slides, 439, array(), array('shortcuts' => false));
+ $res.='<div class="content">';
+ $res.=$this->_button($r->url);
+ $res.=$this->markupDotclear($r->description);
+ $res.='</div>';
+ $res.='</article>';
return $res;
}
+ protected function _button($b) {
+ $b = CubeIT_Util_Array::asArray($b);
+
+ if ($b['label'] == '') {
+ $b['label'] = __('Voir le site');
+ }
+ return $this->linkCMS($b, array('class' => 'but'));
+ }
+
}
$rea.='<h2>' . $r->titre . '</h2>';
$rea.='<h3>' . Cubedesigners_Util::getCategoryById($r->categories) . ' // ' . $this->dateTime($r->date, Zend_Date::YEAR) . '</h3>';
- $url = CubeIT_Navigation_Page::generateAutoUri($r, $datas['seourl_rea']);
+ $url = Cubedesigners_Util::generateAutoUri($r, $datas['seourl_rea']);
$res .= $this->link($rea, $url, array('data-id' => $r->id, 'data-cat' => $r->categories));
}
<?php
-$this->headTitle($this->realisation->titre . ' // ' . $this->currentPage->getParent()->getTitle() . ' // Cubedesigners', 'SET');
+$r = CubeIT_Util_Cms::unserialize($this->realisation);
+$this->headTitle($r->titre . ' - ' . $r->legende . ' // ' . $this->currentPage->getParent()->getTitle(), 'SET');
$this->headSeo()->setDescription($this->realisation->description);
$this->headOpenGraph()->setDescription($this->realisation->description);
<?php
$this->headTitle($this->titre . ' // ' . $this->currentPage->getParent()->getTitle() . ' // Cubedesigners', 'SET');
$this->headSeo()->setDescription($this->studie->legende);
-$this->headOpenGraph()->setDescription($this->realisation->legende);
+$this->headOpenGraph()->setDescription($this->studie->legende);
$this->headScript()->addScriptAndStyle('casestudies_detail');
?>
-<div class="casestudies-detail-title"><?php echo $this->markupDotclear($this->titre); ?></div>
+
<?php
echo $this->CasestudiesDetail($this->studie);
function loadCarrousel() {
$(window).on('cubeitresize', function () {
var s = $(".slideshow,.slideshowcontinuous");
- fb(s);
var ww = $(window).width();
var m = (ww - 1600) / 2;
$(s).find(".imgholder").css({marginLeft: m});
$(s).find(".arrows").css({left: 960 + ((ww - 960) / 2) - 77 - 10});
});
+
+
}
h2 {
font-size: 32px;
line-height: 35px;
+ height:38px;
color:#1b1b1b;
}
h3 {
font-size: 14px;
line-height: 16px;
+ height:18px;
color:#545454;
- margin-bottom: 20px;
+ margin:-3px 0 20px;
+
}
&.last{
margin-right: 0;
-/* 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;
+.case{
+ margin:50px 0 0 0;
+ h1{
+ font-size: 32px;
+ }
+ h2{
+ margin:0 0 15px 0;
+ }
+
+ /* Case studies detail visuel */
+ #casestudies-detail-visuel {
+ padding-bottom:50px;
+
+ a {
+ background-color: #3885e0;
+ border-radius: 2px;
+ padding: 5px 20px;
+ color:#fff;
}
- }
-
- .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) {
-
-}
+
+ 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;
+ }
+ }
+}
\ No newline at end of file
font-weight:300;
color:#1b1b1b;
opacity:0;
- letter-spacing: -0.01em;
transition:opacity 0.25s linear;
}
h1 {
text-align: left;
font-size: 56px;
- line-height: 61px;
+ line-height: 81px;
}
h2 {
text-align: left;
h3,h4{
font-weight: 500;
}
+ p{
+ line-height: 1.56em;
+ }
}
\ No newline at end of file
--- /dev/null
+.realisation{
+ margin:50px 0 0 0;
+ h1{
+ font-size: 32px;
+ }
+ h2{
+ margin:0 0 15px 0;
+ }
+
+ .but{
+ margin:20px 0;
+ float:right;
+ background-color: #3885e0 !important;
+ }
+
+ .dotclear{
+ clear: both;
+ margin:30px 0 30px 0;
+ }
+}
\ No newline at end of file
}
}
+.slideshowscroll{
+ .slideshowmixin();
+
+ .slidescont{
+ overflow:hidden;
+ max-width: 100%;
+ -webkit-overflow-scrolling: touch;
+
+ }
+ .slidesfree{
+ width:100000px;
+ }
+ .slides{
+ display: inline-block;
+ overflow: visible;
+ max-width: none;
+ white-space:nowrap;
+ position:relative;
+
+
+ .slide{
+ position:static;
+ display:inline-block !important;
+ margin:0 0 0 20px;
+ height:439px !important;
+ width:auto !important;
+ }
+ }
+ height:439px;
+}
+
.slideshowcontinuous{
.slideshowmixin();