Beispiel #1
0
	<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' ) ); ?>
		
			<?php endif; ?>
	
			<span class="controls">
				<a href="#" id="togglecomments"> <?php _e( 'Toggle Comment Threads', 'p2' ); ?></a> | <a href="#directions" id="directions-keyboard"><?php _e( 'Keyboard Shortcuts', 'p2' ); ?></a>
			</span>
		</h2>
			
		<?php do_action( 'bp_before_blog_home' ) ?>

		
Beispiel #2
0
    ?>
	<?php 
}
?>
	<div id="main">

		<?php 
if (have_posts()) {
    ?>

		<h2>
			<?php 
    printf(_x('Updates from %s', 'Author name', 'p2'), p2_get_archive_author());
    ?>
			<a class="rss" href="<?php 
    p2_author_feed_link();
    ?>
">RSS</a>

			<span class="controls">
				<a href="#" id="togglecomments"> <?php 
    _e('Toggle Comment Threads', 'p2');
    ?>
</a> | <a href="#directions" id="directions-keyboard"><?php 
    _e('Keyboard Shortcuts', 'p2');
    ?>
</a>
			</span>
		</h2>

		<ul id="postlist">