Skip to content

Commit

Permalink
Events: Rename url to upcoming-events for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Dec 7, 2023
1 parent 5e075cb commit 16cb0a4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions public_html/wp-content/themes/wporg-events-2023/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function add_site_navigation_menus( $menus ) {
'local-navigation' => array(
array(
'label' => __( 'Upcoming events', 'wordcamporg' ),
'url' => '/upcoming/',
'url' => '/upcoming-events/',
),
array(
'label' => __( 'Organize an event', 'wordcamporg' ),
Expand Down Expand Up @@ -74,7 +74,7 @@ function get_country_options( array $options ): array {
'label' => __( 'Country', 'wporg' ),
'title' => __( 'Country', 'wporg' ),
'key' => 'country',
'action' => home_url( '/upcoming/' ),
'action' => home_url( '/upcoming-events/' ),
'options' => $countries,
'selected' => $selected,
);
Expand All @@ -99,7 +99,7 @@ function get_event_type_options( array $options ): array {
'label' => $label,
'title' => __( 'Type', 'wporg' ),
'key' => 'event_type',
'action' => home_url( '/upcoming/' ),
'action' => home_url( '/upcoming-events/' ),
'options' => array(
'meetup' => 'Meetup',
'wordcamp' => 'WordCamp',
Expand Down Expand Up @@ -127,7 +127,7 @@ function get_format_type_options( array $options ): array {
'label' => $label,
'title' => __( 'Format', 'wporg' ),
'key' => 'format_type',
'action' => home_url( '/upcoming/' ),
'action' => home_url( '/upcoming-events/' ),
'options' => array(
'online' => 'Online',
'in-person' => 'In Person',
Expand Down Expand Up @@ -162,7 +162,7 @@ function get_month_options( array $options ): array {
'label' => $label,
'title' => __( 'Month', 'wporg' ),
'key' => 'month',
'action' => home_url( '/upcoming/' ),
'action' => home_url( '/upcoming-events/' ),
'options' => $months,
'selected' => $selected,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<!-- wp:buttons {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}}} -->
<div class="wp-block-buttons" style="margin-top:var(--wp--preset--spacing--40)"><!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button" href="/upcoming/">Browse
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button" href="/upcoming-events/">Browse
events</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"layout":{"selfStretch":"fill","flexSize":null}}} -->
<div class="wp-block-buttons"><!-- wp:button {"className":"has-custom-width is-style-outline-on-dark"} -->
<div class="wp-block-button has-custom-width is-style-outline-on-dark"><a class="wp-block-button__link wp-element-button" href="/upcoming/">Browse events</a></div>
<div class="wp-block-button has-custom-width is-style-outline-on-dark"><a class="wp-block-button__link wp-element-button" href="/upcoming-events/">Browse events</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function get_no_result_view() {
wp_kses_post(
/* translators: %s is url of the event archives. */
__( 'View <a href="%s">upcoming events</a> or try a different search.', 'wporg' ) ),
esc_url( home_url( '/upcoming/' ) ) )
esc_url( home_url( '/upcoming-events/' ) ) )
);
$content .= '</div><!-- /wp:group -->';

Expand Down

0 comments on commit 16cb0a4

Please sign in to comment.