[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfour/patterns/ -> gallery-project-layout.php (source)

   1  <?php
   2  /**
   3   * Title: Project layout
   4   * Slug: twentytwentyfour/gallery-project-layout
   5   * Categories: gallery, featured, portfolio
   6   * Viewport width: 1600
   7   * Description: A gallery section with a project layout with 2 images.
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Twenty_Four
  11   * @since Twenty Twenty-Four 1.0
  12   */
  13  
  14  ?>
  15  
  16  <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}},"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}}},"backgroundColor":"contrast","textColor":"base-2","layout":{"type":"constrained"}} -->
  17  <div class="wp-block-group alignfull has-base-2-color has-contrast-background-color has-text-color has-background has-link-color" 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)">
  18      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|60"}}}} -->
  19      <div class="wp-block-columns alignwide">
  20          <!-- wp:column {"verticalAlignment":"stretch","width":"60%","style":{"spacing":{"padding":{"right":"0"}}}} -->
  21          <div class="wp-block-column is-vertically-aligned-stretch" style="padding-right:0;flex-basis:60%">
  22              <!-- wp:group {"style":{"dimensions":{"minHeight":"100%"}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
  23              <div class="wp-block-group" style="min-height:100%">
  24                  <!-- wp:image {"aspectRatio":"9/16","scale":"cover","sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} -->
  25                  <figure class="wp-block-image size-large is-style-rounded">
  26                      <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/angular-roof.webp" alt="<?php esc_attr_e( 'An empty staircase under an angular roof in Darling Harbour, Sydney, Australia', 'twentytwentyfour' ); ?>" style="aspect-ratio:9/16;object-fit:cover" />
  27                  </figure>
  28                  <!-- /wp:image -->
  29  
  30                  <!-- wp:paragraph {"fontSize":"medium"} -->
  31                  <p class="has-medium-font-size"><?php echo esc_html_x( '1. Through Études, we aspire to redefine architectural boundaries and usher in a new era of design excellence that leaves an indelible mark on the built environment.', 'Sample text for the feature area', 'twentytwentyfour' ); ?></p>
  32                  <!-- /wp:paragraph -->
  33              </div>
  34              <!-- /wp:group -->
  35          </div>
  36          <!-- /wp:column -->
  37  
  38          <!-- wp:column {"width":"40%"} -->
  39          <div class="wp-block-column" style="flex-basis:40%">
  40              <!-- wp:group {"layout":{"type":"constrained"}} -->
  41              <div class="wp-block-group">
  42                  <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2","fontStyle":"normal","fontWeight":"500"}},"fontSize":"large"} -->
  43                  <p class="has-large-font-size" style="font-style:normal;font-weight:500;line-height:1.2"><?php echo esc_html_x( 'Our comprehensive suite of professional services caters to a diverse clientele, ranging from homeowners to commercial developers. With a commitment to innovation and sustainability, Études is the bridge that transforms architectural dreams into remarkable built realities.', 'Sample text for the feature area', 'twentytwentyfour' ); ?></p>
  44                  <!-- /wp:paragraph -->
  45  
  46                  <!-- wp:spacer {"height":"var:preset|spacing|40","style":{"layout":{}}} -->
  47                  <div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer">
  48                  </div>
  49                  <!-- /wp:spacer -->
  50  
  51                  <!-- wp:group {"layout":{"type":"default"}} -->
  52                  <div class="wp-block-group">
  53                      <!-- wp:paragraph {"fontSize":"medium"} -->
  54                      <p class="has-medium-font-size"><?php echo esc_html_x( '2. Case studies that celebrate the artistry can fuel curiosity and ignite inspiration.', 'Sample text for the feature area', 'twentytwentyfour' ); ?></p>
  55                      <!-- /wp:paragraph -->
  56  
  57                      <!-- wp:image {"aspectRatio":"9/16","scale":"cover","sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} -->
  58                      <figure class="wp-block-image size-large is-style-rounded">
  59                          <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/art-gallery.webp" alt="<?php esc_attr_e( 'Art Gallery of Ontario, Toronto, Canada', 'twentytwentyfour' ); ?>" style="aspect-ratio:9/16;object-fit:cover" />
  60                      </figure>
  61                      <!-- /wp:image -->
  62                  </div>
  63                  <!-- /wp:group -->
  64              </div>
  65              <!-- /wp:group -->
  66          </div>
  67          <!-- /wp:column -->
  68      </div>
  69      <!-- /wp:columns -->
  70  </div>
  71  <!-- /wp:group -->


Generated : Sun Aug 16 08:20:24 2026 Cross-referenced by PHPXref