]> _ Git - fluidbook-v3.git/commitdiff
Adjust footer menu to allow special "Demander un devis" link that will trigger a...
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 24 Jun 2016 14:08:35 +0000 (14:08 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 24 Jun 2016 14:08:35 +0000 (14:08 +0000)
framework/application/Bootstrap.php
framework/application/views/helpers/FooterMenu.php
framework/application/views/scripts/common/footer.phtml

index 8e1a0ab636858d1c3b209d86afdf18080401f39b..36f13e9d10b980c1eb84c7d77772a60818eb6a91 100644 (file)
@@ -22,7 +22,6 @@ class Bootstrap extends CubeIT_Bootstrap {
                $templates['exemples'] = 'Exemples';
                $templates['contact'] = 'Contact';
                $templates['agences'] = 'Agences';
-               $templates['devis'] = 'Demande de devis';
                $templates['faq'] = 'FAQ';
                $templates = array_merge($templates, parent::getCMSTemplates());
                return $templates;
index 40823f1d016a865cbfe5651365187a3498e9a7ac..2e81e0f852906bc65d1d33b8e4125c992aeec564 100644 (file)
@@ -2,7 +2,7 @@
 
 class Fluidbook_View_Helper_FooterMenu extends CubeIT_View_Helper_Abstract {
 
-    public function footerMenu($pageIDs, $title = null, $titleLink = null) {
+    public function footerMenu($pageIDs, $title = null, $titleLink = null, $extraLinks = array()) {
 
         if (empty($pageIDs)) return false;
 
@@ -30,7 +30,7 @@ class Fluidbook_View_Helper_FooterMenu extends CubeIT_View_Helper_Abstract {
             }
         }
 
-        $res .= $this->htmlList($links);
+        $res .= $this->htmlList(array_merge($links, $extraLinks));
         
         $res .= '</div>'; // .footer-menu
 
index b391110dab03425f792e07090d1f3166482a3644..267eb42895e42613b2c09436d162d227001d1356 100644 (file)
@@ -24,7 +24,8 @@ $res .= '</div>'; // .contact-details
 \r
 // Menus\r
 $res .= $this->footerMenu($this->option('footer_menu_main'), __('Plan du site'));\r
-$res .= $this->footerMenu($this->option('footer_menu_contact'), __('Contactez-nous'), 'internal:contact');\r
+$quoteLink = $this->linkQuote(__('Demander un devis'));\r
+$res .= $this->footerMenu($this->option('footer_menu_contact'), __('Contactez-nous'), 'internal:contact', array($quoteLink));\r
 \r
 $res .= '<div class="footer-social">';\r
 foreach ($this->option('social_networks') as $social) {\r