[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/ -> blogs.php (source)

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


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1