bebeboutik/modules/blocklogo/blocklogo.php
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

34 lines
643 B
PHP
Executable File

<?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');
}
}