[ 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  ?>
  13  
  14  <!-- 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"}} -->
  15  <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)">
  16      <!-- wp:group {"layout":{"type":"constrained"}} -->
  17      <div class="wp-block-group">
  18          <!-- wp:image {"align":"center","width":"45px","height":"49px","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
  19          <figure class="wp-block-image aligncenter size-full is-resized">
  20              <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/icon-message.webp" alt="" style="object-fit:cover;width:45px;height:49px" />
  21          </figure>
  22          <!-- /wp:image -->
  23  
  24          <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
  25          <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
  26          <!-- /wp:spacer -->
  27  
  28          <!-- 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"} -->
  29          <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>
  30          <!-- /wp:heading -->
  31  
  32          <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
  33          <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
  34          <!-- /wp:spacer -->
  35  
  36          <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
  37          <div class="wp-block-buttons">
  38              <!-- wp:button -->
  39              <div class="wp-block-button">
  40                  <a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Sign up', 'Sample content for newsletter subscribe button', 'twentytwentyfour' ); ?></a>
  41              </div>
  42              <!-- /wp:button -->
  43          </div>
  44          <!-- /wp:buttons -->
  45      </div>
  46      <!-- /wp:group -->
  47  </div>
  48  <!-- /wp:group -->


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref