From: Vincent Vanwaelscappel Date: Tue, 14 Jan 2025 15:23:33 +0000 (+0100) Subject: wait #7250 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=66d80c2a823050df059cb4412ccaaeb529bb6cfa;p=bloomsburie.git wait #7250 @1.5 --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 87c42a7..23dc2f0 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -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; diff --git a/framework/application/forms/CMS/Home.php b/framework/application/forms/CMS/Home.php index 52c5361..5fcf350 100644 --- a/framework/application/forms/CMS/Home.php +++ b/framework/application/forms/CMS/Home.php @@ -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 index 0000000..c969467 --- /dev/null +++ b/framework/application/forms/CMS/Recognition.php @@ -0,0 +1,23 @@ +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 index 0000000..a1b3ad4 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Testimonial.php @@ -0,0 +1,21 @@ +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 index 0000000..5929829 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Testimonials.php @@ -0,0 +1,15 @@ +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 index 0000000..ca9e2a6 --- /dev/null +++ b/framework/application/views/helpers/Testimonials.php @@ -0,0 +1,20 @@ +'; + + foreach ($testimonials as $testimonial) { + $res .= '
'; + $res .= $this->view->imageCms($testimonial['logo']); + $res .= $this->view->markupDotclear($testimonial['text']); + $res .= '
'; + } + $res .= ''; + return $res; + } + +} diff --git a/framework/application/views/scripts/templates/recognition.phtml b/framework/application/views/scripts/templates/recognition.phtml new file mode 100644 index 0000000..3061b5d --- /dev/null +++ b/framework/application/views/scripts/templates/recognition.phtml @@ -0,0 +1,11 @@ +headScript()->addScriptAndStyle('recognition'); +echo $this->twocols(); + +?> +
imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?>
+
+ textLayer($this->testimonials_intro); ?> + testimonials($this->testimonials); ?> +
diff --git a/js/recognition.js b/js/recognition.js new file mode 100644 index 0000000..d8592e2 --- /dev/null +++ b/js/recognition.js @@ -0,0 +1,4 @@ +TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_recognition();'; + +function load_recognition() { +} \ No newline at end of file diff --git a/less/00-constants.less b/less/00-constants.less index fd4cced..0b4265f 100644 --- a/less/00-constants.less +++ b/less/00-constants.less @@ -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 index 0000000..4fccbd7 --- /dev/null +++ b/less/recognition.less @@ -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