]> _ Git - bloomsburie.git/commitdiff
wait #7250 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 Jan 2025 15:23:33 +0000 (16:23 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 Jan 2025 15:23:33 +0000 (16:23 +0100)
framework/application/Bootstrap.php
framework/application/forms/CMS/Home.php
framework/application/forms/CMS/Recognition.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Testimonial.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Testimonials.php [new file with mode: 0644]
framework/application/views/helpers/Testimonials.php [new file with mode: 0644]
framework/application/views/scripts/templates/recognition.phtml [new file with mode: 0644]
js/recognition.js [new file with mode: 0644]
less/00-constants.less
less/recognition.less [new file with mode: 0644]

index 87c42a723c5937aa8beda5017feb804207070df1..23dc2f0f057e64abfaa83733d62b6b18eaf00b8c 100644 (file)
@@ -133,7 +133,9 @@ class Bootstrap extends CubeIT_Bootstrap
         $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;
index 52c53615e742ea884b310c88fe06ddd922c892bc..5fcf350afd994b4879c31fd44182ac36da94e878 100644 (file)
@@ -6,11 +6,11 @@ class Cubedesigners_Form_CMS_Home extends Cubedesigners_Form_CMS {
                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();
diff --git a/framework/application/forms/CMS/Recognition.php b/framework/application/forms/CMS/Recognition.php
new file mode 100644 (file)
index 0000000..c969467
--- /dev/null
@@ -0,0 +1,23 @@
+<?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);
+    }
+
+}
diff --git a/framework/application/forms/CMS/Sub/Testimonial.php b/framework/application/forms/CMS/Sub/Testimonial.php
new file mode 100644 (file)
index 0000000..a1b3ad4
--- /dev/null
@@ -0,0 +1,21 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Testimonials.php b/framework/application/forms/CMS/Sub/Testimonials.php
new file mode 100644 (file)
index 0000000..5929829
--- /dev/null
@@ -0,0 +1,15 @@
+<?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');
+    }
+
+}
+
diff --git a/framework/application/views/helpers/Testimonials.php b/framework/application/views/helpers/Testimonials.php
new file mode 100644 (file)
index 0000000..ca9e2a6
--- /dev/null
@@ -0,0 +1,20 @@
+<?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;
+    }
+
+}
diff --git a/framework/application/views/scripts/templates/recognition.phtml b/framework/application/views/scripts/templates/recognition.phtml
new file mode 100644 (file)
index 0000000..3061b5d
--- /dev/null
@@ -0,0 +1,11 @@
+<?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>
diff --git a/js/recognition.js b/js/recognition.js
new file mode 100644 (file)
index 0000000..d8592e2
--- /dev/null
@@ -0,0 +1,4 @@
+TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_recognition();';
+
+function load_recognition() {
+}
\ No newline at end of file
index fd4cced9689c685d4ef1f0d19a7429ed33a121d0..0b4265f78daa742eff7f5883a524418099774932 100644 (file)
@@ -8,6 +8,7 @@
 @black: #242323;
 @blue: #0d4d8e;
 @lightblue: #469ef6;
+@grey: #eeeeee;
 
 @import "01-mixins";
 @import "02-utilities";
diff --git a/less/recognition.less b/less/recognition.less
new file mode 100644 (file)
index 0000000..4fccbd7
--- /dev/null
@@ -0,0 +1,44 @@
+@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