15-1 月別アーカイブリストに年別の見出しを表示する
286ページ
「月別アーカイブ」ウィジェットテンプレート(年別の見出しを降順、月を降順に表示する)
<mt:ifArchiveTypeEnabled archive_type="Monthly">
<mt:ArchiveList archive_type="Monthly">
<mt:ArchiveListHeader>
<div class="widget-archive-monthly widget-archive widget">
<h3 class="widget-header"><$mt:ArchiveTypeLabel$> <a href="<$mt:Link template="archive_index"$>">アーカイブ</a></h3>
<div class="widget-content">
<ul>
<li><mt:ArchiveDate format="%Y " />
<ul>
</mt:ArchiveListHeader>
<mt:ArchiveDate format="%Y " setvar="current_year" />
<mt:if tag="ArchiveNext">
<mt:ArchiveNext><mt:ArchiveDate format="%Y " setvar="year" /></mt:ArchiveNext>
</mt:if>
<mt:if name="year">
<mt:if name="current_year" ne="$year">
</ul>
</li>
<li><mt:GetVar name="current_year" />
<ul>
</mt:if>
</mt:if>
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle regex_replace="/\d+ /",""$>(<$mt:ArchiveCount$>)</a></li>
<mt:ArchiveListFooter>
</ul>
</li>
</ul>
</div>
</div>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</mt:ifArchiveTypeEnabled>
287ページ
「月別アーカイブ」ウィジェットテンプレート(年別の見出しを昇順、月を昇順に表示する)
<mt:ifArchiveTypeEnabled archive_type="Monthly">
<mt:ArchiveList archive_type="Monthly" sort_order="ascend">
<mt:ArchiveListHeader>
<div class="widget-archive-monthly widget-archive widget">
<h3 class="widget-header"><$mt:ArchiveTypeLabel$> <a href="<$mt:Link template="archive_index"$>">アーカイブ</a></h3>
<div class="widget-content">
<ul>
<li><mt:ArchiveDate format="%Y " />
<ul>
</mt:ArchiveListHeader>
<mt:ArchiveDate format="%Y年" setvar="current_year" />
<mt:if tag="ArchivePrevious">
<mt:ArchivePrevious><mt:ArchiveDate format="%Y " setvar="year" /></mt:ArchivePrevious>
</mt:if>
<mt:if name="year">
<mt:if name="current_year" ne="$year">
</ul>
</li>
<li><mt:GetVar name="current_year" />
<ul>
</mt:if>
</mt:if>
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle regex_replace="/\d+ /",""$>(<$mt:ArchiveCount$>)</a></li>
<mt:ArchiveListFooter>
</ul>
</li>
</ul>
</div>
</div>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</mt:ifArchiveTypeEnabled>
288ページ
「月別アーカイブ」ウィジェットテンプレート(年別の見出しを降順、月を昇順に表示する)
<mt:ifArchiveTypeEnabled archive_type="Monthly">
<mt:ArchiveList archive_type="Monthly">
<mt:ArchiveListHeader>
<div class="widget-archive-monthly widget-archive widget">
<h3 class="widget-header"><$mt:ArchiveTypeLabel$> <a href="<$mt:Link template="archive_index"$>">アーカイブ</a></h3>
<div class="widget-content">
<ul>
<li><mt:ArchiveDate format="%Y " />
<ul>
</mt:ArchiveListHeader>
<mt:ArchiveDate format="%Y " setvar="current_year" />
<mt:if tag="ArchiveNext">
<mt:ArchiveNext><mt:ArchiveDate format="%Y " setvar="year" /></mt:ArchiveNext>
</mt:if>
<mt:if name="year">
<mt:if name="current_year" ne="$year">
<mt:GetVar name="monthly_list" />
</ul>
</li>
<li><mt:GetVar name="current_year" />
<ul>
<mt:SetVar name="monthly_list" value="" />
</mt:if>
</mt:if>
<mt:SetVarBlock name="monthly_list" prepend="1">
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle regex_replace="/\d+ /",""$>(<$mt:ArchiveCount$>)</a></li>
</mt:SetVarBlock>
<mt:ArchiveListFooter>
<mt:GetVar name="monthly_list" />
</ul>
</li><
</ul>
</div>
</div>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</mt:ifArchiveTypeEnabled>
289ページ
「月別アーカイブ」ウィジェットテンプレート(年別の見出しを昇順、月を降順に表示する)
<mt:ifArchiveTypeEnabled archive_type="Monthly">
<mt:ArchiveList archive_type="Monthly" sort_order="ascend">
<mt:ArchiveListHeader>
<div class="widget-archive-monthly widget-archive widget">
<h3 class="widget-header"><$mt:ArchiveTypeLabel$> <a href="<$mt:Link template="archive_index"$>">アーカイブ</a></h3>
<div class="widget-content">
<ul>
<li><mt:ArchiveDate format="%Y " />
<ul>
</mt:ArchiveListHeader>
<mt:if tag="ArchivePrevious">
<mt:ArchivePrevious><mt:ArchiveDate format="%Y " setvar="year" /></mt:ArchivePrevious>
</mt:if>
<mt:ArchiveDate format="%Y " setvar="current_year" />
<mt:if name="year">
<mt:if name="current_year" ne="$year">
<mt:GetVar name="monthly_list" />
</ul>
</li>
<li><mt:GetVar name="current_year" />
<ul>
<mt:SetVar name="monthly_list" value="" />
</mt:if>
</mt:if>
<mt:SetVarBlock name="monthly_list" prepend="1">
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle regex_replace="/\d+ /",""$>(<$mt:ArchiveCount$>)</a></li>
</mt:SetVarBlock>
<mt:ArchiveListFooter>
<mt:GetVar name="monthly_list" />
</ul>
</li>
</ul>
</div>
</div>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</mt:ifArchiveTypeEnabled>
290ページ
「日別アーカイブ」ウィジェットテンプレート
<mt:ifArchiveTypeEnabled archive_type="Daily">
<mt:ArchiveList archive_type="Daily">
<mt:ArchiveListHeader>
<div class="widget-archive-monthly widget-archive widget">
<h3 class="widget-header"><$mt:ArchiveTypeLabel$> <a href="<$mt:Link template="archive_index"$>">アーカイブ</a></h3>
<div class="widget-content">
<ul>
<li><mt:ArchiveDate format="%Y %B " />
<ul>
</mt:ArchiveListHeader>
<mt:ArchiveDate format="%Y %B " setvar="current_year_month" />
<mt:if tag="ArchiveNext">
<mt:ArchiveNext><mt:ArchiveDate format="%Y %B " setvar="year_month" /></mt:ArchiveNext>
</mt:if>
<mt:if name="year_month">
<mt:if name="current_year_month" ne="$year_month">
</ul>
</li>
<li><mt:GetVar name="current_year_month" />
<ul>
</mt:if>
</mt:if>
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle regex_replace="/\d+ \d+ /",""$> (<$mt:ArchiveCount$>)</a></li>
<mt:ArchiveListFooter>
</ul>
</li>
</ul>
</div>
</div>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</mt:ifArchiveTypeEnabled>