Advertisement
Guest User

Wordpress Stinks

a guest
Jan 18th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.01 KB | None | 0 0
  1. <?php get_header(); ?>
  2.         <div class="outer" id="contentwrap">
  3.             <div class="postcont">
  4.                 <div id="content"> 
  5.                 <?php if(is_home()) { include (TEMPLATEPATH . '/featured.php'); } ?>       
  6.                     <?php if (have_posts()) : ?>   
  7.                         <?php while (have_posts()) : the_post(); ?>
  8.                        
  9.                         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  10.                             <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(260,200), array("class" => "alignleft post_thumbnail")); } ?>
  11.                             <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  12.                             <div class="postdate"><img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('F jS, Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?>  <img src="<?php bloginfo('template_url'); ?>/images/comments.png" /> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> <img src="<?php bloginfo('template_url'); ?>/images/edit.png" /> <?php edit_post_link('Edit', '', ''); } ?></div>
  13.            
  14.                             <div class="entry">
  15.                                 <?php the_content('<strong>Read more &raquo;</strong>'); ?>
  16.                             </div>
  17.                         </div><!--/post-<?php the_ID(); ?>-->
  18.                
  19.                 <?php endwhile; ?>
  20.                 <div class="navigation">
  21.                     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
  22.                     <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  23.                     <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  24.                     <?php } ?>
  25.                 </div>
  26.                 <?php else : ?>
  27.                     <h2 class="center">Not Found</h2>
  28.                     <p class="center">Sorry, but you are looking for something that isn't here.</p>
  29.                     <?php get_search_form(); ?>
  30.            
  31.                 <?php endif; ?>
  32.                 </div>
  33.             </div>
  34.        
  35.         <?php get_sidebars(); ?>
  36.     </div>
  37. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement