first commit
This commit is contained in:
35
modules/roy_customcategory1/views/index.php
Normal file
35
modules/roy_customcategory1/views/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
35
modules/roy_customcategory1/views/templates/hook/index.php
Normal file
35
modules/roy_customcategory1/views/templates/hook/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,39 @@
|
||||
{** rt *}
|
||||
|
||||
<section class="featured-products roy_cc1 clearfix mt-3{if isset($roythemes.nc_cc1_slider) && $roythemes.nc_cc1_slider == "1"} slideme{/if}
|
||||
{if isset($roythemes.nc_cc1_per)} pl_per{$roythemes.nc_cc1_per}{/if}
|
||||
{if isset($roythemes.nc_cc1_spa)} pl_spa{$roythemes.nc_cc1_spa}{/if}
|
||||
{if isset($roythemes.pl_lay)} pl_lay{$roythemes.pl_lay}{/if}
|
||||
{if isset($roythemes.nc_cc1_lay) && $roythemes.nc_cc1_lay == "2"} mini{/if}
|
||||
{if isset($roythemes.nc_cc1_width) && $roythemes.nc_cc1_width == "2"} col-lg-6{/if}"
|
||||
data-auto="{$roythemes.nc_cc1_auto}"
|
||||
data-max-slides="{$roythemes.nc_cc1_per}">
|
||||
<h2 class="h1 products-section-title text-uppercase">
|
||||
<a href="{$allProductsLink}">
|
||||
{l s='Our products' mod='roy_customcategory1'}
|
||||
</a>
|
||||
</h2>
|
||||
{if isset($roythemes.nc_hp_title) && $roythemes.nc_hp_title == "2"}
|
||||
<div class="undertitle">{l s='Check the people choice' mod='roy_customcategory1'}</div>
|
||||
{/if}
|
||||
<div class="products">
|
||||
{foreach from=$products item="product" name="hp"}
|
||||
{if isset($roythemes.nc_cc1_lay) && $roythemes.nc_cc1_lay == "1"}
|
||||
{include file="catalog/_partials/miniatures/product.tpl" product=$product}
|
||||
{else}
|
||||
|
||||
{if $smarty.foreach.hp.iteration == 1}<div class="products-box">{/if}
|
||||
{include file="catalog/_partials/miniatures/product-mini.tpl" product=$product}
|
||||
|
||||
{if $smarty.foreach.hp.last}
|
||||
</div>
|
||||
{else}
|
||||
{if $smarty.foreach.hp.iteration%3 == 0}
|
||||
</div><div class="products-box">
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</section>
|
||||
35
modules/roy_customcategory1/views/templates/index.php
Normal file
35
modules/roy_customcategory1/views/templates/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user