[testing : production]
dev = true
+firephp = true
+
+minify.js = false
+minify.css = false
seo.universalAnalytics =
robots = false
-webhost = dev.fluidbook.com
+webhost = fluidbookwebv3.dev.cubedesigners.com
-locales.fr = dev.fluidbook.com
-locales.en = en.dev.fluidbook.com
\ No newline at end of file
+locales.fr = fluidbookwebv3.dev.cubedesigners.com
+locales.en = en.fluidbookwebv3.dev.cubedesigners.com
\ No newline at end of file
--- /dev/null
+<?php
+
+class Fluidbook_Form_CMS_Sub_Social_Network extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $title = new Zend_Form_Element_Text('title');
+ $title->setLabel('Titre du réseau social');
+ $this->addElement($title);
+
+ $url = new CubeIT_Form_Element_Url('url');
+ $url->setLabel('URL');
+ $this->addElement($url);
+
+ $icon = new CubeIT_Form_Element_File_Image('icon');
+ $icon->setLabel('Pictogramme');
+ $icon->setMaxItems(1);
+ $this->addElement($icon);
+ }
+
+}
\ No newline at end of file
--- /dev/null
+<?php
+
+class Fluidbook_Form_CMS_Sub_Social_Networks extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $network = new Fluidbook_Form_CMS_Sub_Social_Network();
+ $this->setBaseSubForm($network);
+ $this->setBaseLegend('Edition du réseau social « $title »');
+ $this->setNewLegend('Nouveau réseau social');
+ }
+
+}
\ No newline at end of file
$this->setTitle('Edition des paramètres du site');
+ $logo = new CubeIT_Form_Element_File_Image('logo');
+ $logo->setLabel('Logo');
+ $this->addElement($logo);
+
$longTitle = new Zend_Form_Element_Text('longTitle');
$longTitle->setLabel('Titre long par défaut');
$this->addElementLocalized($longTitle);
$workshop->fileEnabled(false);
$workshop->pageEnabled(false);
$this->addSubFormLocalized($workshop, 'workshop');
+
+ $social = new Fluidbook_Form_CMS_Sub_Social_Networks();
+ $social->setLegend('Réseaux Sociaux');
+ $this->addSubFormLocalized($social, 'social_networks');
}
}
\ No newline at end of file
* $this->headScript()->addWebFont($fonts);
*
*/
+
+// Google Font
+$fonts = array('google' => array('families' => array('Open+Sans|Playfair+Display')));
+$this->headScript()->addWebFont($fonts);
+
profile(__FILE__, __LINE__, 'Before rendering body');
$res = $this->htmlPage($this->render('common/body.phtml'));
profile(__FILE__, __LINE__, 'Body rendered');
<?php\r
-$res = '<footer>';\r
+\r
+$this->headScript()->addScriptAndStyle('footer');\r
+\r
+$res = '<footer class="site">';\r
+\r
+$res .= $this->imageCms($this->option('logo'), 'Fluidbook', 258, 64);\r
\r
$res .= '<address>';\r
$res .= $this->option('address')['adresse'];\r
$res .= $this->option('address')['email'];\r
$res .= '</address>';\r
\r
-$res .= '<div class="footer-bottom">';\r
-$res .= $this->markupDotclear($this->option('footer'));\r
-$res .= '</div>'; // .footer-bottom\r
-\r
+$res .= '<div class="footer-social">';\r
+foreach ($this->option('social_networks') as $social) {\r
+ $res .= '<a href="'. $social['url'] .'" class="social-link" target="_blank">';\r
+ $res .= $this->imageCms($social['icon'], $social['title'], 52, 52);\r
+ $res .= '</a>';\r
+}\r
+$res .= '</div>'; // .footer-social\r
$res .= '</footer>';\r
\r
+$res .= '<footer class="legal">';\r
+$res .= $this->markupDotclear($this->option('footer'));\r
+$res .= '</footer>'; // footer.legal\r
+\r
echo $res;
\ No newline at end of file
ini_set('log_errors', '1');
ini_set('error_log', dirname(__FILE__) . '/log/php_error.log');
-if ($_SERVER['HTTP_HOST'] == 'dev.fluidbook.com') {
+if (strpos($_SERVER['HTTP_HOST'], 'dev.') !== false) {
define('APPLICATION_ENV', 'testing');
-} else if ($_SERVER['HTTP_HOST'] == 'www.') {
+} else {
define('APPLICATION_ENV', 'production');
}
-@import "001-variables";\r
+@import "001-variables";
@import "003-mixins";
\ No newline at end of file
+//-- Fonts
+@opensans: 'Open Sans', sans-serif;
+@playfair: 'Playfair Display', serif;
+@montserrat: 'Montserrat', sans-serif;
+
+//-- General Fonts
+@heading-font: @playfair;
+@sub-heading-font: @montserrat;
+@body-font: @opensans;
+
+//-- Colours
+@color-footer-bg-primary: #263340;
+@color-footer-bg-secondary: #161e26;
+
+//-- Content and breakpoints
+@mobile-breakpoint: 1024px;
\ No newline at end of file
-body{\r
- background: #f00;\r
+@import "000-imports";\r
+\r
+body {\r
+ font-family: @body-font;\r
}
\ No newline at end of file
+// Special mixin to be used when fonts render too bold
+// See: https://maximilianhoffmann.com/posts/better-font-rendering-on-osx
+// also: http://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/
+.font-thinning() {
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.font-thinning-off() {
+ -webkit-font-smoothing: auto;
+ -moz-osx-font-smoothing: auto;
+}
\ No newline at end of file
--- /dev/null
+@import "000-imports";
+
+footer {
+ .font-thinning();
+
+ a {
+ color: #fff;
+ text-decoration: none;
+ }
+}
+
+footer.site {
+ color: #fff;
+ background-color: @color-footer-bg-primary;
+ padding: 75px 85px 75px 42px;
+}
+
+// Copyright and legal bar
+footer.legal {
+ background-color: @color-footer-bg-secondary;
+ color: #5c6268;
+ padding: 40px 85px;
+}
\ No newline at end of file