<?php
class Fluidbook_Form_CMS_Texte extends Fluidbook_Form_CMS {
+ public function init() {
+ parent::init();
+ $title = new Zend_Form_Element_Textarea('title');
+ $title->setLabel('Titre');
+ $title->setAttrib('rows', 3);
+ $this->addElement($title);
+ $content = new CubeIT_Form_Element_Markitup('content');
+ $content->setLabel('Contenu');
+ $this->addElement($content);
+ }
}
\ No newline at end of file
<?php\r
-/**\r
- * Created by IntelliJ IDEA.\r
- * User: Vincent\r
- * Date: 22/06/2016\r
- * Time: 19:25\r
- */
\ No newline at end of file
+$this->headScript()->addScriptAndStyle('240-text');\r
+$res = $this->htmlElement('', 'div', array('class' => 'no-intro'));\r
+$c = $this->htmlElement($this->title($this->title), 'div', array('class' => 'col-2'));\r
+$c .= $this->htmlElement($this->markupDotclear($this->content), 'div', array('class' => 'col-6'));\r
+$res .= $this->htmlElement($c, 'div', array('class' => array('content-wrapper', 'grid', 'wrap')));\r
+echo $res;
\ No newline at end of file
ul {\r
.list();\r
}\r
+}\r
+\r
+.no-intro {\r
+ height: 0px;\r
+ box-sizing: content-box;\r
+ padding-top: 152px; // Minimum clearance and top for fixed menu\r
+\r
+ @media @m1280 {\r
+ padding-top: 120px;\r
+ }\r
+\r
+ @media @m900 {\r
+ padding-top: 100px;\r
+ }\r
+\r
+ @media @m768 {\r
+ padding-top: 80px;\r
+ }\r
}
\ No newline at end of file
--- /dev/null
+@import "000-imports";\r
+\r
+h2 {\r
+ font-family: @playfair;\r
+ font-weight: 400;\r
+ font-size: 30px;\r
+ margin-bottom: .5em;\r
+ margin-top: .8em;\r
+ line-height: 1.1;\r
+\r
+ @media @m900 {\r
+ font-size: 20px;\r
+ }\r
+}
\ No newline at end of file