[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> contact-location-and-link.php (source)

   1  <?php
   2  /**
   3   * Title: Contact location and link
   4   * Slug: twentytwentyfive/contact-location-and-link
   5   * Categories: contact, featured
   6   * Description: Contact section with a location address, a directions link, and an image of the location.
   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-3","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained","justifyContent":"center"}} -->
  15  <div class="wp-block-group alignfull is-style-section-3" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
  16      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|50"}}}} -->
  17      <div class="wp-block-columns alignwide">
  18          <!-- wp:column {"verticalAlignment":"top","width":""} -->
  19          <div class="wp-block-column is-vertically-aligned-top">
  20              <!-- wp:group {"style":{"dimensions":{"minHeight":"100%"},"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between"}} -->
  21              <div class="wp-block-group" style="min-height:100%"><!-- wp:paragraph {"className":"is-style-text-display","fontSize":"xx-large"} -->
  22                  <p class="is-style-text-display has-xx-large-font-size"><?php esc_html_e( 'Visit us at 123 Example St. Manhattan, NY 10300, United States', 'twentytwentyfive' ); ?></p>
  23                  <!-- /wp:paragraph -->
  24  
  25                  <!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}},"fontSize":"medium"} -->
  26                  <p class="has-medium-font-size" style="text-transform:uppercase"><a href="#"><?php esc_html_e( 'Get directions', 'twentytwentyfive' ); ?></a></p>
  27                  <!-- /wp:paragraph -->
  28              </div>
  29              <!-- /wp:group -->
  30          </div>
  31          <!-- /wp:column -->
  32  
  33          <!-- wp:column {"verticalAlignment":"top","width":""} -->
  34          <div class="wp-block-column is-vertically-aligned-top">
  35              <!-- wp:image {"aspectRatio":"1","scale":"cover","linkDestination":"none","className":"wp-block-image size-large"} -->
  36              <figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/location.webp" alt="<?php esc_attr_e( 'The business location', 'twentytwentyfive' ); ?>"/></figure>
  37              <!-- /wp:image -->
  38          </div>
  39          <!-- /wp:column -->
  40      </div>
  41      <!-- /wp:columns -->
  42  </div>
  43  <!-- /wp:group -->


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