diff --git a/public_html/wp-content/themes/wporg-events-2023/functions.php b/public_html/wp-content/themes/wporg-events-2023/functions.php index dfd444cc0e..cd747030ad 100644 --- a/public_html/wp-content/themes/wporg-events-2023/functions.php +++ b/public_html/wp-content/themes/wporg-events-2023/functions.php @@ -9,6 +9,7 @@ add_filter( 'parse_request', __NAMESPACE__ . '\add_city_landing_page_query_vars' ); add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_assets' ); +add_filter( 'wporg_block_navigation_menus', __NAMESPACE__ . '\add_site_navigation_menus' ); /** * Override the current query vars so that the city landing page loads instead. @@ -65,3 +66,21 @@ function enqueue_assets() { filemtime( __DIR__ . '/style.css' ) ); } + +/** + * Provide a list of local navigation menus. + */ +function add_site_navigation_menus( $menus ) { + return array( + 'local-navigation' => array( + array( + 'label' => __( 'All Events', 'wordcamporg' ), + 'url' => '/upcoming-events/', + ), + array( + 'label' => __( 'Organize an Event', 'wordcamporg' ), + 'url' => '/organize-an-event/', + ), + ), + ); +} diff --git a/public_html/wp-content/themes/wporg-events-2023/parts/footer.html b/public_html/wp-content/themes/wporg-events-2023/parts/footer.html new file mode 100644 index 0000000000..6128538d4e --- /dev/null +++ b/public_html/wp-content/themes/wporg-events-2023/parts/footer.html @@ -0,0 +1 @@ + diff --git a/public_html/wp-content/themes/wporg-events-2023/parts/front-page/contributors.html b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/contributors.html new file mode 100644 index 0000000000..4c49fe0358 --- /dev/null +++ b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/contributors.html @@ -0,0 +1,70 @@ + +
+ +
+ +

Where all WordPress contributors meet

+ + + + + +
+ + + + + +
+ \ No newline at end of file diff --git a/public_html/wp-content/themes/wporg-events-2023/parts/front-page/cover.html b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/cover.html new file mode 100644 index 0000000000..294fac5a46 --- /dev/null +++ b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/cover.html @@ -0,0 +1,32 @@ + +
+ + + + + +

map goes here

+ +
+ diff --git a/public_html/wp-content/themes/wporg-events-2023/parts/front-page/events.html b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/events.html new file mode 100644 index 0000000000..42e642fff0 --- /dev/null +++ b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/events.html @@ -0,0 +1,19 @@ + +
+ +

Upcoming Events

+ + + + + +
+ + + +
+ +
+ \ No newline at end of file diff --git a/public_html/wp-content/themes/wporg-events-2023/parts/front-page/organize.html b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/organize.html new file mode 100644 index 0000000000..0e2e399006 --- /dev/null +++ b/public_html/wp-content/themes/wporg-events-2023/parts/front-page/organize.html @@ -0,0 +1,17 @@ + +
+ +

If you can't find a WordPress event around your area, you can become an organizer + and start hosting WordPress events.

+ + + +
+ + +
+ +
+ \ No newline at end of file diff --git a/public_html/wp-content/themes/wporg-events-2023/parts/header.html b/public_html/wp-content/themes/wporg-events-2023/parts/header.html new file mode 100644 index 0000000000..0f37aa627f --- /dev/null +++ b/public_html/wp-content/themes/wporg-events-2023/parts/header.html @@ -0,0 +1,3 @@ + + + diff --git a/public_html/wp-content/themes/wporg-events-2023/patterns/local-navigation.php b/public_html/wp-content/themes/wporg-events-2023/patterns/local-navigation.php index c8a50bd642..b5e8d4d13c 100644 --- a/public_html/wp-content/themes/wporg-events-2023/patterns/local-navigation.php +++ b/public_html/wp-content/themes/wporg-events-2023/patterns/local-navigation.php @@ -14,8 +14,8 @@ ?> - + - + diff --git a/public_html/wp-content/themes/wporg-events-2023/style.css b/public_html/wp-content/themes/wporg-events-2023/style.css index 875fa8f836..7623f05b86 100644 --- a/public_html/wp-content/themes/wporg-events-2023/style.css +++ b/public_html/wp-content/themes/wporg-events-2023/style.css @@ -1,7 +1,7 @@ /* - * Theme Name: Events.WordPress.org 2023 + * Theme Name: Events.WordPress.org 2023 * Description: Includes templates for the homepage, event archives, etc. - * License: GNU General Public License v2 or later + * License: GNU General Public License v2 or later * Text Domain: wporg - * Template: wporg-parent-2021 + * Template: wporg-parent-2021 */ diff --git a/public_html/wp-content/themes/wporg-events-2023/templates/front-page.html b/public_html/wp-content/themes/wporg-events-2023/templates/front-page.html index 90502ef7a8..3cfd4e696c 100644 --- a/public_html/wp-content/themes/wporg-events-2023/templates/front-page.html +++ b/public_html/wp-content/themes/wporg-events-2023/templates/front-page.html @@ -1,11 +1,15 @@ - + - - - +
- + + + + + + +
- + diff --git a/public_html/wp-content/themes/wporg-events-2023/templates/page-city-landing-page.html b/public_html/wp-content/themes/wporg-events-2023/templates/page-city-landing-page.html index 3f117665ef..c4f989270e 100644 --- a/public_html/wp-content/themes/wporg-events-2023/templates/page-city-landing-page.html +++ b/public_html/wp-content/themes/wporg-events-2023/templates/page-city-landing-page.html @@ -1,6 +1,4 @@ - - - +
@@ -8,4 +6,4 @@
- +