MTIfArchiveTypeEnabled
指定したアーカイブの種類を利用しているときに実行する条件タグです。モディファイア archive_type もしくは type を指定することで、アーカイブの種類を指定できます。
- 使い方
<mt:IfArchiveTypeEnabled archive_type="Monthly">
<mt:ArchiveList archive_type="Monthly">
<mt:ArchiveListHeader>
<nav class="widget-archive-monthly widget">
<h3 class="widget-header"><$mt:ArchiveType$> Archives</h3>
<div class="widget-content">
<ol class="widget-list">
</mt:ArchiveListHeader>
<li class="widget-list-item"><a href="<$mt:ArchiveLink encode_html="1"$>"><$mt:ArchiveTitle$> (<$mt:ArchiveCount$>)</a></li>
<mt:ArchiveListFooter>
</ol>
</div>
</nav>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</mt:IfArchiveTypeEnabled>
モディファイア
- archive_type="archive_type_foo"
- type="archive_type_foo"
-
アーカイブの種類を選択します。アーカイブの種類は以下のようになります。
- Individual (記事)
- Page (ウェブページ)
- Daily (日別)
- Weekly (週別)
- Monthly (月別)
- Yearly (年別)
- Author (ユーザー別)
- Author-Daily (ユーザー - 日別)
- Author-Weekly (ユーザー - 週別)
- Author-Monthly (ユーザー - 月別)
- Author-Yearly (ユーザー - 年別)
- Category (カテゴリ)
- Category-Daily (カテゴリ - 日別)
- Category-Weekly (カテゴリ - 週別)
- Category-Monthly (カテゴリ - 月別)
- Category-Yearly (カテゴリ - 年別)