Guest User

Untitled

a guest
Aug 21st, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage PulsePress
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8.  
  9. <div class="sleeve_main">
  10. <?php if ( pulse_press_user_can_post() && !is_archive() ) : ?>
  11. <?php locate_template( array( 'post-form.php' ), true ); ?>
  12. <?php endif; ?>
  13. <div id="main">
  14. <h2 class="index-title">
  15. <?php if ( is_author() ) : ?>
  16.  
  17. <?php printf( _x( 'Updates from %s', 'Author name', 'pulse_press' ), pulse_press_get_archive_author() ); ?>
  18. <a class="rss" href="<?php pulse_press_author_feed_link(); ?>">RSS</a>
  19.  
  20. <?php elseif ( is_tax( 'mentions' ) ) : ?>
  21.  
  22. <?php printf( _x( 'Posts Mentioning %s', 'Author name', 'pulse_press' ), pulse_press_get_mention_name() ); ?>
  23. <a class="rss" href="<?php pulse_press_author_feed_link(); ?>">RSS</a>
  24. <?php elseif ( is_category() ) : ?>
  25. <?php single_cat_title(); ?> <?php if ( pulse_press_get_page_number() > 1 ) printf( __( 'Page %s', 'pulse_press' ), pulse_press_get_page_number() ); ?>
  26. <?php elseif(is_day()) : ?>
  27.  
  28. <?php printf( _x( 'Updates from %s', 'Month name', 'pulse_press' ), get_the_time( 'l jS F , Y' ) ); ?>
  29.  
  30. <?php endif; ?>
  31.  
  32. <span class="controls">
  33. <a href="#" id="togglecomments"> <?php _e( 'Toggle Comment Threads', 'pulse_press' ); ?></a> | <a href="#directions" id="directions-keyboard"><?php _e( 'Keyboard Shortcuts', 'pulse_press' ); ?></a>
  34. </span>
  35. </h2>
  36.  
  37. <?php
  38.  
  39. if(isset($_GET['starred'])):
  40. $paged = pulse_press_get_page_number();
  41. query_posts(array('post__in'=>pulse_press_get_user_starred_post_meta(), 'paged'=>$paged));
  42. endif;
  43.  
  44.  
  45. ?>
  46.  
  47. <ul id="postlist">
  48. <?php if ( have_posts() ) : ?>
  49.  
  50. <?php while ( have_posts() ) : the_post(); ?>
  51. <?php pulse_press_load_entry() // loads entry.php ?>
  52. <?php endwhile; ?>
  53.  
  54. <?php else : ?>
  55.  
  56. <li class="no-posts">
  57. <h3><?php _e( 'No posts yet!', 'pulse_press' ); ?></h3>
  58. </li>
  59.  
  60. <?php endif; ?>
  61. </ul>
  62.  
  63.  
  64. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  65. <div class="navigation">
  66. <p class="nav-older"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'pulse_press' ) ); ?></p>
  67. <p class="nav-newer"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'pulse_press' ) ); ?></p>
  68. </div>
  69. <?php endif; ?>
  70.  
  71. </div> <!-- main -->
  72.  
  73. </div> <!-- sleeve -->
  74.  
  75. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment