pattern-two-posts-with-excerpt.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * Pattern: Two posts with excerpt
  4. *
  5. * @package Videomaker
  6. */
  7. return array(
  8. 'title' => __( 'Two posts with excerpt', 'videomaker' ),
  9. 'categories' => array( 'videomaker' ),
  10. 'content' => '<!-- wp:columns {"align":"wide"} -->
  11. <div class="wp-block-columns alignwide"><!-- wp:column {"width":"80%"} -->
  12. <div class="wp-block-column" style="flex-basis:80%">
  13. <!-- wp:video {"src":"' . get_stylesheet_directory_uri() . '/assets/videos/digging.mp4"} -->
  14. <figure class="wp-block-video"><video controls src="' . get_stylesheet_directory_uri() . '/assets/videos/digging.mp4"></video></figure>
  15. <!-- /wp:video -->
  16. <!-- wp:columns -->
  17. <div class="wp-block-columns"><!-- wp:column -->
  18. <div class="wp-block-column">
  19. <!-- wp:heading {"level":4} -->
  20. <h4>' . esc_html__( 'Man Working at Dawn', 'videomaker' ) . '</h4>
  21. <!-- /wp:heading -->
  22. <!-- wp:template-part {"slug":"post-meta","theme":"' . get_stylesheet() . '"} /-->
  23. </div>
  24. <!-- /wp:column -->
  25. <!-- wp:column -->
  26. <div class="wp-block-column"><!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.5"}},"fontSize":"small"} -->
  27. <p class="has-small-font-size" style="line-height:1.5">' . esc_html__( 'As nations under the present system are driven to compete with one another for the markets of the world, so also have the workers to compete with each other—for livelihood.', 'videomaker' ) . '</p>
  28. <!-- /wp:paragraph --></div>
  29. <!-- /wp:column --></div>
  30. <!-- /wp:columns --></div>
  31. <!-- /wp:column -->
  32. <!-- wp:column {"width":"33.33%"} -->
  33. <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:spacer -->
  34. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  35. <!-- /wp:spacer --></div>
  36. <!-- /wp:column --></div>
  37. <!-- /wp:columns -->
  38. <!-- wp:spacer -->
  39. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  40. <!-- /wp:spacer -->
  41. <!-- wp:columns {"align":"wide"} -->
  42. <div class="wp-block-columns alignwide"><!-- wp:column {"width":"20%"} -->
  43. <div class="wp-block-column" style="flex-basis:20%"><!-- wp:spacer -->
  44. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  45. <!-- /wp:spacer --></div>
  46. <!-- /wp:column -->
  47. <!-- wp:column {"width":"80%"} -->
  48. <div class="wp-block-column" style="flex-basis:80%">
  49. <!-- wp:video {"src":"' . get_stylesheet_directory_uri() . '/assets/videos/boats.mp4"} -->
  50. <figure class="wp-block-video"><video controls src="' . get_stylesheet_directory_uri() . '/assets/videos/boats.mp4"></video></figure>
  51. <!-- /wp:video -->
  52. <!-- wp:columns -->
  53. <div class="wp-block-columns"><!-- wp:column -->
  54. <div class="wp-block-column">
  55. <!-- wp:heading {"level":4} -->
  56. <h4>' . esc_html__( 'Boats', 'videomaker' ) . '</h4>
  57. <!-- /wp:heading -->
  58. <!-- wp:template-part {"slug":"post-meta","theme":"' . get_stylesheet() . '"} /-->
  59. </div>
  60. <!-- /wp:column -->
  61. <!-- wp:column -->
  62. <div class="wp-block-column"><!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.5"}},"fontSize":"small"} -->
  63. <p class="has-small-font-size" style="line-height:1.5">' . esc_html__( 'As nations under the present system are driven to compete with one another for the markets of the world, so also have the workers to compete with each other—for livelihood.', 'videomaker' ) . '</p>
  64. <!-- /wp:paragraph --></div>
  65. <!-- /wp:column --></div>
  66. <!-- /wp:columns --></div>
  67. <!-- /wp:column --></div>
  68. <!-- /wp:columns -->',
  69. );