first commit
This commit is contained in:
35
themes/ayon__/modules/ps_specials/views/index.php
Normal file
35
themes/ayon__/modules/ps_specials/views/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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,41 @@
|
||||
{** rt *}
|
||||
|
||||
<section class="featured-products roy_specials clearfix mt-3{if isset($roythemes.nc_sale_slider) && $roythemes.nc_sale_slider == "1"} slideme{/if}
|
||||
{if isset($roythemes.nc_sale_per)} pl_per{$roythemes.nc_sale_per}{/if}
|
||||
{if isset($roythemes.nc_sale_spa)} pl_spa{$roythemes.nc_sale_spa}{/if}
|
||||
{if isset($roythemes.pl_lay)} pl_lay{$roythemes.pl_lay}{/if}
|
||||
{if isset($roythemes.nc_sale_lay) && $roythemes.nc_sale_lay == "2"} mini{/if}
|
||||
{if isset($roythemes.nc_sale_width) && $roythemes.nc_sale_width == "2"} col-lg-6{/if}"
|
||||
data-auto="{$roythemes.nc_sale_auto}"
|
||||
data-max-slides="{$roythemes.nc_sale_per}">
|
||||
{if isset($roythemes.nc_hp_title) && $roythemes.nc_hp_title !== "3"}
|
||||
<h2 class="h1 products-section-title text-uppercase">
|
||||
<a href="{$allSpecialProductsLink}">
|
||||
{l s='On sale' d='Shop.Theme.Catalog'}
|
||||
</a>
|
||||
</h2>
|
||||
{if isset($roythemes.nc_hp_title) && $roythemes.nc_hp_title == "2"}
|
||||
<div class="undertitle">{l s='There are our discounts for this spring! Up to 30%!' d='Shop.Theme.Catalog'}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="products">
|
||||
{foreach from=$products item="product" name="hp"}
|
||||
{if isset($roythemes.nc_sale_lay) && $roythemes.nc_sale_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
themes/ayon__/modules/ps_specials/views/templates/index.php
Normal file
35
themes/ayon__/modules/ps_specials/views/templates/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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