$intro_bg->setMaxItems(1);\r
$this->addElement($intro_bg);\r
\r
+ $intro_bg = new CubeIT_Form_Element_File_Image('bg_image_big');\r
+ $intro_bg->setLabel('Image de fond (grand)');\r
+ $intro_bg->setMaxItems(1);\r
+ $this->addElement($intro_bg);\r
+\r
$button = new CubeIT_Form_Element_Link();\r
$button->setLabel('Bouton');\r
$this->addSubForm($button, 'button');\r
$this->addElementLocalized($quote_description);
$quote_form_tips = new CubeIT_Form_Element_Markitup('quote_form_tips');
- $quote_form_tips->setLabel('Conseils de forme "Demander un Devis"');
+ $quote_form_tips->setLabel('Conseils pour le formulaire "Demander un Devis"');
$this->addElementLocalized($quote_form_tips);
$footer_menu_main = new Fluidbook_Form_CMS_Element_PagesTagList('footer_menu_main');
$attributes['data-bg-ratio'] = $image_ratio;\r
}\r
\r
- if ($data['bg_color']) {\r
+ if (isset($data['bg_color'])) {\r
$style .= "background-color:" . $data['bg_color'] . ";";\r
}\r
$attributes['style'] = $style;\r
/**\r
* @return string\r
*/\r
- public function contactFooter() {\r
- $cf = CubeIT_Util_Cms::unserialize($this->option('contact_footer'));\r
+ public function contactFooter($cf = null) {\r
+ if (null === $cf) {\r
+ $cf = CubeIT_Util_Cms::unserialize($this->option('contact_footer'));\r
\r
+ }\r
$this->addScriptAndStyle('103-contact-footer');\r
\r
$res = $this->title($cf['title'], 'h2');\r
$viewHelper = 'home' . ucfirst($bloc);\r
$res .= $this->$viewHelper($this->{$bloc});\r
}\r
- $res.=$this->contactFooter();\r
+ $cf = CubeIT_Util_Cms::unserialize($this->option('contact_footer'));\r
+ $cf['bg_image'] = $cf['bg_image_big'];\r
+ $res .= $this->contactFooter($cf);\r
\r
return $res;\r
}\r
}\r
\r
function resizeHome() {\r
+ // Resize sections\r
var wh = $(window).outerHeight() / zoom;\r
+ var ww = $(window).outerWidth() / zoom;\r
$('main>section').css('height', wh);\r
+\r
+\r
+ resizeHomeContact(ww, wh);\r
+}\r
+\r
+function resizeHomeContact(ww, wh) {\r
+ var c = $(".contactFooter .grid");\r
+ if (ww > 900) {\r
+ var paddingTop = (wh - $(c).outerHeight()) / 2;\r
+ $(".contactFooter .content-wrapper").css({paddingTop: paddingTop});\r
+ }\r
+\r
}
\ No newline at end of file
background-size: 180% auto;\r
padding-bottom: 55%;\r
}\r
+\r
+ .home & {\r
+ min-height: 100% !important;\r
+ }\r
}\r
\r
.buttons {\r