From 32f99b5e38773023cc01e273662745471ba809bd Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Mon, 30 Oct 2023 18:59:00 +0100 Subject: [PATCH 1/3] minor bugfixes and changed pattern for home template --- .../themes/twentytwentyfour/functions.php | 3 +- .../patterns/page-home-blogging.php | 2 +- .../patterns/page-home-business.php | 4 +- .../twentytwentyfour/patterns/posts-list.php | 62 +++++++++++++++++++ .../patterns/template-home-business.php | 6 +- .../patterns/template-home-portfolio.php | 2 +- .../twentytwentyfour/templates/home.html | 2 +- 7 files changed, 71 insertions(+), 10 deletions(-) create mode 100644 src/wp-content/themes/twentytwentyfour/patterns/posts-list.php diff --git a/src/wp-content/themes/twentytwentyfour/functions.php b/src/wp-content/themes/twentytwentyfour/functions.php index 443035f384649..fb2bc157a5c85 100644 --- a/src/wp-content/themes/twentytwentyfour/functions.php +++ b/src/wp-content/themes/twentytwentyfour/functions.php @@ -33,7 +33,7 @@ function twentytwentyfour_block_styles() { array( 'handle' => 'twentytwentyfour-button-style-outline', 'src' => get_theme_file_uri( 'assets/css/button-outline.css' ), - 'ver' => wp_get_theme()->get( 'Version' ), + 'ver' => wp_get_theme( 'twentytwentyfour' )->get( 'Version' ), 'path' => get_theme_file_path( 'assets/css/button-outline.css' ), ) ); @@ -45,7 +45,6 @@ function twentytwentyfour_block_styles() { 'label' => __( 'Arrow icon', 'twentytwentyfour' ), /* * Styles for the custom Arrow icon style of the Details block - * https://github.com/WordPress/twentytwentyfour/issues/46 */ 'inline_style' => ' .is-style-arrow-icon-details { diff --git a/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php b/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php index d1c52425698a0..ae88e9006c74c 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php @@ -22,7 +22,7 @@
- +
diff --git a/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php b/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php index fb526b25c0e2b..ca22952174553 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php @@ -1,7 +1,7 @@ - + diff --git a/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php b/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php new file mode 100644 index 0000000000000..a9e5aeeb5d592 --- /dev/null +++ b/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php @@ -0,0 +1,62 @@ + + + +
+ +

+ + + +
+ +
+ + +
+ + + +
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + +
+ +
+ +
+ diff --git a/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php b/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php index e6a41b74d76bf..e84a5aca903c0 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php @@ -1,8 +1,8 @@
- +
diff --git a/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php b/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php index 23e45032261be..4fc4f072ba3c9 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php @@ -2,7 +2,7 @@ /** * Title: Portfolio home template with post featured images * Slug: twentytwentyfour/template-home-portfolio - * Template Types: front-page, index, home + * Template Types: front-page, home * Viewport width: 1400 * Inserter: no */ diff --git a/src/wp-content/themes/twentytwentyfour/templates/home.html b/src/wp-content/themes/twentytwentyfour/templates/home.html index 92c4c041a5bfa..7c364b8558277 100644 --- a/src/wp-content/themes/twentytwentyfour/templates/home.html +++ b/src/wp-content/themes/twentytwentyfour/templates/home.html @@ -1 +1 @@ - + From 44d74b75fadff5a3ed8a821c85f19e70d4e66327 Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 31 Oct 2023 09:15:02 +0100 Subject: [PATCH 2/3] Rely on parent theme data for block style --- src/wp-content/themes/twentytwentyfour/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentytwentyfour/functions.php b/src/wp-content/themes/twentytwentyfour/functions.php index fb2bc157a5c85..2dbd05355d550 100644 --- a/src/wp-content/themes/twentytwentyfour/functions.php +++ b/src/wp-content/themes/twentytwentyfour/functions.php @@ -32,9 +32,9 @@ function twentytwentyfour_block_styles() { 'core/button', array( 'handle' => 'twentytwentyfour-button-style-outline', - 'src' => get_theme_file_uri( 'assets/css/button-outline.css' ), - 'ver' => wp_get_theme( 'twentytwentyfour' )->get( 'Version' ), - 'path' => get_theme_file_path( 'assets/css/button-outline.css' ), + 'src' => get_parent_theme_file_uri( 'assets/css/button-outline.css' ), + 'ver' => wp_get_theme( get_template() )->get( 'Version' ), + 'path' => get_parent_theme_file_path( 'assets/css/button-outline.css' ), ) ); From bd289f4de960c498856ef4711e33499ed83d44c5 Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 31 Oct 2023 16:49:18 +0100 Subject: [PATCH 3/3] remove queryId --- src/wp-content/themes/twentytwentyfour/patterns/posts-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php b/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php index a9e5aeeb5d592..5db93af229eea 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php @@ -15,7 +15,7 @@
- +