From: stephen@cubedesigners.com Date: Wed, 27 Jul 2016 15:04:45 +0000 (+0000) Subject: WIP #491 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7738792cb2509e14a238cbdf830df672e6e89d5b;p=fluidbook-v3.git WIP #491 @0.75 --- diff --git a/framework/application/views/helpers/HomeCustomers.php b/framework/application/views/helpers/HomeCustomers.php index 2795a0c..4df857f 100644 --- a/framework/application/views/helpers/HomeCustomers.php +++ b/framework/application/views/helpers/HomeCustomers.php @@ -6,9 +6,18 @@ class Fluidbook_View_Helper_HomeCustomers extends Fluidbook_View_Helper_HomeLaye */ public function homeCustomers($data) { + $this->headScript()->addScriptAndStyle('213-home-customers'); + $this->data = $data; - $res = $this->_leftText(); + $res = ''; + + $res .= $this->title($data['title']); + $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'); } diff --git a/framework/application/views/helpers/LinkQuote.php b/framework/application/views/helpers/LinkQuote.php index 30b4636..be14bd7 100644 --- a/framework/application/views/helpers/LinkQuote.php +++ b/framework/application/views/helpers/LinkQuote.php @@ -4,9 +4,19 @@ class Fluidbook_View_Helper_LinkQuote extends CubeIT_View_Helper_Abstract { /** * @return string */ - public function linkQuote($label) { + public function linkQuote($label, $style = '') { $this->headScript()->addScriptAndStyle('005-fancyselect'); $this->headScript()->addScriptAndStyle('315-quote'); - return $this->linkPopup($label, 'internal:contact', array('data-popup-href' => '/ajaxPopup/quoteForm', 'class' => 'quoteLink', 'data-event' => array('category' => 'form', 'action' => 'open', 'label' => 'quote'))); + return $this->linkPopup($label, + 'internal:contact', + ['data-popup-href' => '/ajaxPopup/quoteForm', + 'class' => 'quoteLink', + 'data-event' => [ + 'category' => 'form', + 'action' => 'open', + 'label' => 'quote' + ], + 'style' => $style + ]); } } \ No newline at end of file diff --git a/less/213-home-customers.less b/less/213-home-customers.less new file mode 100644 index 0000000..23763c2 --- /dev/null +++ b/less/213-home-customers.less @@ -0,0 +1,48 @@ +@import "000-imports"; + +section.customers { + + .quoteLink { + .button(); + color: #fff; + margin-bottom: 20px; + } + + .btn.more { + color: @color-text; + border: 1px solid @color-text; + line-height: 52px; + margin: 0 20px; + } +} + + +.customers-content { + width: 50%; + + @media @m900 { + width: auto; + } + + li { + display: inline-block; + width: 32%; + margin-bottom: 30px; + vertical-align: top; + padding-right: 20px; + + @media @m1280 { + width: 49%; + } + + @media (max-width: 400px) { + width: 100%; + } + } + + strong { + font-family: @montserrat; + font-weight: 600; + text-transform: uppercase; + } +} \ No newline at end of file