Marion Muszynski aec9fcfe34 sitemap
2015-10-14 14:39:48 +02:00

227 lines
11 KiB
Smarty

{capture name=path}{l s='Sitemap'}{/capture}
<main>
<section>
<header class="page-heading">
{if !$content_only}
<div id="breadcrumbs">
<div class="container">
{include file="$tpl_dir./breadcrumb.tpl"}
</div>
</div>
{/if}
<div class="container">
<h1>{l s='Sitemap'}</h1>
</div>
</header>
<div id="sitemap_content" class="container main">
<div class="row">
<div class="col-md-offset-1 col-md-5 col-sm-offset-0 col-sm-6">
<div class="categTree box">
<h2 class="page-subheading">{l s='Our categories'}</h2>
<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>
<!-- cmpspscategory -->
<div class="cmsPsCategTree box">
<h2 class="page-subheading">{l s='Our categories'}</h2>
<ul class="tree">
{if isset($cmsPsCategories)}
{foreach $cmsPsCategories as $cat}
<li><a href="{Tools::safeOutput($link->getCategoryCmsLink($cat['id_category']))}" title><span>{$cat['title']}</span></a>
{if isset($cat['children'])}
<ul>
{foreach $cat['children'] as $child }
<li {if $child@last}class="last"{/if}>
<a href="{Tools::safeOutput($link->getCategoryCmsLink($child['id_category']))}" title><span>{$child['title']}</span></a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
{/if}
</ul>
</div>
</div>
<!-- Offer -->
<div class="col-md-offset-1 col-md-5 col-sm-offset-0 col-sm-6">
<div class="sitemap_block box">
<h2 class="page-subheading">{l s='Our offers'}</h2>
<ul>
<li>
<a
href="{$link->getPageLink('new-products')|escape:'html':'UTF-8'}"
title="{l s='View a new product'}">
{l s='New products'}
<i class="icon"></i>
</a>
</li>
{if !$PS_CATALOG_MODE}
{if $PS_DISPLAY_BEST_SELLERS}
<li>
<a
href="{$link->getPageLink('best-sales')|escape:'html':'UTF-8'}"
title="{l s='View top-selling products'}">
{l s='Best sellers'}
<i class="icon"></i>
</a>
</li>
{/if}
<li>
<a
href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}"
title="{l s='View products with a price drop'}">
{l s='Price drop'}
<i class="icon"></i>
</a>
</li>
{/if}
</ul>
</div>
<!-- Account -->
<div class="sitemap_block box">
<h2 class="page-subheading">{l s='Your Account'}</h2>
<ul>
{if $is_logged}
<li>
<a
href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='Manage your customer account'}">
{l s='Your Account'}
<i class="icon"></i>
</a>
</li>
<li>
<a
href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='Manage your personal information'}">
{l s='Personal information'}
<i class="icon"></i>
</a>
</li>
<li>
<a
href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='View a list of my addresses'}">
{l s='Addresses'}
<i class="icon"></i>
</a>
</li>
{if $voucherAllowed}
<li>
<a
href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='View a list of my discounts'}">
{l s='Discounts'}
<i class="icon"></i>
</a>
</li>
{/if}
<li>
<a
href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='View a list of my orders'}" >
{l s='Order history'}
<i class="icon"></i>
</a>
</li>
{else}
<li>
<a
href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='Authentication'}" >
{l s='Authentication'}
<i class="icon"></i>
</a>
</li>
<li>
<a
href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}"
rel="nofollow"
title="{l s='Create new account'}" >
{l s='Create new account'}
<i class="icon"></i>
</a>
</li>
{/if}
{if $is_logged}
<li>
<a
href="{$link->getPageLink('index')}?mylogout"
rel="nofollow"
title="{l s='Sign out'}" >
{l s='Sign out'}
<i class="icon"></i>
</a>
</li>
{/if}
</ul>
</div>
<!-- Pages -->
<div class="sitemap_block cms box">
<h2 class="page-subheading">{l s='Pages'}</h2>
<ul>
<li>
<a href="{$categoriescmsTree.link|escape:'html':'UTF-8'}" title="{$categoriescmsTree.name|escape:'html':'UTF-8'}">
{$categoriescmsTree.name|escape:'html':'UTF-8'}
<i class="icon"></i>
</a>
</li>
{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:'html':'UTF-8'}" title="{$cms.meta_title|escape:'html':'UTF-8'}">
{$cms.meta_title|escape:'html':'UTF-8'}
<i class="icon"></i>
</a>
</li>
{/foreach}
<li>
<a href="{$link->getPageLink('contact', true)|escape:'html':'UTF-8'}" title="{l s='Contact'}">
{l s='Contact'}
<i class="icon"></i>
</a>
</li>
{if $display_store}
<li class="last">
<a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='List of our stores'}">
{l s='Our stores'}
<i class="icon"></i>
</a>
</li>
{/if}
</ul>
</div>
</div>
</div>
</div>
</section>
</main>