From d1e4ab145eb46047f018886e144ecf82c70c433f Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Tue, 3 May 2022 15:57:00 +0000 Subject: [PATCH] Wait #4904 @0.75 --- .../forms/CMS/Fonctionnalitessub.php | 16 ++++++++------ .../templates/fonctionnalitessub.phtml | 7 ++++++- less/420-features-details.less | 21 +++++++++++++++++++ 3 files changed, 37 insertions(+), 7 deletions(-) diff --git a/framework/application/forms/CMS/Fonctionnalitessub.php b/framework/application/forms/CMS/Fonctionnalitessub.php index 3236ac4..440f960 100644 --- a/framework/application/forms/CMS/Fonctionnalitessub.php +++ b/framework/application/forms/CMS/Fonctionnalitessub.php @@ -6,19 +6,23 @@ class Fluidbook_Form_CMS_Fonctionnalitessub extends Fluidbook_Form_CMS_Base { public function init() { parent::init(); - $titre = new CubeIT_Form_Element_Textarea('ex_title'); - $titre->setLabel('Titre du bloc examples'); - $titre->setAttrib('rows', 2); - $this->addElement($titre); - $details = new Fluidbook_Form_CMS_Sub_Features_FeatureDetails(); $details->setLabel('Détails'); $this->addSubForm($details, 'details'); + $blockquote = new CubeIT_Form_Element_Markitup('blockquote'); + $blockquote->setLabel('Bloc de citation'); + $this->addElement($blockquote); + $logos = new CubeIT_Form_Element_File_Image('features_logos'); $logos->setLabel('Logos'); $this->addElement($logos); + $titre = new CubeIT_Form_Element_Textarea('ex_title'); + $titre->setLabel('Titre du bloc références'); + $titre->setAttrib('rows', 2); + $this->addElement($titre); + $category = new Fluidbook_Form_CMS_Sub_Exemples_CategorySelect('ex_category'); $category->setLabel('Catégorie de références'); $this->addElement($category); @@ -32,4 +36,4 @@ class Fluidbook_Form_CMS_Fonctionnalitessub extends Fluidbook_Form_CMS_Base { $exemples->setLabel('Gestion des exemples'); $this->addElement($exemples); } -} \ No newline at end of file +} diff --git a/framework/application/views/scripts/templates/fonctionnalitessub.phtml b/framework/application/views/scripts/templates/fonctionnalitessub.phtml index 5c870e3..9e3d3da 100644 --- a/framework/application/views/scripts/templates/fonctionnalitessub.phtml +++ b/framework/application/views/scripts/templates/fonctionnalitessub.phtml @@ -3,8 +3,13 @@ $this->headScript()->addScriptAndStyle('420-features-details'); $res = $this->introBlock($this->intro); $res .= $this->featureDetails($this->details); + +if ($this->blockquote) { + $res .= $this->htmlElement($this->markupDotclear($this->blockquote), 'blockquote', ['class' => 'features-blockquote']); +} + $res .= $this->logos($this->features_logos); $res .= $this->exemples($this->ex_category, $this->ex_title, $this->ex_count); $res .= $this->contactFooter(); -echo $res; \ No newline at end of file +echo $res; diff --git a/less/420-features-details.less b/less/420-features-details.less index 8c67a71..a238370 100644 --- a/less/420-features-details.less +++ b/less/420-features-details.less @@ -110,3 +110,24 @@ } } } + +.features-blockquote { + background-color: #f3f3f3; + padding: 2.678555em 2em; + color: #66727a; + font-family: 'Open Sans', sans-serif; + font-weight: 400; + font-size: 1.4em; + text-align: center; + line-height: 1.6; + + @media @m900 { + font-size: 1.1em; + } + + div { + max-width: 80ch; + margin: 0 auto; + } + +} -- 2.39.5