14-3 カテゴリ別月送りカレンダー
278ページ
「HTMLヘッダー」テンプレートモジュール
<mt:if name="module_category_archives">
<script type="text/javascript" src="<mt:StaticWebPath />jquery/jquery.min.js"></script>
<script type="text/javascript" src="<mt:BlogURL />ajaxCalendar_jquery_category.js"></script>
<script type="text/javascript" src="<mt:BlogURL />dayChecker.js"></script>
</mt:if>
「カテゴリ別カレンダー」アーカイブテンプレート
<div class="widget-calendar widget">
<h3 class="widget-header">
<mt:ArchivePrevious>
<a href="javascript:void(0);" onclick="changeMonth('<mt:BlogArchiveURL />calendar/<mt:SubCategoryPath />/<mt:ArchiveDate format="%Y/%m/%i" />');"><</a>
</mt:ArchivePrevious>
<mt:ArchiveDate format="%B %Y" />
<mt:ArchiveNext>
<a href="javascript:void(0);" onclick="changeMonth('<mt:BlogArchiveURL />calendar/<mt:SubCategoryPath />/<mt:ArchiveDate format="%Y/%m/%i" />');">></a>
</mt:ArchiveNext>
</h3>
<div class="widget-content">
<table summary="<mt:SubCategoryPath />/<mt:ArchiveDate format="%Y/%m" />">
<thead>
<tr height="15">
<th abbr="Sunday" class="sunday">Sun</th><th abbr="Monday">Mon</th><th abbr="Tuesday">Tue</th><th abbr="Wednesday">Wed</th><th abbr="Thursday">Thu</th><th abbr="Friday">Fri</th><th abbr="Saturday" class="saturday">Sat</th>
</tr>
</thead>
<tbody>
<mt:CategoryLabel setvar="category_label">
<mt:Calendar category="$category_label" month="this">
<mt:CalendarWeekHeader>
<tr>
</mt:CalendarWeekHeader>
<td><mt:CalendarIfBlank><mt:Else><span></mt:CalendarIfBlank><mt:CalendarIfEntries><mt:Entries lastn="1"><a href="<mt:EntryLink archive_type="Category-Daily" />"><mt:CalendarDay /></a></mt:Entries></mt:CalendarIfEntries><mt:CalendarIfNoEntries><mt:CalendarDay /></mt:CalendarIfNoEntries><mt:CalendarIfBlank><mt:Else></span></mt:CalendarIfBlank></td>
<mt:CalendarWeekFooter>
</tr>
</mt:CalendarWeekFooter>
</mt:Calendar>
</tbody>
</table>
</div>
</div>
279ページ
「カレンダー」ウィジェットテンプレート
<mt:if name="module_category_archives">
<div id="calendar"></div>
<script type="text/javascript">
//<![CDATA[
getCalendar("<mt:BlogArchiveURL /><mt:Entries lastn="1" sort_order="descend">calendar/<mt:SubCategoryPath />/<mt:EntryDate format="%Y/%m/" /></mt:Entries>");
//]]>
</script>
</mt:if>
280ページ
「アーカイブウィジェットグループ」ウィジェットテンプレート
...前略...
<mt:Ignore>
<mt:If name="category_archive">
<mt:IfArchiveTypeEnabled archive_type="Category-Monthly">
<$mt:Include widget="カテゴリ月別アーカイブ"$>
</mt:IfArchiveTypeEnabled>
</mt:If>
</mt:Ignore>
...後略...