]> _ Git - fluidbook-v3.git/commitdiff
Done #1955 @0.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Aug 2018 08:08:15 +0000 (08:08 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Aug 2018 08:08:15 +0000 (08:08 +0000)
framework/application/views/helpers/FeaturesSection.php
framework/application/views/helpers/HomeCustomers.php
framework/application/views/helpers/HomeIntro.php
framework/application/views/helpers/HomeLayer.php
framework/application/views/helpers/QuoteForm.php
framework/application/views/scripts/templates/contact.phtml

index 12044f99cc13baa21c8a526a103e98866cf2f33e..90bcfa72fc3866663132d5be604a833a637596e7 100644 (file)
@@ -2,12 +2,12 @@
 
 class Fluidbook_View_Helper_FeaturesSection extends CubeIT_View_Helper_Abstract {
 
-       public function featuresSection($title, $blocks) {
+       public function featuresSection($title, $blocks, $heading_element = 'h2') {
 
                $this->headScript()->addMasonry()->addJQueryTransform();
 
                $res = '<div class="content-wrapper grid wrap">';
-               $res .= $this->title($title, 'h1', array('class' => 'col-6'));
+               $res .= $this->title($title, $heading_element, array('class' => 'col-6'));
                $res .= '<div class="feature-blocks">';
 
                foreach ($blocks as $block) {
@@ -149,4 +149,4 @@ background-image: linear-gradient($angle, $c1 0%, $c2 100%);
 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$c1', endColorstr='$c2',GradientType=1);";
        }
 
-}
\ No newline at end of file
+}
index 4df857f6c2c6b0a86c8ee2c249c4c1039974c6cd..c9fab165e5e35872fbc7286119e6164993b6fb9c 100644 (file)
@@ -14,11 +14,11 @@ class Fluidbook_View_Helper_HomeCustomers extends Fluidbook_View_Helper_HomeLaye
         $res .= '.customers-content strong { color: '. $data['themecolor'] .'; }';\r
         $res .= '</style>';\r
 \r
-        $res .= $this->title($data['title']);\r
+        $res .= $this->title($data['title'], 'h2');\r
         $res .= $this->markupDotclear($data['content'], [], ['class' => 'customers-content']);\r
         $res .= $this->linkQuote(__('Demandez un devis'), 'background:' . $data['themecolor']);\r
         $res .= $this->linkCMS($data['more'], ['class' => 'btn more']);\r
 \r
                return $this->_layer($res, 'customers');\r
        }\r
-}
\ No newline at end of file
+}\r
index 209053bdffae3066f588ef22776d80b41c379c83..e0863760ea329119834e172b347dd0f461ab3251 100644 (file)
@@ -10,7 +10,7 @@ class Fluidbook_View_Helper_HomeIntro extends Fluidbook_View_Helper_HomeLayer {
 \r
         $this->data = $data;\r
 \r
-        $res  = $this->_leftText();\r
+        $res  = $this->_leftText('h1');\r
 \r
         $arrow = $this->link(null, '#', ['class' => 'scroll-arrow']);\r
 \r
@@ -18,4 +18,4 @@ class Fluidbook_View_Helper_HomeIntro extends Fluidbook_View_Helper_HomeLayer {
        }\r
 \r
 \r
-}
\ No newline at end of file
+}\r
index 723e2eeafd57a518488b67cd60d595ddc8e1d1e3..d46f636384cb3bfa90f39a446a237b43abd4292d 100644 (file)
@@ -22,10 +22,10 @@ class Fluidbook_View_Helper_HomeLayer extends CubeIT_View_Helper_Abstract {
                return $this->htmlElement($content, 'section', $attributes);\r
        }\r
 \r
-       protected function _leftText() {\r
-               $res = $this->title($this->data['title']);\r
+       protected function _leftText($title_element = 'h2') {\r
+               $res = $this->title($this->data['title'], $title_element);\r
                $res .= $this->markupDotclear($this->data['content']);\r
                $res .= $this->linkCMS($this->data['button'], ['class' => 'btn', 'style' => 'background:' . $this->data['themecolor']]);\r
                return $res;\r
        }\r
-}
\ No newline at end of file
+}\r
index 09e70ef432f22c3786b15a2733aab7cd8e47a088..bab3407c2f8c4714f42cda0791ee835bb184ae1c 100644 (file)
@@ -18,7 +18,7 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract {
 
 
                $res = '<div class="text col-2">';
-               $res .= $this->title($this->option('quote_heading'));
+               $res .= $this->title($this->option('quote_heading'), 'h2');
                $res .= $this->markupDotclear($this->option('quote_description'));
                $res .= '</div>'; // .text
                $res .= '<div class="form col-4">';
@@ -36,4 +36,4 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract {
 
                return $res;
        }
-}
\ No newline at end of file
+}
index fc74234ced1bc96f1c6339410dfe8aa4eedb5cac..b489b7e857c6401678b4aeb98532a44cba6a644f 100644 (file)
@@ -32,7 +32,7 @@ if ($this->form_first) {
 \r
 // Resellers\r
 $res .= '<div class="resellers content-wrapper grid">';\r
-$res .= '<h1 class="title col-6">' . nl2br($this->resellers_title) . '</h1>';\r
+$res .= '<h2 class="title col-6">' . nl2br($this->resellers_title) . '</h2>';\r
 foreach ($this->resellers as $reseller) {\r
        $res .= '<div class="reseller col-1">';\r
        $res .= '<h4>' . $locale->getTranslation($reseller['country'], 'Territory') . '</h4>';\r
@@ -42,4 +42,4 @@ foreach ($this->resellers as $reseller) {
 }\r
 $res .= '</div>'; // .resellers\r
 \r
-echo $res;
\ No newline at end of file
+echo $res;\r