Nav apraksta

hidden-heading-and-bird.php 1.3KB

12345678910111213141516171819202122
  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. <!-- wp:image {"align":"full","sizeSlug":"full","linkDestination":"none"} -->
  18. <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>
  19. <!-- /wp:image -->',
  20. );