Merge pull request #2506 from Automattic/fix/seedlet-pattern-placeholder-images

Fix/seedlet pattern placeholder images
This commit is contained in:
Maggie 2020-09-28 10:44:38 +02:00 committed by GitHub
commit 8dc00d1205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 18 additions and 7 deletions

View file

@ -66,7 +66,9 @@ License: CC0
Source: https://www.si.edu/object/hymenoxys-odorata-dc:nmnhbotany_13045011
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10752403
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10672835
Included in theme screenshot.
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_13757252
https://www.si.edu/object/nephroma-sp:nmnhbotany_13875654
Included in theme screenshot and in block patterns.
*/
:root {
/* Font Family */

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

View file

@ -66,7 +66,9 @@ License: CC0
Source: https://www.si.edu/object/hymenoxys-odorata-dc:nmnhbotany_13045011
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10752403
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10672835
Included in theme screenshot.
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_13757252
https://www.si.edu/object/nephroma-sp:nmnhbotany_13875654
Included in theme screenshot and in block patterns.
*/
// Variables

View file

@ -26,15 +26,16 @@ if ( function_exists( 'register_block_pattern' ) ) {
array (
'title' => __( 'Group with Split Background', 'seedlet' ),
'categories'=> array( 'seedlet' ),
'content' => "<!-- wp:group {\"align\":\"full\",\"gradient\":\"hard-diagonal\"} -->\n<div class=\"wp-block-group alignfull has-hard-diagonal-gradient-background has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer -->\n\n<!-- wp:image -->\n<figure class=\"wp-block-image\"><img alt=\"\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer --></div></div>\n<!-- /wp:group -->",
'content' => "<!-- wp:group {\"align\":\"full\",\"gradient\":\"hard-diagonal\"} -->\n<div class=\"wp-block-group alignfull has-hard-diagonal-gradient-background has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer -->\n\n<!-- wp:image -->\n<figure class=\"wp-block-image\"><img src=\"".get_template_directory_uri()."/assets/img/envelope.jpg\" alt=\"Envelope\" /></figure>\n<!-- /wp:image -->\n\n<!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer --></div></div>\n<!-- /wp:group -->",
)
);
register_block_pattern(
'seedlet/group-image-overlap',
array (
'title' => __( 'Group with Image Overlap', 'seedlet' ),
'categories'=> array( 'seedlet' ),
'content' => "<!-- wp:group {\"align\":\"full\",\"className\":\"is-style-overflow\",\"gradient\":\"stripe\"} -->\n<div class=\"wp-block-group alignfull is-style-overflow has-stripe-gradient-background has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:columns {\"align\":\"wide\"} -->\n<div class=\"wp-block-columns alignwide\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:image -->\n<figure class=\"wp-block-image\"><img alt=\"\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image -->\n<figure class=\"wp-block-image\"><img alt=\"\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:image -->\n<figure class=\"wp-block-image\"><img alt=\"\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:group -->",
'content' => "<!-- wp:group {\"align\":\"full\",\"className\":\"is-style-overflow\",\"gradient\":\"stripe\"} -->\n<div class=\"wp-block-group alignfull is-style-overflow has-stripe-gradient-background has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:columns {\"align\":\"wide\"} -->\n<div class=\"wp-block-columns alignwide\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:image -->\n<figure class=\"wp-block-image\"><img src=\"".get_template_directory_uri()."/assets/img/plant_a.png\" alt=\"Plant\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image -->\n<figure class=\"wp-block-image\"><img src=\"".get_template_directory_uri()."/assets/img/plant_c.png\" alt=\"Plant\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:image -->\n<figure class=\"wp-block-image\"><img src=\"".get_template_directory_uri()."/assets/img/plant_b.png\" alt=\"Plant\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:group -->",
)
);
register_block_pattern(

View file

@ -105,4 +105,6 @@ License: CC0
Source: https://www.si.edu/object/hymenoxys-odorata-dc:nmnhbotany_13045011
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10752403
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10672835
Included in theme screenshot.
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_13757252
https://www.si.edu/object/nephroma-sp:nmnhbotany_13875654
Included in theme screenshot and in block patterns.

View file

@ -66,7 +66,9 @@ License: CC0
Source: https://www.si.edu/object/hymenoxys-odorata-dc:nmnhbotany_13045011
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10752403
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10672835
Included in theme screenshot.
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_13757252
https://www.si.edu/object/nephroma-sp:nmnhbotany_13875654
Included in theme screenshot and in block patterns.
*/
:root {
/* Font Family */

View file

@ -66,7 +66,9 @@ License: CC0
Source: https://www.si.edu/object/hymenoxys-odorata-dc:nmnhbotany_13045011
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10752403
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_10672835
Included in theme screenshot.
https://www.si.edu/object/coccocypselum-guianense-aubl-k-schum:nmnhbotany_13757252
https://www.si.edu/object/nephroma-sp:nmnhbotany_13875654
Included in theme screenshot and in block patterns.
*/
:root {
/* Font Family */