rendered paste body<?php get_header(); ?>
<?php $showauthor = thirteen_showauthor(); $dateformat = thirteen_dateformat(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php $i = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="postdate">
<?php if ($dateformat == 'default') {
the_time(get_settings('date_format'));
} else {
the_time('F jS, Y');
} ?>
<?php _e('at'); ?> <?php the_time() ?>
<?php if ($showauthor == 'true') {
_e('by'); echo ' '; the_author_posts_link();
} ?>
(<?php the_category(', ') ?>)
<?php edit_post_link(__('Edit'),' · ',''); ?>
</p>
<div class="postentry">
<?php the_content(__('Read the rest of this entry »')); ?>
</div>
<p class="postmeta">
<?php comments_popup_link('Comments', '1 Comments', '% Comments'); ?>
</p>
<?php $i++;
if($i%3 == 0 && %i <=9) {
//Place your ad code below here
}; ?>
</div>
<?php endwhile; ?>
<div class="postnav">
<div class="prev"><?php next_posts_link(__('« Previous Entries')) ?></div>
<div class="next"><?php previous_posts_link(__('Next Entries »')) ?></div>
</div>
<?php else : ?>
<h2 class="posttitle"><?php _e('Not Found'); ?></h2>
<p><?php _e('Sorry, but no posts matched your criteria.'); ?></p>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>