29 lines
640 B
PHP
29 lines
640 B
PHP
|
<?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');
|
||
|
}
|
||
|
|
||
|
}
|