public function hookFooter() { if (!($block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION'))) { return; } if (!$this->isCached('blockcms.tpl', $this->getCacheId(BlockCMSModel::FOOTER))) { $display_poweredby = Configuration::get('FOOTER_POWEREDBY'); $this->smarty->assign(array('block' => 0, 'contact_url' => 'contact', 'cmslinks' => BlockCMSModel::getCMSTitlesFooter(), 'display_stores_footer' => Configuration::get('PS_STORES_DISPLAY_FOOTER'), 'display_poweredby' => (int) $display_poweredby === 1 || $display_poweredby === false, 'footer_text' => Configuration::get('FOOTER_CMS_TEXT_' . (int) $this->context->language->id), 'show_price_drop' => Configuration::get('FOOTER_PRICE-DROP'), 'show_new_products' => Configuration::get('FOOTER_NEW-PRODUCTS'), 'show_best_sales' => Configuration::get('FOOTER_BEST-SALES'), 'show_contact' => Configuration::get('FOOTER_CONTACT'), 'show_sitemap' => Configuration::get('FOOTER_SITEMAP'))); } return $this->display(__FILE__, 'blockcms.tpl', $this->getCacheId(BlockCMSModel::FOOTER)); }
private function _prepareHook() { $block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION'); if (!$block_activation) { return false; } $cms_titles = BlockCMSModel::getCMSTitlesFooter(); $display_footer = Configuration::get('PS_STORES_DISPLAY_FOOTER'); $display_poweredby = Configuration::get('FOOTER_POWEREDBY'); $footer_text = Configuration::get('FOOTER_CMS_TEXT_' . (int) $this->context->language->id); $this->smarty->assign(array('block' => 0, 'contact_url' => 'contact', 'cmslinks' => $cms_titles, 'display_stores_footer' => $display_footer, 'display_poweredby' => (int) $display_poweredby === 1 || $display_poweredby === false, 'footer_text' => $footer_text)); return true; }
public function hookFooter() { if (!($block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION'))) { return; } if (!$this->isCached('blockcms.tpl', $this->getCacheId(BlockCMSModel::FOOTER))) { $cms_titles = BlockCMSModel::getCMSTitlesFooter(); $display_footer = Configuration::get('PS_STORES_DISPLAY_FOOTER'); $display_poweredby = Configuration::get('FOOTER_POWEREDBY'); $footer_text = Configuration::get('FOOTER_CMS_TEXT_' . (int) $this->context->language->id); $this->smarty->assign(array('block' => 0, 'contact_url' => 'contact', 'cmslinks' => $cms_titles, 'display_stores_footer' => $display_footer, 'display_poweredby' => (int) $display_poweredby === 1 || $display_poweredby === false, 'footer_text' => $footer_text)); } return $this->display(__FILE__, 'blockcms.tpl', $this->getCacheId(BlockCMSModel::FOOTER)); }