From 896d60e5f65fbe3674dfa7c3393a68ae6cac7bdd Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 11 Jul 2016 11:42:46 +0000 Subject: [PATCH] done #539 @3 --- .../forms/CMS/Sub/Social/Network.php | 31 +++++++++---------- .../views/scripts/common/footer.phtml | 8 +++-- js/104-nav.js | 4 +-- less/102-footer.less | 11 ++++--- less/105-mmenu.less | 14 +++++++++ 5 files changed, 41 insertions(+), 27 deletions(-) diff --git a/framework/application/forms/CMS/Sub/Social/Network.php b/framework/application/forms/CMS/Sub/Social/Network.php index 14e188e..3c57872 100644 --- a/framework/application/forms/CMS/Sub/Social/Network.php +++ b/framework/application/forms/CMS/Sub/Social/Network.php @@ -2,25 +2,24 @@ class Fluidbook_Form_CMS_Sub_Social_Network extends CubeIT_Form_SubForm { - public function init() { - parent::init(); + public function init() { + parent::init(); - $title = new Zend_Form_Element_Text('title'); - $title->setLabel('Titre du réseau social'); - $this->addElement($title); + $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); + $url = new CubeIT_Form_Element_Url('url'); + $url->setLabel('URL'); + $this->addElement($url); - $couleur = new CubeIT_Form_Element_Color('color'); - $couleur->setLabel('Couleur'); - $this->addElement($couleur); + $couleur = new CubeIT_Form_Element_Color('color'); + $couleur->setLabel('Couleur'); + $this->addElement($couleur); - $icon = new CubeIT_Form_Element_File_Image('icon'); - $icon->setLabel('Pictogramme'); - $icon->setMaxItems(1); - $this->addElement($icon); - } + $icon = new Zend_Form_Element_Text('icon'); + $icon->setLabel('Pictogramme (fontastic)'); + $this->addElement($icon); + } } \ No newline at end of file diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index b124920..d9370be 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -29,9 +29,11 @@ $res .= $this->footerMenu($this->option('footer_menu_contact'), __('Contactez-no $res .= ''; // .footer-social diff --git a/js/104-nav.js b/js/104-nav.js index 16ad0ae..57f5c9d 100644 --- a/js/104-nav.js +++ b/js/104-nav.js @@ -14,11 +14,9 @@ function load_nav() { var social = []; $(".footer-social a").each(function () { - social.push($(this)[0].outerHTML); + social.push('
' + $(this)[0].outerHTML + '
'); }); - fb(social); - $("#mmenu").mmenu({ offCanvas: { diff --git a/less/102-footer.less b/less/102-footer.less index 3fb5ca3..ece8796 100644 --- a/less/102-footer.less +++ b/less/102-footer.less @@ -115,16 +115,17 @@ footer.site { height: 54px; width: 54px; color: #fff; + font-size: 27px; + line-height: 60px; + text-align: center; + &:hover { + color: #fff; + } &:last-of-type { margin-right: 0; } - &:hover { - background-color: currentColor; - border-color: currentColor; - } - img { display: block; } diff --git a/less/105-mmenu.less b/less/105-mmenu.less index 224b233..bbfa915 100644 --- a/less/105-mmenu.less +++ b/less/105-mmenu.less @@ -143,8 +143,22 @@ html.mm-front #mm-blocker { } } +.mm-navbar-bottom { + text-align: center; + display: inline-block; + margin: 0 auto; + bottom: 50px; +} + #mmenu { .social-link { + border-color: #a5acb2; color: #a5acb2; + line-height: 60px; + padding: 0; + &:hover { + text-shadow: none; + color: #fff; + } } } -- 2.39.5