PageRenderTime 42ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/lgorence/quickpress
PHP | 68 lines | 32 code | 28 blank | 8 comment | 2 complexity | 5d19fde98784996c09ab9277a018115d MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * Page Template
  4. *
  5. * This is the default page template. It is used when a more-specific page template isn't used.
  6. *
  7. * @package News
  8. * @subpackage Template
  9. */
  10. get_header(); ?>
  11. <?php do_atomic( 'before_content' ); // Before content hook ?>
  12. <div id="content">
  13. <?php do_atomic( 'open_content' ); // Open content hook ?>
  14. <div class="hfeed">
  15. <?php if ( have_posts() ) : ?>
  16. <?php while ( have_posts() ) : the_post(); ?>
  17. <?php do_atomic( 'before_loop' ); // Before loop hook ?>
  18. <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  19. <?php do_atomic( 'open_loop' ); // Open loop hook ?>
  20. <?php echo apply_atomic_shortcode( 'entry_utility', '<div class="entry-utility">' . __( '[entry-print-link] [entry-email-link] [entry-popup-shortlink] [entry-edit-link before="| "]', 'news' ) . '</div>' ); ?>
  21. <?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 ) ); ?>
  22. <div class="entry-content">
  23. <?php the_content(); ?>
  24. <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'news' ), 'after' => '</p>' ) ); ?>
  25. </div><!-- .entry-content -->
  26. <?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>' ); ?>
  27. <?php do_atomic( 'close_loop' ); // Close loop hook ?>
  28. </div><!-- .hentry -->
  29. <?php do_atomic( 'after_loop' ); // After loop hook ?>
  30. <?php get_sidebar( 'after-singular' ); ?>
  31. <?php do_atomic( 'after_singular' ); // After singular hook ?>
  32. <?php comments_template( '/comments.php', true ); ?>
  33. <?php endwhile; ?>
  34. <?php endif; ?>
  35. </div><!-- .hfeed -->
  36. <?php do_atomic( 'close_content' ); // Close content hook ?>
  37. <?php get_template_part( 'loop-nav' ); ?>
  38. </div><!-- #content -->
  39. <?php do_atomic( 'after_content' ); // After content hook ?>
  40. <?php get_footer(); ?>