first commit
This commit is contained in:
36
modules/roy_brands/views/index.php
Normal file
36
modules/roy_brands/views/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2016 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-2016 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
||||
12
modules/roy_brands/views/templates/_partials/brand_logo.tpl
Normal file
12
modules/roy_brands/views/templates/_partials/brand_logo.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<ul class="roy_brands_ul brands_logo slideme">
|
||||
{foreach from=$brands item=brand name=brand_list}
|
||||
{if $smarty.foreach.brand_list.iteration <= $text_list_nb}
|
||||
<li>
|
||||
<a href="{$brand['link']}" title="" class="tip_inside">
|
||||
<img src = "{$link->getManufacturerImageLink($brand.id_manufacturer, 'brand_default')}" alt = "{$brand.name|escape:html:'UTF-8'}">
|
||||
<span class="tip">{$brand['name']}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,28 @@
|
||||
<ul class="roy_brands_ul brands_logo slideme">
|
||||
{foreach from=$brands item=brand name=brand_list}
|
||||
{if $smarty.foreach.brand_list.iteration <= $text_list_nb}
|
||||
|
||||
{if $smarty.foreach.brand_list.iteration == 1}<div class="brand_row">{/if}
|
||||
<li>
|
||||
<a href="{$brand['link']}" title="" class="tip_inside">
|
||||
<img src = "{$link->getManufacturerImageLink($brand.id_manufacturer, 'brand_default')}" alt = "{$brand.name|escape:html:'UTF-8'}">
|
||||
<span class="tip">{$brand['name']}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{if $smarty.foreach.brand_list.last}
|
||||
</div>
|
||||
{else}
|
||||
{if $smarty.foreach.brand_list.iteration%$roythemes.brand_per_row == 0}
|
||||
</div><div class="brand_row">
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{if !$smarty.foreach.brand_list.last && $brands}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</ul>
|
||||
11
modules/roy_brands/views/templates/_partials/brand_text.tpl
Normal file
11
modules/roy_brands/views/templates/_partials/brand_text.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
<ul class="roy_brands_ul brands_text slideme">
|
||||
{foreach from=$brands item=brand name=brand_list}
|
||||
{if $smarty.foreach.brand_list.iteration <= $text_list_nb}
|
||||
<li>
|
||||
<a href="{$brand['link']}" title="">
|
||||
{$brand['name']}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
36
modules/roy_brands/views/templates/_partials/index.php
Normal file
36
modules/roy_brands/views/templates/_partials/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2016 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-2016 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
||||
36
modules/roy_brands/views/templates/hook/index.php
Normal file
36
modules/roy_brands/views/templates/hook/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2016 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-2016 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
||||
43
modules/roy_brands/views/templates/hook/roy_brands.tpl
Normal file
43
modules/roy_brands/views/templates/hook/roy_brands.tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
{*
|
||||
* 2007-2016 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-2018 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div id="roy_brands" data-in-row="{if isset($roythemes.brand_per_row)}{$roythemes.brand_per_row}{else}6{/if}">
|
||||
<h1 class="h1 products-section-title text-uppercase">
|
||||
{if $display_link_brand}<a href="{$page_link}" title="{l s='Brands' mod='roy_brands'}">{/if}
|
||||
{l s='Brands' mod='roy_brands'}
|
||||
<i></i>
|
||||
{if $display_link_brand}</a>{/if}
|
||||
</h1>
|
||||
|
||||
<div class="row">
|
||||
{if isset($roythemes.brand_w) && $roythemes.brand_w == "1"}<div class="container">{/if}
|
||||
{if $brands}
|
||||
{include file="module:roy_brands/views/templates/_partials/$roy_brand_display_type.tpl" brands=$brands}
|
||||
{else}
|
||||
<p>{l s='No brand' mod='roy_brands'}</p>
|
||||
{/if}
|
||||
{if isset($roythemes.brand_w) && $roythemes.brand_w == "1"}</div>{/if}
|
||||
</div>
|
||||
</div>
|
||||
36
modules/roy_brands/views/templates/index.php
Normal file
36
modules/roy_brands/views/templates/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2016 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-2016 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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