[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> testimonials-2-col.php (source)

   1  <?php
   2  /**
   3   * Title: 2 columns with avatar
   4   * Slug: twentytwentyfive/testimonials-2-col
   5   * Keywords: testimonial
   6   * Categories: testimonials
   7   * Description: Two columns with testimonials and avatars.
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Twenty_Five
  11   * @since Twenty Twenty-Five 1.0
  12   */
  13  
  14  ?>
  15  <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
  16  <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)">
  17      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|60","left":"var:preset|spacing|50"}}}} -->
  18      <div class="wp-block-columns alignwide">
  19          <!-- wp:column -->
  20          <div class="wp-block-column">
  21              <!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} -->
  22              <div class="wp-block-columns">
  23                  <!-- wp:column {"width":"64px"} -->
  24                  <div class="wp-block-column" style="flex-basis:64px">
  25                      <!-- wp:image {"width":"64px","aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} -->
  26                      <figure class="wp-block-image size-large is-resized is-style-rounded"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/nurse.webp" alt="<?php echo esc_attr_x( 'Picture of a person', 'Alt text for testimonial image.', 'twentytwentyfive' ); ?>" style="aspect-ratio:1;object-fit:cover;width:64px"/></figure>
  27                      <!-- /wp:image -->
  28                  </div>
  29                  <!-- /wp:column -->
  30  
  31                  <!-- wp:column -->
  32                  <div class="wp-block-column">
  33                      <!-- wp:quote {"className":"is-style-plain","style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"blockGap":"var:preset|spacing|40"}},"fontSize":"x-large"} -->
  34                      <blockquote class="wp-block-quote is-style-plain has-x-large-font-size" style="font-style:normal;font-weight:400">
  35                          <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.1"}}} -->
  36                          <p style="line-height:1.1"><?php echo esc_html_x( '“Superb product and customer service!”', 'Sample testimonial.', 'twentytwentyfive' ); ?></p>
  37                          <!-- /wp:paragraph -->
  38                          <cite><?php echo wp_kses_post( _x( 'Jo Mulligan <br /><sub>Atlanta, GA</sub>', 'Sample testimonial citation.', 'twentytwentyfive' ) ); ?></cite>
  39                      </blockquote>
  40                      <!-- /wp:quote -->
  41                  </div>
  42                  <!-- /wp:column -->
  43              </div>
  44              <!-- /wp:columns -->
  45          </div>
  46          <!-- /wp:column -->
  47  
  48          <!-- wp:column {"width":""} -->
  49          <div class="wp-block-column">
  50              <!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} -->
  51              <div class="wp-block-columns">
  52                  <!-- wp:column {"width":"64px"} -->
  53                  <div class="wp-block-column" style="flex-basis:64px">
  54                      <!-- wp:image {"width":"64px","aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} -->
  55                      <figure class="wp-block-image size-large is-resized is-style-rounded"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/nurse.webp" alt="<?php echo esc_attr_x( 'Picture of a person', 'Alt text for testimonial image.', 'twentytwentyfive' ); ?>" style="aspect-ratio:1;object-fit:cover;width:64px"/></figure>
  56                      <!-- /wp:image -->
  57                  </div>
  58                  <!-- /wp:column -->
  59  
  60                  <!-- wp:column -->
  61                  <div class="wp-block-column">
  62                      <!-- wp:quote {"className":"is-style-plain","style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"blockGap":"var:preset|spacing|40"}},"fontSize":"x-large"} -->
  63                      <blockquote class="wp-block-quote is-style-plain has-x-large-font-size" style="font-style:normal;font-weight:400">
  64                          <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.1"}}} -->
  65                          <p style="line-height:1.1"><?php echo esc_html_x( '“Amazing quality and care. I love all your products.”', 'Sample testimonial.', 'twentytwentyfive' ); ?></p>
  66                          <!-- /wp:paragraph -->
  67                          <cite><?php echo wp_kses_post( _x( 'Otto Reid <br><sub>Springfield, IL</sub>', 'Sample testimonial citation.', 'twentytwentyfive' ) ); ?></cite>
  68                      </blockquote>
  69                      <!-- /wp:quote -->
  70                  </div>
  71                  <!-- /wp:column -->
  72              </div>
  73              <!-- /wp:columns -->
  74          </div>
  75          <!-- /wp:column -->
  76      </div>
  77      <!-- /wp:columns -->
  78  </div>
  79  <!-- /wp:group -->


Generated : Thu Oct 24 08:20:01 2024 Cross-referenced by PHPXref