From 511f262fbff0fad01c33da2c2c0d8208dfb210cb Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Thu, 14 Oct 2021 15:06:47 +0000 Subject: [PATCH] Done #4789 @0.5 --- .../forms/CMS/Sub/Features/FeatureDetail.php | 6 +++++- .../application/views/helpers/FeatureDetails.php | 3 ++- less/420-features-details.less | 12 +++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/framework/application/forms/CMS/Sub/Features/FeatureDetail.php b/framework/application/forms/CMS/Sub/Features/FeatureDetail.php index 5deb9a6..7551bbb 100644 --- a/framework/application/forms/CMS/Sub/Features/FeatureDetail.php +++ b/framework/application/forms/CMS/Sub/Features/FeatureDetail.php @@ -12,6 +12,10 @@ class Fluidbook_Form_CMS_Sub_Features_FeatureDetail extends CubeIT_Form_SubForm $text->setLabel('Texte'); $this->addElement($text); + $button = new CubeIT_Form_Element_Link(); + $button->setLabel('Bouton'); + $this->addSubForm($button, 'button'); + $image = new CubeIT_Form_Element_File_Image('image'); $image->setLabel('Image'); $image->setMaxItems(1); @@ -19,4 +23,4 @@ class Fluidbook_Form_CMS_Sub_Features_FeatureDetail extends CubeIT_Form_SubForm } -} \ No newline at end of file +} diff --git a/framework/application/views/helpers/FeatureDetails.php b/framework/application/views/helpers/FeatureDetails.php index c2b712b..930b45f 100644 --- a/framework/application/views/helpers/FeatureDetails.php +++ b/framework/application/views/helpers/FeatureDetails.php @@ -21,6 +21,7 @@ class Fluidbook_View_Helper_FeatureDetails extends CubeIT_View_Helper_Abstract { $c = $this->htmlElement($d['title'], 'h3'); $c .= $this->markupDotclear($d['text']); + $c .= $this->linkCMS($d['button'], ['class' => 'feature-detail-button']); $c = $this->htmlElement($c, 'div', ['class' => 'content']); $image = $this->imageProcess($d['image'], $d['title'], 755 * 2, 1000 * 2, [], 'R'); @@ -28,4 +29,4 @@ class Fluidbook_View_Helper_FeatureDetails extends CubeIT_View_Helper_Abstract return $this->htmlElement($res, 'article', ['class' => $imageRight ? 'iright' : 'ileft']); } -} \ No newline at end of file +} diff --git a/less/420-features-details.less b/less/420-features-details.less index 5ab0d7e..8c67a71 100644 --- a/less/420-features-details.less +++ b/less/420-features-details.less @@ -99,4 +99,14 @@ } } } -} \ No newline at end of file + + .feature-detail-button { + .border-button-fill(@color-text, @color-text, 5%); + .longarrow-button(12px, 40px, 18px); + margin-top: 1.5em; + + &:hover { + color: @color-text; + } + } +} -- 2.39.5