// Install
@@ -46,7 +46,7 @@ class BlockBanner extends Module
|
||||
|
||||
public function install()
|
||||
{
|
||||
Configuration::updateValue('BLOCKBANNER_IMG', 'store.jpg');
|
||||
Configuration::updateValue('BLOCKBANNER_IMG', 'sale70.gif');
|
||||
Configuration::updateValue('BLOCKBANNER_LINK', '');
|
||||
Configuration::updateValue('BLOCKBANNER_DESC', '');
|
||||
return parent::install() && $this->registerHook('displayTop') && $this->registerHook('header');
|
||||
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
@@ -63,8 +63,8 @@ class HomeSlider extends Module
|
||||
if (parent::install() && $this->registerHook('displayHome') && $this->registerHook('actionShopDataDuplication'))
|
||||
{
|
||||
/* Sets up configuration */
|
||||
$res = Configuration::updateValue('HOMESLIDER_WIDTH', '535');
|
||||
$res &= Configuration::updateValue('HOMESLIDER_HEIGHT', '300');
|
||||
$res = Configuration::updateValue('HOMESLIDER_WIDTH', '779');
|
||||
$res &= Configuration::updateValue('HOMESLIDER_HEIGHT', '448');
|
||||
$res &= Configuration::updateValue('HOMESLIDER_SPEED', '500');
|
||||
$res &= Configuration::updateValue('HOMESLIDER_PAUSE', '3000');
|
||||
$res &= Configuration::updateValue('HOMESLIDER_LOOP', '1');
|
||||
@@ -86,7 +86,7 @@ class HomeSlider extends Module
|
||||
private function installSamples()
|
||||
{
|
||||
$languages = Language::getLanguages(false);
|
||||
for ($i = 1; $i <= 5; ++$i)
|
||||
for ($i = 1; $i <= 3; ++$i)
|
||||
{
|
||||
$slide = new HomeSlide();
|
||||
$slide->position = $i;
|
||||
|
||||
|
Before Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 109 KiB |