[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfour/patterns/ -> cta-services-image-left.php (source)

   1  <?php
   2  /**
   3   * Title: Services call to action with image on left
   4   * Slug: twentytwentyfour/cta-services-image-left
   5   * Categories: call-to-action, banner, featured, services
   6   * Viewport width: 1400
   7   */
   8  ?>
   9  
  10  <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"accent-5","layout":{"type":"constrained"}} -->
  11  <div class="wp-block-group alignfull has-accent-5-background-color has-background" 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)">
  12      <!-- wp:columns {"verticalAlignment":null,"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|50"}}}} -->
  13      <div class="wp-block-columns alignwide">
  14          <!-- wp:column {"verticalAlignment":"center","width":"60%"} -->
  15          <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:60%">
  16              <!-- wp:image {"aspectRatio":"4/3","scale":"cover","sizeSlug":"full","linkDestination":"none","style":{"color":{"duotone":"var:preset|duotone|duotone-1"}},"className":"is-style-rounded"} -->
  17              <figure class="wp-block-image size-full is-style-rounded">
  18                  <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/abstract-geometric-art.webp" alt="<?php esc_attr_e( 'White abstract geometric artwork from Dresden, Germany', 'twentytwentyfour' ); ?>" style="aspect-ratio:4/3;object-fit:cover" />
  19              </figure>
  20              <!-- /wp:image -->
  21          </div>
  22          <!-- /wp:column -->
  23  
  24          <!-- wp:column {"width":"40%"} -->
  25          <div class="wp-block-column" style="flex-basis:40%">
  26              <!-- wp:heading -->
  27              <h2 class="wp-block-heading"><?php echo esc_html_x( 'Guiding your business through the project', 'Sample heading of the services pattern', 'twentytwentyfour' ); ?></h2>
  28              <!-- /wp:heading -->
  29  
  30              <!-- wp:paragraph -->
  31              <p><?php echo esc_html_x( 'Experience the fusion of imagination and expertise with Études—the catalyst for architectural transformations that enrich the world around us.', 'Sample description of the services pattern', 'twentytwentyfour' ); ?></p>
  32              <!-- /wp:paragraph -->
  33  
  34              <!-- wp:buttons -->
  35              <div class="wp-block-buttons">
  36                  <!-- wp:button -->
  37                  <div class="wp-block-button">
  38                      <a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Our services', 'Sample button text to view the services', 'twentytwentyfour' ); ?></a>
  39                  </div>
  40                  <!-- /wp:button -->
  41              </div>
  42              <!-- /wp:buttons -->
  43          </div>
  44          <!-- /wp:column -->
  45      </div>
  46      <!-- /wp:columns -->
  47  </div>
  48  <!-- /wp:group -->


Generated : Wed May 1 08:20:02 2024 Cross-referenced by PHPXref