Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

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

    r10265 r11171  
    3030        do_action( 'bp_before_directory_forums_content' ); ?>
    3131
    32         <div id="forums-dir-search" class="dir-search" role="search">
    33 
    34             <?php bp_directory_forums_search_form(); ?>
    35 
    36         </div>
     32        <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     33        <?php if ( has_filter( 'bp_directory_forums_search_form' ) ) : ?>
     34
     35            <div id="forums-dir-search" class="dir-search" role="search">
     36                <?php bp_directory_forums_search_form(); ?>
     37            </div>
     38
     39        <?php else: ?>
     40
     41            <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     42
     43        <?php endif; ?>
     44
    3745    </form>
    3846
     
    4856    <form action="" method="post" id="forums-directory-form" class="dir-form">
    4957
    50         <div class="item-list-tabs" role="navigation">
     58        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Forums directory main navigation', 'buddypress' ); ?>" role="navigation">
    5159            <ul>
    5260                <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics %s', 'buddypress' ), '<span>' . bp_get_forum_topic_count() . '</span>' ); ?></a></li>
     
    7078        </div>
    7179
    72         <div class="item-list-tabs" id="subnav" role="navigation">
     80        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    7381            <ul>
    7482
     
    161169                    <h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
    162170
     171                    <div id="template-notices" role="alert" aria-atomic="true">
    163172                    <?php
    164173
    165                     /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    166                     do_action( 'template_notices' ); ?>
     174                        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     175                        do_action( 'template_notices' ); ?>
     176
     177                    </div>
    167178
    168179                    <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.