[ 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   * Description: An image, title, paragraph and a CTA button to describe services.
   8   */
   9  ?>
  10  
  11  <!-- 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"}} -->
  12  <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)">
  13      <!-- wp:columns {"verticalAlignment":null,"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|50"}}}} -->
  14      <div class="wp-block-columns alignwide">
  15          <!-- wp:column {"verticalAlignment":"center","width":"60%"} -->
  16          <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:60%">
  17              <!-- wp:image {"aspectRatio":"4/3","scale":"cover","sizeSlug":"full","linkDestination":"none","style":{"color":{"duotone":"var:preset|duotone|duotone-1"}},"className":"is-style-rounded"} -->
  18              <figure class="wp-block-image size-full is-style-rounded">
  19                  <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" />
  20              </figure>
  21              <!-- /wp:image -->
  22          </div>
  23          <!-- /wp:column -->
  24  
  25          <!-- wp:column {"width":"40%"} -->
  26          <div class="wp-block-column" style="flex-basis:40%">
  27              <!-- wp:heading -->
  28              <h2 class="wp-block-heading"><?php echo esc_html_x( 'Guiding your business through the project', 'Sample heading of the services pattern', 'twentytwentyfour' ); ?></h2>
  29              <!-- /wp:heading -->
  30  
  31              <!-- wp:paragraph -->
  32              <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>
  33              <!-- /wp:paragraph -->
  34  
  35              <!-- wp:buttons -->
  36              <div class="wp-block-buttons">
  37                  <!-- wp:button -->
  38                  <div class="wp-block-button">
  39                      <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>
  40                  </div>
  41                  <!-- /wp:button -->
  42              </div>
  43              <!-- /wp:buttons -->
  44          </div>
  45          <!-- /wp:column -->
  46      </div>
  47      <!-- /wp:columns -->
  48  </div>
  49  <!-- /wp:group -->


Generated : Mon May 13 08:20:01 2024 Cross-referenced by PHPXref