[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> page-about-media-right.php (source)

   1  <?php
   2  /**
   3   * About page with media on the right
   4   */
   5  return array(
   6      'title'      => __( 'About page with media on the right', 'twentytwentytwo' ),
   7      'categories' => array( 'twentytwentytwo_pages' ),
   8      'content'    => '<!-- wp:media-text {"align":"full","mediaPosition":"right","mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-black.jpg","mediaType":"image","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background"} -->
   9                  <div class="wp-block-media-text alignfull has-media-on-the-right is-stacked-on-mobile has-background-color has-foreground-background-color has-text-color has-background has-link-color"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-black.jpg" alt="' . esc_attr__( 'An image of a bird flying', 'twentytwentytwo' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:spacer {"height":32} -->
  10                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  11                      <!-- /wp:spacer -->
  12                      <!-- wp:site-logo {"width":60} /-->
  13  
  14                      <!-- wp:group {"style":{"spacing":{"padding":{"right":"min(8rem, 5vw)","top":"min(20rem, 20vw)"}}}} -->
  15                      <div class="wp-block-group" style="padding-top:min(20rem, 20vw);padding-right:min(8rem, 5vw)"><!-- wp:heading {"style":{"typography":{"fontWeight":"300","lineHeight":"1.115","fontSize":"clamp(3rem, 6vw, 4.5rem)"}}} -->
  16                      <h2 style="font-size:clamp(3rem, 6vw, 4.5rem);font-weight:300;line-height:1.115"><em>' . wp_kses_post( __( 'Emery<br>Driscoll', 'twentytwentytwo' ) ) . '</em></h2>
  17                      <!-- /wp:heading -->
  18  
  19                      <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.6"}}} -->
  20                      <p style="line-height:1.6">' . esc_html__( 'Oh hello. My name’s Emery, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show on Tuesday evenings at 11PM EDT.', 'twentytwentytwo' ) . '</p>
  21                      <!-- /wp:paragraph -->
  22  
  23                      <!-- wp:spacer {"height":40} -->
  24                      <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  25                      <!-- /wp:spacer -->
  26  
  27                      <!-- wp:social-links {"iconColor":"background","iconColorValue":"var(--wp--preset--color--foreground)","iconBackgroundColor":"foreground","iconBackgroundColorValue":"var(--wp--preset--color--background)"} -->
  28                      <ul class="wp-block-social-links has-icon-color has-icon-background-color"><!-- wp:social-link {"url":"#","service":"wordpress"} /-->
  29  
  30                      <!-- wp:social-link {"url":"#","service":"twitter"} /-->
  31  
  32                      <!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
  33                      <!-- /wp:social-links --></div>
  34                      <!-- /wp:group --></div>
  35  
  36                      <!-- wp:spacer {"height":32} -->
  37                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  38                      <!-- /wp:spacer --></div>
  39                      <!-- /wp:media-text -->',
  40  );


Generated : Fri Mar 29 08:20:02 2024 Cross-referenced by PHPXref