Esempio n. 1
0
 public function initContent()
 {
     $this->php_self = 'widget';
     parent::initContent();
     $module = new leobootstrapmenu();
     echo $module->renderwidget();
     die;
 }
Esempio n. 2
0
 public function clearCaches()
 {
     if (file_exists(_PS_MODULE_DIR_ . 'leobootstrapmenu/leobootstrapmenu.php')) {
         require_once _PS_MODULE_DIR_ . 'leobootstrapmenu/leobootstrapmenu.php';
         $leobootstrapmenu = new leobootstrapmenu();
         $leobootstrapmenu->clearCache();
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leomenusidebar/leomenusidebar.php')) {
         require_once _PS_MODULE_DIR_ . 'leomenusidebar/leomenusidebar.php';
         $leomenusidebar = new leomenusidebar();
         $leomenusidebar->clearCache();
     }
     if (file_exists(_PS_MODULE_DIR_ . 'leomanagewidgets/leomanagewidgets.php')) {
         require_once _PS_MODULE_DIR_ . 'leomanagewidgets/leomanagewidgets.php';
         $leomanagewidgets = new LeoManagewidgets();
         $leomanagewidgets->clearHookCache();
     }
 }
Esempio n. 3
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_ . 'leobootstrapmenu/leobootstrapmenu.php';
$context = Context::getContext();
$module = new leobootstrapmenu();
$id_shop = Tools::getValue('id_shop') ? Tools::getValue('id_shop') : 0;
echo $module->renderwidget($id_shop);
die;