-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwb_namemodule.php
54 lines (42 loc) · 1.25 KB
/
wb_namemodule.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Prestashop module created by WBShop.pl
*
* @author WBShop.pl <[email protected]>
* @copyright 2022 WBShop.pl
* @license This module is not free software and you can't resell and redistribute it!
* @link https://wbshop.pl
*
*
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class Wb_Namemodule extends Module
{
public function __construct()
{
$this->name = 'wb_namemodule';
$this->author = 'WBShop.pl';
$this->version = '1.0.0';
$this->tab = 'front_office_features';
$this->need_instance = 0;
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Title of module (ex. Show category on homepage)');
$this->description = $this->l('Description - briefly describe what the module is for (ex. Template with category banners on homepage only.');
$this->ps_versions_compliancy = ['min' => '1.7.4.0', 'max' => _PS_VERSION_];
}
public function install()
{
return parent::install()
&& $this->registerHook('displayHome');
}
public function uninstall()
{
return parent::uninstall();
}
public function hookDisplayHome() {
return $this->display(__FILE__, 'displayHome.tpl');
}
}