Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 10th, 2012  |  syntax: PHP  |  size: 1.16 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php get_header(); ?>
  2. <?php if(have_posts()){?>
  3.  <div id="content">
  4.         <?php while (have_posts()) : the_post();?>
  5.         <article class="post clearfix">
  6.             <header>
  7.                 <h1 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  8.                 <div class="post-comments"><?php comments_number('0', '1', '%'); ?> comments</div>
  9.                 <div class="whoWrote">Author of this post: <?php the_author_link(); ?></div>
  10.                 <div class="dateWrote"><?php the_time('F, jS, Y'); ?></div>
  11.                 <div class="headlineLine"></div>
  12.             </header>
  13.             <div class="imgPost">
  14.                 <?php if(get_the_post_thumbnail($post_id) != ''){
  15.                                 ?>
  16.                 <figure class="soft-embossed post-image">
  17.                         <?php the_post_thumbnail(); ?>
  18.                 </figure>
  19.                 <?php } ?>
  20.             </div>
  21.             <p><?php the_content( __('<div class="readMore">Read More...</div>', true)); ?></p>
  22.             <div class="bottomLine"></div>
  23.    </article>
  24.  </div>
  25.  <?php endwhile;
  26.         }else{
  27.                 aisis_error();
  28.         }?>
  29.         <?php get_sidebar(); ?>
  30.         <?php get_footer(); ?>