$this->bootstrap('scripts');
}
- protected function _initScripts() {
- parent::_initScripts();
- $this->getView()->headScript()->addTagHandler();
- }
-
protected function _initRouter($initCms = true) {
$router = parent::_initRouter($initCms);
return $router;
seo.universalAnalytics = UA-4339912-1
seo.google = google93c0129ef18a399d.html
seo.bing = 8986457D1D126C38A815027C839372DC
+seo.pinterest=fa7873389173bc29df6ef3ea8789bca2
navigation.containers[]=0;
;navigation.containers[]=-1;
<?php
-//$fonts = array('custom' => 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();
$visuel_detail = $this->view->imageProcess($studie->visuel_detail, $studie->titre, 980, 400);
- $res = '<article class="case">';
+ $res = '<div class="case">';
$res.='<div class="content">';
$res.='<h1>' . $studie->titre . '</h1>';
$res.='<h2>' . $studie->description . '</h2>';
}
}
$res .= '</div>';
- $res .= '</article>';
+ $res .= '</div>';
return $res;
}
--- /dev/null
+<?php
+
+class Cubedesigners_View_Helper_HeadScript extends CubeIT_View_Helper_HeadScript {
+
+ public function addCommonsJQuery() {
+ $this->addJQuery();
+ $this->addModernizr();
+ $this->addBase64();
+ $this->addCubeIT();
+ return $this;
+ }
+
+}
public function homeSlideshow($slides) {
$this->headScript()->addSlideshow();
+ $this->headScript()->addGSAP();
$this->addScriptAndStyle('carrousel');
$slides = $slides['slides'];
$this->view->headLink()->appendStylesheet('/less/list.less');
$res = '<div class="bloc-holder">';
- $res.='<h2>' . ucfirst($items['titre']) . '</h2>';
+ if ($items['titre']) {
+ $res.='<h2>' . ucfirst($items['titre']) . '</h2>';
+ }
$res.=$this->view->homeBlocs($items, $displayDetailsButtons, $cols);
if ($items['button']['label']) {
$res.=$this->view->linkCMS($items['button'], array('class' => 'but'));
$this->view->headLink()->appendStylesheet('/less/twocols.less');
$res = '<div class="twocols">';
$res.='<section>';
- if ($displayTitle) {
+ if ($displayTitle && trim($this->view->titre)) {
$res.= '<div class="title">' . $this->view->markupDotclear($this->view->titre) . '</div>';
}
$res.='<div class="cols">';
}
echo $this->clear();
?>
-<footer>
- <div id="footer">
- <div class="footer-holder">
- <div class="footer-top">
- <div class="footer-top-content">
- <div class="bloc">
- <h2><?php echo __("Nous contacter"); ?></h2>
- <?php echo $this->footerContact($this->option('contact')); ?>
- </div>
+<footer id="footer">
+ <div class="footer-holder">
+ <div class="footer-top">
+ <div class="footer-top-content">
+ <div class="bloc">
+ <h2><?php echo __("Nous contacter"); ?></h2>
+ <?php echo $this->footerContact($this->option('contact')); ?>
+ </div>
- <div class="bloc">
- <?php echo $this->footerActualites($this->option('actus')); ?>
- <div class="social">
- <h2><?php echo __("Suivez-nous"); ?></h2>
- <?php echo $this->footerSocials($this->option('followus')); ?>
- </div>
- </div>
- </div>
- </div>
+ <div class="bloc">
+ <?php echo $this->footerActualites($this->option('actus')); ?>
+ <div class="social">
+ <h2><?php echo __("Suivez-nous"); ?></h2>
+ <?php echo $this->footerSocials($this->option('followus')); ?>
+ </div>
+ </div>
+ </div>
+ </div>
- <div class="footer-bottom">
- <div class="content">
- <div class="copyright">
- <?php
- echo $this->option('copyright');
+ <div class="footer-bottom">
+ <div class="content">
+ <div class="copyright">
+ <?php
+ echo $this->option('copyright');
- if (!is_null($mentions)) {
- echo $this->linkPage($mentions_page);
- //echo ' <a href="' . $mentions . '">' . ucfirst($mentions_page->title) . '</a>';
- }
- ?>
- </div>
- <nav class="locales">
- <?php
- $fr = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- if (!isset($this->enversion)) {
- $en = 'http://en.cubedesigners.com/en/';
- } else {
- $en = $this->enversion;
- }
- echo $this->link('fr', $fr, array('class' => 'active', 'hreflang' => 'fr'));
- echo $this->link('en', $en, array('hreflang' => 'en'));
- ?>
- </nav>
+ if (!is_null($mentions)) {
+ echo $this->linkPage($mentions_page);
+ //echo ' <a href="' . $mentions . '">' . ucfirst($mentions_page->title) . '</a>';
+ }
+ ?>
</div>
- </div>
- </div>
- </div>
+ <nav class="locales">
+ <?php
+ $fr = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
+ if (!isset($this->enversion)) {
+ $en = 'http://en.cubedesigners.com/en/';
+ } else {
+ $en = $this->enversion;
+ }
+ echo $this->link('fr', $fr, array('class' => 'active', 'hreflang' => 'fr'));
+ echo $this->link('en', $en, array('hreflang' => 'en'));
+ ?>
+ </nav>
+ </div>
+ </div>
+ </div>
</footer>
\ No newline at end of file
/* LOGO */
echo $this->link($this->image('/images/logo.svg', '', 318, 132), $home, array('class' => 'logo'));
if ($this->currentPage && $this->currentPage->getTemplate() == 'home') {
- echo '<div class="sublogo"><h1>' . $this->logoTitle . '</h1><h2>' . $this->baseline . '</h2></div>';
+ echo '<div class="sublogo"><h1>' . $this->cmsValue('logoTitle') . '</h1><h2>' . $this->cmsValue('baseline') . '</h2></div>';
} else {
- echo '<div class="sublogo"><h2>' . $this->logoTitle . '</h2><h3>' . $this->baseline . '</h3></div>';
+ echo '<div class="sublogo"><h2>' . $this->cmsValue('logoTitle') . '</h2><h3>' . $this->cmsValue('baseline') . '</h3></div>';
}
/* NAVIGATION */
$mainMenu = $this->navigation()->findOneById($this->localeDefault() . '/' . CubeIT_Navigation::MAIN);
<?php
-$this->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');
-?>
-
-
-<?php
echo $this->CasestudiesDetail($this->studie);
?>
--- /dev/null
+require([
+ 'common',
+]);
\ No newline at end of file