[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * About page with media on the left
   4   */
   5  return array(
   6      'title'      => __( 'About page with media on the left', 'twentytwentytwo' ),
   7      'categories' => array( 'pages' ),
   8      'content'    => '<!-- wp:media-text {"align":"full","mediaType":"image","imageFill":true,"focalPoint":{"x":"0.63","y":"0.16"},"backgroundColor":"foreground","className":"alignfull is-image-fill has-background-color has-text-color has-background has-link-color"} -->
   9                      <div class="wp-block-media-text alignfull is-stacked-on-mobile is-image-fill has-background-color has-text-color has-background has-link-color has-foreground-background-color has-background"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-salmon.jpg);background-position:63% 16%"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-salmon.jpg" alt="' . esc_attr__( 'Image of a bird on a branch', '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  
  13                      <!-- wp:site-logo {"width":60} /-->
  14  
  15                      <!-- wp:group {"style":{"spacing":{"padding":{"right":"min(8rem, 5vw)","top":"min(28rem, 28vw)"}}}} -->
  16                      <div class="wp-block-group" style="padding-top:min(28rem, 28vw);padding-right:min(8rem, 5vw)"><!-- wp:heading {"style":{"typography":{"fontWeight":"300","lineHeight":"1.115","fontSize":"clamp(3rem, 6vw, 4.5rem)"}}} -->
  17                      <h2 style="font-size:clamp(3rem, 6vw, 4.5rem);font-weight:300;line-height:1.115"><em>' . esc_html__( 'Doug', 'twentytwentytwo' ) . '<br>' . esc_html__( 'Stilton', 'twentytwentytwo' ) . '</em></h2>
  18                      <!-- /wp:heading -->
  19  
  20                      <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.6"}}} -->
  21                      <p style="line-height:1.6">' . esc_html__( 'Oh hello. My name’s Doug, 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>
  22                      <!-- /wp:paragraph -->
  23  
  24                      <!-- wp:spacer {"height":40} -->
  25                      <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  26                      <!-- /wp:spacer -->
  27  
  28                      <!-- wp:social-links {"iconColor":"background","iconColorValue":"var(--wp--preset--color--background)","iconBackgroundColor":"foreground","iconBackgroundColorValue":"var(--wp--preset--color--foreground)"} -->
  29                      <ul class="wp-block-social-links has-icon-color has-icon-background-color"><!-- wp:social-link {"url":"#","service":"wordpress"} /-->
  30  
  31                      <!-- wp:social-link {"url":"#","service":"twitter"} /-->
  32  
  33                      <!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
  34                      <!-- /wp:social-links --></div>
  35                      <!-- /wp:group -->
  36  
  37                      <!-- wp:spacer {"height":32} -->
  38                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  39                      <!-- /wp:spacer --></div></div>
  40                      <!-- /wp:media-text -->',
  41  );


Generated: Wed Dec 25 01:00:02 2024 Cross-referenced by PHPXref 0.7.1