[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Blogs Loop
   4   *
   5   * @since 3.0.0
   6   * @version 3.0.0
   7   * @version 4.3.0
   8   */
   9  
  10  bp_nouveau_before_loop(); ?>
  11  
  12  <?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
  13  
  14      <?php bp_nouveau_pagination( 'top' ); ?>
  15  
  16      <ul id="blogs-list" class="<?php bp_nouveau_loop_classes(); ?>">
  17  
  18      <?php
  19      while ( bp_blogs() ) :
  20          bp_the_blog();
  21      ?>
  22  
  23          <li <?php bp_blog_class( array( 'item-entry' ) ); ?>>
  24              <div class="list-wrap">
  25  
  26                  <div class="item-avatar">
  27                      <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( bp_nouveau_avatar_args() ); ?></a>
  28                  </div>
  29  
  30                  <div class="item">
  31  
  32                      <div class="item-block">
  33  
  34                          <h2 class="list-title blogs-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></h2>
  35  
  36                          <p class="last-activity item-meta"><?php bp_blog_last_active(); ?></p>
  37  
  38                          <?php if ( bp_nouveau_blog_has_latest_post() ) : ?>
  39                              <p class="meta last-post">
  40  
  41                                  <?php bp_blog_latest_post(); ?>
  42  
  43                              </p>
  44                          <?php endif; ?>
  45  
  46                          <?php bp_nouveau_blogs_loop_buttons( array( 'container' => 'ul' ) ); ?>
  47  
  48                      </div>
  49  
  50                      <?php bp_nouveau_blogs_loop_item(); ?>
  51  
  52                  </div>
  53  
  54  
  55  
  56              </div>
  57          </li>
  58  
  59      <?php endwhile; ?>
  60  
  61      </ul>
  62  
  63      <?php bp_nouveau_pagination( 'bottom' ); ?>
  64  
  65  <?php else : ?>
  66  
  67      <?php bp_nouveau_user_feedback( 'blogs-loop-none' ); ?>
  68  
  69  <?php endif; ?>
  70  
  71  <?php
  72  bp_nouveau_after_loop();


Generated: Sat Jul 20 01:01:39 2019 Cross-referenced by PHPXref 0.7.1