-
Notifications
You must be signed in to change notification settings - Fork 28
/
sitemap.tpl
71 lines (70 loc) · 3.03 KB
/
sitemap.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{*
* =|= Sitemap ==================================================
*
* Store's sitemap tree. Features My Account sections, products,
* categories and CMS pages.
* ==============================================================
*}
{capture name=path}{l s='Sitemap'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{l s='Sitemap'}</h1>
<div id="sitemap_content" class="clearfix">
<div class="sitemap_block">
<h3>{l s='Our offers'}</h3>
<ul>
<li><a href="{$link->getPageLink('new-products')}">{l s='New products'}</a></li>
{if !$PS_CATALOG_MODE}
<li><a href="{$link->getPageLink('best-sales')}">{l s='Top sellers'}</a></li>
<li><a href="{$link->getPageLink('prices-drop')}">{l s='Price drop'}</a></li>
{/if}
{if $display_manufacturer_link OR $PS_DISPLAY_SUPPLIERS}<li><a href="{$link->getPageLink('manufacturer')}">{l s='Manufacturers'}</a></li>{/if}
{if $display_supplier_link OR $PS_DISPLAY_SUPPLIERS}<li><a href="{$link->getPageLink('supplier')}">{l s='Suppliers'}</a></li>{/if}
</ul>
</div>
<div class="sitemap_block">
<h3>{l s='Your Account'}</h3>
<ul>
<li><a href="{$link->getPageLink('my-account', true)}">{l s='Your Account'}</a></li>
<li><a href="{$link->getPageLink('identity', true)}">{l s='Personal information'}</a></li>
<li><a href="{$link->getPageLink('addresses', true)}">{l s='Addresses'}</a></li>
{if $voucherAllowed}<li><a href="{$link->getPageLink('discount', true)}">{l s='Discounts'}</a></li>{/if}
<li><a href="{$link->getPageLink('history', true)}">{l s='Order history'}</a></li>
</ul>
</div>
<br class="clear" />
</div>
<div id="listpage_content">
<div class="categTree">
<h3>{l s='Categories'}</h3>
<div class="tree_top"><a href="{$base_dir_ssl}">{$categoriesTree.name|escape:'htmlall':'UTF-8'}</a></div>
<ul class="tree">
{if isset($categoriesTree.children)}
{foreach $categoriesTree.children as $child}
{if $child@last}
{include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'}
{else}
{include file="$tpl_dir./category-tree-branch.tpl" node=$child}
{/if}
{/foreach}
{/if}
</ul>
</div>
<div class="categTree">
<h3>{l s='Pages'}</h3>
<div class="tree_top"><a href="{$categoriescmsTree.link}">{$categoriescmsTree.name|escape:'htmlall':'UTF-8'}</a></div>
<ul class="tree">
{if isset($categoriescmsTree.children)}
{foreach $categoriescmsTree.children as $child}
{if (isset($child.children) && $child.children|@count > 0) || $child.cms|@count > 0}
{include file="$tpl_dir./category-cms-tree-branch.tpl" node=$child}
{/if}
{/foreach}
{/if}
{foreach from=$categoriescmsTree.cms item=cms name=cmsTree}
<li><a href="{$cms.link|escape:'htmlall':'UTF-8'}" title="{$cms.meta_title|escape:'htmlall':'UTF-8'}">{$cms.meta_title|escape:'htmlall':'UTF-8'}</a></li>
{/foreach}
<li><a href="{$link->getPageLink('contact', true)}">{l s='Contact'}</a></li>
{if $display_store}<li class="last"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores'}">{l s='Our stores'}</a></li>{/if}
</ul>
</div>
</div>