[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> hidden-heading-and-bird.php (source)

   1  <?php
   2  /**
   3   * Heading and bird image
   4   *
   5   * This pattern is used only for translation
   6   * and to reference a dynamic image URL. It does
   7   * not appear in the inserter.
   8   */
   9  return array(
  10      'title'    => __( 'Heading and bird image', 'twentytwentytwo' ),
  11      'inserter' => false,
  12      'content'  => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0px","bottom":"0px"}}},"layout":{"inherit":true}} -->
  13                      <div class="wp-block-group alignfull" style="padding-top:0px;padding-bottom:0px;"><!-- wp:heading {"align":"wide","style":{"typography":{"fontSize":"var(--wp--custom--typography--font-size--colossal, clamp(3.25rem, 8vw, 6.25rem))","lineHeight":"1.15"}}} -->
  14                      <h2 class="alignwide" style="font-size:var(--wp--custom--typography--font-size--colossal, clamp(3.25rem, 8vw, 6.25rem));line-height:1.15">' . wp_kses_post( __( '<em>The Hatchery</em>: a blog about my adventures in bird watching', 'twentytwentytwo' ) ) . '</h2>
  15                      <!-- /wp:heading --></div>
  16                      <!-- /wp:group -->
  17  
  18                      <!-- wp:image {"align":"full","sizeSlug":"full","linkDestination":"none"} -->
  19                      <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-c.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>
  20                      <!-- /wp:image -->',
  21  );


Generated: Thu Apr 18 01:00:02 2024 Cross-referenced by PHPXref 0.7.1