[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> general-two-images-text.php (source)

   1  <?php
   2  /**
   3   * Two images with text block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Two images with text', 'twentytwentytwo' ),
   7      'categories' => array( 'featured', 'columns', 'gallery' ),
   8      'content'    => '<!-- wp:columns {"align":"wide"} -->
   9                      <div class="wp-block-columns alignwide"><!-- wp:column {"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}}}} -->
  10                      <div class="wp-block-column" style="padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:image {"sizeSlug":"large"} -->
  11                      <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-salmon.jpg" alt="' . esc_attr__( 'Illustration of a bird sitting on a branch.', 'twentytwentytwo' ) . '"/></figure>
  12                      <!-- /wp:image --></div>
  13                      <!-- /wp:column -->
  14  
  15                      <!-- wp:column {"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}}}} -->
  16                      <div class="wp-block-column" style="padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:image {"sizeSlug":"large"} -->
  17                      <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-green.jpg" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>
  18                      <!-- /wp:image -->
  19  
  20                      <!-- wp:spacer {"height":30} -->
  21                      <div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
  22                      <!-- /wp:spacer -->
  23  
  24                      <!-- wp:heading {"fontSize":"x-large"} -->
  25                      <h2 class="has-x-large-font-size" id="screening">' . esc_html__( 'SCREENING', 'twentytwentytwo' ) . '</h2>
  26                      <!-- /wp:heading -->
  27  
  28                      <!-- wp:paragraph -->
  29                      <p>' . wp_kses_post( __( 'May 14th, 2022 @ 7:00PM<br>The Vintagé Theater,<br>245 Arden Rd.<br>Gardenville, NH', 'twentytwentytwo' ) ) . '</p>
  30                      <!-- /wp:paragraph -->
  31  
  32                      <!-- wp:spacer {"height":8} -->
  33                      <div style="height:8px" aria-hidden="true" class="wp-block-spacer"></div>
  34                      <!-- /wp:spacer -->
  35  
  36                      <!-- wp:spacer {"height":10} -->
  37                      <div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
  38                      <!-- /wp:spacer -->
  39  
  40                      <!-- wp:buttons -->
  41                      <div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"foreground"} -->
  42                      <div class="wp-block-button"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__( 'Buy Tickets', 'twentytwentytwo' ) . '</a></div>
  43                      <!-- /wp:button --></div>
  44                      <!-- /wp:buttons --></div>
  45                      <!-- /wp:column --></div>
  46                      <!-- /wp:columns -->',
  47  );


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1