first commit
This commit is contained in:
41
themes/classic/templates/_partials/breadcrumb.tpl
Normal file
41
themes/classic/templates/_partials/breadcrumb.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden-sm-down">
|
||||
<ol>
|
||||
{block name='breadcrumb'}
|
||||
{foreach from=$breadcrumb.links item=path name=breadcrumb}
|
||||
{block name='breadcrumb_item'}
|
||||
<li>
|
||||
{if not $smarty.foreach.breadcrumb.last}
|
||||
<a href="{$path.url}"><span>{$path.title}</span></a>
|
||||
{else}
|
||||
<span>{$path.title}</span>
|
||||
{/if}
|
||||
</li>
|
||||
{/block}
|
||||
{/foreach}
|
||||
{/block}
|
||||
</ol>
|
||||
</nav>
|
||||
59
themes/classic/templates/_partials/footer.tpl
Normal file
59
themes/classic/templates/_partials/footer.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{block name='hook_footer_before'}
|
||||
{hook h='displayFooterBefore'}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-container">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{block name='hook_footer'}
|
||||
{hook h='displayFooter'}
|
||||
{/block}
|
||||
</div>
|
||||
<div class="row">
|
||||
{block name='hook_footer_after'}
|
||||
{hook h='displayFooterAfter'}
|
||||
{/block}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<p class="text-sm-center">
|
||||
{block name='copyright_link'}
|
||||
<a href="https://www.prestashop.com" target="_blank" rel="noopener noreferrer nofollow">
|
||||
{l s='%copyright% %year% - Software by %prestashop%' sprintf=['%prestashop%' => 'PrestaShop™', '%year%' => 'Y'|date, '%copyright%' => '©'] d='Shop.Theme.Global'}
|
||||
</a> |
|
||||
<a href="https://www.kalsport.pl" target="_blank" rel="noopener noreferrer nofollow">
|
||||
{l s= 'Design by %kalsport &dot pl%' sprintf=['%kalsport &dot pl%' => 'kalsport.pl'] d='Shop.Theme.Global'}
|
||||
</a>
|
||||
{/block}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
35
themes/classic/templates/_partials/form-errors.tpl
Normal file
35
themes/classic/templates/_partials/form-errors.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{if $errors|count}
|
||||
<div class="help-block">
|
||||
{block name='form_errors'}
|
||||
<ul>
|
||||
{foreach $errors as $error}
|
||||
<li class="alert alert-danger">{$error|nl2br nofilter}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/block}
|
||||
</div>
|
||||
{/if}
|
||||
202
themes/classic/templates/_partials/form-fields.tpl
Normal file
202
themes/classic/templates/_partials/form-fields.tpl
Normal file
@@ -0,0 +1,202 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{if $field.type == 'hidden'}
|
||||
|
||||
{block name='form_field_item_hidden'}
|
||||
<input type="hidden" name="{$field.name}" value="{$field.value}">
|
||||
{/block}
|
||||
|
||||
{else}
|
||||
|
||||
<div class="form-group row {if !empty($field.errors)}has-error{/if}">
|
||||
<label class="col-md-3 form-control-label{if $field.required} required{/if}" for="field-{$field.name}">
|
||||
{if $field.type !== 'checkbox'}
|
||||
{$field.label}
|
||||
{/if}
|
||||
</label>
|
||||
<div class="col-md-6{if ($field.type === 'radio-buttons')} form-control-valign{/if}">
|
||||
|
||||
{if $field.type === 'select'}
|
||||
|
||||
{block name='form_field_item_select'}
|
||||
<select id="field-{$field.name}" class="form-control form-control-select" name="{$field.name}" {if $field.required}required{/if}>
|
||||
<option value disabled selected>{l s='Please choose' d='Shop.Forms.Labels'}</option>
|
||||
{foreach from=$field.availableValues item="label" key="value"}
|
||||
<option value="{$value}" {if $value eq $field.value} selected {/if}>{$label}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{/block}
|
||||
|
||||
{elseif $field.type === 'countrySelect'}
|
||||
|
||||
{block name='form_field_item_country'}
|
||||
<select
|
||||
id="field-{$field.name}"
|
||||
class="form-control form-control-select js-country"
|
||||
name="{$field.name}"
|
||||
{if $field.required}required{/if}
|
||||
>
|
||||
<option value disabled selected>{l s='Please choose' d='Shop.Forms.Labels'}</option>
|
||||
{foreach from=$field.availableValues item="label" key="value"}
|
||||
<option value="{$value}" {if $value eq $field.value} selected {/if}>{$label}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{/block}
|
||||
|
||||
{elseif $field.type === 'radio-buttons'}
|
||||
|
||||
{block name='form_field_item_radio'}
|
||||
{foreach from=$field.availableValues item="label" key="value"}
|
||||
<label class="radio-inline" for="field-{$field.name}-{$value}">
|
||||
<span class="custom-radio">
|
||||
<input
|
||||
name="{$field.name}"
|
||||
id="field-{$field.name}-{$value}"
|
||||
type="radio"
|
||||
value="{$value}"
|
||||
{if $field.required}required{/if}
|
||||
{if $value eq $field.value} checked {/if}
|
||||
>
|
||||
<span></span>
|
||||
</span>
|
||||
{$label}
|
||||
</label>
|
||||
{/foreach}
|
||||
{/block}
|
||||
|
||||
{elseif $field.type === 'checkbox'}
|
||||
|
||||
{block name='form_field_item_checkbox'}
|
||||
<span class="custom-checkbox">
|
||||
<label>
|
||||
<input name="{$field.name}" type="checkbox" value="1" {if $field.value}checked="checked"{/if} {if $field.required}required{/if}>
|
||||
<span><i class="material-icons rtl-no-flip checkbox-checked"></i></span>
|
||||
{$field.label nofilter}
|
||||
</label>
|
||||
</span>
|
||||
{/block}
|
||||
|
||||
{elseif $field.type === 'date'}
|
||||
|
||||
{block name='form_field_item_date'}
|
||||
<input id="field-{$field.name}" name="{$field.name}" class="form-control" type="date" value="{$field.value}"{if isset($field.availableValues.placeholder)} placeholder="{$field.availableValues.placeholder}"{/if}>
|
||||
{if isset($field.availableValues.comment)}
|
||||
<span class="form-control-comment">
|
||||
{$field.availableValues.comment}
|
||||
</span>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{elseif $field.type === 'birthday'}
|
||||
|
||||
{block name='form_field_item_birthday'}
|
||||
<div class="js-parent-focus">
|
||||
{html_select_date
|
||||
field_order=DMY
|
||||
time={$field.value}
|
||||
field_array={$field.name}
|
||||
prefix=false
|
||||
reverse_years=true
|
||||
field_separator='<br>'
|
||||
day_extra='class="form-control form-control-select"'
|
||||
month_extra='class="form-control form-control-select"'
|
||||
year_extra='class="form-control form-control-select"'
|
||||
day_empty={l s='-- day --' d='Shop.Forms.Labels'}
|
||||
month_empty={l s='-- month --' d='Shop.Forms.Labels'}
|
||||
year_empty={l s='-- year --' d='Shop.Forms.Labels'}
|
||||
start_year={'Y'|date}-100 end_year={'Y'|date}
|
||||
}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{elseif $field.type === 'password'}
|
||||
|
||||
{block name='form_field_item_password'}
|
||||
<div class="input-group js-parent-focus">
|
||||
<input
|
||||
id="field-{$field.name}"
|
||||
class="form-control js-child-focus js-visible-password"
|
||||
name="{$field.name}"
|
||||
title="{l s='At least 5 characters long' d='Shop.Forms.Help'}"
|
||||
aria-label="{l s='Password input of at least 5 characters' d='Shop.Forms.Help'}"
|
||||
type="password"
|
||||
{if $field.autocomplete}autocomplete="{$field.autocomplete}"{/if}
|
||||
value=""
|
||||
pattern=".{literal}{{/literal}5,{literal}}{/literal}"
|
||||
{if $field.required}required{/if}
|
||||
>
|
||||
<span class="input-group-btn">
|
||||
<button
|
||||
class="btn"
|
||||
type="button"
|
||||
data-action="show-password"
|
||||
data-text-show="{l s='Show' d='Shop.Theme.Actions'}"
|
||||
data-text-hide="{l s='Hide' d='Shop.Theme.Actions'}"
|
||||
>
|
||||
{l s='Show' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{else}
|
||||
|
||||
{block name='form_field_item_other'}
|
||||
<input
|
||||
id="field-{$field.name}"
|
||||
class="form-control"
|
||||
name="{$field.name}"
|
||||
type="{$field.type}"
|
||||
value="{$field.value}"
|
||||
{if $field.autocomplete}autocomplete="{$field.autocomplete}"{/if}
|
||||
{if isset($field.availableValues.placeholder)}placeholder="{$field.availableValues.placeholder}"{/if}
|
||||
{if $field.maxLength}maxlength="{$field.maxLength}"{/if}
|
||||
{if $field.required}required{/if}
|
||||
>
|
||||
{if isset($field.availableValues.comment)}
|
||||
<span class="form-control-comment">
|
||||
{$field.availableValues.comment}
|
||||
</span>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{/if}
|
||||
|
||||
{block name='form_field_errors'}
|
||||
{include file='_partials/form-errors.tpl' errors=$field.errors}
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-control-comment">
|
||||
{block name='form_field_comment'}
|
||||
{if (!$field.required && !in_array($field.type, ['radio-buttons', 'checkbox']))}
|
||||
{l s='Optional' d='Shop.Forms.Labels'}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
91
themes/classic/templates/_partials/head.tpl
Normal file
91
themes/classic/templates/_partials/head.tpl
Normal file
@@ -0,0 +1,91 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='head_charset'}
|
||||
<meta charset="utf-8">
|
||||
{/block}
|
||||
{block name='head_ie_compatibility'}
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
{/block}
|
||||
|
||||
{block name='head_seo'}
|
||||
<title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
|
||||
{block name='hook_after_title_tag'}
|
||||
{hook h='displayAfterTitleTag'}
|
||||
{/block}
|
||||
<meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
|
||||
<meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">
|
||||
{if $page.meta.robots !== 'index'}
|
||||
<meta name="robots" content="{$page.meta.robots}">
|
||||
{/if}
|
||||
{if $page.canonical}
|
||||
<link rel="canonical" href="{$page.canonical}">
|
||||
{/if}
|
||||
{block name='head_hreflang'}
|
||||
{foreach from=$urls.alternative_langs item=pageUrl key=code}
|
||||
<link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
|
||||
{/foreach}
|
||||
{/block}
|
||||
|
||||
{block name='head_microdata'}
|
||||
{include file="_partials/microdata/head-jsonld.tpl"}
|
||||
{/block}
|
||||
|
||||
{block name='head_microdata_special'}{/block}
|
||||
|
||||
{block name='head_pagination_seo'}
|
||||
{include file="_partials/pagination-seo.tpl"}
|
||||
{/block}
|
||||
|
||||
{block name='head_open_graph'}
|
||||
<meta property="og:title" content="{$page.meta.title}" />
|
||||
<meta property="og:description" content="{$page.meta.description}" />
|
||||
<meta property="og:url" content="{$urls.current_url}" />
|
||||
<meta property="og:site_name" content="{$shop.name}" />
|
||||
{if !isset($product) && $page.page_name != 'product'}<meta property="og:type" content="website" />{/if}
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
{block name='head_viewport'}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{/block}
|
||||
|
||||
{block name='head_icons'}
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$shop.favicon}?{$shop.favicon_update_time}">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$shop.favicon}?{$shop.favicon_update_time}">
|
||||
{/block}
|
||||
|
||||
{block name='stylesheets'}
|
||||
{include file="_partials/stylesheets.tpl" stylesheets=$stylesheets}
|
||||
{/block}
|
||||
|
||||
{block name='javascript_head'}
|
||||
{include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}
|
||||
{/block}
|
||||
|
||||
{block name='hook_header'}
|
||||
{$HOOK_HEADER nofilter}
|
||||
{/block}
|
||||
|
||||
{block name='hook_extra'}{/block}
|
||||
87
themes/classic/templates/_partials/header.tpl
Normal file
87
themes/classic/templates/_partials/header.tpl
Normal file
@@ -0,0 +1,87 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='header_banner'}
|
||||
<div class="header-banner">
|
||||
{hook h='displayBanner'}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name='header_nav'}
|
||||
<nav class="header-nav">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="hidden-sm-down">
|
||||
<div class="col-md-5 col-xs-12">
|
||||
{hook h='displayNav1'}
|
||||
</div>
|
||||
<div class="col-md-7 right-nav">
|
||||
{hook h='displayNav2'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="hidden-md-up text-sm-center mobile">
|
||||
<div class="float-xs-left" id="menu-icon">
|
||||
<i class="material-icons d-inline"></i>
|
||||
</div>
|
||||
<div class="float-xs-right" id="_mobile_cart"></div>
|
||||
<div class="float-xs-right" id="_mobile_user_info"></div>
|
||||
<div class="top-logo" id="_mobile_logo"></div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{/block}
|
||||
|
||||
{block name='header_top'}
|
||||
<div class="header-top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-4 hidden-sm-down" id="_desktop_logo">
|
||||
{if $shop.logo_details}
|
||||
{if $page.page_name == 'index'}
|
||||
<h1>
|
||||
{renderLogo}
|
||||
</h1>
|
||||
{else}
|
||||
{renderLogo}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="header-top-right col-md-10 col-sm-12 position-static">
|
||||
{hook h='displayTop'}
|
||||
</div>
|
||||
</div>
|
||||
<div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
|
||||
<div class="js-top-menu mobile" id="_mobile_top_menu"></div>
|
||||
<div class="js-top-menu-bottom">
|
||||
<div id="_mobile_currency_selector"></div>
|
||||
<div id="_mobile_language_selector"></div>
|
||||
<div id="_mobile_contact_link"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayNavFullWidth'}
|
||||
{/block}
|
||||
35
themes/classic/templates/_partials/helpers.tpl
Normal file
35
themes/classic/templates/_partials/helpers.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{function renderLogo}
|
||||
<a href="{$urls.pages.index}">
|
||||
<img
|
||||
class="logo img-fluid"
|
||||
src="{$shop.logo_details.src}"
|
||||
alt="{$shop.name}"
|
||||
width="{$shop.logo_details.width}"
|
||||
height="{$shop.logo_details.height}">
|
||||
</a>
|
||||
{/function}
|
||||
41
themes/classic/templates/_partials/javascript.tpl
Normal file
41
themes/classic/templates/_partials/javascript.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{foreach $javascript.external as $js}
|
||||
<script type="text/javascript" src="{$js.uri}" {$js.attribute}></script>
|
||||
{/foreach}
|
||||
|
||||
{foreach $javascript.inline as $js}
|
||||
<script type="text/javascript">
|
||||
{$js.content nofilter}
|
||||
</script>
|
||||
{/foreach}
|
||||
|
||||
{if isset($vars) && $vars|@count}
|
||||
<script type="text/javascript">
|
||||
{foreach from=$vars key=var_name item=var_value}
|
||||
var {$var_name} = {$var_value|json_encode nofilter};
|
||||
{/foreach}
|
||||
</script>
|
||||
{/if}
|
||||
92
themes/classic/templates/_partials/microdata/head-jsonld.tpl
Normal file
92
themes/classic/templates/_partials/microdata/head-jsonld.tpl
Normal file
@@ -0,0 +1,92 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
"name" : "{$shop.name}",
|
||||
"url" : "{$urls.pages.index}",
|
||||
{if $shop.logo_details}
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url":"{$shop.logo_details.src}"
|
||||
}
|
||||
{/if}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebPage",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"url": "{$urls.pages.index}",
|
||||
"name": "{$shop.name}"
|
||||
},
|
||||
"name": "{$page.meta.title}",
|
||||
"url": "{$urls.current_url}"
|
||||
}
|
||||
</script>
|
||||
|
||||
{if $page.page_name == 'index'}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"url" : "{$urls.pages.index}",
|
||||
{if $shop.logo_details}
|
||||
"image": {
|
||||
"@type": "ImageObject",
|
||||
"url":"{$shop.logo_details.src}"
|
||||
},
|
||||
{/if}
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": "{'--search_term_string--'|str_replace:'{search_term_string}':$link->getPageLink('search',true,null,['search_query'=>'--search_term_string--'])}",
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{if isset($breadcrumb.links[1])}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{foreach from=$breadcrumb.links item=path name=breadcrumb}
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": {$smarty.foreach.breadcrumb.iteration},
|
||||
"name": "{$path.title}",
|
||||
"item": "{$path.url}"
|
||||
}{if !$smarty.foreach.breadcrumb.last},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
106
themes/classic/templates/_partials/microdata/product-jsonld.tpl
Normal file
106
themes/classic/templates/_partials/microdata/product-jsonld.tpl
Normal file
@@ -0,0 +1,106 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{assign var=hasAggregateRating value=false}
|
||||
{if !empty($product.productComments.averageRating) && !empty($product.productComments.nbComments)}
|
||||
{assign var=hasAggregateRating value=true}
|
||||
{assign var=ratingValue value=$product.productComments.averageRating}
|
||||
{assign var=ratingReviewCount value=$product.productComments.nbComments}
|
||||
{/if}
|
||||
{if !empty($ratings.avg) && !empty($nbComments)}
|
||||
{assign var=hasAggregateRating value=true}
|
||||
{assign var=ratingValue value=$ratings.avg}
|
||||
{assign var=ratingReviewCount value=$nbComments}
|
||||
{/if}
|
||||
{assign var=hasWeight value=false}
|
||||
{if isset($product.weight) && ($product.weight != 0)}
|
||||
{assign var=hasWeight value=true}
|
||||
{/if}
|
||||
{assign var=hasOffers value=$product.show_price}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org/",
|
||||
"@type": "Product",
|
||||
"name": "{$product.name}",
|
||||
"description": "{$page.meta.description|regex_replace:"/[\r\n]/" : " "}",
|
||||
"category": "{$product.category_name}",
|
||||
{if !empty($product.cover)}"image" :"{$product.cover.bySize.home_default.url}",{/if}
|
||||
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
|
||||
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}"
|
||||
{if $product.ean13},"gtin13": "{$product.ean13}"
|
||||
{else if $product.upc},"gtin13": "{$product.upc}"
|
||||
{/if}
|
||||
{if $product_manufacturer->name OR $shop.name},
|
||||
"brand": {
|
||||
"@type": "Thing",
|
||||
"name": "{if $product_manufacturer->name}{$product_manufacturer->name|escape:'html':'UTF-8'}{else}{$shop.name}{/if}"
|
||||
}
|
||||
{/if}
|
||||
{if $hasAggregateRating},
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "{$ratingValue|round:1|escape:'html':'UTF-8'}",
|
||||
"reviewCount": "{$ratingReviewCount|escape:'html':'UTF-8'}"
|
||||
}
|
||||
{/if}
|
||||
{if $hasWeight},
|
||||
"weight": {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "QuantitativeValue",
|
||||
"value": "{$product.weight}",
|
||||
"unitCode": "{$product.weight_unit}"
|
||||
}
|
||||
{/if}
|
||||
{if $hasOffers},
|
||||
"offers": {
|
||||
"@type": "Offer",
|
||||
"priceCurrency": "{$currency.iso_code}",
|
||||
"name": "{$product.name|strip_tags:false}",
|
||||
"price": "{$product.price_amount}",
|
||||
"url": "{$product.url}",
|
||||
"priceValidUntil": "{($smarty.now + (int) (60*60*24*15))|date_format:"%Y-%m-%d"}",
|
||||
{if $product.images|count > 0}
|
||||
"image": {strip}[
|
||||
{foreach from=$product.images item=p_img name="p_img_list"}
|
||||
"{$p_img.large.url}"{if not $smarty.foreach.p_img_list.last},{/if}
|
||||
{/foreach}
|
||||
]{/strip},
|
||||
{/if}
|
||||
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
|
||||
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}",
|
||||
{if $product.ean13}"gtin13": "{$product.ean13}",{else if $product.upc}"gtin13": "0{$product.upc}",{/if}
|
||||
{if $product.condition == 'new'}"itemCondition": "https://schema.org/NewCondition",{/if}
|
||||
{if $product.show_condition > 0}
|
||||
{if $product.condition == 'used'}"itemCondition": "https://schema.org/UsedCondition",{/if}
|
||||
{if $product.condition == 'refurbished'}"itemCondition": "https://schema.org/RefurbishedCondition",{/if}
|
||||
{/if}
|
||||
"availability": "{$product.seo_availability}",
|
||||
"seller": {
|
||||
"@type": "Organization",
|
||||
"name": "{$shop.name}"
|
||||
}
|
||||
}
|
||||
{/if}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,40 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "ItemList",
|
||||
"itemListElement": [
|
||||
{foreach from=$listing.products item=item name=productsForJsonLd}
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": {$smarty.foreach.productsForJsonLd.iteration},
|
||||
"name": "{$item.name}",
|
||||
"url": "{$item.url}"
|
||||
}{if !$smarty.foreach.productsForJsonLd.last},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
78
themes/classic/templates/_partials/notifications.tpl
Normal file
78
themes/classic/templates/_partials/notifications.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{if isset($notifications)}
|
||||
<aside id="notifications">
|
||||
<div class="container">
|
||||
{if $notifications.error}
|
||||
{block name='notifications_error'}
|
||||
<article class="alert alert-danger" role="alert" data-alert="danger">
|
||||
<ul>
|
||||
{foreach $notifications.error as $notif}
|
||||
<li>{$notif nofilter}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</article>
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if $notifications.warning}
|
||||
{block name='notifications_warning'}
|
||||
<article class="alert alert-warning" role="alert" data-alert="warning">
|
||||
<ul>
|
||||
{foreach $notifications.warning as $notif}
|
||||
<li>{$notif nofilter}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</article>
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if $notifications.success}
|
||||
{block name='notifications_success'}
|
||||
<article class="alert alert-success" role="alert" data-alert="success">
|
||||
<ul>
|
||||
{foreach $notifications.success as $notif}
|
||||
<li>{$notif nofilter}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</article>
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if $notifications.info}
|
||||
{block name='notifications_info'}
|
||||
<article class="alert alert-info" role="alert" data-alert="info">
|
||||
<ul>
|
||||
{foreach $notifications.info as $notif}
|
||||
<li>{$notif nofilter}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</article>
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
</aside>
|
||||
{/if}
|
||||
47
themes/classic/templates/_partials/pagination-seo.tpl
Normal file
47
themes/classic/templates/_partials/pagination-seo.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{if isset($listing.pagination) && $listing.pagination.should_be_displayed}
|
||||
{$page_nb = 1}
|
||||
{if isset($smarty.get.page)}
|
||||
{$page_nb = $smarty.get.page|intval|default:1}
|
||||
{/if}
|
||||
{$queryPage = '?page='|cat:$page_nb}
|
||||
{$page.canonical = $page.canonical|replace:$queryPage:''}
|
||||
|
||||
{$prev = false}
|
||||
{$next = false}
|
||||
{if ($page_nb - 1) == 1}
|
||||
{$prev = $page.canonical}
|
||||
{elseif $page_nb > 2}
|
||||
{$prev = ($page['canonical']|cat:'?page='|cat:($page_nb - 1))}
|
||||
{/if}
|
||||
{if $listing.pagination.total_items > $listing.pagination.items_shown_to}
|
||||
{$next = ($page['canonical']|cat:'?page='|cat:($page_nb + 1))}
|
||||
{/if}
|
||||
|
||||
{if $prev}<link rel="prev" href="{$prev}">{/if}
|
||||
{if $next}<link rel="next" href="{$next}">{/if}
|
||||
{/if}
|
||||
64
themes/classic/templates/_partials/pagination.tpl
Normal file
64
themes/classic/templates/_partials/pagination.tpl
Normal file
@@ -0,0 +1,64 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<nav class="pagination">
|
||||
<div class="col-md-4">
|
||||
{block name='pagination_summary'}
|
||||
{l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=['%from%' => $pagination.items_shown_from ,'%to%' => $pagination.items_shown_to, '%total%' => $pagination.total_items]}
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 offset-md-2 pr-0">
|
||||
{block name='pagination_page_list'}
|
||||
{if $pagination.should_be_displayed}
|
||||
<ul class="page-list clearfix text-sm-center">
|
||||
{foreach from=$pagination.pages item="page"}
|
||||
|
||||
|
||||
<li {if $page.current} class="current" {/if}>
|
||||
{if $page.type === 'spacer'}
|
||||
<span class="spacer">…</span>
|
||||
{else}
|
||||
<a
|
||||
rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}"
|
||||
href="{$page.url}"
|
||||
class="{if $page.type === 'previous'}previous {elseif $page.type === 'next'}next {/if}{['disabled' => !$page.clickable, 'js-search-link' => true]|classnames}"
|
||||
>
|
||||
{if $page.type === 'previous'}
|
||||
<i class="material-icons"></i>{l s='Previous' d='Shop.Theme.Actions'}
|
||||
{elseif $page.type === 'next'}
|
||||
{l s='Next' d='Shop.Theme.Actions'}<i class="material-icons"></i>
|
||||
{else}
|
||||
{$page.page}
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
33
themes/classic/templates/_partials/stylesheets.tpl
Normal file
33
themes/classic/templates/_partials/stylesheets.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* 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.md.
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{foreach $stylesheets.external as $stylesheet}
|
||||
<link rel="stylesheet" href="{$stylesheet.uri}" type="text/css" media="{$stylesheet.media}">
|
||||
{/foreach}
|
||||
|
||||
{foreach $stylesheets.inline as $stylesheet}
|
||||
<style>
|
||||
{$stylesheet.content}
|
||||
</style>
|
||||
{/foreach}
|
||||
Reference in New Issue
Block a user