Movabletype templates for halcanary.org
All seven templates on this page are duel licensed under the Creative Commons Share Alike License and the GNU General Public Licence. You may use and redistribute this code under the terms of either of these liscences. All templates partially derived from MT's defaults.
Here are the four movable type templates for archive-type summaries. They are all included into a php file, using .
mt1 makes my front page, with the last 10 entries.
mt1.template.html |
---|
<!--(c) 2003 Hal Canary-->
<div class='section'>
<h2>Log</h2>
<div class="blog">
<p class="centered">(<a href="./archives/">Archives</a>)</p>
</div>
<MTEntries lastn="10">
<div class="blog">
<h3 class="blogtitle"><$MTEntryTitle$></h3>
<$MTEntryBody$>
<MTEntryIfExtended>
<p class="blog-notes">
<a href="<$MTEntryPermalink$>">
Continue reading <em><$MTEntryTitle$></em>
</a>
</p>
</MTEntryIfExtended>
<p class="blog-notes">
<a href="<$MTEntryAuthorURL$>"><$MTEntryAuthor$></a> |
<$MTEntryCategory$> |
<$MTEntryDate format="%Y-%m-%d, %I:%M %p"$> |
<!--<a href="<$MTEntryLink$>">permlink &amp; comments</a>-->
<a href="<$MTEntryPermalink$>">permlink &amp; comments</a>
(<$MTEntryCommentCount$>)
</p>
</div>
<hr class='blogsep' />
</MTEntries>
</div>
|
mt2 also goes on the front page, with links to the last 20 entries.
mt2.template.html |
---|
<!--(c) 2003 Hal Canary-->
<div class="section">
<h2>Recent</h2>
<MTEntries lastn="30">
<p>
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a>
<MTComments lastn="1">
(<$MTEntryCommentCount$>)
</MTComments>
<br />
<$MTArchiveDate format="%Y-%m-%d, %I:%M %p"$>
</p>
</MTEntries>
</div>
|
mt3 is the full archive, ordered by date
mt3.template.html |
---|
<!--(c) 2003 Hal Canary-->
<div class='section'>
<h2>Archive</h2>
<div class='subsection'>
<p><a href="../">home</a> |
<a href="./cat.php">category archive</a></p>
</div>
<MTArchiveList archive_type="Monthly">
<div class='subsection'>
<h3>
<a href="<$MTArchiveLink$>">
<$MTArchiveTitle$></a>
(<$MTArchiveCount$>)</h3>
<ul>
<MTEntries>
<li>
<a href="<$MTEntryPermalink$>">
<$MTEntryTitle$></a> (<$MTEntryCategory$>)
<$MTArchiveDate format="%Y-%m-%d, %I:%M %p"$>
<MTComments lastn="1">
(<$MTEntryCommentCount$>)</MTComments>
</li>
</MTEntries>
</ul>
</div>
</MTArchiveList>
</div>
|
mt4 is the full archive, ordered by category
mt4.template.html |
---|
<!--(c) 2003 Hal Canary-->
<div class='section'>
<h2>Category Archive</h2>
<MTCategories>
<div class='subsection'>
<h3><a href="<$MTCategoryArchiveLink$>">
<$MTCategoryLabel$></a>
(<$MTCategoryCount$>)</h3>
<ul>
<MTEntries>
<li>
<a href="<$MTEntryPermalink$>">
<$MTEntryTitle$></a>
<$MTArchiveDate format="%Y-%m-%d, %I:%M %p"$>
<MTComments lastn="1">
(<$MTEntryCommentCount$>)
</MTComments>
</li>
</MTEntries>
</ul>
</div>
</MTCategories>
</div>
|
The next three compile into complete files in the /archive/ directory.
individual-entry-archive.html |
---|
<$MTInclude file="head.html"$>
<!--(c) 2003 Hal Canary-->
<body>
<div class="banner">
<h1>
<img src="/images/new-hal-icon.jpg" alt="" />
WoHC: <$MTEntryTitle$>
</h1>
</div>
<div class='widerightcol'>
<div class='section'>
<h2>Log</h2>
<p>
<MTEntryPrevious>
<a href="<$MTEntryPermalink$>">&laquo; <$MTEntryTitle$></a> |
</MTEntryPrevious>
<a href="<$MTBlogURL$>">Home</a>
| <a href="./">Archives</a>
| <a href="<$MTEntryLink archive_type="Monthly"$>">Month</a>
<MTEntryNext>
| <a href="<$MTEntryPermalink$>"><$MTEntryTitle$> &raquo;</a>
</MTEntryNext>
</p>
<div class="blog">
<h3 class="blogtitle"><$MTEntryTitle$></h3>
<$MTEntryBody$>
<$MTEntryMore$>
<p class="blog-notes">
<a href="<$MTEntryAuthorURL$>"><$MTEntryAuthor$></a> |
<$MTEntryCategory$> |
<$MTEntryDate format="%Y-%m-%d, %I:%M %p"$>
</p>
</div>
</div>
<MTEntryIfAllowComments>
<MTComments lastn="1">
<div class='section'>
<h2>Comments</h2>
</MTComments>
<MTComments>
<div class="blog">
<p>
<$MTCommentBody$>
</p>
<p class="blog-notes">
Posted by <$MTCommentAuthorLink spam_protect="1"$>
at <$MTCommentDate format="%Y-%m-%d, %I:%M %p"$>
</p>
</div>
</MTComments>
<MTComments lastn="1">
</div>
</MTComments>
<MTEntryIfCommentsOpen>
<div class='section'>
<h2>Comment!</h2>
<div class='subsection'>
<form method="post"
action="<$MTCGIPath$><$MTCommentScript$>"
name="comments_form"
onsubmit="if (this.bakecookie[0].checked) rememberMe(this)">
<input type="hidden" name="static" value="1" />
<input type="hidden" name="entry_id" value="<$MTEntryID$>" />
<p>
<label for="author">Name:</label>
<br />
<input tabindex="1" id="author" name="author" />
</p>
<p>
<label for="email">Email Address:</label>
<br />
<input tabindex="2" id="email" name="email" />
</p>
<p>
<label for="url">URL:</label>
<br />
<input tabindex="3" id="url" name="url" />
</p>
<p>
Remember personal info?
<br />
<input type="radio" id="bakecookie" name="bakecookie" />
<label for="bakecookie">Yes</label>
<input type="radio" id="forget" name="bakecookie"
onclick="forgetMe(this.form)" value="Forget Info"
style="margin-left: 15px;" />
<label for="forget">No</label>
<br style="clear: both;" />
</p>
<p>
<label for="text">Comments:</label>
<br />
<textarea tabindex="4" id="text" name="text"
rows="10" cols="50"></textarea>
</p>
<p>
<input type="submit" name="preview" value="&nbsp;Preview&nbsp;" />
<input style="font-weight: bold;" type="submit"
name="post" value="&nbsp;Post&nbsp;" />
</p>
</form>
</div>
<script type="text/javascript" language="javascript">
<!--
document.comments_form.email.value = getCookie("mtcmtmail");
document.comments_form.author.value = getCookie("mtcmtauth");
document.comments_form.url.value = getCookie("mtcmthome");
if (getCookie("mtcmtauth")) {
document.comments_form.bakecookie[0].checked = true;
} else {
document.comments_form.bakecookie[1].checked = true;
} //
-->
</script>
</div>
</MTEntryIfCommentsOpen>
</MTEntryIfAllowComments>
<$MTInclude file="bottom.html"$>
<hr class='middle' />
</div>
<div class='leftcol'>
<$MTInclude file="leftcol.html"$>
</div>
</body>
</html>
|
date-based-archive.html |
---|
<$MTInclude file="head.html"$>
<!--(c) 2003 Hal Canary-->
<body>
<div class="banner">
<h1>
<img src="/images/new-hal-icon.jpg" alt="" />
WoHC Log
</h1>
</div>
<div class='widerightcol'>
<div class='section'>
<h2><$MTArchiveTitle$></h2>
<div class="subsection">
<p>
<MTArchivePrevious>
<a href="<$MTArchiveLink$>">« <$MTArchiveTitle$></a> |
</MTArchivePrevious>
<a href="<$MTBlogURL$>">Main</a> |
<a href="./">Archives</a>
<MTArchiveNext>
| <a href="<$MTArchiveLink$>"><$MTArchiveTitle$> »</a>
</MTArchiveNext>
</p>
</div>
<MTEntries sort_order="ascend">
<div class="blog">
<h3 class="blogtitle"><$MTEntryTitle$></h3>
<$MTEntryBody$>
<$MTEntryMore$>
<p class="blog-notes">
<a href="<$MTEntryAuthorURL$>"><$MTEntryAuthor$></a> |
<$MTEntryCategory$> |
<$MTEntryDate format="%Y-%m-%d, %I:%M %p"$> |
<a href="<$MTEntryPermalink$>">permlink &amp; comments</a>
(<$MTEntryCommentCount$>)
</p>
</div>
</MTEntries>
</div>
<$MTInclude file="bottom.html"$>
<hr class='middle' />
</div>
<div class='leftcol'>
<$MTInclude file="leftcol.html"$>
</div>
</body>
</html>
|
category-archive.html |
---|
<$MTInclude file="head.html"$>
<!--(c) 2003 Hal Canary-->
<body>
<h1>
<img src="/images/new-hal-icon.jpg" alt="" />
WoHC Log
</h1>
<div class='widerightcol'>
<div class='section'>
<h2>Category: <$MTArchiveTitle$></h2>
<div class="subsection">
<p>
<a href="<$MTBlogURL$>">Main</a> |
<a href="./">Archives</a> |
<a href="./cat.php">Categories</a>
</p>
</div>
<MTEntries sort_order="ascend">
<div class="blog">
<h3 class="blogtitle"><$MTEntryTitle$></h3>
<$MTEntryBody$>
<$MTEntryMore$>
<p class="blog-notes">
<a href="<$MTEntryAuthorURL$>"><$MTEntryAuthor$></a> |
<$MTEntryDate format="%Y-%m-%d, %I:%M %p"$> |
<a href="<$MTEntryPermalink$>">permlink &amp; comments</a>
(<$MTEntryCommentCount$>)
</p>
</div>
</MTEntries>
</div>
<$MTInclude file="bottom.html"$>
<hr class='middle' />
</div>
<div class='leftcol'>
<$MTInclude file="leftcol.html"$>
</div>
</body>
</html>
|
file modification time: 2003-12-17 23:18:50