Advertisement
Guest User

Single PHP MM

a guest
Jul 5th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <!--BEGIN .page-header -->
  4. <div class="page-header">
  5. <?php $blog = get_post(get_option('page_for_posts')); ?>
  6. <h1 class="page-title"><?php echo $blog->post_title; ?></h1>
  7. <!--END .page-header -->
  8. </div>
  9.  
  10. <!--BEGIN #primary .hfeed-->
  11. <div id="primary" class="hfeed">
  12. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13.  
  14. <!--BEGIN .hentry -->
  15. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  16.  
  17. <!--BEGIN .entry-meta -->
  18. <div class="entry-meta">
  19. <span class="post-format"></span>
  20.  
  21. <?php
  22. $format = get_post_format();
  23. if( false === $format ) { $format = 'standard'; }
  24. if( $format == 'standard' || $format == 'gallery' || $format == 'image' || $format == 'video' || $format == 'audio' ) {
  25. ?>
  26.  
  27. <h5><?php _e('Posted:', 'framework'); ?></h5>
  28. <span class="published"><?php the_time( get_option('date_format') ); ?></span>
  29.  
  30.  
  31.  
  32. <h5><?php _e('Comments:', 'framework'); ?></h5>
  33. <span class="comment-count"><?php comments_popup_link(0, 1, '%'); ?></span>
  34.  
  35. <?php } ?>
  36.  
  37. <?php if( is_user_logged_in() ) { echo '<h5>' . __('Edit', 'framework') . '</h5>'; } ?>
  38. <?php edit_post_link( __('edit', 'framework'), '<span class="edit-post">[', ']</span>' ); ?>
  39. <!--END .entry-meta -->
  40. </div>
  41.  
  42. <?php get_template_part( 'includes/' . $format ); ?>
  43.  
  44. <!--BEGIN .entry-content -->
  45. <div class="entry-content">
  46. <?php the_content(__('Read more...', 'framework')); ?>
  47. <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:', 'framework').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  48. <!--INSERT POST ENDING AFTER THIS SPACE --><?php the_tags('' . __('<h5>Tags:</h5>', 'framework') . ' ', ', ', '</span>' ); ?>
  49. <!--END .entry-content -->
  50. </div>
  51.  
  52. <!--END .hentry-->
  53. </div>
  54.  
  55. <?php comments_template('', true); ?>
  56.  
  57. <?php endwhile; ?>
  58.  
  59. <!--BEGIN .navigation .single-page-navigation -->
  60. <div class="navigation single-page-navigation">
  61. <div class="nav-previous"><?php previous_post_link('&larr; %link') ?></div>
  62. <div class="nav-next"><?php next_post_link('%link &rarr;') ?></div>
  63. <!--END .navigation .single-page-navigation -->
  64. </div>
  65.  
  66. <?php else: ?>
  67.  
  68. <!--BEGIN #post-0-->
  69. <div id="post-0" <?php post_class() ?>>
  70.  
  71. <h1 class="entry-title"><?php _e('Error 404 - Not Found', 'framework') ?></h1>
  72.  
  73. <!--BEGIN .entry-content-->
  74. <div class="entry-content">
  75. <p><?php _e("Sorry, but you are looking for something that isn't here.", "framework") ?></p>
  76. <!--END .entry-content-->
  77. </div>
  78.  
  79. <!--END #post-0-->
  80. </div>
  81.  
  82. <?php endif; ?>
  83. <!--END #primary .hfeed-->
  84. </div>
  85.  
  86. <?php get_sidebar(); ?>
  87.  
  88. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement