*/\r
public function homeCustomers($data) {\r
\r
+ $this->headScript()->addScriptAndStyle('213-home-customers');\r
+\r
$this->data = $data;\r
\r
- $res = $this->_leftText();\r
+ $res = '<style scoped>';\r
+ $res .= '.customers-content strong { color: '. $data['themecolor'] .'; }';\r
+ $res .= '</style>';\r
+\r
+ $res .= $this->title($data['title']);\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
/**\r
* @return string\r
*/\r
- public function linkQuote($label) {\r
+ public function linkQuote($label, $style = '') {\r
$this->headScript()->addScriptAndStyle('005-fancyselect');\r
$this->headScript()->addScriptAndStyle('315-quote');\r
- return $this->linkPopup($label, 'internal:contact', array('data-popup-href' => '/ajaxPopup/quoteForm', 'class' => 'quoteLink', 'data-event' => array('category' => 'form', 'action' => 'open', 'label' => 'quote')));\r
+ return $this->linkPopup($label,\r
+ 'internal:contact',\r
+ ['data-popup-href' => '/ajaxPopup/quoteForm',\r
+ 'class' => 'quoteLink',\r
+ 'data-event' => [\r
+ 'category' => 'form',\r
+ 'action' => 'open',\r
+ 'label' => 'quote'\r
+ ],\r
+ 'style' => $style\r
+ ]);\r
}\r
}
\ No newline at end of file
--- /dev/null
+@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