34 lines
643 B
PHP
34 lines
643 B
PHP
|
<?php
|
||
|
if (!defined('_CAN_LOAD_FILES_'))
|
||
|
exit;
|
||
|
|
||
|
class BlockLogo extends Module
|
||
|
{
|
||
|
public function __construct() {
|
||
|
$this->name = 'blocklogo';
|
||
|
$this->tab = 'front_office_features';
|
||
|
$this->version = 0.1;
|
||
|
$this->author = 'Antadis';
|
||
|
$this->need_instance = 0;
|
||
|
|
||
|
parent::__construct();
|
||
|
|
||
|
$this->displayName = $this->l('Block logo');
|
||
|
$this->description = $this->l('Adds a block to display your logo.');
|
||
|
}
|
||
|
|
||
|
public function install() {
|
||
|
if (!parent::install())
|
||
|
return false;
|
||
|
if(!$this->registerHook('top'))
|
||
|
return false;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function hookTop($params) {
|
||
|
return $this->display(__FILE__, 'blocklogo.tpl');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|