From: vincent@cubedesigners.com Date: Sat, 23 Jan 2016 18:48:20 +0000 (+0000) Subject: Home form #4 @2h X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=29e9bf835bb92288e22970313c6bd6b90ad7058a;p=fluidbook-v3.git Home form #4 @2h --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 4749ab9..b2e2f6d 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -21,12 +21,11 @@ class Bootstrap extends CubeIT_Bootstrap { $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(); } diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index 326698a..7c1371e 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -70,4 +70,7 @@ httpauth.ip_whitelist[] = 82.216.164.184 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 diff --git a/framework/application/forms/CMS/Home.php b/framework/application/forms/CMS/Home.php index 14110a7..53d939c 100644 --- a/framework/application/forms/CMS/Home.php +++ b/framework/application/forms/CMS/Home.php @@ -1,9 +1,23 @@ 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); + } } } - -?> diff --git a/framework/application/forms/CMS/Sub/Home/Block.php b/framework/application/forms/CMS/Sub/Home/Block.php new file mode 100644 index 0000000..5c4bcad --- /dev/null +++ b/framework/application/forms/CMS/Sub/Home/Block.php @@ -0,0 +1,42 @@ +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 diff --git a/framework/application/forms/CMS/Sub/Home/Contact.php b/framework/application/forms/CMS/Sub/Home/Contact.php new file mode 100644 index 0000000..f9c68aa --- /dev/null +++ b/framework/application/forms/CMS/Sub/Home/Contact.php @@ -0,0 +1,13 @@ +setLabel('Bouton Contact'); + $button->fileEnabled(false); + $button->setOrder(25); + $this->addSubForm($button, 'button_contact'); + } +} \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Home/Customers.php b/framework/application/forms/CMS/Sub/Home/Customers.php new file mode 100644 index 0000000..fd3f614 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Home/Customers.php @@ -0,0 +1,13 @@ +setLabel('Lien en savoir plus'); + $button->fileEnabled(false); + $button->setOrder(35); + $this->addSubForm($button, 'more'); + } +} \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Home/Features.php b/framework/application/forms/CMS/Sub/Home/Features.php new file mode 100644 index 0000000..efb3505 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Home/Features.php @@ -0,0 +1,7 @@ +setLabel('Vidéo'); + $video->setOrder(25); + $this->addElement($video); + } +} \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Home/References.php b/framework/application/forms/CMS/Sub/Home/References.php new file mode 100644 index 0000000..a0d975d --- /dev/null +++ b/framework/application/forms/CMS/Sub/Home/References.php @@ -0,0 +1,9 @@ +removeElement('backgroundimage'); + } +} \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Home/Services.php b/framework/application/forms/CMS/Sub/Home/Services.php new file mode 100644 index 0000000..c24c90e --- /dev/null +++ b/framework/application/forms/CMS/Sub/Home/Services.php @@ -0,0 +1,7 @@ +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