
Untitled
By: a guest on
Apr 10th, 2012 | syntax:
PHP | size: 1.16 KB | hits: 26 | expires: Never
<?php get_header(); ?>
<?php if(have_posts()){?>
<div id="content">
<?php while (have_posts()) : the_post();?>
<article class="post clearfix">
<header>
<h1 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<div class="post-comments"><?php comments_number('0', '1', '%'); ?> comments</div>
<div class="whoWrote">Author of this post: <?php the_author_link(); ?></div>
<div class="dateWrote"><?php the_time('F, jS, Y'); ?></div>
<div class="headlineLine"></div>
</header>
<div class="imgPost">
<?php if(get_the_post_thumbnail($post_id) != ''){
?>
<figure class="soft-embossed post-image">
<?php the_post_thumbnail(); ?>
</figure>
<?php } ?>
</div>
<p><?php the_content( __('<div class="readMore">Read More...</div>', true)); ?></p>
<div class="bottomLine"></div>
</article>
</div>
<?php endwhile;
}else{
aisis_error();
}?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>