From 6b34e12facaa1f510dd0ebc5fd07ea37d59ff494 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 3 Jan 2023 17:29:32 -0800 Subject: [PATCH 1/4] Add detection for WordPress themes Twenty Twenty-Two and Twenty Twenty-Three (WIP). --- src/technologies/t.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/technologies/t.json b/src/technologies/t.json index 9b9383f0f..ae3fb23ad 100644 --- a/src/technologies/t.json +++ b/src/technologies/t.json @@ -2928,6 +2928,33 @@ "scriptSrc": "/wp-content/themes/twentytwentyone/", "website": "https://wordpress.org/themes/twentytwentyone" }, + "Twenty Twenty-Three": { + "cats": [ + 80 + ], + "css": "\\/wp-content\\/themes\\/twentytwentythree\\/assets\\/fonts\\/", + "description": "Twenty Twenty-Three is the default WordPress theme for 2023.", + "icon": "WordPress.svg", + "pricing": [ + "freemium" + ], + "requires": "WordPress", + "website": "https://wordpress.org/themes/twentytwentythree" + }, + "Twenty Twenty-Two": { + "cats": [ + 80 + ], + "css": "\\/wp-content\\/themes\\/twentytwentytwo\\/assets\\/fonts\\/", + "description": "Twenty Twenty-Two is the default WordPress theme for 2022.", + "dom": "link#twentytwentytwo-style-css", + "icon": "WordPress.svg", + "pricing": [ + "freemium" + ], + "requires": "WordPress", + "website": "https://wordpress.org/themes/twentytwentytwo" + }, "TwicPics": { "cats": [ 31, @@ -3309,4 +3336,4 @@ "implies": "Node.js", "website": "https://totaljs.com" } -} \ No newline at end of file +} From c9a12ef48357cd6cb3b34858e62de57161c6a834 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 4 Jan 2023 12:44:41 -0800 Subject: [PATCH 2/4] Fix detection for Twenty Twenty-Two and Twenty Twenty-Three. --- src/technologies/t.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/technologies/t.json b/src/technologies/t.json index ae3fb23ad..7823f75fb 100644 --- a/src/technologies/t.json +++ b/src/technologies/t.json @@ -2932,8 +2932,12 @@ "cats": [ 80 ], - "css": "\\/wp-content\\/themes\\/twentytwentythree\\/assets\\/fonts\\/", "description": "Twenty Twenty-Three is the default WordPress theme for 2023.", + "dom": { + "style#webfonts-inline-css": { + "text": "/wp-content/themes/twentytwentythree/assets/fonts/" + } + }, "icon": "WordPress.svg", "pricing": [ "freemium" @@ -2945,9 +2949,15 @@ "cats": [ 80 ], - "css": "\\/wp-content\\/themes\\/twentytwentytwo\\/assets\\/fonts\\/", "description": "Twenty Twenty-Two is the default WordPress theme for 2022.", - "dom": "link#twentytwentytwo-style-css", + "dom": [ + "link#twentytwentytwo-style-css", + { + "style#webfonts-inline-css": { + "text": "/wp-content/themes/twentytwentytwo/assets/fonts/" + } + } + ], "icon": "WordPress.svg", "pricing": [ "freemium" From 61dab9ac6e314dde923e125658730f671f1518cd Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 4 Jan 2023 12:50:21 -0800 Subject: [PATCH 3/4] Fix syntax. --- src/technologies/t.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/technologies/t.json b/src/technologies/t.json index 7823f75fb..24f7d9ee7 100644 --- a/src/technologies/t.json +++ b/src/technologies/t.json @@ -2950,14 +2950,12 @@ 80 ], "description": "Twenty Twenty-Two is the default WordPress theme for 2022.", - "dom": [ - "link#twentytwentytwo-style-css", - { - "style#webfonts-inline-css": { - "text": "/wp-content/themes/twentytwentytwo/assets/fonts/" - } + "dom": { + "link#twentytwentytwo-style-css": {}, + "style#webfonts-inline-css": { + "text": "/wp-content/themes/twentytwentytwo/assets/fonts/" } - ], + }, "icon": "WordPress.svg", "pricing": [ "freemium" From f61ebd3f722062f74f43fe04df4667a752177682 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 4 Jan 2023 12:59:13 -0800 Subject: [PATCH 4/4] Support both possible webfont style tag IDs. --- src/technologies/t.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/technologies/t.json b/src/technologies/t.json index 24f7d9ee7..6ffcc145f 100644 --- a/src/technologies/t.json +++ b/src/technologies/t.json @@ -2936,6 +2936,9 @@ "dom": { "style#webfonts-inline-css": { "text": "/wp-content/themes/twentytwentythree/assets/fonts/" + }, + "style#wp-webfonts-inline-css": { + "text": "/wp-content/themes/twentytwentythree/assets/fonts/" } }, "icon": "WordPress.svg", @@ -2954,6 +2957,9 @@ "link#twentytwentytwo-style-css": {}, "style#webfonts-inline-css": { "text": "/wp-content/themes/twentytwentytwo/assets/fonts/" + }, + "style#wp-webfonts-inline-css": { + "text": "/wp-content/themes/twentytwentytwo/assets/fonts/" } }, "icon": "WordPress.svg",