]> _ Git - fluidbook-v3.git/commitdiff
Home form #4 @2h
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Sat, 23 Jan 2016 18:48:20 +0000 (18:48 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Sat, 23 Jan 2016 18:48:20 +0000 (18:48 +0000)
framework/application/Bootstrap.php
framework/application/configs/application.ini
framework/application/forms/CMS/Home.php
framework/application/forms/CMS/Sub/Home/Block.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Home/Contact.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Home/Customers.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Home/Features.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Home/Intro.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Home/References.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Home/Services.php [new file with mode: 0644]
framework/application/forms/Settings.php

index 4749ab93ca71dcf3a1a905afdb9d199f170a8c94..b2e2f6de0b90be4724a562c241bbb6105898b9b6 100644 (file)
@@ -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();
        }
index 326698ad1a880184916e3188659b2ace4211b004..7c1371e90e06f48b9c48a975585deaf248ce9b87 100644 (file)
@@ -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
index 14110a7b8771693db16b41bffa7d52b06e027fb5..53d939c541457022ce756d82089c1e056d63130d 100644 (file)
@@ -1,9 +1,23 @@
 <?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);
+               }
        }
 }
-
-?>
diff --git a/framework/application/forms/CMS/Sub/Home/Block.php b/framework/application/forms/CMS/Sub/Home/Block.php
new file mode 100644 (file)
index 0000000..5c4bcad
--- /dev/null
@@ -0,0 +1,42 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Home/Contact.php b/framework/application/forms/CMS/Sub/Home/Contact.php
new file mode 100644 (file)
index 0000000..f9c68aa
--- /dev/null
@@ -0,0 +1,13 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Home/Customers.php b/framework/application/forms/CMS/Sub/Home/Customers.php
new file mode 100644 (file)
index 0000000..fd3f614
--- /dev/null
@@ -0,0 +1,13 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Home/Features.php b/framework/application/forms/CMS/Sub/Home/Features.php
new file mode 100644 (file)
index 0000000..efb3505
--- /dev/null
@@ -0,0 +1,7 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Home/Intro.php b/framework/application/forms/CMS/Sub/Home/Intro.php
new file mode 100644 (file)
index 0000000..cca9784
--- /dev/null
@@ -0,0 +1,12 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Home/References.php b/framework/application/forms/CMS/Sub/Home/References.php
new file mode 100644 (file)
index 0000000..a0d975d
--- /dev/null
@@ -0,0 +1,9 @@
+<?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
diff --git a/framework/application/forms/CMS/Sub/Home/Services.php b/framework/application/forms/CMS/Sub/Home/Services.php
new file mode 100644 (file)
index 0000000..c24c90e
--- /dev/null
@@ -0,0 +1,7 @@
+<?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
index 3b461c783a707592df7db1396d54c6ac5c2bd61d..397b567e4a60782aea3a70c92f028f769e47dc7f 100644 (file)
@@ -14,8 +14,11 @@ class Fluidbook_Form_Settings extends CubeIT_Form_Settings {
                $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