Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r14124 r10180  
    33 * BuddyPress - Groups
    44 *
    5  * @package BuddyPress
     5 * @package    BuddyPress
    66 * @subpackage bp-legacy
    7  * @version 12.0.0
    87 */
    98
     
    3534    do_action( 'bp_before_directory_groups_content' ); ?>
    3635
    37     <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
    38     <?php if ( has_filter( 'bp_directory_groups_search_form' ) ) : ?>
    39 
    40         <div id="group-dir-search" class="dir-search" role="search">
    41             <?php bp_directory_groups_search_form(); ?>
    42         </div><!-- #group-dir-search -->
    43 
    44     <?php else: ?>
    45 
    46         <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
    47 
    48     <?php endif; ?>
     36    <div id="group-dir-search" class="dir-search" role="search">
     37        <?php bp_directory_groups_search_form(); ?>
     38    </div><!-- #group-dir-search -->
    4939
    5040    <form action="" method="post" id="groups-directory-form" class="dir-form">
    5141
    52         <div id="template-notices" role="alert" aria-atomic="true">
    53             <?php
     42        <?php
    5443
    55             /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    56             do_action( 'template_notices' ); ?>
     44        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     45        do_action( 'template_notices' ); ?>
    5746
    58         </div>
    59 
    60         <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Groups directory main navigation', 'buddypress' ); ?>">
     47        <div class="item-list-tabs" role="navigation">
    6148            <ul>
    62                 <li class="selected" id="groups-all">
    63                     <a href="<?php bp_groups_directory_url(); ?>">
    64                         <?php
    65                         /* translators: %s: all groups count */
    66                         printf( esc_html__( 'All Groups %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_group_count() ) . '</span>' );
    67                         ?>
    68                     </a>
    69                 </li>
     49                <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
    7050
    7151                <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    72                     <li id="groups-personal">
    73                         <a href="<?php bp_loggedin_user_link( array( bp_get_groups_slug(), 'my-groups' ) ); ?>">
    74                             <?php
    75                             /* translators: %s: current user groups count */
    76                             printf( esc_html__( 'My Groups %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) . '</span>' );
    77                             ?>
    78                         </a>
    79                     </li>
     52                    <li id="groups-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups/'; ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    8053                <?php endif; ?>
    8154
     
    9265        </div><!-- .item-list-tabs -->
    9366
    94         <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Groups directory secondary navigation', 'buddypress' ); ?>" role="navigation">
     67        <div class="item-list-tabs" id="subnav" role="navigation">
    9568            <ul>
    9669                <?php
     
    10578                <li id="groups-order-select" class="last filter">
    10679
    107                     <label for="groups-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label>
     80                    <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    10881
    10982                    <select id="groups-order-by">
    110                         <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option>
    111                         <option value="popular"><?php esc_html_e( 'Most Members', 'buddypress' ); ?></option>
    112                         <option value="newest"><?php esc_html_e( 'Newly Created', 'buddypress' ); ?></option>
    113                         <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option>
     83                        <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     84                        <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
     85                        <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
     86                        <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    11487
    11588                        <?php
     
    12699        </div>
    127100
    128         <h2 class="bp-screen-reader-text">
    129             <?php
    130                 /* translators: accessibility text */
    131                 esc_html_e( 'Groups directory', 'buddypress' );
    132             ?>
    133         </h2>
    134 
    135101        <div id="groups-dir-list" class="groups dir-list">
    136102            <?php bp_get_template_part( 'groups/groups-loop' ); ?>
     
    140106
    141107        /**
    142          * Fires and displays the group content.
    143          *
    144          * @since 1.1.0
    145          */
     108         * Fires and displays the group content.
     109         *
     110         * @since 1.1.0
     111         */
    146112        do_action( 'bp_directory_groups_content' ); ?>
    147113
     
    151117
    152118        /**
    153          * Fires after the display of the groups content.
    154          *
    155          * @since 1.1.0
    156          */
     119         * Fires after the display of the groups content.
     120         *
     121         * @since 1.1.0
     122         */
    157123        do_action( 'bp_after_directory_groups_content' ); ?>
    158124
     
    162128
    163129    /**
    164      * Fires after the display of the groups.
    165      *
    166      * @since 1.1.0
    167      */
     130     * Fires after the display of the groups.
     131     *
     132     * @since 1.1.0
     133     */
    168134    do_action( 'bp_after_directory_groups' ); ?>
    169135
Note: See TracChangeset for help on using the changeset viewer.