image-feature.php 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Two posts with features images in a query block.
  4. *
  5. * @package Geologist
  6. */
  7. return array(
  8. 'title' => __( 'Image feature', 'geologist' ),
  9. 'categories' => array( 'geologist' ),
  10. 'blockTypes' => array( 'core/image', 'core/columns' ),
  11. 'content' => '<!-- wp:image {"align":"wide","sizeSlug":"large"} -->
  12. <figure class="wp-block-image alignwide size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/gem.jpeg" alt=""/></figure>
  13. <!-- /wp:image -->
  14. <!-- wp:columns {"align":"wide"} -->
  15. <div class="wp-block-columns alignwide"><!-- wp:column -->
  16. <div class="wp-block-column"><!-- wp:heading {"level":3} -->
  17. <h3>' . esc_html__( 'Geologist', 'geologist' ) . '</h3>
  18. <!-- /wp:heading --></div>
  19. <!-- /wp:column -->
  20. <!-- wp:column -->
  21. <div class="wp-block-column"><!-- wp:paragraph -->
  22. <p>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</p>
  23. <!-- /wp:paragraph --></div>
  24. <!-- /wp:column --></div>
  25. <!-- /wp:columns -->',
  26. );