/bp-themes/bp-default/groups/groups-loop.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Groups Loop 
  5. * 
  6. * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() 
  7. * 
  8. * @package BuddyPress 
  9. * @subpackage bp-default 
  10. */ 
  11.  
  12. ?> 
  13.  
  14. <?php do_action( 'bp_before_groups_loop' ); ?> 
  15.  
  16. <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?> 
  17.  
  18. <div id="pag-top" class="pagination"> 
  19.  
  20. <div class="pag-count" id="group-dir-count-top"> 
  21.  
  22. <?php bp_groups_pagination_count(); ?> 
  23.  
  24. </div> 
  25.  
  26. <div class="pagination-links" id="group-dir-pag-top"> 
  27.  
  28. <?php bp_groups_pagination_links(); ?> 
  29.  
  30. </div> 
  31.  
  32. </div> 
  33.  
  34. <?php do_action( 'bp_before_directory_groups_list' ); ?> 
  35.  
  36. <ul id="groups-list" class="item-list" role="main"> 
  37.  
  38. <?php while ( bp_groups() ) : bp_the_group(); ?> 
  39.  
  40. <li <?php bp_group_class(); ?>> 
  41. <div class="item-avatar"> 
  42. <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a> 
  43. </div> 
  44.  
  45. <div class="item"> 
  46. <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div> 
  47. <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div> 
  48.  
  49. <div class="item-desc"><?php bp_group_description_excerpt(); ?></div> 
  50.  
  51. <?php do_action( 'bp_directory_groups_item' ); ?> 
  52.  
  53. </div> 
  54.  
  55. <div class="action"> 
  56.  
  57. <?php do_action( 'bp_directory_groups_actions' ); ?> 
  58.  
  59. <div class="meta"> 
  60.  
  61. <?php bp_group_type(); ?> / <?php bp_group_member_count(); ?> 
  62.  
  63. </div> 
  64.  
  65. </div> 
  66.  
  67. <div class="clear"></div> 
  68. </li> 
  69.  
  70. <?php endwhile; ?> 
  71.  
  72. </ul> 
  73.  
  74. <?php do_action( 'bp_after_directory_groups_list' ); ?> 
  75.  
  76. <div id="pag-bottom" class="pagination"> 
  77.  
  78. <div class="pag-count" id="group-dir-count-bottom"> 
  79.  
  80. <?php bp_groups_pagination_count(); ?> 
  81.  
  82. </div> 
  83.  
  84. <div class="pagination-links" id="group-dir-pag-bottom"> 
  85.  
  86. <?php bp_groups_pagination_links(); ?> 
  87.  
  88. </div> 
  89.  
  90. </div> 
  91.  
  92. <?php else: ?> 
  93.  
  94. <div id="message" class="info"> 
  95. <p><?php _e( 'There were no groups found.', 'buddypress' ); ?></p> 
  96. </div> 
  97.  
  98. <?php endif; ?> 
  99.  
  100. <?php do_action( 'bp_after_groups_loop' ); ?> 
.