12-7 カテゴリ一覧のブログ記事数にサブカテゴリのブログ記事数を含めて表示する
230ページ
「カテゴリアーカイブ」ウィジェットテンプレート
<mt:IfArchiveTypeEnabled archive_type="Category">
<div class="widget-archive widget-archive-category widget">
<h3 class="widget-header">カテゴリ</h3>
<div class="widget-content">
<mt:TopLevelCategories>
<mt:SubCatIsFirst>
<ul>
</mt:SubCatIsFirst>
<mt:If tag="CategoryCount">
<mt:hasSubCategories>
<mt:EntriesWithSubCategories>
<mt:EntriesFooter>
<mt:GetVar name="__counter__" setvar="entries_count" />
</mt:EntriesFooter>
</mt:EntriesWithSubCategories>
</mt:hasSubCategories>
<li><a href="<mt:CategoryArchiveLink />" title="<mt:CategoryDescription />"><mt:CategoryLabel></a> <mt:hasSubCategories><mt:if name="entries_count">[<mt:GetVar name="entries_count" />]</mt:if><mt:else>[<mt:CategoryCount />]</mt:hasSubCategories>
<mt:Else>
<li><$mt:CategoryLabel$>
</mt:If>
<$mt:SubCatsRecurse$>
</li>
<mt:SubCatIsLast>
</ul>
</mt:SubCatIsLast>
</mt:TopLevelCategories>
</div>
</div>
</mt:IfArchiveTypeEnabled>
231ページ
「カテゴリアーカイブ」ウィジェットテンプレート
<li><a href="<mt:CategoryArchiveLink />" title="<mt:CategoryDescription />"><mt:CategoryLabel></a> <mt:hasSubCategories><mt:if name="entries_count"><mt:CategoryCount setVar="category_count" />[<mt:CategoryCount />](<mt:GetVar name="entries_count" op="-" value="$category_count" />)</mt:if><mt:else>[<mt:CategoryCount />]</mt:hasSubCategories>