Changeset 3810 for trunk/bp-themes/bp-default/groups/index.php
- Timestamp:
- 01/22/2011 10:13:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/groups/index.php
r3771 r3810 1 <?php get_header() ?> 1 <?php 2 3 /** 4 * BuddyPress - Groups Directory 5 * 6 * @package BuddyPress 7 * @subpackage bp-default 8 */ 9 10 ?> 11 12 <?php get_header(); ?> 13 14 <?php do_action( 'bp_before_directory_groups_content' ); ?> 2 15 3 16 <div id="content"> … … 5 18 6 19 <form action="" method="post" id="groups-directory-form" class="dir-form"> 7 <h3><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . bp_get_root_slug() . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h3>8 20 9 < ?php do_action( 'bp_before_directory_groups_content' ) ?>21 <h3><?php _e( 'Groups Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> <a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group', 'buddypress' ); ?></a><?php endif; ?></h3> 10 22 11 23 <div id="group-dir-search" class="dir-search" role="search"> 24 12 25 <?php bp_directory_groups_search_form() ?> 26 13 27 </div><!-- #group-dir-search --> 14 28 15 29 <div class="item-list-tabs" role="navigation"> 16 30 <ul> 17 <li class="selected" id="groups-all"><a href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ), bp_get_total_group_count() )?></a></li>31 <li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ), bp_get_total_group_count() ); ?></a></li> 18 32 19 33 <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 20 <li id="groups-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 34 35 <li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 36 21 37 <?php endif; ?> 22 38 23 <?php do_action( 'bp_groups_directory_group_types' ) ?> 39 <?php do_action( 'bp_groups_directory_group_types' ); ?> 40 41 </ul> 42 </div><!-- .item-list-tabs --> 43 44 <div class="item-list-tabs" id="subnav" role="navigation"> 45 <ul> 46 47 <?php do_action( 'bp_groups_directory_group_types' ); ?> 24 48 25 49 <li id="groups-order-select" class="last filter"> 26 50 27 <?php _e( 'Order By:', 'buddypress' ) ?> 51 <?php _e( 'Order By:', 'buddypress' ); ?> 52 28 53 <select> 29 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>30 <option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>31 <option value="newest"><?php _e( 'Newly Created', 'buddypress' ) ?></option>32 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>54 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 55 <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option> 56 <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option> 57 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 33 58 34 <?php do_action( 'bp_groups_directory_order_options' ) ?> 59 <?php do_action( 'bp_groups_directory_order_options' ); ?> 60 35 61 </select> 36 62 </li> 37 63 </ul> 38 </div><!-- .item-list-tabs --> 64 </div> 65 66 <?php do_action( 'bp_before_directory_groups_list' ); ?> 39 67 40 68 <div id="groups-dir-list" class="groups dir-list"> 41 <?php locate_template( array( 'groups/groups-loop.php' ), true ) ?> 69 70 <?php locate_template( array( 'groups/groups-loop.php' ), true ); ?> 71 42 72 </div><!-- #groups-dir-list --> 43 73 44 <?php do_action( 'bp_directory_groups_content' ) ?>74 <?php do_action( 'bp_directory_groups_content' ); ?> 45 75 46 <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ) ?>76 <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ); ?> 47 77 48 78 </form><!-- #groups-directory-form --> 49 50 <?php do_action( 'bp_after_directory_groups_content' ) ?>51 79 52 80 </div><!-- .padder --> 53 81 </div><!-- #content --> 54 82 55 <?php get_sidebar()?>83 <?php do_action( 'bp_after_directory_groups_content' ); ?> 56 84 57 <?php get_footer() ?> 85 <?php get_sidebar(); ?> 86 <?php get_footer(); ?> 87
Note: See TracChangeset
for help on using the changeset viewer.