* @package WordPress * @subpackage P2 */ ?> <?php get_header(); ?> <div class="sleeve_main"> <?php if ( p2_user_can_post() && !is_archive() ) : ?> <?php locate_template( array( 'post-form.php' ), true ); ?> <?php endif; ?> <div class="padder"> <div id="main"> <h2 class="recent-updates"> <?php if ( is_home() or is_front_page() ) : ?> <?php _e( 'Recent Updates' , 'p2' ); ?> <?php if ( p2_get_page_number() > 1 ) printf( __( 'Page %s', 'p2' ), p2_get_page_number() ); ?> <?php elseif ( is_author() ) : ?> <?php printf( _x( 'Updates from %s', 'Author name', 'p2' ), p2_get_archive_author() ); ?> <a class="rss" href="<?php p2_author_feed_link(); ?>">RSS</a> <?php elseif ( is_tax( 'mentions' ) ) : ?> <?php printf( _x( 'Posts Mentioning %s', 'Author name', 'p2' ), p2_get_mention_name() ); ?> <a class="rss" href="<?php p2_author_feed_link(); ?>">RSS</a> <?php else : ?> <?php printf( _x( 'Updates from %s', 'Month name', 'p2' ), get_the_time( 'F, Y' ) ); ?>
function p2_page_number() { echo p2_get_page_number(); }
?> <?php } ?> <div id="main"> <h2> <?php if (is_home() or is_front_page()) { ?> <?php _e('Recent Updates', 'p2'); ?> <?php if (p2_get_page_number() > 1) { printf(__('Page %s', 'p2'), p2_get_page_number()); } ?> <?php } else { ?> <?php printf(_x('Updates from %s', 'Month name', 'p2'), get_the_time('F, Y')); ?> <?php } ?>