[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfour/patterns/ -> page-newsletter-landing.php (source)

   1  <?php
   2  /**
   3   * Title: Newsletter landing
   4   * Slug: twentytwentyfour/page-newsletter-landing
   5   * Categories: call-to-action, twentytwentyfour_page, featured
   6   * Keywords: starter
   7   * Block Types: core/post-content
   8   * Post Types: page, wp_template
   9   * Viewport width: 1100
  10   * Description: A block with a newsletter subscription CTA for a landing page.
  11   *
  12   * @package WordPress
  13   * @subpackage Twenty_Twenty_Four
  14   * @since Twenty Twenty-Four 1.0
  15   */
  16  
  17  ?>
  18  
  19  <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}},"dimensions":{"minHeight":"100vh"}},"backgroundColor":"accent-3","layout":{"type":"flex","orientation":"vertical","justifyContent":"center","verticalAlignment":"center"}} -->
  20  <div class="wp-block-group alignfull has-accent-3-background-color has-background" style="min-height:100vh;margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)">
  21      <!-- wp:group {"layout":{"type":"constrained"}} -->
  22      <div class="wp-block-group">
  23          <!-- wp:image {"align":"center","width":"45px","height":"49px","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
  24          <figure class="wp-block-image aligncenter size-full is-resized">
  25              <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/icon-message.webp" alt="" style="object-fit:cover;width:45px;height:49px" />
  26          </figure>
  27          <!-- /wp:image -->
  28  
  29          <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
  30          <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
  31          <!-- /wp:spacer -->
  32  
  33          <!-- wp:heading {"textAlign":"center","style":{"spacing":{"margin":{"right":"0","left":"0"},"padding":{"right":"0","left":"0"}},"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}}},"textColor":"contrast","fontSize":"x-large"} -->
  34          <h2 class="wp-block-heading has-text-align-center has-contrast-color has-text-color has-link-color has-x-large-font-size" style="margin-right:0;margin-left:0;padding-right:0;padding-left:0"><?php echo esc_html_x( 'Subscribe to the newsletter and stay connected with our community', 'sample content for newsletter subscription', 'twentytwentyfour' ); ?></h2>
  35          <!-- /wp:heading -->
  36  
  37          <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
  38          <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
  39          <!-- /wp:spacer -->
  40  
  41          <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
  42          <div class="wp-block-buttons">
  43              <!-- wp:button -->
  44              <div class="wp-block-button">
  45                  <a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Sign up', 'Sample content for newsletter subscribe button', 'twentytwentyfour' ); ?></a>
  46              </div>
  47              <!-- /wp:button -->
  48          </div>
  49          <!-- /wp:buttons -->
  50      </div>
  51      <!-- /wp:group -->
  52  </div>
  53  <!-- /wp:group -->


Generated : Sun Aug 2 08:20:19 2026 Cross-referenced by PHPXref