$templates['contact'] = 'Contact';
$templates['agences'] = 'Agences';
$templates['devis'] = 'Demande de devis';
+ $templates['faq'] = 'FAQ';
$templates = array_merge($templates, parent::getCMSTemplates());
return $templates;
}
-
-
function __destroy() {
endProfile();
}
robots = false
-webhost = fluidbook.com
\ No newline at end of file
+webhost = dev.fluidbook.com
+
+locales.fr = dev.fluidbook.com
+locales.en = en.dev.fluidbook.com
\ No newline at end of file
<?php
-class Fluidbook_Form_CMS_Home extends Fluidbook_Form_CMS{
- public function init(){
+class Fluidbook_Form_CMS_Home extends Fluidbook_Form_CMS {
+ public function init() {
parent::init();
+
+ $blocs = array(
+ 'intro' => array('class' => 'Fluidbook_Form_CMS_Sub_Home_Intro', 'label' => 'Intro'),
+ 'features' => array('class' => 'Fluidbook_Form_CMS_Sub_Home_Features', 'label' => 'Fonctionnalités'),
+ 'customers' => array('class' => 'Fluidbook_Form_CMS_Sub_Home_Customers', 'label' => 'Clients'),
+ 'services' => array('class' => 'Fluidbook_Form_CMS_Sub_Home_Services', 'label' => 'Services'),
+ 'references' => array('class' => 'Fluidbook_Form_CMS_Sub_Home_References', 'label' => 'Référeces'),
+ 'contact' => array('class' => 'Fluidbook_Form_CMS_Sub_Home_Contact', 'label' => 'Contactez-nous'),
+ );
+
+ foreach ($blocs as $name => $data) {
+ $class = $data['class'];
+ $subform = new $class();
+ $subform->setLegend('Bloc « ' . $data['label'] . ' »');
+ $this->addSubForm($subform, $name);
+ }
}
}
-
-?>
--- /dev/null
+<?php
+
+class Fluidbook_Form_CMS_Sub_Home_Block extends CubeIT_Form_SubForm {
+ public function init() {
+ parent::init();
+
+
+ $title = new Zend_Form_Element_Text('title');
+ $title->setLabel('Titre');
+ $title->setOrder(10);
+ $this->addElement($title);
+
+
+ $text = new CubeIT_Form_Element_Markitup("text");
+ $text->setLabel('Texte');
+ $text->setAttrib('rows', 8);
+ $text->setOrder(20);
+ $this->addElement($text);
+
+ $button = new CubeIT_Form_Element_Link('button');
+ $button->setLabel('Bouton');
+ $button->fileEnabled(false);
+ $button->setOrder(30);
+ $this->addSubForm($button, 'button');
+
+ $themeColor = new CubeIT_Form_Element_Color('themecolor');
+ $themeColor->setLabel('Couleur de thème (puces, boutons)');
+ $themeColor->setOrder(40);
+ $this->addElement($themeColor);
+
+ $backgroundColor = new CubeIT_Form_Element_Color('backgroundcolor');
+ $backgroundColor->setLabel('Couleur de fond');
+ $backgroundColor->setOrder(50);
+ $this->addElement($backgroundColor);
+
+ $backgroundImage = new CubeIT_Form_Element_File_Image('backgroundimage');
+ $backgroundImage->setLabel('Image de fond');
+ $backgroundImage->setMaxItems(1);
+ $backgroundImage->setOrder(60);
+ $this->addElement($backgroundImage);
+ }
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Home_Contact extends Fluidbook_Form_CMS_Sub_Home_Block {\r
+ public function init() {\r
+ parent::init();\r
+\r
+ $button = new CubeIT_Form_Element_Link('button_contact');\r
+ $button->setLabel('Bouton Contact');\r
+ $button->fileEnabled(false);\r
+ $button->setOrder(25);\r
+ $this->addSubForm($button, 'button_contact');\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Home_Customers extends Fluidbook_Form_CMS_Sub_Home_Block {\r
+ public function init() {\r
+ parent::init();\r
+\r
+ $button = new CubeIT_Form_Element_Link('more');\r
+ $button->setLabel('Lien en savoir plus');\r
+ $button->fileEnabled(false);\r
+ $button->setOrder(35);\r
+ $this->addSubForm($button, 'more');\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Home_Features extends Fluidbook_Form_CMS_Sub_Home_Block {\r
+ public function init() {\r
+ parent::init();\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Home_Intro extends Fluidbook_Form_CMS_Sub_Home_Block {\r
+ public function init() {\r
+ parent::init();\r
+\r
+ $video = new CubeIT_Form_Element_WebVideo('video');\r
+ $video->setLabel('Vidéo');\r
+ $video->setOrder(25);\r
+ $this->addElement($video);\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Home_References extends Fluidbook_Form_CMS_Sub_Home_Block {\r
+ public function init() {\r
+ parent::init();\r
+\r
+ $this->removeElement('backgroundimage');\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Home_Services extends Fluidbook_Form_CMS_Sub_Home_Block {\r
+ public function init() {\r
+ parent::init();\r
+ }\r
+}
\ No newline at end of file
$description = new CubeIT_Form_Element_Textarea('description');
$description->setLabel('Description de la page par défaut');
$this->addElementLocalized($description);
- }
-}
+ $footer=new CubeIT_Form_Element_Markitup('footer');
+ $footer->setLabel('Footer');
+ $footer->setAttrib('rows',6);
+ $this->addElementLocalized($footer);
+ }
-?>
+}
\ No newline at end of file