[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> page-layout-image-text-and-video.php (source)

   1  <?php
   2  /**
   3   * Page layout with image, text and video.
   4   */
   5  return array(
   6      'title'      => __( 'Page layout with image, text and video', 'twentytwentytwo' ),
   7      'categories' => array( 'twentytwentytwo_pages' ),
   8      'content'    => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"backgroundColor":"primary","textColor":"background"} -->
   9                      <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background" style="padding-top:var(--wp--custom--spacing--large, 8rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:group {"layout":{"inherit":true}} -->
  10                      <div class="wp-block-group"><!-- wp:heading {"level":1,"align":"wide","style":{"typography":{"fontSize":"clamp(3rem, 6vw, 4.5rem)"}}} -->
  11                      <h1 class="alignwide" style="font-size:clamp(3rem, 6vw, 4.5rem)">' . wp_kses_post( __( '<em>Warble</em>, a film about <br>hobbyist bird watchers.', 'twentytwentytwo' ) ) . '</h1>
  12                      <!-- /wp:heading -->
  13  
  14                      <!-- wp:spacer {"height":50} -->
  15                      <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
  16                      <!-- /wp:spacer -->
  17  
  18                      <!-- wp:columns {"align":"wide"} -->
  19                      <div class="wp-block-columns alignwide"><!-- wp:column {"width":"33.33%"} -->
  20                      <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading {"fontSize":"x-large"} -->
  21                      <h2 class="has-x-large-font-size">' . esc_html__( 'Screening', 'twentytwentytwo' ) . '</h2>
  22                      <!-- /wp:heading -->
  23  
  24                      <!-- wp:paragraph -->
  25                      <p>' . wp_kses_post( __( 'May 14th, 2022 @ 7:00PM<br>The Vintagé Theater,<br>245 Arden Rd.<br>Gardenville, NH', 'twentytwentytwo' ) ) . '</p>
  26                      <!-- /wp:paragraph -->
  27  
  28                      <!-- wp:buttons -->
  29                      <div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"secondary","textColor":"primary"} -->
  30                      <div class="wp-block-button"><a class="wp-block-button__link has-primary-color has-secondary-background-color has-text-color has-background">' . esc_html__( 'Buy Tickets', 'twentytwentytwo' ) . '</a></div>
  31                      <!-- /wp:button --></div>
  32                      <!-- /wp:buttons --></div>
  33                      <!-- /wp:column -->
  34  
  35                      <!-- wp:column {"width":"66.66%"} -->
  36                      <div class="wp-block-column" style="flex-basis:66.66%"></div>
  37                      <!-- /wp:column --></div>
  38                      <!-- /wp:columns --></div>
  39                      <!-- /wp:group -->
  40  
  41                      <!-- wp:image {"align":"full","width":2400,"height":1178,"style":{"color":{}}} -->
  42                      <figure class="wp-block-image alignfull is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-a.png" alt="' . esc_attr__( 'An illustration of a bird in flight', 'twentytwentytwo' ) . '" width="2400" height="1178"/></figure>
  43                      <!-- /wp:image -->
  44  
  45                      <!-- wp:group {"align":"full","layout":{"inherit":true}} -->
  46                      <div class="wp-block-group alignfull"><!-- wp:columns {"align":"wide"} -->
  47                      <div class="wp-block-columns alignwide"><!-- wp:column {"width":"33.33%"} -->
  48                      <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading {"fontSize":"x-large"} -->
  49                      <h2 class="has-x-large-font-size">' . esc_html__( 'Extended Trailer', 'twentytwentytwo' ) . '</h2>
  50                      <!-- /wp:heading -->
  51  
  52                      <!-- wp:paragraph -->
  53                      <p>' . esc_html__( 'Oh hello. My name’s Angelo, and you’ve found your way to my blog. I write about a range of topics, but lately I’ve been sharing my hopes for next year.', 'twentytwentytwo' ) . '</p>
  54                      <!-- /wp:paragraph --></div>
  55                      <!-- /wp:column -->
  56  
  57                      <!-- wp:column {"width":"66.66%"} -->
  58                      <div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:video {"id":181} -->
  59                      <figure class="wp-block-video"><video controls src="' . esc_url( get_template_directory_uri() ) . '/assets/videos/birds.mp4"></video></figure>
  60                      <!-- /wp:video --></div>
  61                      <!-- /wp:column --></div>
  62                      <!-- /wp:columns --></div>
  63                      <!-- /wp:group --></div>
  64                      <!-- /wp:group -->',
  65  );


Generated : Thu Mar 28 08:20:01 2024 Cross-referenced by PHPXref