<{if $tag}>
    <h2><{$tag}> <small>(<a href="tag.php?WebID=<{$WebID}>"><{$smarty.const._MD_TCW_TAGS_LIST}></a>)</small></h2>

    <{foreach from=$show_arr item=dirname}>
        <{if "$xoops_rootpath/modules/tad_web/plugins/`$dirname`/tpls/tad_web_common_`$dirname`.tpl"|file_exists}>
            <{includeq file="$xoops_rootpath/modules/tad_web/plugins/`$dirname`/tpls/tad_web_common_`$dirname`.tpl"}>
        <{/if}>
    <{/foreach}>
<{else}>
    <h2><{$smarty.const._MD_TCW_TAGS_LIST}></h2>
    <ul class="list-group">
        <{foreach from=$tags_arr key=tag item=count}>
            <li class="list-group-item">
                <span class="badge badge-info"><{$count}></span>
                <a href="<{$xoops_url}>/modules/tad_web/tag.php?WebID=<{$WebID}>&tag=<{$tag}>"><{$tag}></a>
            </li>
        <{/foreach}>
    </ul>
<{/if}>