/bp-templates/bp-legacy/buddypress/members/single/blogs.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Users Blogs 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. ?> 
  10.  
  11. <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation"> 
  12. <ul> 
  13.  
  14. <?php bp_get_options_nav(); ?> 
  15.  
  16. <li id="blogs-order-select" class="last filter"> 
  17.  
  18. <label for="blogs-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> 
  19. <select id="blogs-order-by"> 
  20. <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 
  21. <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option> 
  22. <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 
  23.  
  24. <?php 
  25.  
  26. /** 
  27. * Fires inside the members blogs order options select input. 
  28. * 
  29. * @since 1.2.0 
  30. */ 
  31. do_action( 'bp_member_blog_order_options' ); ?> 
  32.  
  33. </select> 
  34. </li> 
  35. </ul> 
  36. </div><!-- .item-list-tabs --> 
  37.  
  38. <?php 
  39. switch ( bp_current_action() ) : 
  40.  
  41. // Home/My Blogs 
  42. case 'my-sites' : 
  43.  
  44. /** 
  45. * Fires before the display of member blogs content. 
  46. * 
  47. * @since 1.2.0 
  48. */ 
  49. do_action( 'bp_before_member_blogs_content' ); ?> 
  50.  
  51. <div class="blogs myblogs"> 
  52.  
  53. <?php bp_get_template_part( 'blogs/blogs-loop' ) ?> 
  54.  
  55. </div><!-- .blogs.myblogs --> 
  56.  
  57. <?php 
  58.  
  59. /** 
  60. * Fires after the display of member blogs content. 
  61. * 
  62. * @since 1.2.0 
  63. */ 
  64. do_action( 'bp_after_member_blogs_content' ); 
  65. break; 
  66.  
  67. // Any other 
  68. default : 
  69. bp_get_template_part( 'members/single/plugins' ); 
  70. break; 
  71. endswitch; 
.