41 lines
797 B
PHP
41 lines
797 B
PHP
|
<?php
|
||
|
if (!defined('_PS_VERSION_'))
|
||
|
exit;
|
||
|
|
||
|
class Ant_Promobanner extends Module
|
||
|
{
|
||
|
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->name = 'ant_promobanner';
|
||
|
$this->tab = 'administration';
|
||
|
$this->author = 'Antadis';
|
||
|
$this->version = '1.0';
|
||
|
$this->need_instance = 0;
|
||
|
|
||
|
parent::__construct();
|
||
|
|
||
|
$this->displayName = $this->l('Bannière promotionnelle');
|
||
|
$this->description = $this->l('Permet d\'ajouter une bannière promotionnelle sur la home');
|
||
|
}
|
||
|
|
||
|
public function install()
|
||
|
{
|
||
|
|
||
|
if(!(parent::install())) {
|
||
|
return false;
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function uninstall() {
|
||
|
|
||
|
if(parent::uninstall() == false) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|