Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 3rd, 2012  |  syntax: PHP  |  size: 3.12 KB  |  views: 57  |  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.  
  3.     <?php if ( have_posts() ) : ?>
  4.         <?php while ( have_posts() ) : the_post(); ?>
  5.  
  6.         <div class="content-title">
  7.             <?php the_category(' <span>/</span> '); ?>
  8.             <a href="http://facebook.com/share.php?u=<?php the_permalink() ?>&amp;t=<?php echo urlencode(the_title('','', false)) ?>" target="_blank" class="f" title="Share on Facebook"></a>
  9.             <a href="http://twitter.com/home?status=<?php the_title(); ?> <?php echo getTinyUrl(get_permalink($post->ID)); ?>" target="_blank" class="t" title="Spread the word on Twitter"></a>
  10.             <a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>" target="_blank" class="di" title="Bookmark on Del.icio.us"></a>
  11.             <a href="http://stumbleupon.com/submit?url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>" target="_blank" class="su" title="Share on StumbleUpon"></a>
  12.         </div>
  13.  
  14.         <div class="entry">
  15.             <div <?php post_class('single clear'); ?> id="post_<?php the_ID(); ?>">
  16.                 <div class="post-meta">
  17.                     <h1><?php the_title(); ?></h1>
  18.                     by <span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span> on <span
  19.                         class="post-date"><?php the_time(__('M j, Y')) ?></span> &bull; <span><?php the_time() ?></span> <?php edit_post_link( __( 'Edit entry'), '&bull; '); ?><a
  20.                         href="#comments" class="post-comms"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed') ); ?></a></div>
  21.                 <div class="post-content"><?php the_content(); ?></div>
  22.                 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  23.                 <div class="post-footer"><?php the_tags(__('<strong>Tags: </strong>'), ', '); ?></div>
  24.             </div>
  25.             <div class="post-navigation clear">
  26.                 <?php
  27.                     $prev_post = get_adjacent_post(false, '', true);
  28.                     $next_post = get_adjacent_post(false, '', false); ?>
  29.                     <?php if ($prev_post) : $prev_post_url = get_permalink($prev_post->ID); $prev_post_title = $prev_post->post_title; ?>
  30.                         <a class="post-prev" href="<?php echo $prev_post_url; ?>"><em>Previous post</em><span><?php echo $prev_post_title; ?></span></a>
  31.                     <?php endif; ?>
  32.                     <?php if ($next_post) : $next_post_url = get_permalink($next_post->ID); $next_post_title = $next_post->post_title; ?>
  33.                         <a class="post-next" href="<?php echo $next_post_url; ?>"><em>Next post</em><span><?php echo $next_post_title; ?></span></a>
  34.                     <?php endif; ?>
  35.                 <div class="line"></div>
  36.             </div>
  37.         </div>
  38.  
  39.         <?php endwhile; ?>
  40.     <?php endif; ?>
  41.  
  42. <?php comments_template(); ?>
  43.  
  44. <?php get_footer(); ?>