[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Bird image
   4   *
   5   * This pattern is used only to reference a dynamic image URL.
   6   * It does not appear in the inserter.
   7   */
   8  return array(
   9      'title'    => __( 'Heading and bird image', 'twentytwentytwo' ),
  10      'inserter' => false,
  11      'content'  => '<!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none"} -->
  12                      <figure class="wp-block-image alignwide size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-d.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>
  13                      <!-- /wp:image -->',
  14  );


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1