$templates = parent::getCMSTemplates();
- $templates['text'] = 'Page de texte';
- $templates['agence'] = "L'agence";
+ $templates['text'] = 'Text page';
+ $templates['agence'] = "About us";
$templates['realisations'] = 'Réalisations';
$templates['Etudes de cas'] = array('casestudies' => 'Accueil des études de cas', 'casestudies_detail' => 'Détail d\'étude de cas');
$templates['Expertises'] = array('expertises' => 'Accueil de la rubrique Expertises',
'expertise' => 'Page de détail d\'expertise');
- $templates['news'] = 'Actualités';
+ $templates['news'] = 'News';
$templates['contact'] = 'Contact';
return $templates;
<?php
-class Cubedesigners_Form_CMS_Agence extends Cubedesigners_Form_CMS_Twocolumns {
+class Cubedesigners_Form_CMS_Agence extends Cubedesigners_Form_CMS {
public function init() {
parent::init();
- $pictos = new Cubedesigners_Form_CMS_Sub_Agence_Pictos();
- $pictos->setLabel('Pictogrammes');
- $this->addSubForm($pictos, 'pictos');
+ $titre = new CubeIT_Form_Element_Markitup('titre');
+ $titre->setLabel('Intro');
+ $this->addElement($titre);
- $photo = new CubeIT_Form_Element_File_Image('photo');
- $photo->setLabel('Photos de l\'agence');
+ $photo = new CubeIT_Form_Element_File_Image('photo');
+ $photo->setLabel('Picture');
$this->addElement($photo);
+ $agence = new Cubedesigners_Form_CMS_Sub_Home_Agence();
+ $agence->setLabel("Values");
+ $this->addSubForm($agence, 'agence');
+
$equipe = new Cubedesigners_Form_CMS_Sub_Agence_Persons();
- $equipe->setLabel("Bloc L'équipe");
+ $equipe->setLabel("Team");
$this->addSubForm($equipe, 'equipe');
+
+ $photo = new CubeIT_Form_Element_File_Image('photo2');
+ $photo->setLabel('Picture');
+ $this->addElement($photo);
+
+ $titre = new CubeIT_Form_Element_Markitup('text');
+ $titre->setLabel('Text');
+ $this->addElement($titre);
}
}
public function init() {
parent::init();
- $isCompactTrad = false;
+ $isCompactTrad = true;
$id = new CubeIT_Form_Element_Id();
$this->addElement($id);
// $res.='<div class="spacer"></div>';
// }
- $image = $this->view->imageProcess()->imageProcessGetUrl($bloc['photo'], $bloc['titre'], 120, 120);
+ $image = $this->view->imageProcess()->imageProcessGetUrl($bloc['photo'], $bloc['titre'], 92, 92);
$res.='<div class="sousbloc" itemscope itemtype="http://schema.org/Person">';
$res.='<span style="background:url(\'' . $image . '\') no-repeat" class="photo" itemprop="image"></span>';
foreach ($blocs as $id => $bloc) {
- $image = $this->view->imageCms($bloc['picto'], '', 70, 70, array());
+ $image = $this->view->imageCms($bloc['picto'], '', 120, 120, array());
$res .= '<article>';
$res.='<div class="sousbloc">';
$res = '<div class="blocs">';
foreach ($blocs as $id => $bloc) {
- $image = $this->view->imageProcess($bloc['picto'], $bloc['titre'], 120, 120);
+ $image = $this->view->imageProcess($bloc['picto'], $bloc['titre'], 92, 92);
$res .= '<div class="sousbloc">';
$res .= $image;
$res .= '<h2>' . $this->view->markupDotclear($bloc['titre']) . '</h2>';
// $res.='<div class="spacer"></div>';
// }
// }
- $image = $this->view->imageCms($bloc['picto'], $bloc['titre'], 120, 120);
+ $image = $this->view->imageCms($bloc['picto'], $bloc['titre'], 92, 92);
if(!empty($bloc['lien'])) {
$image = $this->view->linkInternal($image, $bloc['lien']);
--- /dev/null
+<?php
+
+class Cubedesigners_View_Helper_Intro extends Zend_View_Helper_Abstract
+{
+
+ public function intro()
+ {
+ $this->view->headLink()->appendStylesheet('/less/twocols.less');
+ $res = '<div class="twocols content">';
+ $res .= '<section>';
+
+ // Replacing <br /> tags with normal line breaks to allow for more flexible styling via CSS white-space
+ $res .= '<div class="title">' . str_replace('<br />', "\n", $this->view->markupDotclear($this->view->titre)) . '</div>';
+
+ $res .= '</section>';
+ $res .= '</div>';
+ return $res;
+ }
+
+}
--- /dev/null
+<?php
+
+class Cubedesigners_View_Helper_TextLayer extends Zend_View_Helper_Abstract
+{
+
+ public function textLayer($text)
+ {
+ $this->view->headLink()->appendStylesheet('/less/twocols.less');
+ $res = '<div class="twocols content">';
+ $res .= '<section>';
+
+ // Replacing <br /> tags with normal line breaks to allow for more flexible styling via CSS white-space
+ $res .= $this->view->markupDotclear($text);
+
+ $res .= '</section>';
+ $res .= '</div>';
+ return $res;
+ }
+
+}
<?php
$this->headScript()->addScriptAndStyle('agence');
$this->headScript()->addScriptAndStyle('slideshow');
-echo $this->twocols();
+echo $this->intro();
?>
-<div class="agency-pictos mb-4vw">
- <div class="bloc-holder content">
- <?php echo $this->agencyPictos($this->pictos); ?>
- </div>
-</div>
-<div class="agency-photo mb-4vw"><?php echo $this->imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?></div>
+<div class="agency-photo mb-4vw"><?php echo $this->imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?></div>
+<div class="agency-pictos mb-4vw">
+ <div class="bloc-holder content">
+ <?php echo $this->agencyPictos($this->pictos); ?>
+ </div>
+</div>
<section class="agency-persons mb-4vw">
<div class="bloc-holder content">
<h2><?php echo ucfirst($this->equipe['titre']); ?></h2>
<?php echo $this->agencyBlocs($this->equipe); ?>
</div>
</section>
+<div class="agency-photo mb-4vw"><?php echo $this->imageSlideshowContinuous($this->photo2, null, array(), array('arrowspermanent' => 1)); ?></div>
+<?php
+echo $this->textLayer($this->text);
+?>
\ No newline at end of file
mkdir(CACHE_PATH . '/' . APPLICATION_ENV . '/wsdl', 0777, true);
}
+ $defaultPhpSettings['opcache.enable'] = false;
+ $defaultPhpSettings['opcache.revalidate_freq'] = 0;
if ($options['dev']) {
$defaultPhpSettings['opcache.enable'] = false;
$defaultPhpSettings['opcache.revalidate_freq'] = 0;
*/
public function getCMSTemplates() {
$templates = array();
- $templates['home'] = 'Page d\'accueil';
+ $templates['home'] = 'Home page';
$templates['Redirections'] = array(
- 'externalredirection' => 'Redirection externe',
- 'nextredirection' => 'Redirection vers la première sous-rubrique',
- 'pageredirection' => 'Redirection interne',
- 'subredirection' => 'Redirection vers une sous-rubrique');
+ 'externalredirection' => 'External redirection',
+ 'nextredirection' => 'Redirect to the first subpage',
+ 'pageredirection' => 'Internal redirection',
+ 'subredirection' => 'Redirect to a subpage');
return $templates;
}
<?php
-class CubeIT_View_Helper_ImageSlideshowContinuous extends CubeIT_View_Helper_ImageSlideshow {
+class CubeIT_View_Helper_ImageSlideshowContinuous extends CubeIT_View_Helper_ImageSlideshow
+{
- public function imageSlideshowContinuous($slides, $height = 'auto', $attrs = array(), $options = array()) {
- $options['type'] = 'continuous';
- $options['baseHeight'] = $height;
- return $this->imageSlideshow($slides, 'auto', $height, $attrs, $options);
- }
+ public function imageSlideshowContinuous($slides, $height = 'auto', $attrs = array(), $options = array())
+ {
+ if (count($slides) === 1) {
+ return '<div class="fullwidthimage">'.$this->imageCms($slides[0],'', null, $height, $attrs).'</div>';
+ }
+ $options['type'] = 'continuous';
+ $options['baseHeight'] = $height;
+ return $this->imageSlideshow($slides, 'auto', $height, $attrs, $options);
+ }
- protected function _makeSlide($slide, $width, $height) {
- $slideAttrs = array('class' => 'slide', 'data-width' => $width, 'data-height' => $height, 'style' => 'width:' . $width . 'px;height:' . $height . 'px;');
+ protected function _makeSlide($slide, $width, $height)
+ {
+ $slideAttrs = array('class' => 'slide', 'data-width' => $width, 'data-height' => $height, 'style' => 'width:' . $width . 'px;height:' . $height . 'px;');
- if (CubeIT_Util_Html::isHtml($slide)) {
- $c = $slide;
- } else {
- $slideAttrs = array('class' => 'slide', 'data-width' => $width, 'data-height' => $height, 'style' => 'width:' . $width . 'px;height:' . $height . 'px;');
- $slideAttrs['data-image'] = CubeIT_View_Helper_ImageCms::getPath($slide);
+ if (CubeIT_Util_Html::isHtml($slide)) {
+ $c = $slide;
+ } else {
+ $slideAttrs = array('class' => 'slide', 'data-width' => $width, 'data-height' => $height, 'style' => 'width:' . $width . 'px;height:' . $height . 'px;');
+ $slideAttrs['data-image'] = CubeIT_View_Helper_ImageCms::getPath($slide);
- if (is_object($slide) && isset($slide->legend) && $slide->legend) {
- $slideAttrs['data-legend'] = $slide->legend;
- }
- $c = '';
- }
+ if (is_object($slide) && isset($slide->legend) && $slide->legend) {
+ $slideAttrs['data-legend'] = $slide->legend;
+ }
+ $c = '';
+ }
- return $this->view->htmlElement($c, 'div', $slideAttrs);
- }
+ return $this->view->htmlElement($c, 'div', $slideAttrs);
+ }
}
font-weight: 600;
}
-h1,h2{
+h1, h2 {
font-weight: 700;
}
}
}
- &.animated-arrow{
+ &.animated-arrow {
text-transform: uppercase;
}
border-radius: 0;
font-size: 18px;
}
+
+.fullwidthimage {
+ img {
+ width: 100%;
+ height: auto;
+ }
+}
\ No newline at end of file