summaryrefslogtreecommitdiffstats
path: root/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
commita415c29efee45520ae252d2aa28f1083a521cd7b (patch)
treef4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
parentInitial commit. (diff)
downloadwordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz
wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php')
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php b/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
new file mode 100644
index 0000000..b65eac5
--- /dev/null
+++ b/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * Title: Centered call to action
+ * Slug: twentytwentyfour/cta-subscribe-centered
+ * Categories: call-to-action
+ * Keywords: newsletter, subscribe, button
+ */
+?>
+
+<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
+<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
+ <!-- wp:group {"align":"wide","style":{"border":{"radius":"16px"},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"backgroundColor":"base-2","layout":{"type":"constrained"}} -->
+ <div class="wp-block-group alignwide has-base-2-background-color has-background" style="border-radius:16px;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--50)">
+ <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
+ <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+
+ <!-- wp:heading {"textAlign":"center","fontSize":"x-large"} -->
+ <h2 class="wp-block-heading has-text-align-center has-x-large-font-size"><?php echo esc_html_x( 'Join 900+ subscribers', 'Sample text for Subscriber Heading with numbers', 'twentytwentyfour' ); ?></h2>
+ <!-- /wp:heading -->
+
+ <!-- wp:paragraph {"align":"center"} -->
+ <p class="has-text-align-center"><?php echo esc_html_x( 'Stay in the loop with everything you need to know.', 'Sample text for Subscriber Description', 'twentytwentyfour' ); ?></p>
+ <!-- /wp:paragraph -->
+
+ <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
+ <div class="wp-block-buttons">
+ <!-- wp:button -->
+ <div class="wp-block-button">
+ <a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Sign up', 'Sample text for Sign Up Button', 'twentytwentyfour' ); ?></a>
+ </div>
+ <!-- /wp:button -->
+ </div>
+ <!-- /wp:buttons -->
+
+ <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
+ <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+ </div>
+ <!-- /wp:group -->
+</div>
+<!-- /wp:group -->