29 lines
640 B
PHP
Raw Normal View History

2015-07-08 18:04:57 +02:00
<?php
if (!defined('_PS_VERSION_'))
exit;
class BlockLinkOverride extends BlockLink
{
public function install() {
if (!parent::install() || !$this->registerHook('displayFooterLink'))
return false;
}
public function hookdisplayFooterLink($params) {
$links = $this->getLinks();
$this->smarty->assign(array(
'blocklink_links' => $links,
'title' => Configuration::get('PS_BLOCKLINK_TITLE', $this->context->language->id),
'url' => Configuration::get('PS_BLOCKLINK_URL'),
'lang' => 'text_'.$this->context->language->id
));
if (!$links)
return false;
return $this->display(__FILE__, 'blocklink.tpl');
}
}