]> _ Git - fluidbook-v3.git/commitdiff
Done #4980 @0.75
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 2 May 2022 16:38:16 +0000 (16:38 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 2 May 2022 16:38:16 +0000 (16:38 +0000)
framework/application/views/helpers/IntroBlock.php
framework/application/views/scripts/templates/fonctionnalites.phtml
less/102-intro.less

index 440973e9307e00499e2ebf2b72a07f91ed0074ed..f14b19aafbe5e6ea98cfebfc84d6962aef36ebdd 100644 (file)
@@ -7,11 +7,15 @@ class Fluidbook_View_Helper_IntroBlock extends CubeIT_View_Helper_Abstract
     {
         $this->addScriptAndStyle('102-intro');
 
+        if (empty($intro)) {
+            return '';
+        }
 
         $res = '<div class="grid">';
         $res .= '<div class="col-2">';
         $res .= $this->title($intro['title']);
         $res .= $this->_content($intro['content']);
+        $res .= $this->linkCMS($intro['button'], ['class' => 'intro-button']);
         if ($additionnalContent) {
             $res .= $additionnalContent;
         }
@@ -84,4 +88,4 @@ class Fluidbook_View_Helper_IntroBlock extends CubeIT_View_Helper_Abstract
         }
         return $res;
     }
-}
\ No newline at end of file
+}
index ab3fb3e4cdb41c363ed8b5dd882c0dfa1faba571..07bddaa1c635685b760bb1508c71935039b0739e 100644 (file)
@@ -18,6 +18,10 @@ $extraContent .= '<div class="lightbox" id="introVideo">';
 $extraContent .= $this->videoWeb($this->video);\r
 $extraContent .= '</div>'; // .lightbox\r
 \r
+// Since we've added a custom CTA button and the introBlock helper also outputs\r
+// a button, we need to empty the variable to avoid duplicate buttons appearing.\r
+$this->intro['button'] = [];\r
+\r
 $res  = $this->introBlock($this->intro, $extraContent, $playButtonLink);\r
 \r
 $res .= $this->featuresSection($this->features_title, $this->features);\r
index 4eece1f5e08fc94af55f92fa1fdc6543d0d39afa..d485eea94b7f13b84108d592001368a82d7028e5 100644 (file)
       }\r
     }\r
   }\r
-}
\ No newline at end of file
+}\r
+\r
+.intro-button {\r
+  .border-button-fill(@color-text, @color-text, 5%);\r
+  .longarrow-button(12px, 40px, 18px);\r
+  margin-top: 2em;\r
+\r
+  &:hover {\r
+    color: @color-text;\r
+  }\r
+}\r