Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

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

    r10265 r11166  
    3434    do_action( 'bp_before_directory_blogs_content' ); ?>
    3535
    36     <div id="blog-dir-search" class="dir-search" role="search">
    37         <?php bp_directory_blogs_search_form(); ?>
    38     </div><!-- #blog-dir-search -->
     36    <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     37    <?php if ( has_filter( 'bp_directory_blogs_search_form' ) ) : ?>
     38
     39        <div id="blog-dir-search" class="dir-search" role="search">
     40            <?php bp_directory_blogs_search_form(); ?>
     41        </div><!-- #blog-dir-search -->
     42
     43    <?php else : ?>
     44
     45        <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     46
     47    <?php endif; ?>
    3948
    4049    <?php
     
    4958    <form action="" method="post" id="blogs-directory-form" class="dir-form">
    5059
    51         <div class="item-list-tabs" role="navigation">
     60        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Sites directory main navigation', 'buddypress' ); ?>" role="navigation">
    5261            <ul>
    5362                <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?></a></li>
     
    7180        </div><!-- .item-list-tabs -->
    7281
    73         <div class="item-list-tabs" id="subnav" role="navigation">
     82        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Sites directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    7483            <ul>
    7584
     
    104113            </ul>
    105114        </div>
     115
     116        <h2 class="bp-screen-reader-text"><?php
     117            /* translators: accessibility text */
     118            _e( 'Sites directory', 'buddypress' );
     119        ?></h2>
    106120
    107121        <div id="blogs-dir-list" class="blogs dir-list">
Note: See TracChangeset for help on using the changeset viewer.