{extends file="layout.tpl"} {block name="body-class"}page-view-sale{/block} {* Breadcrumb *} {block name='no-return-functions' append} {loop name="sale-details" type="sale" id={$product_sale}} {$breadcrumbs = [ ['title' => "{$SALE_LABEL}", 'url'=>{url path="/sale" sale={$ID}}] ]} {/loop} {/block} {block name="main-content"} {* Parameters *} {$limit={$smarty.get.limit|default:8}} {$product_page={$smarty.get.page|default:1}} {$product_sale={$smarty.get.sale|default:''}} {hook name="sale.top" sale={$product_sale}}
{hook name="sale.main-top" sale={$product_sale}}
{hook name="sale.content-top" sale={$product_sale}} {loop name="sale-details" type="sale" id={$product_sale}}

# {$SALE_LABEL}

{intl l="Save %amount%sign on these products" amount={$PRICE_OFFSET_VALUE} sign={$PRICE_OFFSET_SYMBOL}}

{if $HAS_END_DATE}

{intl l="This offer is valid until %date" date={format_date date=$END_DATE output="date"}}

{/if}
{if $CHAPO}
{$CHAPO}
{/if} {if $DESCRIPTION}
{$DESCRIPTION nofilter}
{/if}
{assign var="amount" value={count type="product" sale=$ID}} {include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={$amount}}
{ifloop rel="product_list"}

{loop type="product" sale={$ID} name="product_list" limit=$limit page=$product_page order=$product_order} {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="700" height="320"} {/loop}

{/ifloop} {elseloop rel="product_list"}

## {intl l="No results found"}

{/elseloop}
{ifloop rel="product_list"} {include file="includes/toolbar.html" toolbar="bottom" amount={$amount}} {/ifloop} {if $POSTSCRIPTUM} {$POSTSCRIPTUM} {/if} {/loop} {elseloop rel="sale-details"}

## {intl l="Sale was not found"}

{/elseloop} {hook name="sale.content-bottom" sale={$product_sale}}
{hook name="sale.main-bottom" sale={$product_sale}}
{hook name="sale.bottom" sale={$product_sale}} {/block} {block name="stylesheet"} {hook name="sale.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="sale.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="sale.javascript-initialization"} {/block}