$intro = new Fluidbook_Form_CMS_Sub_Intro();\r
$intro->setLegend('Introduction');\r
$this->addSubForm($intro, 'intro');\r
+\r
+ $contact=new CubeIT_Form_Element_Markitup('contact_footer');\r
+ $contact->setLabel('Texte du bloc « Contactez-nous ». Laisser vide pour utiliser le texte par défaut');\r
+ $this->addElement($contact);\r
}\r
}
\ No newline at end of file
public function contactFooter($cf = null) {\r
if (null === $cf) {\r
$cf = CubeIT_Util_Cms::unserialize($this->option('contact_footer'));\r
+ }\r
\r
+ if ($this->contact_footer != '') {\r
+ $cf['content'] = $this->contact_footer;\r
}\r
+\r
$this->addScriptAndStyle('103-contact-footer');\r
\r
$res = $this->title($cf['title'], 'h2');\r
$res = $this->backgroundBlock($res, $cf, array('content-wrapper'));\r
\r
return $this->htmlElement($res, 'section', array(\r
- 'class' => 'contactFooter section',\r
- 'data-themecolor' => '#8aab41', // Todo: possibly set this via the admin?\r
- 'data-section-name' => 'contact'));\r
+ 'class' => 'contactFooter section',\r
+ 'data-themecolor' => '#8aab41', // Todo: possibly set this via the admin?\r
+ 'data-section-name' => 'contact'));\r
}\r
}
\ No newline at end of file