Skip to content
Permalink
Browse files

[ktai-renderer] support xoops_breadcrumbs that include SiteTop link

xoops_breadcrumbs の最初にサイトトップ(XOOPS_URL) へのリンクが含まれている場合に、
サイトトップへのリンクが2つできてしまう問題の修正。
  • Loading branch information...
nao-pon committed Mar 20, 2013
1 parent 2205cd2 commit 712c40970fef04670c4c9c56a7a6e3ed39b14fa6
Showing with 15 additions and 7 deletions.
  1. +15 −7 html/themes/ktai_default/theme.html
@@ -40,13 +40,21 @@
<{if $xoops_breadcrumbs}>
<!--breadcrumbs-->
<div style="font-size:small;color:#FFFFFF;background-color:#A9A9A9">
<a href="<{$xoops_url}>/">Home</a>
<{foreach from=$xoops_breadcrumbs item="item"}>
&gt;
<{if $item.url}>
<a href="<{$item.url}>"><{$item.name}></a>
<{else}>
<{$item.name}>
<{if $xoops_breadcrumbs[0].url|rtrim:'/' != $xoops_url}>
<a href="<{$xoops_url}>/">Home</a>
<{assign var="breadcrumbs_start" value=0}>
<{else}>
<a href="<{$xoops_breadcrumbs[0].url}>"><{$xoops_breadcrumbs[0].name}></a>
<{assign var="breadcrumbs_start" value=1}>
<{/if}>
<{foreach name=breadcrumbs from=$xoops_breadcrumbs item="item"}>
<{if $smarty.foreach.breadcrumbs.index >= $breadcrumbs_start}>
&gt;
<{if $item.url}>
<a href="<{$item.url}>"><{$item.name}></a>
<{else}>
<{$item.name}>
<{/if}>
<{/if}>
<{/foreach}>
</div>

0 comments on commit 712c409

Please sign in to comment.
You can’t perform that action at this time.