<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="meta">
<ul>
<li class="time"><?php the_time('F j, Y') ?></li>
<li class="category"><?php the_category(', ') ?></li>
<li class="comments"><?php comments_popup_link('0 comments', '1 comment', '% comments'); ?></li>
<?php edit_post_link('Edit', '<li>', ' </li> '); ?>
</ul>
</div>
<?php if ($wpzoom_twitter_button == 'Yes') { ?>
<div class="retweet">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink() ?>';
tweetmeme_style = 'compact';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
<?php } ?>
<div class="clear"></div>
<?php the_content(''); ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<p class="pages tabs">Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php the_tags( '<p class="tags tabs">Tags: ', ' ', '</p>'); ?>
<div class="clear"></div>
</div>
<div id="authorbio">
<div id="authorpic"><?php echo get_avatar( get_the_author_id() , 70 ); ?></div>
<h3>Author: <?php the_author_posts_link(' '); ?> </h3>
<small><a href="<?php the_author_url(); ?>">visit my website</a></small>
<p><?php the_author_description(); ?></p>
</div>
<div class="post">
<div class="afterpost">
<div class="related">
<h3>Related Posts</h3>
<ul>
<?php wp_related_posts(); ?>
</ul>
</div>
<div class="share">
<h3>Share this Article</h3>
<ul>
<li class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" rel="external,nofollow" target="_blank">Share on Facebook</a></li>
<li class="twitter"><a href="http://twitter.com/home?status=Reading on <?php bloginfo('name') ?> - <?php the_title(); ?> <?php the_permalink(); ?>" rel="external,nofollow" target="_blank">Tweet This!</a></li>
<li class="delicious"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="external,nofollow" target="_blank">Save to delicious</a></li>
<li class="digg"><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title();?>" rel="external,nofollow" target="_blank">Digg it!</a></li>
<li class="stumble"><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="external,nofollow" target="_blank">Stumble this!</a></li>
</ul>
</div>
<div class="clear"></div>
</div> <!-- end afterpost -->
<div class="afterpost">
<?php comments_template(); ?>
</div> <!-- end afterpost -->
</div> <!-- end post -->
<?php endwhile; ?>
</div> <!-- end content -->
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>