167 lines
5.0 KiB
HTML
167 lines
5.0 KiB
HTML
<nav class="{$TpStyle.dom_prefix}-bc {$TpStyle.dom_prefix}-bc-b {$TpStyle.dom_prefix}-v{$intVariant} {$pageCfg.breadcrumb.class|default=''}">
|
||
|
||
{// ================= Variant 0:Block UL ================= }
|
||
{if $intVariant == 0}
|
||
<ul class="{$TpStyle.dom_prefix}-bc-block">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<li>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<span>{$node.title}</span>
|
||
{/if}
|
||
</li>
|
||
{/volist}
|
||
</ul>
|
||
|
||
{// ================= Variant 1:DIV List ================= }
|
||
{elseif $intVariant == 1}
|
||
<div class="{$TpStyle.dom_prefix}-bc-div">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<div>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<strong>{$node.title}</strong>
|
||
{/if}
|
||
</div>
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 2:SECTION ================= }
|
||
{elseif $intVariant == 2}
|
||
<section class="{$TpStyle.dom_prefix}-bc-section">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<section>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</section>
|
||
{/volist}
|
||
</section>
|
||
|
||
{// ================= Variant 3:ARTICLE ================= }
|
||
{elseif $intVariant == 3}
|
||
<article class="{$TpStyle.dom_prefix}-bc-article">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<article>
|
||
<header>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</header>
|
||
</article>
|
||
{/volist}
|
||
</article>
|
||
|
||
{// ================= Variant 4:DL Block ================= }
|
||
{elseif $intVariant == 4}
|
||
<dl class="{$TpStyle.dom_prefix}-bc-dl">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<dd>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</dd>
|
||
{/volist}
|
||
</dl>
|
||
|
||
{// ================= Variant 5:NAV Stack ================= }
|
||
{elseif $intVariant == 5}
|
||
<nav class="{$TpStyle.dom_prefix}-bc-stack">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<div>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<em>{$node.title}</em>
|
||
{/if}
|
||
</div>
|
||
{/volist}
|
||
</nav>
|
||
|
||
{// ================= Variant 6:P Block ================= }
|
||
{elseif $intVariant == 6}
|
||
<div class="{$TpStyle.dom_prefix}-bc-pblock">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<p>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</p>
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 7:H List ================= }
|
||
{elseif $intVariant == 7}
|
||
<div class="{$TpStyle.dom_prefix}-bc-hlist">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<h6>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</h6>
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 8:FIGURE ================= }
|
||
{elseif $intVariant == 8}
|
||
<figure class="{$TpStyle.dom_prefix}-bc-fig">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<figcaption>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</figcaption>
|
||
{/volist}
|
||
</figure>
|
||
|
||
{// ================= Variant 9:ASIDE ================= }
|
||
{elseif $intVariant == 9}
|
||
<aside class="{$TpStyle.dom_prefix}-bc-aside">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<div>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</div>
|
||
{/volist}
|
||
</aside>
|
||
|
||
{// ================= Variant 10–18:语义混合 ================= }
|
||
{elseif $intVariant >= 10 && $intVariant <= 18}
|
||
<div class="{$TpStyle.dom_prefix}-bc-mix">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<strong>{$node.title}</strong>
|
||
{/if}
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 19:DEFAULT ================= }
|
||
{else}
|
||
<div class="{$TpStyle.dom_prefix}-bc-default">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<span>{$node.title}</span>
|
||
{/volist}
|
||
</div>
|
||
{/if}
|
||
|
||
</nav>
|
||
|