[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Blogs
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires at the top of the blogs directory template file.
  12   *
  13   * @since 2.3.0
  14   */
  15  do_action( 'bp_before_directory_blogs_page' ); ?>
  16  
  17  <div id="buddypress">
  18  
  19      <?php
  20  
  21      /**
  22       * Fires before the display of the blogs.
  23       *
  24       * @since 1.5.0
  25       */
  26      do_action( 'bp_before_directory_blogs' ); ?>
  27  
  28      <?php
  29  
  30      /**
  31       * Fires before the display of the blogs listing content.
  32       *
  33       * @since 1.1.0
  34       */
  35      do_action( 'bp_before_directory_blogs_content' ); ?>
  36  
  37      <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
  38      <?php if ( has_filter( 'bp_directory_blogs_search_form' ) ) : ?>
  39  
  40          <div id="blog-dir-search" class="dir-search" role="search">
  41              <?php bp_directory_blogs_search_form(); ?>
  42          </div><!-- #blog-dir-search -->
  43  
  44      <?php else : ?>
  45  
  46          <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
  47  
  48      <?php endif; ?>
  49  
  50      <?php
  51  
  52      /**
  53       * Fires before the display of the blogs list tabs.
  54       *
  55       * @since 2.3.0
  56       */
  57      do_action( 'bp_before_directory_blogs_tabs' ); ?>
  58  
  59      <form action="" method="post" id="blogs-directory-form" class="dir-form">
  60  
  61          <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Sites directory main navigation', 'buddypress' ); ?>" role="navigation">
  62              <ul>
  63                  <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?></a></li>
  64  
  65                  <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
  66  
  67                      <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug(); ?>"><?php printf( __( 'My Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
  68  
  69                  <?php endif; ?>
  70  
  71                  <?php
  72  
  73                  /**
  74                   * Fires inside the unordered list displaying blog types.
  75                   *
  76                   * @since 1.2.0
  77                   */
  78                  do_action( 'bp_blogs_directory_blog_types' ); ?>
  79  
  80              </ul>
  81          </div><!-- .item-list-tabs -->
  82  
  83          <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Sites directory secondary navigation', 'buddypress' ); ?>" role="navigation">
  84              <ul>
  85  
  86                  <?php
  87  
  88                  /**
  89                   * Fires inside the unordered list displaying blog sub-types.
  90                   *
  91                   * @since 1.5.0
  92                   */
  93                  do_action( 'bp_blogs_directory_blog_sub_types' ); ?>
  94  
  95                  <li id="blogs-order-select" class="last filter">
  96  
  97                      <label for="blogs-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
  98                      <select id="blogs-order-by">
  99                          <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
 100                          <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>
 101                          <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
 102  
 103                          <?php
 104  
 105                          /**
 106                           * Fires inside the select input listing blogs orderby options.
 107                           *
 108                           * @since 1.2.0
 109                           */
 110                          do_action( 'bp_blogs_directory_order_options' ); ?>
 111  
 112                      </select>
 113                  </li>
 114              </ul>
 115          </div>
 116  
 117          <h2 class="bp-screen-reader-text"><?php
 118              /* translators: accessibility text */
 119              _e( 'Sites directory', 'buddypress' );
 120          ?></h2>
 121  
 122          <div id="blogs-dir-list" class="blogs dir-list">
 123  
 124              <?php bp_get_template_part( 'blogs/blogs-loop' ); ?>
 125  
 126          </div><!-- #blogs-dir-list -->
 127  
 128          <?php
 129  
 130          /**
 131           * Fires inside and displays the blogs content.
 132           *
 133           * @since 1.1.0
 134           */
 135          do_action( 'bp_directory_blogs_content' ); ?>
 136  
 137          <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
 138  
 139          <?php
 140  
 141          /**
 142           * Fires after the display of the blogs listing content.
 143           *
 144           * @since 1.1.0
 145           */
 146          do_action( 'bp_after_directory_blogs_content' ); ?>
 147  
 148      </form><!-- #blogs-directory-form -->
 149  
 150      <?php
 151  
 152      /**
 153       * Fires at the bottom of the blogs directory template file.
 154       *
 155       * @since 1.5.0
 156       */
 157      do_action( 'bp_after_directory_blogs' ); ?>
 158  
 159  </div>
 160  
 161  <?php
 162  
 163  /**
 164   * Fires at the bottom of the blogs directory template file.
 165   *
 166   * @since 2.3.0
 167   */
 168  do_action( 'bp_after_directory_blogs_page' );


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