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

48 lines
884 B
PHP
Executable File

<?php
if (!defined('_CAN_LOAD_FILES_'))
exit;
class BlockText2 extends Module
{
public function __construct()
{
$this->name = 'blocktext2';
$this->tab = 'advertising_marketing';
$this->version = 0.3;
$this->author = 'Antadis';
$this->need_instance = 0;
parent::__construct();
$this->displayName = $this->l('Block text 2');
$this->description = $this->l('Adds a block to display a text.');
}
public function install()
{
if (!parent::install())
return false;
if (!$this->registerHook('leftColumn') OR !$this->registerHook('rightColumn'))
return false;
return true;
}
/**
* Returns module content
*
* @param array $params Parameters
* @return string Content
*/
function hookRightColumn($params)
{
return $this->display(__FILE__, 'blocktext.tpl');
}
function hookLeftColumn($params)
{
return $this->hookRightColumn($params);
}
}