Byrne Reese
By: a guest | Jul 15th, 2009 | Syntax:
HTML | Size: 2.35 KB | Hits: 310 | Expires: Never
<!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">
<$mt:include module="HTML Head"$>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTLink template="rsd"$>" />
<script src="http://stats.thatcriticguy.com/?js" type="text/javascript"></script>
<body id="<$mt:BlogTemplateSetID$>" class="mt-main-index
<$MTVar name="page_layout"$>">
<div id="container-inner">
<$mt:include module="Banner Header"$>
<mt:var name="currentp" value="0">
<mt:var name="limit" value="10">
<mt:var name="lastn" value="30"><?php
$page = $_REQUEST['p'];
if (!isset($page)) { $page = 1; }
?>
<mt:Entries lastn="$lastn">
<mt:setvarblock name="page"><mt:getvar name="__counter__" op="mod" value="$limit"></mt:setvarblock>
<mt:if name="page" eq="1">
<mt:setvar name="currentp" op="add" value="1">
<mt:if name="currentp" gt="1"><?php } ?></mt:if>
<?php if ($page == <$mt:var name="currentp"$>) { ?>
</mt:if>
<$mt:include module="Entry Summary"$>
<mt:if name="__last__"><?php } ?></mt:if>
</mt:Entries>
<?php
$limit = <mt:var name="limit">;
$page_count = <mt:var name="currentp">;
if ($page < $page_count) {
echo '<a id="next-page" href="?p='.($page + 1).'">« Older Posts
</a>';
}
if ($page > 1) {
echo '
<a id="prev-page" href="?p='.($page - 1).'">Newer Posts
»</a>';
}
?>
<div class="content-nav">
<a href="<$mt:Link template="archive_index"$>">Archives
</a>
<$MTInclude module="Sidebar"$>
<$mt:include module="Banner Footer"$>
<div id="dialog"><div id="dialog-inner">
<div id="dialog-content"></div>
<a href="javascript:dialogClose();" id="dialog-close">Close
</a>