From a78368a45a9f0fdd554cd4098dadbbad5a5feb2b Mon Sep 17 00:00:00 2001 From: Ben Greeley Date: Mon, 13 Feb 2023 15:32:06 -0500 Subject: [PATCH 1/5] Create pattern for posting page, add hosting-2 to the page list to use the new theme. --- .../wp-content/mu-plugins/theme-switcher.php | 1 + .../wporg-main-2022/patterns/hosting.php | 100 ++++++++++++++++++ .../templates/page-hosting.html | 9 ++ 3 files changed, 110 insertions(+) create mode 100644 source/wp-content/themes/wporg-main-2022/patterns/hosting.php create mode 100644 source/wp-content/themes/wporg-main-2022/templates/page-hosting.html diff --git a/source/wp-content/mu-plugins/theme-switcher.php b/source/wp-content/mu-plugins/theme-switcher.php index 473b0e9e..5f7cef02 100644 --- a/source/wp-content/mu-plugins/theme-switcher.php +++ b/source/wp-content/mu-plugins/theme-switcher.php @@ -46,6 +46,7 @@ function should_use_new_theme() { '/download/releases/', '/download/source/', '/mobile/', + '/hosting-2/', ); if ( ! in_array( $request_uri, $new_theme_pages ) ) { return false; diff --git a/source/wp-content/themes/wporg-main-2022/patterns/hosting.php b/source/wp-content/themes/wporg-main-2022/patterns/hosting.php new file mode 100644 index 00000000..ae021b32 --- /dev/null +++ b/source/wp-content/themes/wporg-main-2022/patterns/hosting.php @@ -0,0 +1,100 @@ + +
+

+ + + +

+
+ + + +
+

+ + + +

.

+ + + +

+ + + +

+
+ + + +
+
+
Bluehost logo
+ + + +

+ + + +

·

+
+
+ + + +
+
+
+ + + +

+ + + +

·

+
+
+ + + +
+
+
Siteground
+ + + +

+ + + +

·

+
+
+ + + +
+
+

+ + + +

+ + + +
+
+
+
+
+ \ No newline at end of file diff --git a/source/wp-content/themes/wporg-main-2022/templates/page-hosting.html b/source/wp-content/themes/wporg-main-2022/templates/page-hosting.html new file mode 100644 index 00000000..2a47c761 --- /dev/null +++ b/source/wp-content/themes/wporg-main-2022/templates/page-hosting.html @@ -0,0 +1,9 @@ + + + +
+ +
+ + + From d1631fed5dbd2dd472b9cf3e9ca6588dfe4199b5 Mon Sep 17 00:00:00 2001 From: Ben Greeley Date: Mon, 13 Feb 2023 15:51:40 -0500 Subject: [PATCH 2/5] Fix linting errors. --- .../wp-content/themes/wporg-main-2022/patterns/hosting.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/wp-content/themes/wporg-main-2022/patterns/hosting.php b/source/wp-content/themes/wporg-main-2022/patterns/hosting.php index ae021b32..1860d74d 100644 --- a/source/wp-content/themes/wporg-main-2022/patterns/hosting.php +++ b/source/wp-content/themes/wporg-main-2022/patterns/hosting.php @@ -2,10 +2,11 @@ /** * Title: Hosting * Slug: wporg-main-2022/hosting - * Inserter: no + * Inserter: no */ - ?> +?> +

@@ -97,4 +98,4 @@
- \ No newline at end of file + From 6747d3511a73e8015cec0c8666469a15f4aeecf5 Mon Sep 17 00:00:00 2001 From: Ben Greeley Date: Mon, 13 Feb 2023 16:05:27 -0500 Subject: [PATCH 3/5] Add hosting entry to page-manifest --- env/page-manifest.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/env/page-manifest.json b/env/page-manifest.json index 0c0e161a..de957ad1 100644 --- a/env/page-manifest.json +++ b/env/page-manifest.json @@ -114,5 +114,10 @@ { "slug": "search", "template": "page-search.html" - } + }, + { + "slug": "hosting-2", + "pattern": "hosting.php", + "template": "page-hosting.html" + }, ] \ No newline at end of file From 34c4a2cf20f7f12378b386dfaa792a2b361d15ed Mon Sep 17 00:00:00 2001 From: Ben Greeley Date: Mon, 13 Feb 2023 16:06:35 -0500 Subject: [PATCH 4/5] Remove trailing comma --- env/page-manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/page-manifest.json b/env/page-manifest.json index de957ad1..ad6a27fc 100644 --- a/env/page-manifest.json +++ b/env/page-manifest.json @@ -119,5 +119,5 @@ "slug": "hosting-2", "pattern": "hosting.php", "template": "page-hosting.html" - }, + } ] \ No newline at end of file From aac6b00c5610664ac33628ff1c7e69237b5fe731 Mon Sep 17 00:00:00 2001 From: Ben Greeley Date: Mon, 13 Feb 2023 16:19:37 -0500 Subject: [PATCH 5/5] Regenerated hosting pattern using build command --- .../wporg-main-2022/patterns/hosting.php | 182 +++++++++--------- 1 file changed, 91 insertions(+), 91 deletions(-) diff --git a/source/wp-content/themes/wporg-main-2022/patterns/hosting.php b/source/wp-content/themes/wporg-main-2022/patterns/hosting.php index 1860d74d..7f8d6208 100644 --- a/source/wp-content/themes/wporg-main-2022/patterns/hosting.php +++ b/source/wp-content/themes/wporg-main-2022/patterns/hosting.php @@ -2,100 +2,100 @@ /** * Title: Hosting * Slug: wporg-main-2022/hosting - * Inserter: no + * Inserter: no */ ?> - -
-

- - + +
+

+ +

- - - -
-

- - - -

.

- - - -

- - - -

-
- - - -
-
-
Bluehost logo
- - - -

- - - -

·

-
-
- - - -
-
-
- - - -

- - - -

·

-
-
- - - -
-
-
Siteground
- - - -

- - - -

·

-
-
- - - -
-
-

- - - -

- - - -
-
-
-
-
- + + + +
+

+ + + +

WordPress.com.', 'wporg' ); ?>

+ + + +

+ + + +

+
+ + + +
+
+
<?php _e( 'Bluehost logo', 'wporg' ); ?>
+ + + +

Bluehost offers the ultimate WordPress platform. Tuned for WordPress, we offer WordPress-centric dashboards and tools along with 1-click installation, a FREE domain name, email, FTP, and more. Easily scalable and backed by legendary 24/7 support by in-house WordPress experts.', 'wporg' ); ?>

+ + + +

Go to host website · Read forum threads', 'wporg' ); ?>

+
+
+ + + +
+
+
+ + + +

DreamHost has been committed to WordPress and its community for over 10 years. Our hosting platforms are optimized for WordPress and our team actively contributes to the WordPress community. At DreamHost, you take total control of your server or let our team of experts handle everything for you. DreamHost offers choice, performance and value for new users and experts alike.', 'wporg' ); ?>

+ + + +

Go to host website · Read forum threads', 'wporg' ); ?>

+
+
+ + + +
+
+
+ + + +

SiteGround has tools that make managing WordPress sites easy: one-click install, managed updates, WP-Cli, WordPress staging and git integration. We have a very fast support team with advanced WordPress expertise available 24/7. We provide latest speed technologies that make WordPress load faster: NGINX-based caching, SSD-drives, PHP 7, CDN, HTTP/2. We proactively protect the WordPress sites from hacks.', 'wporg' ); ?>

+ + + +

Go to host website · Read forum threads', 'wporg' ); ?>

+
+
+ + + +
+
+

+ + + +

+ + + +
+
+
+
+
+