RewriteBase /
# Redirection to www. subdomain
RewriteCond %{HTTP_HOST} !=www.cubedesigners.fr
- RewriteCond %{HTTP_HOST} !=www.cubedesigners.com
+ #RewriteCond %{HTTP_HOST} !=www.cubedesigners.com
RewriteRule ^(.*)$ http://www.cubedesigners.fr/$1 [R=301,L]
# Redirect auth header to env
RewriteRule ^.*$ - [E=REMOTE_USER:%{HTTP:Authorization}]
return $templates;
}
+ /**
+ *
+ * @param Zend_Controller_Request_Http $req
+ * @return boolean|string
+ */
+ public function handleRedirections($req) {
+ $res = parent::handleRedirections($req);
+ if ($res !== false) {
+ return $res;
+ }
+
+ $path = trim($req->getPathInfo(), '/ ');
+ $e = explode('/', $path);
+ $locale = array_shift($e);
+
+ $res = '/';
+ if ($locale == 'en') {
+ return 'http://en.cubedesigners.com/en/' . $path;
+ }
+
+ if ($locale == 'references_web') {
+ $res.='Portfolio';
+ return $res;
+ }
+
+ if ($locale != 'fr') {
+ return false;
+ }
+
+ if (count($e) == 1) {
+ $u = $e[0];
+ if ($u == '1-Sites-internet') {
+ $res.='Projets-Web';
+ } elseif ($u == '2-Design-graphique') {
+ $res.='Graphisme';
+ } elseif ($u == '3-Design-industriel') {
+ $res.='Design-industriel';
+ } elseif ($u == '4-Multimedia-Jeux') {
+ $res.='Multimedia';
+ } elseif ($u == '5-Films-Animation') {
+ $res.='Multimedia';
+ } elseif ($u == '6-Applications-mobiles') {
+ $res.='Projets-Web';
+ } elseif ($u == '7-En-attente') {
+ $res.='Graphisme';
+ }
+ return $res;
+ }
+
+ if (count($e) == 3) {
+ if ($e[0] == 'Sites-internet') {
+ $e[0] = 'Site-Web';
+ } elseif ($e[0] == 'Multimedia-Jeux') {
+ $e[0] = 'Multimedia';
+ }
+
+ // Projects
+ /// Mobile-applications/Heredis/114-Heredis-App => Applications-mobiles/Heredis-Heredis-App
+ $ee = explode('-', $e[2], 2);
+ array_shift($ee);
+ $res.=$e[0] . '/' . $e[1] . '-' . implode('-', $ee);
+ return $res;
+ }
+
+ return false;
+ }
+
public function run() {
// run have to be the last call of bootstrap
parent::run();
session.lifetime = 31536000 ;1 year
session.adapter = cache
-webhost = www.cubedesigners.com
+webhost = www.cubedesigners.fr
database.adapter = pdo_mysql
database.params.host = localhost
<?php
class IndexController extends CubeIT_Controller_IndexController {
-
-}
+}
-<?php\r
-\r
-class Cubedesigners_View_Helper_AgencyBlocs extends Zend_View_Helper_Abstract {\r
-\r
- public function agencyBlocs($blocs) {\r
-\r
- $blocs = $blocs['blocs'];\r
-\r
- $res = '<div class="blocs">';\r
-\r
- $i = 0;\r
-\r
- foreach ($blocs as $id => $bloc) {\r
-\r
- if (($i % 2) == 0 && $i != 0) {\r
- $res.='<div class="spacer"></div>';\r
- }\r
-\r
- $image = $this->view->imageProcess()->imageProcessGetUrl($bloc['photo'], $bloc['titre'], 120, 120);\r
-\r
- $res.='<div class="sousbloc" itemscope itemtype="http://schema.org/Person">';\r
- $res.='<span style="background:url(\'' . $image . '\') no-repeat" class="photo" itemprop="image"></span>';\r
- $res.='<h3 itemprop="name">' . $bloc['titre'] . '</h3>';\r
- $res.='<span class="poste" itemprop="jobTitle">' . $bloc['poste'] . '</span>';\r
- $res.='<span class="texte">' . $this->view->markupDotclear($bloc['texte']) . '</span>';\r
- $res.='</div>';\r
-\r
- $i++;\r
- }\r
-\r
- $res .= '</div>';\r
- return $res;\r
- }\r
-\r
-}\r
-\r
-?>\r
+<?php
+
+class Cubedesigners_View_Helper_AgencyBlocs extends Zend_View_Helper_Abstract {
+
+ public function agencyBlocs($blocs) {
+
+ $blocs = $blocs['blocs'];
+
+ $res = '<div class="blocs">';
+
+ $i = 0;
+
+ foreach ($blocs as $id => $bloc) {
+
+ if (($i % 2) == 0 && $i != 0) {
+ $res.='<div class="spacer"></div>';
+ }
+
+ $image = $this->view->imageProcess()->imageProcessGetUrl($bloc['photo'], $bloc['titre'], 120, 120);
+
+ $res.='<div class="sousbloc" itemscope itemtype="http://schema.org/Person">';
+ $res.='<span style="background:url(\'' . $image . '\') no-repeat" class="photo" itemprop="image"></span>';
+ $res.='<h3 itemprop="name">' . $bloc['titre'] . '</h3>';
+ $res.='<span class="poste" itemprop="jobTitle">' . $bloc['poste'] . '</span>';
+ $res.= $this->view->markupDotclear($bloc['texte'], array('class' => 'texte'));
+ $res.='</div>';
+
+ $i++;
+ }
+
+ $res .= '</div>';
+ return $res;
+ }
+
+}
+
+?>
$nbActus = count($actus);
$res = '<section class="actus">';
+ $res.='<h2>' . __('Actualités') . '</h2>';
foreach ($actus as $id => $actu) {
- $res.='<article class="actu">' . $this->view->dateTime($actu['date'], "dd-MM-y", array('class' => 'date')) . $this->view->markupDotclear($actu['texte']) . '</article>';
+ $res.='<article class="actu">';
+ $res.= $this->view->dateTime($actu['date'], "dd-MM-y", array('class' => 'date'));
+ $res.='<h3>' . nl2br($actu['texte']) . '</h3>';
+ $res.='</article>';
}
$res.= '</section>';
$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>';
+ $rea.='<h3>' . Cubedesigners_Util::getCategoryById($r->categories) . ' / ' . $this->dateTime($r->date, Zend_Date::YEAR) . '</h3>';
$url = Cubedesigners_Util::generateAutoUri($r, $datas['seourl_rea']);
public function twocols($displayTitle = true) {
$this->view->headLink()->appendStylesheet('/less/twocols.less');
$res = '<div class="twocols">';
+ $res.='<section>';
if ($displayTitle) {
$res.= '<div class="title">' . $this->view->markupDotclear($this->view->titre) . '</div>';
}
- $res.='<section>';
$res.='<div class="cols">';
$res.='<div class="col">' . $this->view->markupDotclear($this->view->colonnegauche) . '</div>';
$res.='<div class="col">' . $this->view->markupDotclear($this->view->colonnedroite) . '</div>';
</div>
<div class="bloc">
- <h2><?php echo __("Actualités"); ?></h2>
<?php echo $this->footerActualites($this->option('actus')); ?>
<div class="social">
<h2><?php echo __("Suivez-nous"); ?></h2>
<?php
$fr = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if (!isset($this->enversion)) {
- $en = 'http://www.cubedesigners.com/en';
+ $en = 'http://en.cubedesigners.com/en/';
} else {
$en = $this->enversion;
}
/* LOGO */
echo $this->link($this->image('/images/logo.svg', '', 318, 132), $home, array('class' => 'logo'));
- echo '<div class="sublogo"><h1>Cubedesigners</h1><h2>Agence de création sur mesure</h2></div>';
-
+ if ($this->currentPage && $this->currentPage->getTemplate() == 'home') {
+ echo '<div class="sublogo"><h1>Cubedesigners</h1><h2>Agence de création sur mesure</h2></div>';
+ } else {
+ echo '<div class="sublogo"><h2>Cubedesigners</h2><h3>Agence de création sur mesure</h3></div>';
+ }
/* NAVIGATION */
$mainMenu = $this->navigation()->findOneById($this->localeDefault() . '/' . CubeIT_Navigation::MAIN);
-
echo $this->navigation()->menu()->renderMenu($mainMenu, array('maxDepth' => 0)) . "\n";
?>
<?php
$r = CubeIT_Util_Cms::unserialize($this->realisation);
-$this->headTitle($r->titre . ' - ' . $r->legende . ' // ' . $this->currentPage->getParent()->getTitle(), 'SET');
+$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->headTitle($this->titre . ' / ' . $this->currentPage->getParent()->getTitle() . ' // Cubedesigners', 'SET');
$this->headSeo()->setDescription($this->studie->legende);
$this->headOpenGraph()->setDescription($this->studie->legende);
$this->headScript()->addScriptAndStyle('casestudies_detail');
$this->headScript()->addScriptAndStyle('slideshow');
echo $this->twocols();
?>
+<div class="agency-pictos">
+ <div class="bloc-holder">
+ <?php echo $this->agencyPictos($this->pictos); ?>
+ </div>
+</div>
+<div class="agency-photo"><?php echo $this->imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?></div>
-<section>
- <div class="agency-pictos">
- <div class="bloc-holder">
- <?php echo $this->agencyPictos($this->pictos); ?>
- </div>
- </div>
-</section>
-
-<section>
- <div class="agency-photo"><?php echo $this->imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?></div>
-</section>
-
-<section>
- <div class="agency-persons">
- <div class="bloc-holder">
-
- <h2><?php echo ucfirst($this->equipe['titre']); ?></h2>
-
- <?php echo $this->agencyBlocs($this->equipe); ?>
-
- </div>
- </div>
+<section class="agency-persons">
+ <div class="bloc-holder">
+ <h2><?php echo ucfirst($this->equipe['titre']); ?></h2>
+ <?php echo $this->agencyBlocs($this->equipe); ?>
+ </div>
</section>
\ No newline at end of file
border-radius: 60px;
}
}
-
-
-/* max-width pour faibles résolutions */
-@media screen and (max-width: 1009px) {
-
-
-}
\ No newline at end of file
}
.actus{
- height: 262px;
+ height:366px;
.actu {
color:#6c6c6c;
padding-bottom: 20px;
- .dotclear {
+ h3 {
width:90%;
font-size:16px;
line-height:20px;
padding:8px 0 0 0;
}
+ .Pinterest{
+ display:none;
+ }
+
.Facebook:hover {
background-color: #39599f;
}