[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress - Groups Loop 4 * 5 * @since 3.0.0 6 * @version 7.0.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 while ( bp_groups() ) : bp_the_group(); ?> 22 23 <li <?php bp_group_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php bp_group_id(); ?>" data-bp-item-component="groups"> 24 <div class="list-wrap"> 25 26 <?php if ( ! bp_disable_group_avatar_uploads() ) : ?> 27 <div class="item-avatar"> 28 <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( bp_nouveau_avatar_args() ); ?></a> 29 </div> 30 <?php endif; ?> 31 32 <div class="item"> 33 34 <div class="item-block"> 35 36 <h2 class="list-title groups-title"><?php bp_group_link(); ?></h2> 37 38 <?php if ( bp_nouveau_group_has_meta() ) : ?> 39 40 <p class="item-meta group-details"><?php bp_nouveau_the_group_meta( array( 'keys' => array( 'status', 'count' ) ) ); ?></p> 41 42 <?php endif; ?> 43 44 <p class="last-activity item-meta"> 45 <?php 46 printf( 47 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 48 esc_html__( 'Active %s', 'buddypress' ), 49 sprintf( 50 '<span data-livestamp="%1$s">%2$s</span>', 51 bp_core_get_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ), 52 esc_html( bp_get_group_last_active() ) 53 ) 54 ); 55 ?> 56 </p> 57 58 </div> 59 60 <div class="group-desc"><p><?php bp_nouveau_group_description_excerpt(); ?></p></div> 61 62 <?php bp_nouveau_groups_loop_item(); ?> 63 64 <?php bp_nouveau_groups_loop_buttons(); ?> 65 66 </div> 67 68 </div> 69 70 </li> 71 72 <?php endwhile; ?> 73 74 </ul> 75 76 <?php bp_nouveau_pagination( 'bottom' ); ?> 77 78 <?php else : ?> 79 80 <?php bp_nouveau_user_feedback( 'groups-loop-none' ); ?> 81 82 <?php endif; ?> 83 84 <?php 85 bp_nouveau_after_loop();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 10 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |