Example #1
0
 public function initContent()
 {
     $this->php_self = 'widget';
     parent::initContent();
     $module = new Leomenusidebar();
     echo $module->renderwidget();
     die;
 }
Example #2
0
<?php

/**
 *  Leo Theme for Prestashop 1.6.x
 *
 * @author    http://www.leotheme.com
 * @copyright Copyright (C) October 2013 LeoThemes.com <@emai:leotheme@gmail.com>
 *               <*****@*****.**>.All rights reserved.
 * @license   GNU General Public License version 2
 */
include_once '../../config/config.inc.php';
include_once '../../init.php';
require_once _PS_MODULE_DIR_ . 'leomenusidebar/leomenusidebar.php';
$context = Context::getContext();
$module = new Leomenusidebar();
$id_shop = Tools::getValue('id_shop') ? Tools::getValue('id_shop') : 0;
echo $module->renderwidget($id_shop);
die;
Example #3
0
 public static function hookLeoModule()
 {
     if (file_exists(_PS_MODULE_DIR_ . 'leosliderlayer/leosliderlayer.php') && Module::isInstalled('leosliderlayer')) {
         require_once _PS_MODULE_DIR_ . 'leosliderlayer/leosliderlayer.php';
         $leo_module = new LeoSliderLayer();
         $leo_module->registerHook('header');
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leoslideshow/leoslideshow.php') && Module::isInstalled('leoslideshow')) {
         require_once _PS_MODULE_DIR_ . 'leoslideshow/leoslideshow.php';
         $leo_module = new LeoSlideshow();
         $leo_module->registerHook('header');
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leobootstrapmenu/leobootstrapmenu.php') && Module::isInstalled('leobootstrapmenu')) {
         require_once _PS_MODULE_DIR_ . 'leobootstrapmenu/leobootstrapmenu.php';
         $leo_module = new Leobootstrapmenu();
         $leo_module->registerHook('header');
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leomenusidebar/leomenusidebar.php') && Module::isInstalled('leomenusidebar')) {
         require_once _PS_MODULE_DIR_ . 'leomenusidebar/leomenusidebar.php';
         $leo_module = new Leomenusidebar();
         $leo_module->registerHook('header');
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leocustomajax/leocustomajax.php') && Module::isInstalled('leocustomajax')) {
         require_once _PS_MODULE_DIR_ . 'leocustomajax/leocustomajax.php';
         $leo_module = new Leocustomajax();
         $leo_module->registerHook('header');
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leoblog/leoblog.php') && Module::isInstalled('leoblog')) {
         require_once _PS_MODULE_DIR_ . 'leoblog/leoblog.php';
         $leo_module = new Leoblog();
         $leo_module->registerHook('header');
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leomanagewidgets/leomanagewidgets.php') && Module::isInstalled('leomanagewidgets')) {
         require_once _PS_MODULE_DIR_ . 'leomanagewidgets/leomanagewidgets.php';
         $leo_module = new LeoManagewidgets();
         $leo_module->registerHook('header');
     }
 }