[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Groups Loop
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  
   9  bp_nouveau_before_loop(); ?>
  10  
  11  <?php if ( bp_get_current_group_directory_type() ) : ?>
  12      <p class="current-group-type"><?php bp_current_group_directory_type_message(); ?></p>
  13  <?php endif; ?>
  14  
  15  <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
  16  
  17      <?php bp_nouveau_pagination( 'top' ); ?>
  18  
  19      <ul id="groups-list" class="<?php bp_nouveau_loop_classes(); ?>">
  20  
  21      <?php
  22      while ( bp_groups() ) :
  23          bp_the_group();
  24      ?>
  25  
  26          <li <?php bp_group_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php bp_group_id(); ?>" data-bp-item-component="groups">
  27              <div class="list-wrap">
  28  
  29                  <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
  30                      <div class="item-avatar">
  31                          <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( bp_nouveau_avatar_args() ); ?></a>
  32                      </div>
  33                  <?php endif; ?>
  34  
  35                  <div class="item">
  36  
  37                      <div class="item-block">
  38  
  39                          <h2 class="list-title groups-title"><?php bp_group_link(); ?></h2>
  40  
  41                          <?php if ( bp_nouveau_group_has_meta() ) : ?>
  42  
  43                              <p class="item-meta group-details"><?php bp_nouveau_group_meta(); ?></p>
  44  
  45                          <?php endif; ?>
  46  
  47                          <p class="last-activity item-meta">
  48                              <?php
  49                              printf(
  50                                  /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
  51                                  __( 'active %s', 'buddypress' ),
  52                                  bp_get_group_last_active()
  53                              );
  54                              ?>
  55                          </p>
  56  
  57                      </div>
  58  
  59                      <div class="group-desc"><p><?php bp_nouveau_group_description_excerpt(); ?></p></div>
  60  
  61                      <?php bp_nouveau_groups_loop_item(); ?>
  62  
  63                      <?php bp_nouveau_groups_loop_buttons(); ?>
  64  
  65                  </div>
  66  
  67  
  68              </div>
  69          </li>
  70  
  71      <?php endwhile; ?>
  72  
  73      </ul>
  74  
  75      <?php bp_nouveau_pagination( 'bottom' ); ?>
  76  
  77  <?php else : ?>
  78  
  79      <?php bp_nouveau_user_feedback( 'groups-loop-none' ); ?>
  80  
  81  <?php endif; ?>
  82  
  83  <?php
  84  bp_nouveau_after_loop();


Generated: Fri Jul 19 01:01:43 2019 Cross-referenced by PHPXref 0.7.1