diff --git js/_enqueues/wp/dashboard.js js/_enqueues/wp/dashboard.js
index bcdc783..e65a844 100644
|
|
jQuery( function( $ ) { |
496 | 496 | */ |
497 | 497 | $locationMessage.text( communityEventsData.l10n.attend_event_near_generic ); |
498 | 498 | |
499 | | if ( templateParams.events.length ) { |
| 499 | //TEMPORARILY COMMENTED OUT TO MAKE SURE THERE ARE NO CURRENT EVENTS |
| 500 | /*if ( templateParams.events.length ) { |
500 | 501 | template = wp.template( 'community-events-event-list' ); |
501 | 502 | $results.html( template( templateParams ) ); |
502 | | } else { |
| 503 | } else {*/ |
503 | 504 | template = wp.template( 'community-events-no-upcoming-events' ); |
504 | 505 | $results.html( template( templateParams ) ); |
505 | | } |
| 506 | //} |
506 | 507 | |
507 | 508 | elementVisibility['#community-events-location-message'] = true; |
508 | 509 | elementVisibility['.community-events-toggle-location'] = true; |
… |
… |
jQuery( function( $ ) { |
512 | 513 | template = wp.template( 'community-events-attend-event-near' ); |
513 | 514 | $locationMessage.html( template( templateParams ) ); |
514 | 515 | |
515 | | if ( templateParams.events.length ) { |
| 516 | //TEMPORARILY COMMENTED OUT TO MAKE SURE THERE ARE NO CURRENT EVENTS |
| 517 | /*if ( templateParams.events.length ) { |
516 | 518 | template = wp.template( 'community-events-event-list' ); |
517 | 519 | $results.html( template( templateParams ) ); |
518 | | } else { |
| 520 | } else {*/ |
519 | 521 | template = wp.template( 'community-events-no-upcoming-events' ); |
520 | 522 | $results.html( template( templateParams ) ); |
521 | | } |
| 523 | //} |
522 | 524 | |
523 | 525 | if ( 'user' === initiatedBy ) { |
524 | 526 | wp.a11y.speak( communityEventsData.l10n.city_updated.replace( l10nPlaceholder, templateParams.location.description ), 'assertive' ); |
diff --git wp-admin/css/dashboard.css wp-admin/css/dashboard.css
index e341c61..c9d5fba 100644
|
|
|
348 | 348 | border-left: 4px solid #00a0d2; |
349 | 349 | } |
350 | 350 | |
| 351 | #dashboard-widgets .event-none a { |
| 352 | text-decoration: underline; |
| 353 | } |
| 354 | |
351 | 355 | .community-events-form label { |
352 | 356 | display: inline-block; |
353 | 357 | vertical-align: top; |
diff --git wp-admin/includes/dashboard.php wp-admin/includes/dashboard.php
index 7435ec7..28859aa 100644
|
|
function wp_print_community_events_templates() { |
1391 | 1391 | <?php |
1392 | 1392 | printf( |
1393 | 1393 | /* translators: 1: The city the user searched for, 2: Meetup organization documentation URL. */ |
1394 | | __( 'There aren’t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize one</a>?' ), |
| 1394 | __( 'There aren’t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize a WordPress event</a>?' ), |
1395 | 1395 | '{{ data.location.description }}', |
1396 | 1396 | __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) |
1397 | 1397 | ); |
… |
… |
function wp_print_community_events_templates() { |
1401 | 1401 | <?php |
1402 | 1402 | printf( |
1403 | 1403 | /* translators: %s: Meetup organization documentation URL. */ |
1404 | | __( 'There aren’t any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ), |
| 1404 | __( 'There aren’t any events scheduled near you at the moment. Would you like to <a href="%s">organize a WordPress event</a>?' ), |
1405 | 1405 | __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) |
1406 | 1406 | ); |
1407 | 1407 | ?> |