PageRenderTime 37ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/news/singular.php

https://bitbucket.org/lgorence/quickpress
PHP | 71 lines | 33 code | 29 blank | 9 comment | 2 complexity | bf84ad994da750341bf6cdc2a52da8d1 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * Singular Template
  4. *
  5. * This is the default singular template. It is used when a more specific template can't be found to display
  6. * singular views of posts (any post type).
  7. *
  8. * @package News
  9. * @subpackage Template
  10. */
  11. get_header(); ?>
  12. <?php do_atomic( 'before_content' ); // Before content hook ?>
  13. <div id="content">
  14. <?php do_atomic( 'open_content' ); // Open content hook ?>
  15. <div class="hfeed">
  16. <?php if ( have_posts() ) : ?>
  17. <?php while ( have_posts() ) : the_post(); ?>
  18. <?php do_atomic( 'before_loop' ); // Before loop hook ?>
  19. <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  20. <?php do_atomic( 'open_loop' ); // Open loop hook ?>
  21. <?php echo apply_atomic_shortcode( 'entry_utility', '<div class="entry-utility">' . __( '[entry-print-link] [entry-email-link] [entry-popup-shortlink]', 'news' ) . '</div>' ); ?>
  22. <?php echo apply_atomic( 'entry_title', the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h1>', false ) ); ?>
  23. <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-terms taxonomy="category" before=" in "] [entry-edit-link before=" | "]', 'news' ) . '</div>' ); ?>
  24. <div class="entry-content">
  25. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'news' ) ); ?>
  26. <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'news' ), 'after' => '</p>' ) ); ?>
  27. </div><!-- .entry-content -->
  28. <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '<span class="share">Share this on:</span> [entry-mixx-link] [entry-delicious-link] [entry-digg-link] [entry-facebook-link] [entry-twitter-link]', 'news' ) . '</div>' ); ?>
  29. <?php do_atomic( 'close_loop' ); // Close loop hook ?>
  30. </div><!-- .hentry -->
  31. <?php do_atomic( 'after_loop' ); // After loop hook ?>
  32. <?php get_sidebar( 'after-singular' ); ?>
  33. <?php do_atomic( 'after_singular' ); // After singular hook ?>
  34. <?php comments_template( '/comments.php', true ); ?>
  35. <?php endwhile; ?>
  36. <?php endif; ?>
  37. </div><!-- .hfeed -->
  38. <?php do_atomic( 'close_content' ); // Close content hook ?>
  39. <?php get_template_part( 'loop-nav' ); ?>
  40. </div><!-- #content -->
  41. <?php do_atomic( 'after_content' ); // After content hook ?>
  42. <?php get_footer(); ?>