From adea04bd1d2ce314efd4fe33fa370008f37ce066 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Wed, 22 Aug 2018 08:08:15 +0000 Subject: [PATCH] Done #1955 @0.5 --- framework/application/views/helpers/FeaturesSection.php | 6 +++--- framework/application/views/helpers/HomeCustomers.php | 4 ++-- framework/application/views/helpers/HomeIntro.php | 4 ++-- framework/application/views/helpers/HomeLayer.php | 6 +++--- framework/application/views/helpers/QuoteForm.php | 4 ++-- framework/application/views/scripts/templates/contact.phtml | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/framework/application/views/helpers/FeaturesSection.php b/framework/application/views/helpers/FeaturesSection.php index 12044f9..90bcfa7 100644 --- a/framework/application/views/helpers/FeaturesSection.php +++ b/framework/application/views/helpers/FeaturesSection.php @@ -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 = '
'; - $res .= $this->title($title, 'h1', array('class' => 'col-6')); + $res .= $this->title($title, $heading_element, array('class' => 'col-6')); $res .= '
'; 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 +} diff --git a/framework/application/views/helpers/HomeCustomers.php b/framework/application/views/helpers/HomeCustomers.php index 4df857f..c9fab16 100644 --- a/framework/application/views/helpers/HomeCustomers.php +++ b/framework/application/views/helpers/HomeCustomers.php @@ -14,11 +14,11 @@ class Fluidbook_View_Helper_HomeCustomers extends Fluidbook_View_Helper_HomeLaye $res .= '.customers-content strong { color: '. $data['themecolor'] .'; }'; $res .= ''; - $res .= $this->title($data['title']); + $res .= $this->title($data['title'], 'h2'); $res .= $this->markupDotclear($data['content'], [], ['class' => 'customers-content']); $res .= $this->linkQuote(__('Demandez un devis'), 'background:' . $data['themecolor']); $res .= $this->linkCMS($data['more'], ['class' => 'btn more']); return $this->_layer($res, 'customers'); } -} \ No newline at end of file +} diff --git a/framework/application/views/helpers/HomeIntro.php b/framework/application/views/helpers/HomeIntro.php index 209053b..e086376 100644 --- a/framework/application/views/helpers/HomeIntro.php +++ b/framework/application/views/helpers/HomeIntro.php @@ -10,7 +10,7 @@ class Fluidbook_View_Helper_HomeIntro extends Fluidbook_View_Helper_HomeLayer { $this->data = $data; - $res = $this->_leftText(); + $res = $this->_leftText('h1'); $arrow = $this->link(null, '#', ['class' => 'scroll-arrow']); @@ -18,4 +18,4 @@ class Fluidbook_View_Helper_HomeIntro extends Fluidbook_View_Helper_HomeLayer { } -} \ No newline at end of file +} diff --git a/framework/application/views/helpers/HomeLayer.php b/framework/application/views/helpers/HomeLayer.php index 723e2ee..d46f636 100644 --- a/framework/application/views/helpers/HomeLayer.php +++ b/framework/application/views/helpers/HomeLayer.php @@ -22,10 +22,10 @@ class Fluidbook_View_Helper_HomeLayer extends CubeIT_View_Helper_Abstract { return $this->htmlElement($content, 'section', $attributes); } - protected function _leftText() { - $res = $this->title($this->data['title']); + protected function _leftText($title_element = 'h2') { + $res = $this->title($this->data['title'], $title_element); $res .= $this->markupDotclear($this->data['content']); $res .= $this->linkCMS($this->data['button'], ['class' => 'btn', 'style' => 'background:' . $this->data['themecolor']]); return $res; } -} \ No newline at end of file +} diff --git a/framework/application/views/helpers/QuoteForm.php b/framework/application/views/helpers/QuoteForm.php index 09e70ef..bab3407 100644 --- a/framework/application/views/helpers/QuoteForm.php +++ b/framework/application/views/helpers/QuoteForm.php @@ -18,7 +18,7 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract { $res = '
'; - $res .= $this->title($this->option('quote_heading')); + $res .= $this->title($this->option('quote_heading'), 'h2'); $res .= $this->markupDotclear($this->option('quote_description')); $res .= '
'; // .text $res .= '
'; @@ -36,4 +36,4 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract { return $res; } -} \ No newline at end of file +} diff --git a/framework/application/views/scripts/templates/contact.phtml b/framework/application/views/scripts/templates/contact.phtml index fc74234..b489b7e 100644 --- a/framework/application/views/scripts/templates/contact.phtml +++ b/framework/application/views/scripts/templates/contact.phtml @@ -32,7 +32,7 @@ if ($this->form_first) { // Resellers $res .= '
'; -$res .= '

' . nl2br($this->resellers_title) . '

'; +$res .= '

' . nl2br($this->resellers_title) . '

'; foreach ($this->resellers as $reseller) { $res .= '
'; $res .= '

' . $locale->getTranslation($reseller['country'], 'Territory') . '

'; @@ -42,4 +42,4 @@ foreach ($this->resellers as $reseller) { } $res .= '
'; // .resellers -echo $res; \ No newline at end of file +echo $res; -- 2.39.5