261 lines
8.2 KiB
HTML
261 lines
8.2 KiB
HTML
<nav class="{$TpStyle.dom_prefix}-bc {$TpStyle.dom_prefix}-bc-a {$pageCfg.breadcrumb.class|default=''} {$TpStyle.dom_prefix}-v{$intVariant}">
|
||
|
||
{// ================= Variant 0:OL ================= }
|
||
{if $intVariant == 0}
|
||
<ol class="{$TpStyle.dom_prefix}-bc-ol ">
|
||
{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}
|
||
</ol>
|
||
|
||
{// ================= Variant 1:UL ================= }
|
||
{elseif $intVariant == 1}
|
||
<ul class="{$TpStyle.dom_prefix}-bc-ul ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<li>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<strong>{$node.title}</strong>
|
||
{/if}
|
||
</li>
|
||
{/volist}
|
||
</ul>
|
||
|
||
{// ================= Variant 2:DIV Flow ================= }
|
||
{elseif $intVariant == 2}
|
||
<div class="{$TpStyle.dom_prefix}-bc-flow ">
|
||
{volist name="arrBreadcrumb" id="node" key="i"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<em>{$node.title}</em>
|
||
{/if}
|
||
{if $i < count($arrBreadcrumb)} > {/if}
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 3:P ================= }
|
||
{elseif $intVariant == 3}
|
||
<p class="{$TpStyle.dom_prefix}-bc-p ">
|
||
{volist name="arrBreadcrumb" id="node" key="i"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
{if $i < count($arrBreadcrumb)} / {/if}
|
||
{/volist}
|
||
</p>
|
||
|
||
{// ================= Variant 4:SPAN ================= }
|
||
{elseif $intVariant == 4}
|
||
<span class="{$TpStyle.dom_prefix}-bc-span ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
{/volist}
|
||
</span>
|
||
|
||
{// ================= Variant 5:NAV ================= }
|
||
{elseif $intVariant == 5}
|
||
<nav class="{$TpStyle.dom_prefix}-bc-nav ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
<span>{$node.title}</span>
|
||
{/if}
|
||
{/volist}
|
||
</nav>
|
||
|
||
{// ================= Variant 6:ADDRESS ================= }
|
||
{elseif $intVariant == 6}
|
||
<address class="{$TpStyle.dom_prefix}-bc-address ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
{/volist}
|
||
</address>
|
||
|
||
{// ================= Variant 7:SECTION ================= }
|
||
{elseif $intVariant == 7}
|
||
<section class="{$TpStyle.dom_prefix}-bc-section ">
|
||
{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}
|
||
</section>
|
||
|
||
{// ================= Variant 8:ARTICLE ================= }
|
||
{elseif $intVariant == 8}
|
||
<article class="{$TpStyle.dom_prefix}-bc-article ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<header>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</header>
|
||
{/volist}
|
||
</article>
|
||
|
||
{// ================= Variant 9:DL ================= }
|
||
{elseif $intVariant == 9}
|
||
<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 10:H6 ================= }
|
||
{elseif $intVariant == 10}
|
||
<h6 class="{$TpStyle.dom_prefix}-bc-h ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
{/volist}
|
||
</h6>
|
||
|
||
{// ================= Variant 11:STRONG ================= }
|
||
{elseif $intVariant == 11}
|
||
<div class="{$TpStyle.dom_prefix}-bc-strong ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<strong>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</strong>
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 12:EM ================= }
|
||
{elseif $intVariant == 12}
|
||
<div class="{$TpStyle.dom_prefix}-bc-em ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<em>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</em>
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 13:INLINE LIST ================= }
|
||
{elseif $intVariant == 13}
|
||
<ul class="{$TpStyle.dom_prefix}-bc-inline ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<li>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</li>
|
||
{/volist}
|
||
</ul>
|
||
|
||
{// ================= Variant 14:SMALL ================= }
|
||
{elseif $intVariant == 14}
|
||
<p class="{$TpStyle.dom_prefix}-bc-small ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<small>
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
</small>
|
||
{/volist}
|
||
</p>
|
||
|
||
{// ================= Variant 15:SEO TEXT ================= }
|
||
{elseif $intVariant == 15}
|
||
<div class="{$TpStyle.dom_prefix}-bc-seo ">
|
||
当前位置:
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 16:FIGURE ================= }
|
||
{elseif $intVariant == 16}
|
||
<figure class="{$TpStyle.dom_prefix}-bc-fig ">
|
||
<figcaption>
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/if}
|
||
{/volist}
|
||
</figcaption>
|
||
</figure>
|
||
|
||
{// ================= Variant 17:MARK ================= }
|
||
{elseif $intVariant == 17}
|
||
<div class="{$TpStyle.dom_prefix}-bc-mark ">
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
<mark>{$node.title}</mark>
|
||
{/volist}
|
||
</div>
|
||
|
||
{// ================= Variant 18:TIME ================= }
|
||
{elseif $intVariant == 18}
|
||
<div class="{$TpStyle.dom_prefix}-bc-time ">
|
||
<time>路径:</time>
|
||
{volist name="arrBreadcrumb" id="node"}
|
||
{if !empty($node.url)}
|
||
<a href="{$node.url}">{$node.title}</a>
|
||
{else /}
|
||
{$node.title}
|
||
{/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>
|
||
|