layout-with-two-images-and-text.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Layout with two images and text
  4. */
  5. return array(
  6. 'title' => __( 'Layout with two images and text', 'archeo' ),
  7. 'categories' => array( 'featured', 'images' ),
  8. 'content' => '<!-- wp:media-text {"align":"full","mediaPosition":"right","mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/uxmal.jpg","mediaType":"image","imageFill":true,"focalPoint":{"x":"0.50","y":"0.90"},"backgroundColor":"foreground","textColor":"background"} -->
  9. <div class="wp-block-media-text alignfull has-media-on-the-right is-stacked-on-mobile is-image-fill has-background-color has-foreground-background-color has-text-color has-background"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/assets/images/uxmal.jpg);background-position:50% 90%"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/uxmal.jpg" alt="' . __( 'Photo of the Pyramid of the Magician, at Uxmal', 'archeo' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:columns -->
  10. <div class="wp-block-columns"><!-- wp:column -->
  11. <div class="wp-block-column"><!-- wp:spacer {"height":"min(10rem, 10vw)"} -->
  12. <div style="height:min(10rem, 10vw)" aria-hidden="true" class="wp-block-spacer"></div>
  13. <!-- /wp:spacer --><
  14. <!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"100","lineHeight":"1.2"}},"fontSize":"medium"} -->
  15. <p class="has-medium-font-size" style="font-style:normal;font-weight:100;line-height:1.2">' . wp_kses_post( __( 'The Pyramid of the <br>Magician at Uxmal', 'archeo' ) ) . '</p>
  16. <!-- /wp:paragraph -->
  17. <!-- wp:image {"align":"left","sizeSlug":"full","linkDestination":"none"} -->
  18. <figure class="wp-block-image alignleft size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/pyramid.jpg" alt="' . __( 'Photograph by Désiré Charnay, 1862 to 1863', 'archeo' ) . '"/><figcaption><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-background-color"><em>' . __( 'Photograph by Désiré Charnay, 1862 – 1863', 'archeo' ) . '</em></mark></figcaption></figure>
  19. <!-- /wp:image --></div>
  20. <!-- /wp:column -->
  21. <!-- wp:column -->
  22. <div class="wp-block-column"><!-- wp:spacer {"height":"min(43rem, 43vw)"} -->
  23. <div style="height:min(43rem, 43vw)" aria-hidden="true" class="wp-block-spacer"></div>
  24. <!-- /wp:spacer -->
  25. <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.5"}},"fontSize":"small"} -->
  26. <p class="has-small-font-size" style="line-height:1.5">' . __( 'Uxmal is an ancient Maya city located in present-day Mexico. It is considered one of the most important archaeological sites of Mayan culture.', 'archeo' ) . '</p>
  27. <!-- /wp:paragraph -->
  28. <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.5"}},"fontSize":"small"} -->
  29. <p class="has-small-font-size" style="line-height:1.5"><em>' . __( 'On the right: Governor\'s Palace, detail of the main gate', 'archeo' ) . '</em></p>
  30. <!-- /wp:paragraph -->
  31. <!-- wp:spacer {"height":"min(10rem, 10vw)"} -->
  32. <div style="height:min(10rem, 10vw)" aria-hidden="true" class="wp-block-spacer"></div>
  33. <!-- /wp:spacer --></div>
  34. <!-- /wp:column --></div>
  35. <!-- /wp:columns --></div></div>
  36. <!-- /wp:media-text -->',
  37. );