<?php\r
\r
-class Fluidbook_Form_CMS_Exemplessub extends Fluidbook_Form_CMS_Base{\r
+class Fluidbook_Form_CMS_Exemplessub extends Fluidbook_Form_CMS_Exemples {\r
\r
}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_Form_CMS_Sub_Contact_Footer extends CubeIT_Form_SubForm {\r
+ public function init() {\r
+ parent::init();\r
+\r
+\r
+ $intro_title = new Zend_Form_Element_Textarea('title');\r
+ $intro_title->setLabel('Titre');\r
+ $intro_title->setAttrib('rows', 3);\r
+ $this->addElement($intro_title);\r
+\r
+ $intro_content = new CubeIT_Form_Element_Markitup('content');\r
+ $intro_content->setLabel('Contenu');\r
+ $this->addElement($intro_content);\r
+\r
+ $color = new CubeIT_Form_Element_Color('bg_color');\r
+ $color->setLabel('Couleur de fond');\r
+ $color->setValue('#ffffff');\r
+ $this->addElement($color);\r
+\r
+ $intro_bg = new CubeIT_Form_Element_File_Image('bg_image');\r
+ $intro_bg->setLabel('Image de fond');\r
+ $intro_bg->setMaxItems(1);\r
+ $this->addElement($intro_bg);\r
+\r
+ $button = new CubeIT_Form_Element_Link();\r
+ $button->setLabel('Bouton');\r
+ $this->addSubForm($button, 'button');\r
+ }\r
+}
\ No newline at end of file
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);
$footer_menu_contact->setAttrib('placeholder', 'Tapez un titre de la page');
$this->addElement($footer_menu_contact);
+ $contact_footer = new Fluidbook_Form_CMS_Sub_Contact_Footer();
+ $contact_footer->setLabel('Bloc contact');
+ $this->addSubFormLocalized($contact_footer, 'contact_footer');
+
$footer = new CubeIT_Form_Element_Markitup('footer');
$footer->setLabel('Footer');
$footer->setAttrib('rows', 6);
}
$this->headScript()->addIEConditionnals();
$this->headScript()->appendFile('/js/002-common.js');
+//<link href="https://file.myfontastic.com/2VZntjQVKuJUUqArhhJzkD/icons.css" rel="stylesheet">
+$this->headLink()->appendStylesheet('https://file.myfontastic.com/2VZntjQVKuJUUqArhhJzkD/icons.css');
$this->headLink()->appendStylesheet('/less/002-common.less', 'all');
$this->headScript()->addTagHandler(true); // Used by related articles selector in admin
*/
// Fonts
-$fonts = array('google' => array('families' => array('Open+Sans|Playfair+Display|Montserrat')),
- 'custom' => array('families' => array('Montserrat'), 'urls' => array('/css/fonts/Montserrat/Montserrat.css')));
+$fonts = array('google' => array('families' => array('Open+Sans:400,300|Playfair+Display|Montserrat')),
+ 'custom' => array('families' => array('Montserrat'), 'urls' => array('/css/fonts/Montserrat/Montserrat.css')));
$this->headScript()->addWebFont($fonts);
--- /dev/null
+<?php\r
+\r
+class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract {\r
+ /**\r
+ * @return string\r
+ */\r
+ public function backgroundBlock($content, $data) {\r
+ $style = '';\r
+ $attributes = array('class' => array('content-wrapper', 'no-shrink'));\r
+\r
+ $bgimage = CubeIT_Util_Cms::extractFile($data['bg_image']);\r
+ $extra_attributes = array();\r
+ if ($bgimage) {\r
+ $image_path = CubeIT_View_Helper_ImageCms::getPath($bgimage);\r
+\r
+ // Work out the ratio of the background image\r
+ CubeIT_Image::getDimensions($image_path, $image_width, $image_height);\r
+ $image_ratio = $image_height / $image_width;\r
+\r
+ $style = "background-image: url($image_path);";\r
+ $attributes['data-bg-ratio'] = $image_ratio;\r
+ }\r
+\r
+ if ($data['bg_color']) {\r
+ $style .= "background-color:" . $data['bg_color'] . ";";\r
+ }\r
+ $attributes['style'] = $style;\r
+\r
+ return $this->htmlElement($content, 'div', $attributes);\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Fluidbook_View_Helper_ContactFooter extends CubeIT_View_Helper_Abstract {\r
+ /**\r
+ * @return string\r
+ */\r
+ public function contactFooter() {\r
+ $cf = CubeIT_Util_Cms::unserialize($this->option('contact_footer'));\r
+\r
+ $this->addScriptAndStyle('103-contact-footer');\r
+\r
+ $res = $this->htmlElement($cf['title'], 'h2', array('class' => 'title'));\r
+ $res .= $this->markupDotclear($cf['content']);\r
+ $buttons = $this->linkCMS($cf['button']);\r
+ $buttons .= $this->linkQuote('Demander un devis');\r
+ $res .= $this->htmlElement($buttons, 'div', array('class' => 'buttons'));\r
+\r
+ $res = $this->htmlElement($res, 'div', array('class' => 'col-2'));\r
+ $res = $this->htmlElement($res, 'div', array('class' => 'grid'));\r
+ $res = $this->backgroundBlock($res, $cf);\r
+\r
+ return $this->htmlElement($res, 'section', array('class' => 'contactFooter'));\r
+ }\r
+}
\ No newline at end of file
class Fluidbook_View_Helper_IntroBlock extends CubeIT_View_Helper_Abstract {
public function introBlock($intro, $additionnalContent = '') {
+ $this->addScriptAndStyle('102-intro');
- $style = '';
- $extra_attributes = '';
-
- $bgimage=CubeIT_Util_Cms::extractFile($intro['bg_image']);
-
- if ($bgimage) {
- $image_path = CubeIT_View_Helper_ImageCms::getPath($bgimage);
-
- // Work out the ratio of the background image
- CubeIT_Image::getDimensions($image_path, $image_width, $image_height);
- $image_ratio = $image_height / $image_width;
-
- $style = "background-image: url($image_path);";
- $extra_attributes = 'data-bg-ratio="' . $image_ratio . '"';
- }
-
- if ($intro['bg_color']) {
- $style .= "background-color:" . $intro['bg_color'] . ";";
- }
-
-
- $res = '<div class="intro content-wrapper no-shrink" style="' . $style . '"' . $extra_attributes . '>';
-
- $res .= '<div class="grid">';
+ $res = '<div class="grid">';
$res .= '<div class="col-2">';
$res .= '<h1 class="title">' . nl2br($intro['title']) . '</h1>';
$res .= '</div>'; // .col-2
$res .= '</div>'; // .grid
- $res .= '</div>'; // .content-wrapper
+ $res .= '</div>';
+
+ $res = $this->backgroundBlock($res, $intro);
- return $res;
+ if ($intro['chapo']) {
+ $res .= $this->htmlElement(nl2br($intro['chapo']), 'blockquote');
+ }
+
+ return $this->htmlElement($res, 'section', array('class' => 'intro'));
}
}
\ No newline at end of file
<?php\r
echo $this->introBlock($this->intro, '');\r
-echo $this->exemples(1, $this->title);
\ No newline at end of file
+echo $this->exemples($this->category, $this->title);
\ No newline at end of file
--- /dev/null
+<?php\r
+echo $this->introBlock($this->intro, '');\r
+echo $this->exemples($this->category, $this->title);\r
+echo $this->contactFooter();
\ No newline at end of file
\r
$('main').css('min-height', mainHeight);\r
\r
-\r
// Handle divs with background images that must have a proportional min-height\r
$('[data-bg-ratio]').each(function() {\r
$(this).css('min-height', Math.round($(this).outerWidth() * $(this).data('bg-ratio')));\r
--- /dev/null
+registerLoader(load_intro);\r
+\r
+function load_intro(){\r
+ \r
+}\r
@opensans: 'Open Sans', sans-serif;
@playfair: 'Playfair Display', serif;
@montserrat: 'Montserrat', sans-serif;
+@icons: 'fluidbook';
//-- General Fonts
@heading-font: @playfair;
\r
.content-wrapper {\r
width: 100%;\r
- padding-top: 5%;\r
+ padding-top: 4%;\r
padding-bottom: 5%;\r
\r
- &:first-of-type {\r
- padding-top: 152px; // Minimum clearance and top for fixed menu\r
- }\r
}\r
\r
.no-shrink {\r
flex-basis: percentage(6/6);\r
}\r
\r
-.intro {\r
- background-size: 1680px auto;\r
+.dotclear {\r
+ ul {\r
+ .list();\r
+ }\r
}
\ No newline at end of file
font-family: @montserrat;
font-weight: 300;
text-transform: uppercase;
+ text-decoration: none;
+ text-align: center;
cursor: pointer;
}
}
.border-button-fill(@border-color,@color-text) {
+ .button();
transition: all 200ms;
- border-color: @border-color;
+ border: 1px solid @border-color;
color: @border-color;
&:hover {
- background-color:@border-color;
+ background-color: @border-color;
color: @color-text;
}
}
+ &:active {
+ background-color: darken(@border-color, 2%);
+ border-color: darken(@border-color, 2%);
+ }
+}
.background-button(@base-color) {
transition: all 200ms;
height: 1px;
background-color: #343c44;
}
+}
+
+.list() {
+ list-style: none;
+ li {
+ &:before {
+ content: '>';
+ font-family: @icons;
+ margin-right: 0.8em;
+ font-size: 0.7em;
+ }
+ }
}
\ No newline at end of file
@import "000-imports";\r
#adminBar{\r
position: fixed;\r
+ z-index: 11;\r
top:0px;\r
left:0px;\r
background-color:@color-footer-bg-secondary;\r
}\r
}\r
}\r
-\r
-header {\r
- top:25px !important;\r
-}
\ No newline at end of file
--- /dev/null
+@import "000-imports";\r
+\r
+.intro {\r
+ .content-wrapper {\r
+ background-size: 1680px auto;\r
+ padding-top: 152px; // Minimum clearance and top for fixed menu\r
+ }\r
+\r
+ blockquote {\r
+ background-color: #f3f3f3;\r
+ padding: 60px 20%;\r
+ color: #343c44;\r
+ font-family: @opensans;\r
+ font-weight: 300;\r
+ font-size: 22px;\r
+ text-align: center;\r
+ line-height: 35px;\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+@import "000-imports";\r
+\r
+.contactFooter {\r
+ .content-wrapper {\r
+ background-size: 1680px auto;\r
+ }\r
+\r
+ .buttons {\r
+ margin-top: 50px;\r
+ a {\r
+ .border-button-fill(#343c44, #f3f3f3);\r
+ width: 220px;\r
+ margin-right: 20px;\r
+\r
+ &.quoteLink {\r
+ color: #fff;\r
+ .background-button(#8aab41);\r
+ }\r
+ }\r
+\r
+ }\r
+}
\ No newline at end of file
button{\r
color:#fff;\r
border:1px solid #fff;\r
- padding:16px 20px;\r
+ padding:0 20px;\r
margin-left:20px;\r
margin-top: 5px;\r
\r