Calendar Tags
Calendar tags display the sidebar calendar on your weblog.
<div id="calendar">
<table summary="<$MTTrans phrase="Monthly calendar with links to each day's posts"$>">
<caption><$MTDate format="%B %Y"$></caption>
<tr>
<MTCalendarWeekDays>
<th><$MTCalendarWeekDay$></th>
</MTCalendarWeekDays>
</tr>
<MTCalendar>
<MTCalendarWeekHeader>
<tr>
</MTCalendarWeekHeader>
<td>
<MTCalendarIfEntries>
<MTEntries lastn="1">
<a href="<$MTEntryPermalink$>"><$MTCalendarDay$></a>
</MTEntries>
</MTCalendarIfEntries>
<MTCalendarIfNoEntries><$MTCalendarDay$></MTCalendarIfNoEntries>
<MTCalendarIfBlank> </MTCalendarIfBlank>
</td>
<MTCalendarWeekFooter></tr></MTCalendarWeekFooter>
</MTCalendar>
</table>
</div>
Tags
- MTCalendar:
<MTCalendar>
- a container tag that holds the other calendar tags.
- MTCalendarWeekDays:
<MTCalendarWeekDays>
- a container tag that cycles through the days of the week to create the calendar headers.
- MTCalendarWeekHeader:
<MTCalendarWeekHeader>
- a container tag that creates the calendar structure.
- MTCalendarWeekFooter:
<MTCalendarWeekFooter>
- a container tag that creates the calendar structure.
- MTCalendarIfEntries:
<MTCalendarIfEntries>
- a container tag that displays its contents if there was a weblog post on that day.
- MTCalendarIfNoEntries:
<MTCalendarIfNoEntries>
- a container tag that displays its contents if there were not weblog posts on that day.
- MTCalendarIfBlank:
<MTCalendarIfBlank>
- a container tag that creates the structure for blank spaces on the calendar.
- MTCalendarIfToday:
<MTCalendarIfToday>
- a container tag that displays its contents if the date on the calendar is the same as the date the weblog was last published.
- MTCalendarWeekDay:
<$MTCalendarWeekDay$>
- displays the calendar header for each day of the week.
- MTCalendarDay:
<$MTCalendarDay$>
- displays the date (day of the month) on the calendar.
Copyright © 2003-2005 Six Apart