Skip to content

Instantly share code, notes, and snippets.

@Nikki0
Nikki0 / 1.tpl
Last active July 27, 2017 13:16
View 1.tpl
© 2014 {l s='[1]Ecommerce software by %s[/1]' mod='blockcms' sprintf=['PrestaShop™']
tags=['<a class="_blank" title="prestashop" href="http://www.prestashop.com">']}
View 2.tpl
tags=['<a class="_blank" title="prestashop" href="http://www.prestashop.com">']}
View 3.tpl
tags=['<a class="_blank" title="your_title" href="http://www.your-site.com">']}
View 5.tpl
<li id="header_link_sitemap">
<a href="{$link->getPageLink('sitemap')|escape:'html'}"
title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}
</a>
</li>
@Nikki0
Nikki0 / 4.tpl
Last active July 27, 2017 13:31
View 4.tpl
<li id="header_link">
<a href="{$link->getPageLink('best-sales.php')|escape:'html':'UTF-8'}"
title="{l s='best-sales' mod='blockpermanentlinks'}"> {l s='Best sales' mod='blockpermanentlinks'}
</a>
</li>
View 6.tpl
<li>
<a href="{$link->getCMSLink('4', 'CMSpage')}"
title="{l s='about-us' mod='blockpermanentlinks'}">{l s='About Us' mod='blockpermanentlinks'}
</a>
</li>
View 1.css
<a target="_blank" href="https://www.google.com/">Google</a>
View 1.js
function bindGrid()
{
var view = $.totalStorage('display');
if (!view && (typeof displayList != 'undefined') && displayList)
view = 'list';
if (view && view != 'grid')
display(view);
else
View 2.js
function bindGrid(){
var view = $.totalStorage('display');
if (view && view != 'list')
display(view);
else {
$('.display').find('li#list').addClass('selected');
display("list");
}
$(document).on('click', '#grid', function(e){
e.preventDefault();
View 7.tpl
<ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}">