PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/lgorence/quickpress
PHP | 67 lines | 31 code | 27 blank | 9 comment | 2 complexity | d23e10aca485078f84b92659f583a2ae MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * Index Template
  4. *
  5. * This is the default template. It is used when a more specific template can't be found to display
  6. * posts. It is unlikely that this template will ever be used, but there may be rare cases.
  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 get_template_part( 'loop-meta' ); ?>
  17. <?php if ( have_posts() ) : ?>
  18. <?php while ( have_posts() ) : the_post(); ?>
  19. <?php do_atomic( 'before_entry' ); // Before entry hook ?>
  20. <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  21. <?php do_atomic( 'open_entry' ); // Open entry hook ?>
  22. <?php echo apply_atomic_shortcode( 'entry_utility', '<div class="entry-utility">' . __( '[entry-popup-shortlink]', 'news' ) . '</div>' ); ?>
  23. <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
  24. <?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>' ); ?>
  25. <div class="entry-content">
  26. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'news' ) ); ?>
  27. <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'news' ), 'after' => '</p>' ) ); ?>
  28. </div><!-- .entry-content -->
  29. <?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>' ); ?>
  30. <?php do_atomic( 'close_entry' ); // Close entry hook ?>
  31. </div><!-- .hentry -->
  32. <?php do_atomic( 'after_entry' ); // After entry hook ?>
  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(); ?>