From: stephen@cubedesigners.com Date: Fri, 24 Jun 2016 14:08:35 +0000 (+0000) Subject: Adjust footer menu to allow special "Demander un devis" link that will trigger a... X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=aedf90fc7c530be96578809a1749d9ed4352492a;p=fluidbook-v3.git Adjust footer menu to allow special "Demander un devis" link that will trigger a popup #481 @0:30 --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 8e1a0ab..36f13e9 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -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; diff --git a/framework/application/views/helpers/FooterMenu.php b/framework/application/views/helpers/FooterMenu.php index 40823f1..2e81e0f 100644 --- a/framework/application/views/helpers/FooterMenu.php +++ b/framework/application/views/helpers/FooterMenu.php @@ -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 .= ''; // .footer-menu diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index b391110..267eb42 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -24,7 +24,8 @@ $res .= ''; // .contact-details // Menus $res .= $this->footerMenu($this->option('footer_menu_main'), __('Plan du site')); -$res .= $this->footerMenu($this->option('footer_menu_contact'), __('Contactez-nous'), 'internal:contact'); +$quoteLink = $this->linkQuote(__('Demander un devis')); +$res .= $this->footerMenu($this->option('footer_menu_contact'), __('Contactez-nous'), 'internal:contact', array($quoteLink)); $res .= '