[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> overlapped-images.php (source)

   1  <?php
   2  /**
   3   * Title: Overlapping images and paragraph on right
   4   * Slug: twentytwentyfive/overlapped-images
   5   * Categories: about, featured
   6   * Description: A section with overlapping images, and a description.
   7   *
   8   * @package WordPress
   9   * @subpackage Twenty_Twenty_Five
  10   * @since Twenty Twenty-Five 1.0
  11   */
  12  
  13  ?>
  14  <!-- wp:group {"align":"full","className":"is-style-section-1","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  15  <div class="wp-block-group alignfull is-style-section-1" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80)">
  16      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|80","left":"var:preset|spacing|80"}}}} -->
  17      <div class="wp-block-columns alignwide">
  18          <!-- wp:column {"width":"45%","style":{"spacing":{"padding":{"right":"var:preset|spacing|50"}}}} -->
  19          <div class="wp-block-column" style="padding-right:var(--wp--preset--spacing--50);flex-basis:45%">
  20              <!-- wp:image {"sizeSlug":"full"} -->
  21              <figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/red-hibiscus-closeup.webp" alt="<?php esc_attr_e( 'Photography close up of a red flower.', 'twentytwentyfive' ); ?>"/></figure>
  22              <!-- /wp:image -->
  23              <!-- wp:group {"style":{"spacing":{"margin":{"top":"-12vw"}}},"layout":{"type":"constrained"}} -->
  24              <div class="wp-block-group" style="margin-top:-12vw">
  25                  <!-- wp:image {"width":"202px","sizeSlug":"full","align":"right","className":"is-resized","style":{"spacing":{"margin":{"right":"-5vw","left":"-5vw"}}}} -->
  26                  <figure class="wp-block-image alignright size-full is-resized" style="margin-right:-5vw;margin-left:-5vw"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/grid-flower-2.webp" alt="<?php esc_attr_e( 'Black and white photography close up of a flower.', 'twentytwentyfive' ); ?>" style="width:202px"/></figure>
  27                  <!-- /wp:image -->
  28              </div>
  29              <!-- /wp:group -->
  30          </div>
  31          <!-- /wp:column -->
  32          <!-- wp:column {"verticalAlignment":"center","width":"50%","style":{"spacing":{"padding":{"left":"0","right":"0"}}}} -->
  33          <div class="wp-block-column is-vertically-aligned-center" style="padding-right:0;padding-left:0;flex-basis:50%">
  34              <!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
  35              <div class="wp-block-group">
  36                  <!-- wp:heading {"className":"is-style-text-annotation"} -->
  37                  <h2 class="wp-block-heading is-style-text-annotation"><?php esc_html_e( 'About Us', 'twentytwentyfive' ); ?></h2>
  38                  <!-- /wp:heading -->
  39              </div>
  40              <!-- /wp:group -->
  41  
  42              <!-- wp:paragraph {"className":"is-style-text-subtitle"} -->
  43              <p class="is-style-text-subtitle">
  44              <?php
  45                  printf(
  46                      /* translators: %s is the brand name, e.g., 'Fleurs'. */
  47                      esc_html__( '%s is a flower delivery and subscription business. Based in the EU, our mission is not only to deliver stunning flower arrangements across but also foster knowledge and enthusiasm on the beautiful gift of nature: flowers.', 'twentytwentyfive' ),
  48                      '<strong>' . esc_html_x( 'Fleurs', 'Example brand name.', 'twentytwentyfive' ) . '</strong>'
  49                  );
  50                  ?>
  51              </p>
  52              <!-- /wp:paragraph -->
  53          </div>
  54          <!-- /wp:column -->
  55      </div>
  56      <!-- /wp:columns -->
  57  </div>
  58  <!-- /wp:group -->


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref