MT4 Main Index Default Template (Flattened)
Getting the hang of MT4’s templates can be tricky if you’re not familiar with how the new system of includes and variables work. But the basic idea is that you should be able to make a straightforward HTML page, and then insert just the MT template tags you need to publish your page.
To make that easier to understand, here’s a completely flat (no includes required) version of the default HTML Main Index template.
First, we define all the variables that tell MT exactly what template we’re working with here. In this case, that it’s the Main Index page, that it’s a main template. And we’ll set this template’s variables to make sure we’re showing exactly the content we want to include: Our sidebars, including a list of recent entries, categories, author archives (if we have multiple authors), and a list of monthly archives.
<MTSetVar name="body_class" value="mt-main-index">
<MTSetVar name="main_template" value="1">
<MTSetVar name="main_index" value="1">
<MTSetVar name="sidebar" value="1">
<MTSetVar name="module_recent_entries" value="1">
<MTSetVar name="module_category_archives" value="1">
<MTSetVar name="module_author_archives" value="1">
<MTSetVar name="module_monthly_archives" value="1">
About <MTSetVar>
The variables used at the top of the template code (other than the “body_class” variable) are basically “on” and “off” switches, so the only values which are meaningful are “1” and “0”.
The variables are subsequently checked further down in the template code as you will see later (using an <MTIf>
tag in the template code) to determine whether a particular block of template code should be included in the published page. For example, the <MTSetVar name="sidebar" value="1">
variable is used to determine whether the template code for the sidebar will be included when the page is published:
<MTIf name="sidebar">
By using a variable, the sidebar can be easily removed from the page by changing the <MTSetVar name="sidebar" value="1">
variable from “1” to “0”, then republishing.
The following variables are used to determine whether specific modules (occurring later in the template code) are included in the sidebar:
<MTSetVar name="module_recent_entries" value="1">
<MTSetVar name="module_category_archives" value="1">
<MTSetVar name="module_author_archives" value="1">
<MTSetVar name="module_monthly_archives" value="1">
The above variables are checked when the following <MTIf>
block tags are encountered in the template code:
<MTIf name="module_recent_entries">
<MTIf name="module_category_archives">
<MTIf name="module_author_archives">
<MTIf name="module_monthly_archives">
The variables <MTSetVar name="main_template" value="1">
and <MTSetVar name="main_index" value="1">
are used to identify the type of template, which are checked later in the template code with the following <MTIf>
block tags:
<MTIf name="main_template">
<MTIf name="main_index">
The use of these variables and their associated <MTIf>
block tags is intended to make it easy to publish different content based on the template or page type, and to enable or disable the publishing of items on a page such as the sidebar or individual sidebar modules by setting a variable to “1” or “0” then republishing, without having to edit the templates and actually add or remove template code.
Adding the Header
Cool. Now we’re ready to set up the header for our HTML document. We begin with the standard valid XHTML doctype, a character set declaration, a meta tag to show off the fact that MT publishes our page, and then links to our stylesheets and XML feeds.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
<meta name="generator" content="<$MTProductName version="1"$>" />
@import url(<$MTLink template="base_theme"$>);
@import url(<$MTStaticWebPath$>themes/minimalist-red/screen.css);
<link rel="stylesheet" href="<$MTLink template="styles"$>" type="text/css" />
<MTIf name="main_template">
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTLink template="atom"$>" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<$MTLink template="rss"$>" />
</MTIf>
We’ll use this template for search results from the built-in search, too, so let’s make sure that if we are displaying search results, we include a link to a search results XML feed.
<MTIf name="search_results_template">
<link rel="alternate" type="application/atom+xml"
title="<$MTBlogName encode_html="1"$>: Search Results"
href="<$MTCGIPath$><$MTSearchScript$>?<$MTGetVar name="search_type"$>=<$MTSearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$MTSearchIncludeBlogs$>" />
</MTIf>
Then, of course, the title of our page. Some housekeeping for things like an RSD link that posting clients use to figure out how to talk to MT, some link
tags to offer navigation options for our site, and then finally any appropriate TrackBack or Creative Commons licensing metadata.
<title>
<MTIf name="entry_template">
<$MTGetVar name="page_title"$> - <$MTBlogName encode_html="1"$>
<MTElse>
<MTIf name="main_index">
<$MTBlogName encode_html="1"$>
<MTElse>
<$MTBlogName encode_html="1"$>: <$MTGetVar name="page_title"$>
</MTIf>
</MTIf>
</title>
<MTIf name="main_index">
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTLink template="rsd"$>" />
</MTIf>
<MTIf name="main_template">
<MTUnless name="main_index">
<link rel="start" href="<$MTBlogURL$>" title="Home" />
</MTUnless>
</MTIf>
<MTIf name="datebased_archive">
<MTArchivePrevious><link rel="prev" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchivePrevious>
<MTArchiveNext><link rel="next" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchiveNext>
</MTIf>
<MTIf name="entry_template">
<MTEntryPrevious><link rel="prev" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /></MTEntryPrevious>
<MTEntryNext><link rel="next" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /></MTEntryNext>
</MTIf>
<MTIf name="feedback_template">
<$MTEntryTrackbackData$>
<script type="text/javascript" src="<$MTLink template="javascript"$>"></script>
</MTIf>
<MTIf name="main_template">
<$MTCCLicenseRDF$>
</MTIf>
</head>
With the header of our document set up, we can get to the heart of our page: The content. MT uses a body class to tell its default CSS exactly what layout to use. If there’s any javascript needed for things like remembering our name in a comment form, the onload
handlers will take care of it. Then we set up a header div
to hold our blog’s name and description, which are wrapped in an h1
and h2
tag, respectively.
Adding the Body
With the header explained, now we get into the main content of the page, excerpted below:
<body class="<MTIf name="body_class"><$MTGetVar name="body_class"$> </MTIf><$MTGetVar name="page_layout" default="layout-wtt"$>"<MTIf name="body_onload"> onload="<$MTGetVar name="body_onload"$>"</MTIf>>
<div id="container">
<div id="container-inner">
<div id="header">
<div id="header-inner">
<div id="header-content">
<MTIf name="main_index">
<h1 id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></h1>
<h2 id="header-description"><$MTBlogDescription$></h2>
<MTElse>
<div id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></div>
<div id="header-description"><$MTBlogDescription$></div>
</MTIf>
</div>
</div>
</div>
Now, here comes the content:
<div id="content">
<div id="content-inner">
<div id="alpha">
<div id="alpha-inner">
<MTEntries>
<$MTEntryTrackbackData$>
<div id="entry-<$MTEntryID$>" class="entry-asset asset">
<div class="asset-header">
<h2 class="asset-name"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></h2>
<div class="asset-meta">
<span class="byline">
<MTIfNonEmpty tag="EntryAuthorDisplayName">
By <$MTEntryAuthorLink show_email="0"$> on <$MTEntryDate format="%x %X"$>
<MTElse>
<$MTEntryDate format="%x %X"$>
</MTIfNonEmpty>
</span>
<span class="separator">|</span> <a class="permalink" href="<$MTEntryPermalink$>">Permalink</a>
<MTIfCommentsActive>| <a href="<$MTEntryPermalink$>#comments">Comments (<$MTEntryCommentCount$>)</a></MTIfCommentsActive>
<MTIfPingsActive>| <a href="<$MTEntryPermalink$>#trackback">TrackBacks (<$MTEntryTrackbackCount$>)</a></MTIfPingsActive>
</div>
</div>
<div class="asset-content">
<MTIfNonEmpty tag="EntryBody">
<div class="asset-body">
<$MTEntryBody$>
</div>
</MTIfNonEmpty>
<MTIfTagSearch>
<MTEntryIfTagged>
<div class="entry-tags">
<h4 class="entry-tags-header">Tags<span class="delimiter">:</span></h4>
<ul class="entry-tags-list">
<li class="entry-tag"><MTEntryTags glue="<span class="delimiter">,</span></li> <li class="entry-tag">"><a href="<$MTTagSearchLink$>&amp;IncludeBlogs=<$MTBlogID$>" rel="tag"><$MTTagName$></a></MTEntryTags></li>
</ul>
</div>
</MTEntryIfTagged>
</MTIfTagSearch>
<MTIfNonEmpty tag="EntryMore" convert_breaks="0">
<div class="asset-more-link">
Continue reading <a href="<$MTEntryPermalink$>#more"><$MTEntryTitle$></a>.
</div>
</MTIfNonEmpty>
</div>
<div class="asset-footer"></div>
</div>
</MTEntries>
<div class="content-nav">
<a href="<$MTLink template="archive_index"$>">Archives</a>
</div>
</div>
</div>
<MTIf name="sidebar">
<MTIf name="page_layout" eq="layout-tw"$>
<div id="beta">
<div id="beta-inner">
<div class="widget-search widget">
<h3 class="widget-header">Search</h3>
<div class="widget-content">
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
<input id="search" name="search" size="20" value="<$MTSearchString$>" />
<MTIf name="search_results_template">
<input type="hidden" name="IncludeBlogs" value="<$MTSearchIncludeBlogs$>" />
<ul class="search-options">
<li><input type="checkbox" name="CaseSearch" /> Case sensitive</li>
<li><input type="checkbox" name="RegexSearch" /> Regex search</li>
</ul>
<mt:else>
<input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
</mt:if>
<input type="submit" value="Search" />
</form>
</div>
</div>
<MTIf name="search_results_template">
<MTIfTagSearch>
<div class="widget-tags widget">
<h3 class="widget-header">Tags</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags>
<li class="widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$> (<$MTTagCount$>)</a></li>
</MTTags>
</ul>
</div>
</div>
</MTIfTagSearch>
</MTIf>
<MTIf name="module_about_context">
<div class="widget-welcome widget">
<h3 class="widget-header">
<MTIf name="entry_template">
About this Entry
<MTElse>
<MTIf name="archive_template">
About this Archive
</MTIf>
</MTIf>
<MTIf name="archive_index">
About Archives
</MTIf>
</h3>
<div class="widget-content">
<MTIf name="archive_index">
<p>This page contains links to all the archived content.</p>
</MTIf>
<MTIf name="entry_template">
<p class="first">This page contains a single entry by <$MTEntryAuthorLink show_email="0"$> published on <em><$MTEntryDate format="%x %X"$></em>.</p>
<MTEntryPrevious>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> was the previous entry in this blog.</p>
</MTEntryPrevious>
<MTEntryNext>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> is the next entry in this blog.</p>
</MTEntryNext>
</MTIf>
<MTIf name="category_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of entries in the <strong><$MTCategoryLabel$></strong> category from <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries in the <strong><$MTCategoryLabel$></strong> category.</p>
<MTCategoryPrevious>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the previous category.</p>
</MTCategoryPrevious>
<MTCategoryNext>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the next category.</p>
</MTCategoryNext>
</MTIf>
</MTIf>
<MTIf name="author_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong> in <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong>.</p>
</MTIf>
</MTIf>
<MTIf name="datebased_only_archive">
<p class="first">This page is an archive of entries from <strong><$MTArchiveDate format="%B %Y"$></strong> listed from newest to oldest.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
</MTIf>
<MTIf name="archive_index">
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a>.</p>
<MTElse>
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a> or look in the <a href="<$MTLink template="archive_index"$>">archives</a> to find all content.</p>
</MTIf>
</div>
</div>
</MTIf>
<MTIf name="module_recent_entries">
<div class="widget-archives widget">
<h3 class="widget-header">Recent Entries</h3>
<div class="widget-content">
<ul class="widget-list">
<MTEntries lastn="10">
<li class="widget-list-item"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
</div>
</div>
</MTIf>
<MTIf name="main_index">
<MTIfNonZero tag="AssetCount">
<MTAssets type="image" lastn="10">
<MTAssetsHeader>
<div class="widget-assets widget">
<h3 class="widget-header">Photos</h3>
<div class="widget-content">
<ul class="widget-list"></MTAssetsHeader>
<li class="item"><a class="asset-image" href="<$MTAssetURL$>"><img src="<$MTAssetThumbnailURL height="70"$>" class="asset-img-thumb" alt="<$MTAssetLabel$>" title="<$MTAssetLabel$>" /></a></li>
<MTAssetsFooter></ul>
</div>
</div>
</MTAssetsFooter>
</MTAssets>
</MTIfNonZero>
</MTIf>
<MTIf name="module_category_archives">
<MTIfArchiveTypeEnabled archive_type="Category">
<div class="widget-categories widget">
<h3 class="widget-header">Categories</h3>
<div class="widget-content">
<MTTopLevelCategories>
<MTSubCatIsFirst>
<ul class="widget-list">
</MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li class="widget-list-item"><a href="<$MTCategoryArchiveLink$>"<MTIfNonEmpty tag="MTCategoryDescription"> title="<$MTCategoryDescription$>"</MTIfNonEmpty>><$MTCategoryLabel$> (<$MTCategoryCount$>)</a>
<MTElse>
<li class="widget-list-item"><$MTCategoryLabel$>
</MTIfNonZero>
<MTSubCatsRecurse>
</li>
<MTSubCatIsLast>
</ul>
</MTSubCatIsLast>
</MTTopLevelCategories>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="main_index">
<div class="widget-cloud widget">
<h3 class="widget-header">Tag Cloud</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags limit="20" sort_by="rank">
<li class="rank-<$MTTagRank max="10"$> widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$></a></li>
</MTTags>
</ul>
</div>
</div>
</MTIf>
<MTIf name="module_author_archives">
<MTIfArchiveTypeEnabled archive_type="Author">
<MTArchiveList archive_type="Author">
<MTArchiveListHeader>
<div class="widget-authors widget">
<h3 class="widget-header">Author Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Monthly">
<MTArchiveList archive_type="Monthly">
<MTArchiveListHeader>
<div class="widget-archives widget">
<h3 class="widget-header"><$MTArchiveTypeLabel$> <a href="<$MTLink template="archive_index"$>">Archives</a></h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_category-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Category-Monthly">
<div class="widget-categories widget">
<h3 class="widget-header"><$MTArchiveTitle$>: Monthly Archives</h3>
<div class="widget-content">
<MTArchiveList archive_type="Category-Monthly">
<MTArchiveListHeader>
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_author-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Author-Monthly">
<MTArchiveList archive_type="Author-Monthly">
<MTArchiveListHeader>
<div class="widget-categories widget">
<h3 class="widget-header"><$MTAuthorDisplayName$>: Monthly Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<div class="widget-syndicate widget">
<div class="widget-content">
<ul class="blog-feeds">
<li class="blog feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTLink template="atom"$>">Subscribe to this blog's feed</a></li>
<MTIf name="search_results_template">
<mt:ifnonempty tag="MTSearchString">
<li class="search-results-feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTCGIPath$><$MTSearchScript$>?<MTIfTagSearch>tag<MTElse>search</MTIfTagSearch>=<$MTSearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$MTSearchIncludeBlogs$>" title="Subscribe to feed">Search results matching &ldquo;<$MTSearchString$>&rdquo;</a></li>
</mt:ifnonempty>
</MTIf>
</ul>
</div>
</div>
<div class="widget-powered widget">
<div class="widget-content">
<a href="http://www.movabletype.com/"><img src="<$MTStaticWebPath$>images/mt4-bug-pbmt-white.png" alt="Powered by Movable Type <$MTVersion$>" width="120" height="75" /></a>
</div>
</div>
</div>
</div>
<MTElse>
<MTIf name="page_layout" eq="layout-wt"$>
<div id="beta">
<div id="beta-inner">
<div class="widget-search widget">
<h3 class="widget-header">Search</h3>
<div class="widget-content">
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
<input id="search" name="search" size="20" value="<$MTSearchString$>" />
<MTIf name="search_results_template">
<input type="hidden" name="IncludeBlogs" value="<$MTSearchIncludeBlogs$>" />
<ul class="search-options">
<li><input type="checkbox" name="CaseSearch" /> Case sensitive</li>
<li><input type="checkbox" name="RegexSearch" /> Regex search</li>
</ul>
<mt:else>
<input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
</mt:if>
<input type="submit" value="Search" />
</form>
</div>
</div>
<MTIf name="search_results_template">
<MTIfTagSearch>
<div class="widget-tags widget">
<h3 class="widget-header">Tags</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags>
<li class="widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$> (<$MTTagCount$>)</a></li>
</MTTags>
</ul>
</div>
</div>
</MTIfTagSearch>
</MTIf>
<MTIf name="module_about_context">
<div class="widget-welcome widget">
<h3 class="widget-header">
<MTIf name="entry_template">
About this Entry
<MTElse>
<MTIf name="archive_template">
About this Archive
</MTIf>
</MTIf>
<MTIf name="archive_index">
About Archives
</MTIf>
</h3>
<div class="widget-content">
<MTIf name="archive_index">
<p>This page contains links to all the archived content.</p>
</MTIf>
<MTIf name="entry_template">
<p class="first">This page contains a single entry by <$MTEntryAuthorLink show_email="0"$> published on <em><$MTEntryDate format="%x %X"$></em>.</p>
<MTEntryPrevious>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> was the previous entry in this blog.</p>
</MTEntryPrevious>
<MTEntryNext>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> is the next entry in this blog.</p>
</MTEntryNext>
</MTIf>
<MTIf name="category_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of entries in the <strong><$MTCategoryLabel$></strong> category from <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries in the <strong><$MTCategoryLabel$></strong> category.</p>
<MTCategoryPrevious>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the previous category.</p>
</MTCategoryPrevious>
<MTCategoryNext>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the next category.</p>
</MTCategoryNext>
</MTIf>
</MTIf>
<MTIf name="author_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong> in <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong>.</p>
</MTIf>
</MTIf>
<MTIf name="datebased_only_archive">
<p class="first">This page is an archive of entries from <strong><$MTArchiveDate format="%B %Y"$></strong> listed from newest to oldest.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
</MTIf>
<MTIf name="archive_index">
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a>.</p>
<MTElse>
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a> or look in the <a href="<$MTLink template="archive_index"$>">archives</a> to find all content.</p>
</MTIf>
</div>
</div>
</MTIf>
<MTIf name="module_recent_entries">
<div class="widget-archives widget">
<h3 class="widget-header">Recent Entries</h3>
<div class="widget-content">
<ul class="widget-list">
<MTEntries lastn="10">
<li class="widget-list-item"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
</div>
</div>
</MTIf>
<MTIf name="main_index">
<MTIfNonZero tag="AssetCount">
<MTAssets type="image" lastn="10">
<MTAssetsHeader>
<div class="widget-assets widget">
<h3 class="widget-header">Photos</h3>
<div class="widget-content">
<ul class="widget-list"></MTAssetsHeader>
<li class="item"><a class="asset-image" href="<$MTAssetURL$>"><img src="<$MTAssetThumbnailURL height="70"$>" class="asset-img-thumb" alt="<$MTAssetLabel$>" title="<$MTAssetLabel$>" /></a></li>
<MTAssetsFooter></ul>
</div>
</div>
</MTAssetsFooter>
</MTAssets>
</MTIfNonZero>
</MTIf>
<MTIf name="module_category_archives">
<MTIfArchiveTypeEnabled archive_type="Category">
<div class="widget-categories widget">
<h3 class="widget-header">Categories</h3>
<div class="widget-content">
<MTTopLevelCategories>
<MTSubCatIsFirst>
<ul class="widget-list">
</MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li class="widget-list-item"><a href="<$MTCategoryArchiveLink$>"<MTIfNonEmpty tag="MTCategoryDescription"> title="<$MTCategoryDescription$>"</MTIfNonEmpty>><$MTCategoryLabel$> (<$MTCategoryCount$>)</a>
<MTElse>
<li class="widget-list-item"><$MTCategoryLabel$>
</MTIfNonZero>
<MTSubCatsRecurse>
</li>
<MTSubCatIsLast>
</ul>
</MTSubCatIsLast>
</MTTopLevelCategories>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="main_index">
<div class="widget-cloud widget">
<h3 class="widget-header">Tag Cloud</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags limit="20" sort_by="rank">
<li class="rank-<$MTTagRank max="10"$> widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$></a></li>
</MTTags>
</ul>
</div>
</div>
</MTIf>
<MTIf name="module_author_archives">
<MTIfArchiveTypeEnabled archive_type="Author">
<MTArchiveList archive_type="Author">
<MTArchiveListHeader>
<div class="widget-authors widget">
<h3 class="widget-header">Author Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Monthly">
<MTArchiveList archive_type="Monthly">
<MTArchiveListHeader>
<div class="widget-archives widget">
<h3 class="widget-header"><$MTArchiveTypeLabel$> <a href="<$MTLink template="archive_index"$>">Archives</a></h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_category-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Category-Monthly">
<div class="widget-categories widget">
<h3 class="widget-header"><$MTArchiveTitle$>: Monthly Archives</h3>
<div class="widget-content">
<MTArchiveList archive_type="Category-Monthly">
<MTArchiveListHeader>
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_author-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Author-Monthly">
<MTArchiveList archive_type="Author-Monthly">
<MTArchiveListHeader>
<div class="widget-categories widget">
<h3 class="widget-header"><$MTAuthorDisplayName$>: Monthly Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<div class="widget-syndicate widget">
<div class="widget-content">
<ul class="blog-feeds">
<li class="blog feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTLink template="atom"$>">Subscribe to this blog's feed</a></li>
<MTIf name="search_results_template">
<mt:ifnonempty tag="MTSearchString">
<li class="search-results-feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTCGIPath$><$MTSearchScript$>?<MTIfTagSearch>tag<MTElse>search</MTIfTagSearch>=<$MTSearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$MTSearchIncludeBlogs$>" title="Subscribe to feed">Search results matching &ldquo;<$MTSearchString$>&rdquo;</a></li>
</mt:ifnonempty>
</MTIf>
</ul>
</div>
</div>
<div class="widget-powered widget">
<div class="widget-content">
<a href="http://www.movabletype.com/"><img src="<$MTStaticWebPath$>images/mt4-bug-pbmt-white.png" alt="Powered by Movable Type <$MTVersion$>" width="120" height="75" /></a>
</div>
</div>
</div>
</div>
<MTElse>
<MTIf name="page_layout" eq="layout-twt"$>
<div id="beta">
<div id="beta-inner">
<MTIf name="module_about_context">
<div class="widget-welcome widget">
<h3 class="widget-header">
<MTIf name="entry_template">
About this Entry
<MTElse>
<MTIf name="archive_template">
About this Archive
</MTIf>
</MTIf>
<MTIf name="archive_index">
About Archives
</MTIf>
</h3>
<div class="widget-content">
<MTIf name="archive_index">
<p>This page contains links to all the archived content.</p>
</MTIf>
<MTIf name="entry_template">
<p class="first">This page contains a single entry by <$MTEntryAuthorLink show_email="0"$> published on <em><$MTEntryDate format="%x %X"$></em>.</p>
<MTEntryPrevious>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> was the previous entry in this blog.</p>
</MTEntryPrevious>
<MTEntryNext>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> is the next entry in this blog.</p>
</MTEntryNext>
</MTIf>
<MTIf name="category_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of entries in the <strong><$MTCategoryLabel$></strong> category from <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries in the <strong><$MTCategoryLabel$></strong> category.</p>
<MTCategoryPrevious>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the previous category.</p>
</MTCategoryPrevious>
<MTCategoryNext>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the next category.</p>
</MTCategoryNext>
</MTIf>
</MTIf>
<MTIf name="author_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong> in <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong>.</p>
</MTIf>
</MTIf>
<MTIf name="datebased_only_archive">
<p class="first">This page is an archive of entries from <strong><$MTArchiveDate format="%B %Y"$></strong> listed from newest to oldest.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
</MTIf>
<MTIf name="archive_index">
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a>.</p>
<MTElse>
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a> or look in the <a href="<$MTLink template="archive_index"$>">archives</a> to find all content.</p>
</MTIf>
</div>
</div>
</MTIf>
<MTIf name="main_index">
<div class="widget-cloud widget">
<h3 class="widget-header">Tag Cloud</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags limit="20" sort_by="rank">
<li class="rank-<$MTTagRank max="10"$> widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$></a></li>
</MTTags>
</ul>
</div>
</div>
</MTIf>
<MTIf name="module_author_archives">
<MTIfArchiveTypeEnabled archive_type="Author">
<MTArchiveList archive_type="Author">
<MTArchiveListHeader>
<div class="widget-authors widget">
<h3 class="widget-header">Author Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Monthly">
<MTArchiveList archive_type="Monthly">
<MTArchiveListHeader>
<div class="widget-archives widget">
<h3 class="widget-header"><$MTArchiveTypeLabel$> <a href="<$MTLink template="archive_index"$>">Archives</a></h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_category-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Category-Monthly">
<div class="widget-categories widget">
<h3 class="widget-header"><$MTArchiveTitle$>: Monthly Archives</h3>
<div class="widget-content">
<MTArchiveList archive_type="Category-Monthly">
<MTArchiveListHeader>
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_author-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Author-Monthly">
<MTArchiveList archive_type="Author-Monthly">
<MTArchiveListHeader>
<div class="widget-categories widget">
<h3 class="widget-header"><$MTAuthorDisplayName$>: Monthly Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<div class="widget-syndicate widget">
<div class="widget-content">
<ul class="blog-feeds">
<li class="blog feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTLink template="atom"$>">Subscribe to this blog's feed</a></li>
<MTIf name="search_results_template">
<mt:ifnonempty tag="MTSearchString">
<li class="search-results-feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTCGIPath$><$MTSearchScript$>?<MTIfTagSearch>tag<MTElse>search</MTIfTagSearch>=<$MTSearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$MTSearchIncludeBlogs$>" title="Subscribe to feed">Search results matching &ldquo;<$MTSearchString$>&rdquo;</a></li>
</mt:ifnonempty>
</MTIf>
</ul>
</div>
</div>
<div class="widget-powered widget">
<div class="widget-content">
<a href="http://www.movabletype.com/"><img src="<$MTStaticWebPath$>images/mt4-bug-pbmt-white.png" alt="Powered by Movable Type <$MTVersion$>" width="120" height="75" /></a>
</div>
</div>
</div>
</div>
<div id="gamma">
<div id="gamma-inner">
<div class="widget-search widget">
<h3 class="widget-header">Search</h3>
<div class="widget-content">
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
<input id="search" name="search" size="20" value="<$MTSearchString$>" />
<MTIf name="search_results_template">
<input type="hidden" name="IncludeBlogs" value="<$MTSearchIncludeBlogs$>" />
<ul class="search-options">
<li><input type="checkbox" name="CaseSearch" /> Case sensitive</li>
<li><input type="checkbox" name="RegexSearch" /> Regex search</li>
</ul>
<mt:else>
<input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
</mt:if>
<input type="submit" value="Search" />
</form>
</div>
</div>
<MTIf name="search_results_template">
<MTIfTagSearch>
<div class="widget-tags widget">
<h3 class="widget-header">Tags</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags>
<li class="widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$> (<$MTTagCount$>)</a></li>
</MTTags>
</ul>
</div>
</div>
</MTIfTagSearch>
</MTIf>
<MTIf name="module_recent_entries">
<div class="widget-archives widget">
<h3 class="widget-header">Recent Entries</h3>
<div class="widget-content">
<ul class="widget-list">
<MTEntries lastn="10">
<li class="widget-list-item"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
</div>
</div>
</MTIf>
<MTIf name="main_index">
<MTIfNonZero tag="AssetCount">
<MTAssets type="image" lastn="10">
<MTAssetsHeader>
<div class="widget-assets widget">
<h3 class="widget-header">Photos</h3>
<div class="widget-content">
<ul class="widget-list"></MTAssetsHeader>
<li class="item"><a class="asset-image" href="<$MTAssetURL$>"><img src="<$MTAssetThumbnailURL height="70"$>" class="asset-img-thumb" alt="<$MTAssetLabel$>" title="<$MTAssetLabel$>" /></a></li>
<MTAssetsFooter></ul>
</div>
</div>
</MTAssetsFooter>
</MTAssets>
</MTIfNonZero>
</MTIf>
<MTIf name="module_category_archives">
<MTIfArchiveTypeEnabled archive_type="Category">
<div class="widget-categories widget">
<h3 class="widget-header">Categories</h3>
<div class="widget-content">
<MTTopLevelCategories>
<MTSubCatIsFirst>
<ul class="widget-list">
</MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li class="widget-list-item"><a href="<$MTCategoryArchiveLink$>"<MTIfNonEmpty tag="MTCategoryDescription"> title="<$MTCategoryDescription$>"</MTIfNonEmpty>><$MTCategoryLabel$> (<$MTCategoryCount$>)</a>
<MTElse>
<li class="widget-list-item"><$MTCategoryLabel$>
</MTIfNonZero>
<MTSubCatsRecurse>
</li>
<MTSubCatIsLast>
</ul>
</MTSubCatIsLast>
</MTTopLevelCategories>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
</div>
</div>
<MTElse>
<div id="beta">
<div id="beta-inner">
<MTIf name="module_about_context">
<div class="widget-welcome widget">
<h3 class="widget-header">
<MTIf name="entry_template">
About this Entry
<MTElse>
<MTIf name="archive_template">
About this Archive
</MTIf>
</MTIf>
<MTIf name="archive_index">
About Archives
</MTIf>
</h3>
<div class="widget-content">
<MTIf name="archive_index">
<p>This page contains links to all the archived content.</p>
</MTIf>
<MTIf name="entry_template">
<p class="first">This page contains a single entry by <$MTEntryAuthorLink show_email="0"$> published on <em><$MTEntryDate format="%x %X"$></em>.</p>
<MTEntryPrevious>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> was the previous entry in this blog.</p>
</MTEntryPrevious>
<MTEntryNext>
<p><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a> is the next entry in this blog.</p>
</MTEntryNext>
</MTIf>
<MTIf name="category_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of entries in the <strong><$MTCategoryLabel$></strong> category from <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries in the <strong><$MTCategoryLabel$></strong> category.</p>
<MTCategoryPrevious>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the previous category.</p>
</MTCategoryPrevious>
<MTCategoryNext>
<p><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> is the next category.</p>
</MTCategoryNext>
</MTIf>
</MTIf>
<MTIf name="author_archive">
<MTIf name="datebased_archive">
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong> in <strong><$MTArchiveDate format="%B %Y"$></strong>.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
<MTElse>
<p class="first">This page is a archive of recent entries written by <strong><$MTAuthorDisplayName$></strong>.</p>
</MTIf>
</MTIf>
<MTIf name="datebased_only_archive">
<p class="first">This page is an archive of entries from <strong><$MTArchiveDate format="%B %Y"$></strong> listed from newest to oldest.</p>
<MTArchivePrevious>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the previous archive.</p>
</MTArchivePrevious>
<MTArchiveNext>
<p><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> is the next archive.</p>
</MTArchiveNext>
</MTIf>
<MTIf name="archive_index">
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a>.</p>
<MTElse>
<p>Find recent content on the <a href="<$MTBlogURL$>">main index</a> or look in the <a href="<$MTLink template="archive_index"$>">archives</a> to find all content.</p>
</MTIf>
</div>
</div>
</MTIf>
<MTIf name="main_index">
<div class="widget-cloud widget">
<h3 class="widget-header">Tag Cloud</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags limit="20" sort_by="rank">
<li class="rank-<$MTTagRank max="10"$> widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$></a></li>
</MTTags>
</ul>
</div>
</div>
</MTIf>
<MTIf name="module_author_archives">
<MTIfArchiveTypeEnabled archive_type="Author">
<MTArchiveList archive_type="Author">
<MTArchiveListHeader>
<div class="widget-authors widget">
<h3 class="widget-header">Author Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Monthly">
<MTArchiveList archive_type="Monthly">
<MTArchiveListHeader>
<div class="widget-archives widget">
<h3 class="widget-header"><$MTArchiveTypeLabel$> <a href="<$MTLink template="archive_index"$>">Archives</a></h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</div>
</div>
</MTArchiveListFooter>
</MTArchiveList>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_category-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Category-Monthly">
<div class="widget-categories widget">
<h3 class="widget-header"><$MTArchiveTitle$>: Monthly Archives</h3>
<div class="widget-content">
<MTArchiveList archive_type="Category-Monthly">
<MTArchiveListHeader>
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<MTIf name="module_author-monthly_archives">
<MTIfArchiveTypeEnabled archive_type="Author-Monthly">
<MTArchiveList archive_type="Author-Monthly">
<MTArchiveListHeader>
<div class="widget-categories widget">
<h3 class="widget-header"><$MTAuthorDisplayName$>: Monthly Archives</h3>
<div class="widget-content">
<ul class="widget-list">
</MTArchiveListHeader>
<li class="widget-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$> (<$MTArchiveCount$>)</a></li>
<MTArchiveListFooter>
</ul>
</MTArchiveListFooter>
</MTArchiveList>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
<div class="widget-syndicate widget">
<div class="widget-content">
<ul class="blog-feeds">
<li class="blog feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTLink template="atom"$>">Subscribe to this blog's feed</a></li>
<MTIf name="search_results_template">
<mt:ifnonempty tag="MTSearchString">
<li class="search-results-feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="<$MTCGIPath$><$MTSearchScript$>?<MTIfTagSearch>tag<MTElse>search</MTIfTagSearch>=<$MTSearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$MTSearchIncludeBlogs$>" title="Subscribe to feed">Search results matching &ldquo;<$MTSearchString$>&rdquo;</a></li>
</mt:ifnonempty>
</MTIf>
</ul>
</div>
</div>
<div class="widget-powered widget">
<div class="widget-content">
<a href="http://www.movabletype.com/"><img src="<$MTStaticWebPath$>images/mt4-bug-pbmt-white.png" alt="Powered by Movable Type <$MTVersion$>" width="120" height="75" /></a>
</div>
</div>
</div>
</div>
<div id="gamma">
<div id="gamma-inner">
<div class="widget-search widget">
<h3 class="widget-header">Search</h3>
<div class="widget-content">
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
<input id="search" name="search" size="20" value="<$MTSearchString$>" />
<MTIf name="search_results_template">
<input type="hidden" name="IncludeBlogs" value="<$MTSearchIncludeBlogs$>" />
<ul class="search-options">
<li><input type="checkbox" name="CaseSearch" /> Case sensitive</li>
<li><input type="checkbox" name="RegexSearch" /> Regex search</li>
</ul>
<mt:else>
<input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
</mt:if>
<input type="submit" value="Search" />
</form>
</div>
</div>
<MTIf name="search_results_template">
<MTIfTagSearch>
<div class="widget-tags widget">
<h3 class="widget-header">Tags</h3>
<div class="widget-content">
<ul class="widget-list">
<MTTags>
<li class="widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$> (<$MTTagCount$>)</a></li>
</MTTags>
</ul>
</div>
</div>
</MTIfTagSearch>
</MTIf>
<MTIf name="module_recent_entries">
<div class="widget-archives widget">
<h3 class="widget-header">Recent Entries</h3>
<div class="widget-content">
<ul class="widget-list">
<MTEntries lastn="10">
<li class="widget-list-item"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
</div>
</div>
</MTIf>
<MTIf name="main_index">
<MTIfNonZero tag="AssetCount">
<MTAssets type="image" lastn="10">
<MTAssetsHeader>
<div class="widget-assets widget">
<h3 class="widget-header">Photos</h3>
<div class="widget-content">
<ul class="widget-list"></MTAssetsHeader>
<li class="item"><a class="asset-image" href="<$MTAssetURL$>"><img src="<$MTAssetThumbnailURL height="70"$>" class="asset-img-thumb" alt="<$MTAssetLabel$>" title="<$MTAssetLabel$>" /></a></li>
<MTAssetsFooter></ul>
</div>
</div>
</MTAssetsFooter>
</MTAssets>
</MTIfNonZero>
</MTIf>
<MTIf name="module_category_archives">
<MTIfArchiveTypeEnabled archive_type="Category">
<div class="widget-categories widget">
<h3 class="widget-header">Categories</h3>
<div class="widget-content">
<MTTopLevelCategories>
<MTSubCatIsFirst>
<ul class="widget-list">
</MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li class="widget-list-item"><a href="<$MTCategoryArchiveLink$>"<MTIfNonEmpty tag="MTCategoryDescription"> title="<$MTCategoryDescription$>"</MTIfNonEmpty>><$MTCategoryLabel$> (<$MTCategoryCount$>)</a>
<MTElse>
<li class="widget-list-item"><$MTCategoryLabel$>
</MTIfNonZero>
<MTSubCatsRecurse>
</li>
<MTSubCatIsLast>
</ul>
</MTSubCatIsLast>
</MTTopLevelCategories>
</div>
</div>
</MTIfArchiveTypeEnabled>
</MTIf>
</div>
</div>
</MTElse>
</MTIf>
</MTElse>
</MTIf>
</MTElse>
</MTIf>
</MTIf>
</div>
</div>
<div id="footer">
<div id="footer-inner">
<div id="footer-content">
<div class="widget-powered widget">
<div class="widget-content">
Powered by <a href="http://www.movabletype.com/"><$MTProductName$></a>
</div>
</div>
<MTBlogIfCCLicense>
<div class="widget-creative-commons widget">
<div class="widget-content">
This blog is licensed under a <a href="<$MTBlogCCLicenseURL$>">Creative Commons License</a>.
</div>
</div>
</MTBlogIfCCLicense>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
nathanrudy on March 9, 2008, 7:04 a.m. Reply
No, it’s not cool.
What do the variables mean in the top block? You tell us we are setting them, BUT DON’T TELL US WHAT THE SETTINGS MEAN!
What does a “1” mean? Is there a “2”, “3” and “4”? Where do we find that info?
I get the whole concept of the includes and the various components of the templates. That’s not an issue. But where in all this mess of a documentation site are there simple definitions of the variables you are setting?
nathanrudy on March 9, 2008, 7:07 a.m. Reply
It’s also be nice to be able to copy and paste this whole flattened template into our editor all by ourselves instead of having to grab the pieces. Looking at it at a whole without the exposition might be easier to understand than the way you have it.
Jay Allen on March 29, 2008, 1:05 a.m. Reply
Nathan, in case you missed it, here’s the explanation:
1 is the same as 2, 3, 4 and 129832832. Also the same as ‘hello’ and ‘kitty’. 0 is a false value, the rest are true.