[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> general-image-with-caption.php (source)

   1  <?php
   2  /**
   3   * Image with caption block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Image with caption', 'twentytwentytwo' ),
   7      'categories' => array( 'featured', 'columns', 'gallery' ),
   8      'content'    => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"6rem","bottom":"6rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} -->
   9                      <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:6rem;padding-bottom:6rem"><!-- wp:media-text {"mediaId":202,"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-gray.jpg","mediaType":"image","verticalAlignment":"bottom","imageFill":false} -->
  10                      <div class="wp-block-media-text alignwide is-stacked-on-mobile is-vertically-aligned-bottom"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-gray.jpg" alt="' . esc_attr__( 'Hummingbird illustration', 'twentytwentytwo' ) . '" class="wp-image-202 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->
  11                      <p><strong>' . esc_html__( 'Hummingbird', 'twentytwentytwo' ) . '</strong></p>
  12                      <!-- /wp:paragraph -->
  13  
  14                      <!-- wp:paragraph -->
  15                      <p>' . esc_html__( 'A beautiful bird featuring a surprising set of color feathers.', 'twentytwentytwo' ) . '</p>
  16                      <!-- /wp:paragraph --></div></div>
  17                      <!-- /wp:media-text --></div>
  18                      <!-- /wp:group -->',
  19  );


Generated : Thu Dec 26 08:20:01 2024 Cross-referenced by PHPXref