[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Blogs Loop
   4   *
   5   * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter().
   6   *
   7   * @package BuddyPress
   8   * @subpackage bp-legacy
   9   * @version 3.0.0
  10   */
  11  
  12  /**
  13   * Fires before the start of the blogs loop.
  14   *
  15   * @since 1.2.0
  16   */
  17  do_action( 'bp_before_blogs_loop' ); ?>
  18  
  19  <?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
  20  
  21      <div id="pag-top" class="pagination">
  22  
  23          <div class="pag-count" id="blog-dir-count-top">
  24              <?php bp_blogs_pagination_count(); ?>
  25          </div>
  26  
  27          <div class="pagination-links" id="blog-dir-pag-top">
  28              <?php bp_blogs_pagination_links(); ?>
  29          </div>
  30  
  31      </div>
  32  
  33      <?php
  34  
  35      /**
  36       * Fires before the blogs directory list.
  37       *
  38       * @since 1.1.0
  39       */
  40      do_action( 'bp_before_directory_blogs_list' ); ?>
  41  
  42      <ul id="blogs-list" class="item-list">
  43  
  44      <?php while ( bp_blogs() ) : bp_the_blog(); ?>
  45  
  46          <li <?php bp_blog_class() ?>>
  47              <div class="item-avatar">
  48                  <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a>
  49              </div>
  50  
  51              <div class="item">
  52                  <div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div>
  53                  <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div>
  54  
  55                  <?php
  56  
  57                  /**
  58                   * Fires after the listing of a blog item in the blogs loop.
  59                   *
  60                   * @since 1.2.0
  61                   */
  62                  do_action( 'bp_directory_blogs_item' ); ?>
  63              </div>
  64  
  65              <div class="action">
  66  
  67                  <?php
  68  
  69                  /**
  70                   * Fires inside the blogs action listing area.
  71                   *
  72                   * @since 1.1.0
  73                   */
  74                  do_action( 'bp_directory_blogs_actions' ); ?>
  75  
  76                  <div class="meta">
  77  
  78                      <?php bp_blog_latest_post(); ?>
  79  
  80                  </div>
  81  
  82              </div>
  83  
  84              <div class="clear"></div>
  85          </li>
  86  
  87      <?php endwhile; ?>
  88  
  89      </ul>
  90  
  91      <?php
  92  
  93      /**
  94       * Fires after the blogs directory list.
  95       *
  96       * @since 1.1.0
  97       */
  98      do_action( 'bp_after_directory_blogs_list' ); ?>
  99  
 100      <?php bp_blog_hidden_fields(); ?>
 101  
 102      <div id="pag-bottom" class="pagination">
 103  
 104          <div class="pag-count" id="blog-dir-count-bottom">
 105  
 106              <?php bp_blogs_pagination_count(); ?>
 107  
 108          </div>
 109  
 110          <div class="pagination-links" id="blog-dir-pag-bottom">
 111  
 112              <?php bp_blogs_pagination_links(); ?>
 113  
 114          </div>
 115  
 116      </div>
 117  
 118  <?php else: ?>
 119  
 120      <div id="message" class="info">
 121          <p><?php _e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p>
 122      </div>
 123  
 124  <?php endif; ?>
 125  
 126  <?php
 127  
 128  /**
 129   * Fires after the display of the blogs loop.
 130   *
 131   * @since 1.2.0
 132   */
 133  do_action( 'bp_after_blogs_loop' );


Generated: Fri Apr 26 01:01:11 2024 Cross-referenced by PHPXref 0.7.1