Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new subscribe pattern #1142

Merged
merged 2 commits into from
May 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion includes/class-newspack-blocks-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public static function register_block_patterns_and_categories() {
'subscribe-6',
'subscribe-7',
'subscribe-8',
'subscribe-9'
'subscribe-9',
'subscribe-10'
);
}

Expand Down
12 changes: 12 additions & 0 deletions src/block-patterns/subscribe-10.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Subscribe Pattern 10.
*
* @package Newspack_Blocks
*/

return array(
'title' => esc_html__( 'Subscribe Pattern 10', 'newspack-blocks' ),
'content' => "<!-- wp:group {\"templateLock\":\"all\",\"className\":\"newspack-pattern subscribe__style-10\"} -->\n<div class=\"wp-block-group newspack-pattern subscribe__style-10\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"width\":\"66.66%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\"><!-- wp:paragraph {\"lock\":{\"remove\":true}} -->\n<p>" . esc_html__( 'Be the first to know about breaking news, articles, and updates.', 'newspack-blocks' ) . "</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\"><!-- wp:jetpack/mailchimp {\"lock\":{\"remove\":true},\"consentText\":\"\"} -->\n<!-- wp:jetpack/button {\"element\":\"button\",\"uniqueId\":\"mailchimp-widget-id\",\"borderRadius\":0,\"text\":\"→\"} /-->\n<!-- /wp:jetpack/mailchimp --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
'categories' => array( 'newspack-subscribe' ),
);