shop-old/themes/easyshop_advanced/templates/content_sitemap.tpl
2026-04-20 01:03:43 +02:00

33 lines
1.8 KiB
Smarty

<!-- begining template content_sitemap.tpl -->
{if isset($errormessage)}
<div style="font-weight:bold;font-size:14px;color:#cc0000;border:#cc0000 1px solid;padding:10px;text-align:center;">
{$errormessage}
</div>
<br />
{/if}
<div class="content_box_textbox">
<div class="header"><h1>Sitemap</h1></div>
<div class="content content_sitemap">
{foreach from=$sitemap.structure item=page}
{if ($page->parent_id == 5 || $page->parent_id == 7) && $page->active == 1 && $page->sitemap_activ == 1}
<a class="sitemap_level{$page->level}" href="http://{$servername}/{if $page->uri_path}{$page->uri_path}/{/if}{$page->short_uri}/" title="{$page->name}">{$page->name}</a><br>
{/if}
{/foreach}
{foreach from=$sitemap.structure item=page}
{if $page->parent_id != 5 && $page->parent_id != 7 && $page->parent_id != 61 && $page->parent_id != 0 && $page->sitemap_activ == 1 && $page->active == 1}
<a class="sitemap_level{$page->level}" href="http://{$servername}/{if $page->uri_path}{$page->uri_path}/{/if}{$page->short_uri}/" title="{$page->name}">{$page->name}</a><br>
{if $page->items}
{foreach from=$page->items item=item}
{if $item->active == 1}
<a class="sitemap_item" title="{$item->name}" href="http://{$servername}/{if $item->structure_uri_path}{$item->structure_uri_path}/{/if}{$item->structure_short_uri}/{$item->short_uri}.html">{$item->name}</a><br>
{/if}
{/foreach}
{/if}
{/if}
{/foreach}
</div>
</div>
<!-- end template content_sitemap.tpl -->