pastebin

Paste Search Dynamic
Recent pastes
single
  1. <?php get_header(); ?>
  2.         <div id="content_box">
  3.                 <div id="left_box">
  4.                         <div id="content">
  5.                                 <div id="content_inner">
  6. <?php
  7.                                 if (have_posts()) :
  8.                                         while (have_posts()) : the_post(); ?>
  9.                                          
  10.                                         <h1><?php the_title(); ?></h1>
  11.                                         <p class="post_author"><em>by</em> <?php the_author();  edit_post_link(' [ Edit ]','','');?></p>
  12.                                 <div class="format_text">
  13.                                 <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
  14.                                 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
  15.  
  16.                                 <?php
  17.                                  global $post;
  18.                                  $id = $post->ID;
  19.  
  20.                                  echo '<a target="_blank" href="http://www.facebook.com/sharer.php?u=http://io9.in/' .$id. '&amp;t=' .the_title('','',false).  '" title="Share this post on Facebook">Share on Facebook</a>';
  21.                                  echo '<a target="_blank" href="http://twitter.com/?status=' .the_title('','',false). ' http://io9.in/' .$id. '" title="Tweet this post">Share on Tweeter</a>';
  22.                                 ?>
  23.  
  24.                                         </div>
  25.                
  26.                                 </div>
  27.                
  28.                                 <?php comments_template(); ?>
  29.                                 <p><?php the_tags('<strong>Tags: </strong>', ', ',''); ?></p>
  30. <?php
  31.                                         endwhile;
  32.                                 else: ?>
  33.        
  34.                                         <h1>Uh oh.</h1>
  35.                                         <div class="format_text">
  36.                                                 <p>Sorry, no posts matched your criteria. Wanna search instead?</p>
  37. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  38.                                         </div>
  39.                                
  40.                                 </div>
  41. <?php
  42.                                 endif; ?>
  43.                
  44.                         </div>
  45.                
  46.                         <?php include (TEMPLATEPATH . '/left_bar.php')?>
  47.        
  48.                 </div>
  49.        
  50.                 <?php get_sidebar(); ?>
  51.                
  52.         </div>
  53.  
  54. <?php get_footer(); ?>
Parsed in 0.080 seconds