bp_blogs_blog_tabs

Output navigation tabs for a user Blogs page.

Description

bp_blogs_blog_tabs(); 

Currently unused by BuddyPress.


Usage

  1. if ( !function_exists( 'bp_blogs_blog_tabs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_blogs_blog_tabs(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-blogs/bp-blogs-template.php  
  1. function bp_blogs_blog_tabs() { 
  2.  
  3. // Don't show these tabs on a user's own profile. 
  4. if ( bp_is_my_profile() ) { 
  5. return false; 
  6. } ?> 
  7.  
  8. <ul class="content-header-nav"> 
  9. <li<?php if ( bp_is_current_action( 'my-blogs' ) || !bp_current_action() ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/my-blogs' ); ?>"><?php printf( __( "%s's Sites", buddypress ), bp_get_displayed_user_fullname() ); ?></a></li> 
  10. <li<?php if ( bp_is_current_action( 'recent-posts' ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/recent-posts' ); ?>"><?php printf( __( "%s's Recent Posts", buddypress ), bp_get_displayed_user_fullname() ); ?></a></li> 
  11. <li<?php if ( bp_is_current_action( 'recent-comments' ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/recent-comments' ); ?>"><?php printf( __( "%s's Recent Comments", buddypress ), bp_get_displayed_user_fullname() ); ?></a></li> 
  12. </ul> 
  13.  
  14. <?php 
  15.  
  16. /** 
  17. * Fires after the markup for the navigation tabs for a user Blogs page. 
  18. * @since 1.0.0 
  19. */