Making WordPress.org


Ignore:
Timestamp:
04/03/2018 08:46:49 PM (7 years ago)
Author:
iandunn
Message:

WP15: Notify screen readers when search results change dynamically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/plugins/wp15-meetup-events/wp15-meetup-events.php

    r7011 r7012  
    203203        'wp15-meetup-events',
    204204        plugins_url( 'wp15-meetup-events.js', __FILE__ ),
    205         array( 'jquery', 'underscore', 'google-maps', 'marker-clusterer' ),
     205        array( 'jquery', 'underscore', 'wp-a11y', 'google-maps', 'marker-clusterer' ),
    206206        filemtime( __DIR__ . '/wp15-meetup-events.js' ),
    207207        true
     
    212212        'wp15MeetupEventsData',
    213213        array(
     214            'strings'     => get_js_strings(),
    214215            'map_options' => get_map_options(),
    215216            'events'      => get_formatted_events(),
     
    218219}
    219220
     221/**
     222 * Internationalize strings that will be displayed via JavaScript.
     223 *
     224 * @return array
     225 */
     226function get_js_strings() {
     227    return array(
     228        'search_cleared' => __( 'Search cleared, showing all events.', 'wp15' ),
     229        'search_match'   => __( 'Showing events that match %s.',       'wp15' ),
     230    );
     231}
    220232
    221233/**
Note: See TracChangeset for help on using the changeset viewer.