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) {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$c1', endColorstr='$c2',GradientType=1);";
}
-}
\ No newline at end of file
+}
$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
\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
}\r
\r
\r
-}
\ No newline at end of file
+}\r
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
$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">';
return $res;
}
-}
\ No newline at end of file
+}
\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
}\r
$res .= '</div>'; // .resellers\r
\r
-echo $res;
\ No newline at end of file
+echo $res;\r