function pagination() { $perPage = 2; $pageCount = ceil(PostCount() / $perPage); for ($i = 1; $i <= $pageCount; $i++) { echo "<li><a href=\"index.php?page={$i}\">{$i}</a></li>"; } }
</aside> <!-- Content --> <div class="pagecontent"> <div class="content"> <?php while (have_posts()) { the_post(); ?> <?php the_content(); ?> <h2><?php bloginfo('name'); _e('下目前共有文章:', 'tinection'); echo PostCount(); _e('篇', 'tinection'); ?> </h2> <?php tin_archives_list(); ?> <?php $singlebottomad = ot_get_option('singlebottomad'); if (!empty($singlebottomad)) { ?> <div id="singlebottom-banner"> <?php echo ot_get_option('singlebottomad'); ?> </div>