$templates['Etudes de cas'] = array('casestudies' => 'Accueil des études de cas', 'casestudies_detail' => 'Détail d\'étude de cas');
$templates['services'] = 'Services';
$templates['recommendation'] = 'Recommendation';
+ $templates['recognition'] = 'Recognition';
$templates['news'] = 'News';
+ $templates['carrers'] = 'Carrers';
$templates['contact'] = 'Contact';
return $templates;
parent::init();
$titre = new CubeIT_Form_Element_Markitup('titre');
- $titre->setLabel('Titre');
+ $titre->setLabel('Title');
$this->addElement($titre);
$slideshow = new Cubedesigners_Form_CMS_Sub_Home_Slideshow();
- $slideshow->setLabel('Carrousel');
+ $slideshow->setLabel('Carrousel images');
$this->addSubForm($slideshow, 'slideshow');
$agence = new Cubedesigners_Form_CMS_Sub_Home_Agence();
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Recognition extends Cubedesigners_Form_CMS_Twocolumns
+{
+
+ public function init()
+ {
+ parent::init();
+
+ $photo = new CubeIT_Form_Element_File_Image('photo');
+ $photo->setLabel('Picture');
+ $this->addElement($photo);
+
+ $intro = new CubeIT_Form_Element_Markitup('testimonials_intro');
+ $intro->setLabel('Testimonials introduction');
+ $this->addElement($intro);
+
+ $testimonials=new Cubedesigners_Form_CMS_Sub_Testimonials('testimonials');
+ $testimonials->setLabel('Testimonials');
+ $this->addElement($testimonials);
+ }
+
+}
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Testimonial extends CubeIT_Form_SubForm
+{
+ public function init()
+ {
+ parent::init();
+
+ $title = new CubeIT_Form_Element_Text('title');
+ $title->setLabel('Title');
+ $this->addElement($title);
+
+ $logo = new CubeIT_Form_Element_File_Image('logo');
+ $logo->setLabel('Logo');
+ $this->addElement($logo);
+
+ $text=new CubeIT_Form_Element_Textarea('text');
+ $text->setLabel('Text');
+ $this->addElement($text);
+ }
+}
\ No newline at end of file
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Testimonials extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $bloc = new Cubedesigners_Form_CMS_Sub_Testimonial();
+ $this->setBaseSubForm($bloc);
+ $this->setBaseLegend('Edit « $title »');
+ $this->setNewLegend('New testimonial');
+ }
+
+}
+
--- /dev/null
+<?php
+
+class Cubedesigners_View_Helper_Testimonials extends Zend_View_Helper_Abstract
+{
+
+ public function testimonials($testimonials)
+ {
+ $res = '<div class="testimonials">';
+
+ foreach ($testimonials as $testimonial) {
+ $res .= '<div class="testimonial content">';
+ $res .= $this->view->imageCms($testimonial['logo']);
+ $res .= $this->view->markupDotclear($testimonial['text']);
+ $res .= '</div>';
+ }
+ $res .= '</div>';
+ return $res;
+ }
+
+}
--- /dev/null
+<?php
+
+$this->headScript()->addScriptAndStyle('recognition');
+echo $this->twocols();
+
+?>
+<div class="agency-photo mb-4vw"><?php echo $this->imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?></div>
+<div class="contents">
+ <?php echo $this->textLayer($this->testimonials_intro); ?>
+ <?php echo $this->testimonials($this->testimonials); ?>
+</div>
--- /dev/null
+TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_recognition();';
+
+function load_recognition() {
+}
\ No newline at end of file
@black: #242323;
@blue: #0d4d8e;
@lightblue: #469ef6;
+@grey: #eeeeee;
@import "01-mixins";
@import "02-utilities";
--- /dev/null
+@import "00-constants";
+
+h4 {
+ margin: 12px 0;
+}
+
+h3 {
+ margin-bottom: 2em;
+}
+
+.blue a {
+ color: @lightblue;
+}
+
+.small-margin-paragraphs p {
+ margin: 5px 0 !important;
+}
+
+.testimonials {
+ .testimonial {
+ padding-top: 2em;
+ padding-bottom: 1em;
+
+ &:nth-child(even){
+ background-color: @grey;
+ }
+
+ img {
+ display: block;
+ margin: 0 auto;
+ }
+
+ .dotclear {
+ p {
+ font-size: 20px;
+ margin: 4em 0 2em;
+ text-align: center;
+ font-style: italic;
+ }
+ }
+
+
+ }
+}
\ No newline at end of file