// update indent code
This commit is contained in:
1 parent
e702aca520
commit
4285882949
3 files changed
+76
-73
No files matched your search
@@ -23,24 +23,23 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
{if !$content_only}
|
{if !$content_only}
|
||||||
</div> <!-- #center_column -->
|
</div> <!-- #center_column -->
|
||||||
{if isset($right_column_size) && !empty($right_column_size)}
|
{if isset($right_column_size) && !empty($right_column_size)}
|
||||||
<!-- Right -->
|
<div id="right_column" class="col-xs-12 col-sm-3 column">
|
||||||
<div id="right_column" class="col-xs-12 col-sm-3 column">
|
{$HOOK_RIGHT_COLUMN}
|
||||||
{$HOOK_RIGHT_COLUMN}
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
{/if}
|
</div> <!-- .row -->
|
||||||
</div> <!-- .row -->
|
|
||||||
</div> <!-- #columns -->
|
</div> <!-- #columns -->
|
||||||
</div> <!-- .columns-container -->
|
</div> <!-- .columns-container -->
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<div class="footer-container">
|
<div class="footer-container">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<footer id="footer" class="row">
|
<footer id="footer" class="row">
|
||||||
{$HOOK_FOOTER}
|
{$HOOK_FOOTER}
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- .footer-container -->
|
</div> <!-- .footer-container -->
|
||||||
</div> <!-- #page -->
|
</div> <!-- #page -->
|
||||||
{/if}
|
{/if}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -44,12 +44,12 @@
|
|||||||
|
|
||||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
|
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
|
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
|
||||||
<link href="{$css_dir}bootstrap_lib/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
|
<link rel="stylesheet" href="{$css_dir}bootstrap_lib/bootstrap.css" type="text/css" media="all" />
|
||||||
<link href="{$css_dir}font-awesome.css" rel="stylesheet" type="text/css" media="all" />
|
<link rel="stylesheet" href="{$css_dir}font-awesome.css" type="text/css" media="all" />
|
||||||
<link href="{$css_dir}jquery/uniform.default.css" rel="stylesheet" type="text/css" media="all" />
|
<link rel="stylesheet" href="{$css_dir}jquery/uniform.default.css" type="text/css" media="all" />
|
||||||
<link href="{$css_dir}highdpi.css" rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" />
|
<link rel="stylesheet" href="{$css_dir}highdpi.css" media="only screen and (-webkit-min-device-pixel-ratio: 2)" />
|
||||||
<link href="{$css_dir}jquery/footable.core.css" rel="stylesheet" type="text/css" media="all" />
|
<link rel="stylesheet" href="{$css_dir}jquery/footable.core.css" type="text/css" media="all" />
|
||||||
<link href="{$css_dir}jquery/jquery.bxslider.css" rel="stylesheet" type="text/css" media="all" />
|
<link rel="stylesheet" href="{$css_dir}jquery/jquery.bxslider.css" type="text/css" media="all" />
|
||||||
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,300italic,300,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css' />
|
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,300italic,300,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css' />
|
||||||
{if isset($css_files)}
|
{if isset($css_files)}
|
||||||
{foreach from=$css_files key=css_uri item=media}
|
{foreach from=$css_files key=css_uri item=media}
|
||||||
@@ -62,11 +62,10 @@
|
|||||||
var viewport = document.querySelector("meta[name=viewport]");
|
var viewport = document.querySelector("meta[name=viewport]");
|
||||||
viewport.setAttribute('content', 'initial-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width,height=device-height');
|
viewport.setAttribute('content', 'initial-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width,height=device-height');
|
||||||
}
|
}
|
||||||
if(navigator.userAgent.match(/Android/i)){
|
if(navigator.userAgent.match(/Android/i)){
|
||||||
window.scrollTo(0,1);
|
window.scrollTo(0,1);
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var baseDir = '{$content_dir|addslashes}';
|
var baseDir = '{$content_dir|addslashes}';
|
||||||
var baseUri = '{$base_uri|addslashes}';
|
var baseUri = '{$base_uri|addslashes}';
|
||||||
var static_token = '{$static_token|addslashes}';
|
var static_token = '{$static_token|addslashes}';
|
||||||
@@ -111,9 +110,9 @@
|
|||||||
|
|
||||||
<div id="header_user_info">
|
<div id="header_user_info">
|
||||||
{if $logged}
|
{if $logged}
|
||||||
<a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out'}" class="logout" rel="nofollow">{l s='Sign out'}</a>
|
<a class="logout" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" rel="nofollow" title="{l s='Log me out'}">{l s='Sign out'}</a>
|
||||||
{else}
|
{else}
|
||||||
<a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='Login to your customer account'}" class="login" rel="nofollow">{l s='Sign in'}</a>
|
<a class="login" href="{$link->getPageLink('my-account', true)|escape:'html'}" rel="nofollow" title="{l s='Login to your customer account'}">{l s='Sign in'}</a>
|
||||||
{/if}
|
{/if}
|
||||||
</div> <!-- #header_user_info -->
|
</div> <!-- #header_user_info -->
|
||||||
|
|
||||||
@@ -128,23 +127,23 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<ul id="first-languages" class="countries_ul toogle_content">
|
<ul id="first-languages" class="countries_ul toogle_content">
|
||||||
{foreach from=$languages key=k item=language name="languages"}
|
{foreach from=$languages key=k item=language name="languages"}
|
||||||
<li {if $language.iso_code == $lang_iso}class="selected"{/if}>
|
<li {if $language.iso_code == $lang_iso}class="selected"{/if}>
|
||||||
{if $language.iso_code != $lang_iso}
|
{if $language.iso_code != $lang_iso}
|
||||||
{assign var=indice_lang value=$language.id_lang}
|
{assign var=indice_lang value=$language.id_lang}
|
||||||
{if isset($lang_rewrite_urls.$indice_lang)}
|
{if isset($lang_rewrite_urls.$indice_lang)}
|
||||||
<a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}">
|
<a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}">
|
||||||
{else}
|
{else}
|
||||||
<a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}">
|
<a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}">
|
||||||
|
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
<span>{$language.name}</span>
|
||||||
<span>{$language.name}</span>
|
{if $language.iso_code != $lang_iso}
|
||||||
{if $language.iso_code != $lang_iso}
|
</a>
|
||||||
</a>
|
{/if}
|
||||||
{/if}
|
</li>
|
||||||
</li>
|
{/foreach}
|
||||||
{/foreach}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- #languages-block-top -->
|
</div> <!-- #languages-block-top -->
|
||||||
@@ -177,7 +176,7 @@
|
|||||||
<ul id="first-currencies" class="currencies_ul toogle_content">
|
<ul id="first-currencies" class="currencies_ul toogle_content">
|
||||||
{foreach from=$currencies key=k item=f_currency}
|
{foreach from=$currencies key=k item=f_currency}
|
||||||
<li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}>
|
<li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}>
|
||||||
<a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}" rel="nofollow">{$f_currency.name}</a>
|
<a href="javascript:setCurrency({$f_currency.id_currency});" rel="nofollow" title="{$f_currency.name}">{$f_currency.name}</a>
|
||||||
</li>
|
</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -51,31 +51,32 @@
|
|||||||
<div class="product-container" itemscope itemtype="http://schema.org/Product">
|
<div class="product-container" itemscope itemtype="http://schema.org/Product">
|
||||||
<div class="left-block">
|
<div class="left-block">
|
||||||
<div class="product-image-container">
|
<div class="product-image-container">
|
||||||
<a
|
<a
|
||||||
itemprop="url"
|
class="product_img_link"
|
||||||
href="{$product.link|escape:'html':'UTF-8'}" class="product_img_link"
|
href="{$product.link|escape:'html':'UTF-8'}"
|
||||||
title="{$product.name|escape:'html':'UTF-8'}">
|
title="{$product.name|escape:'html':'UTF-8'}"
|
||||||
|
itemprop="url">
|
||||||
<img
|
<img
|
||||||
itemprop="image"
|
class="replace-2x img-responsive"
|
||||||
class="replace-2x img-responsive"
|
src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}"
|
||||||
src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}"
|
alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}"
|
||||||
alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}"
|
title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}"
|
||||||
title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}"
|
{if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if}
|
||||||
{if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />
|
itemprop="image" />
|
||||||
</a>
|
</a>
|
||||||
{if isset($quick_view) && $quick_view}
|
{if isset($quick_view) && $quick_view}
|
||||||
<a
|
<a
|
||||||
href="#"
|
class="quick-view"
|
||||||
rel="{$product.link|escape:'html':'UTF-8'}"
|
href="#"
|
||||||
class="quick-view">
|
rel="{$product.link|escape:'html':'UTF-8'}">
|
||||||
<span>Quick view</span>
|
<span>Quick view</span>
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
|
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
|
||||||
<div
|
<div
|
||||||
itemprop="offers"
|
class="content_price"
|
||||||
itemscope itemtype="http://schema.org/Offer"
|
itemprop="offers"
|
||||||
class="content_price">
|
itemscope itemtype="http://schema.org/Offer">
|
||||||
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
|
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
|
||||||
<span itemprop="price" class="price product-price">
|
<span itemprop="price" class="price product-price">
|
||||||
{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
|
{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
|
||||||
@@ -108,10 +109,10 @@
|
|||||||
<h5 itemprop="name">
|
<h5 itemprop="name">
|
||||||
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
|
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
|
||||||
<a
|
<a
|
||||||
class="product-name"
|
class="product-name"
|
||||||
itemprop="url"
|
href="{$product.link|escape:'html':'UTF-8'}"
|
||||||
href="{$product.link|escape:'html':'UTF-8'}"
|
title="{$product.name|escape:'html':'UTF-8'}"
|
||||||
title="{$product.name|escape:'html':'UTF-8'}">
|
itemprop="url" >
|
||||||
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
|
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
|
||||||
</a>
|
</a>
|
||||||
</h5>
|
</h5>
|
||||||
@@ -147,24 +148,28 @@
|
|||||||
{if isset($static_token)}
|
{if isset($static_token)}
|
||||||
<a
|
<a
|
||||||
class="button ajax_add_to_cart_button btn btn-default"
|
class="button ajax_add_to_cart_button btn btn-default"
|
||||||
|
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&
|
||||||
rel="nofollow"
|
rel="nofollow"
|
||||||
|
title="{l s='Add to cart'}"
|
||||||
data-id-product="{$product.id_product|intval}"
|
data-id-product="{$product.id_product|intval}"
|
||||||
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}"
|
token={$static_token}", false)|escape:'html'}">
|
||||||
title="{l s='Add to cart'}">
|
|
||||||
<span>{l s='Add to cart'}</span>
|
<span>{l s='Add to cart'}</span>
|
||||||
</a>
|
</a>
|
||||||
{else}
|
{else}
|
||||||
<a
|
<a
|
||||||
class="button ajax_add_to_cart_button btn btn-default"
|
class="button ajax_add_to_cart_button btn btn-default"
|
||||||
rel="nofollow"
|
|
||||||
data-id-product="{$product.id_product|intval}"
|
|
||||||
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}"
|
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}"
|
||||||
title="{l s='Add to cart'}">
|
rel="nofollow"
|
||||||
|
|
||||||
|
title="{l s='Add to cart'}"
|
||||||
|
data-id-product="{$product.id_product|intval}">
|
||||||
<span>{l s='Add to cart'}</span>
|
<span>{l s='Add to cart'}</span>
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
{else}
|
{else}
|
||||||
<span class="button ajax_add_to_cart_button btn btn-default disabled"><span>{l s='Add to cart'}</span></span>
|
<span class="button ajax_add_to_cart_button btn btn-default disabled">
|
||||||
|
<span>{l s='Add to cart'}</span>
|
||||||
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<a itemprop="url" class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}">
|
<a itemprop="url" class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}">
|
||||||
@@ -214,7 +219,7 @@
|
|||||||
{hook h='displayProductListFunctionalButtons' product=$product}
|
{hook h='displayProductListFunctionalButtons' product=$product}
|
||||||
{if isset($comparator_max_item) && $comparator_max_item}
|
{if isset($comparator_max_item) && $comparator_max_item}
|
||||||
<div class="compare">
|
<div class="compare">
|
||||||
<a href="#" data-id-product="{$product.id_product}" class="addToCompare" onClick="addToCompare('{$product.id_product|intval}'); return false;">{l s='Add to Compare'}</a>
|
<a class="addToCompare" href="#" data-id-product="{$product.id_product}" onClick="addToCompare('{$product.id_product|intval}'); return false;">{l s='Add to Compare'}</a>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user