From: vincent@cubedesigners.com Date: Tue, 2 Dec 2014 08:59:34 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3663f5c5c5bf8d76fcba34e019f5691b694e96ff;p=cubedesigners-v7.git --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 2b9d60a..5c52db7 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -9,11 +9,6 @@ class Bootstrap extends CubeIT_Bootstrap { $this->bootstrap('scripts'); } - protected function _initScripts() { - parent::_initScripts(); - $this->getView()->headScript()->addTagHandler(); - } - protected function _initRouter($initCms = true) { $router = parent::_initRouter($initCms); return $router; diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index d4bb0f9..6f1f976 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -37,6 +37,7 @@ former.home = /home/cubedesigners/www seo.universalAnalytics = UA-4339912-1 seo.google = google93c0129ef18a399d.html seo.bing = 8986457D1D126C38A815027C839372DC +seo.pinterest=fa7873389173bc29df6ef3ea8789bca2 navigation.containers[]=0; ;navigation.containers[]=-1; diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml index 710784e..31b4eda 100644 --- a/framework/application/layouts/scripts/layout.phtml +++ b/framework/application/layouts/scripts/layout.phtml @@ -1,8 +1,6 @@ array('families' => array('roboto_condensedlight'), 'urls' => array('/css/fonts/robotocondensed-light.css?nocache=1'))); $fonts = array('google' => array('families' => array('Roboto+Condensed:400,300,700:latin'))); -$this->headScript()->addGSAP(); $this->headScript()->addWebFont($fonts); $this->headScript()->addFastclick(); diff --git a/framework/application/views/helpers/CasestudiesDetail.php b/framework/application/views/helpers/CasestudiesDetail.php index 1dd1474..dcd517d 100644 --- a/framework/application/views/helpers/CasestudiesDetail.php +++ b/framework/application/views/helpers/CasestudiesDetail.php @@ -6,7 +6,7 @@ class Cubedesigners_View_Helper_CasestudiesDetail extends CubeIT_View_Helper_Abs $visuel_detail = $this->view->imageProcess($studie->visuel_detail, $studie->titre, 980, 400); - $res = '
'; + $res = '
'; $res.='
'; $res.='

' . $studie->titre . '

'; $res.='

' . $studie->description . '

'; @@ -92,7 +92,7 @@ class Cubedesigners_View_Helper_CasestudiesDetail extends CubeIT_View_Helper_Abs } } $res .= '
'; - $res .= '
'; + $res .= ''; return $res; } diff --git a/framework/application/views/helpers/HeadScript.php b/framework/application/views/helpers/HeadScript.php new file mode 100644 index 0000000..7fdc234 --- /dev/null +++ b/framework/application/views/helpers/HeadScript.php @@ -0,0 +1,13 @@ +addJQuery(); + $this->addModernizr(); + $this->addBase64(); + $this->addCubeIT(); + return $this; + } + +} diff --git a/framework/application/views/helpers/HomeSlideshow.php b/framework/application/views/helpers/HomeSlideshow.php index 924e631..7cd2fc2 100644 --- a/framework/application/views/helpers/HomeSlideshow.php +++ b/framework/application/views/helpers/HomeSlideshow.php @@ -4,6 +4,7 @@ class Cubedesigners_View_Helper_HomeSlideshow extends CubeIT_View_Helper_Abstrac public function homeSlideshow($slides) { $this->headScript()->addSlideshow(); + $this->headScript()->addGSAP(); $this->addScriptAndStyle('carrousel'); $slides = $slides['slides']; diff --git a/framework/application/views/helpers/Liste.php b/framework/application/views/helpers/Liste.php index 755874c..21e316b 100644 --- a/framework/application/views/helpers/Liste.php +++ b/framework/application/views/helpers/Liste.php @@ -9,7 +9,9 @@ class Cubedesigners_View_Helper_Liste extends Zend_View_Helper_Abstract { $this->view->headLink()->appendStylesheet('/less/list.less'); $res = '
'; - $res.='

' . ucfirst($items['titre']) . '

'; + if ($items['titre']) { + $res.='

' . ucfirst($items['titre']) . '

'; + } $res.=$this->view->homeBlocs($items, $displayDetailsButtons, $cols); if ($items['button']['label']) { $res.=$this->view->linkCMS($items['button'], array('class' => 'but')); diff --git a/framework/application/views/helpers/Twocols.php b/framework/application/views/helpers/Twocols.php index 6905233..4688d08 100644 --- a/framework/application/views/helpers/Twocols.php +++ b/framework/application/views/helpers/Twocols.php @@ -6,7 +6,7 @@ class Cubedesigners_View_Helper_Twocols extends Zend_View_Helper_Abstract { $this->view->headLink()->appendStylesheet('/less/twocols.less'); $res = '
'; $res.='
'; - if ($displayTitle) { + if ($displayTitle && trim($this->view->titre)) { $res.= '
' . $this->view->markupDotclear($this->view->titre) . '
'; } $res.='
'; diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index 005a7af..cbc43a8 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -8,52 +8,50 @@ if (!is_null($mentions_page)) { } echo $this->clear(); ?> -
-
\ No newline at end of file diff --git a/framework/application/views/scripts/common/header.phtml b/framework/application/views/scripts/common/header.phtml index ec7d33e..919e9c6 100644 --- a/framework/application/views/scripts/common/header.phtml +++ b/framework/application/views/scripts/common/header.phtml @@ -13,9 +13,9 @@ if (!is_null($homepage)) { /* LOGO */ echo $this->link($this->image('/images/logo.svg', '', 318, 132), $home, array('class' => 'logo')); if ($this->currentPage && $this->currentPage->getTemplate() == 'home') { - echo ''; + echo ''; } else { - echo ''; + echo ''; } /* NAVIGATION */ $mainMenu = $this->navigation()->findOneById($this->localeDefault() . '/' . CubeIT_Navigation::MAIN); diff --git a/framework/application/views/scripts/studies/index.phtml b/framework/application/views/scripts/studies/index.phtml index 7c83916..013cbbf 100644 --- a/framework/application/views/scripts/studies/index.phtml +++ b/framework/application/views/scripts/studies/index.phtml @@ -1,13 +1,9 @@ headTitle($this->titre . ' / ' . $this->currentPage->getParent()->getTitle() . ' // Cubedesigners', 'SET'); +$this->headTitle($this->titre . ' / ' . $this->currentPage->getParent()->getTitle(), 'SET'); $this->headSeo()->setDescription($this->studie->legende); $this->headOpenGraph()->setDescription($this->studie->legende); $this->headScript()->addScriptAndStyle('casestudies_detail'); -?> - - -CasestudiesDetail($this->studie); ?> diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..af196db --- /dev/null +++ b/js/main.js @@ -0,0 +1,3 @@ +require([ + 'common', +]); \ No newline at end of file