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

NewsCenter single post template

By: mcstevem on Mar 27th, 2012  |  syntax: None  |  size: 1.49 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
  2. /**
  3.  * Singular Template
  4.  *
  5.  * For single-post pages; includes conditional Discovered at Berkeley logo at top
  6.  *
  7.  * @package Hybrid
  8.  * @subpackage Template
  9.  */
  10.  
  11. get_header(); ?>
  12.  
  13.         <div id="content" class="hfeed content">
  14.                 <?php if ( in_category ('discover')) : ?>
  15.                         <a href="<?php bloginfo('url');?>/discovered-at-berkeley/"><img src="http://www.berkeley.edu/news2/logos/datb-banner350.jpg" alt="Discovered at Berkeley" style="margin:10px 0 5px;" /></a>
  16.                 <?php endif; ?>
  17.  
  18.                 <?php hybrid_before_content(); // Before content hook ?>
  19.                
  20.                 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  21.  
  22.                         <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  23.  
  24.                                 <?php hybrid_before_entry(); // Before entry hook ?>
  25.  
  26.                                 <div class="entry-content">
  27.                                         <?php the_content(); ?>
  28.                                         <?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
  29.                                 </div><!-- .entry-content -->
  30.  
  31.                                 <?php hybrid_after_entry(); // After entry hook ?>
  32.  
  33.                         </div><!-- .hentry -->
  34.  
  35.                         <?php hybrid_after_singular(); // After singular hook ?>
  36.  
  37.                         <?php comments_template( '/comments.php', true ); ?>
  38.  
  39.                         <?php endwhile; ?>
  40.  
  41.                 <?php else : ?>
  42.  
  43.                         <p class="no-data">
  44.                                 <?php _e( 'Apologies, but no results were found.', 'hybrid' ); ?>
  45.                         </p><!-- .no-data -->
  46.  
  47.                 <?php endif; ?>
  48.  
  49.                 <?php hybrid_after_content(); // After content hook ?>
  50.  
  51.         </div><!-- .content .hfeed -->
  52.  
  53. <?php get_footer(); ?>
clone this paste RAW Paste Data