footer-nav-right.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Footer with right navigation block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Footer with right navigation', 'stewart' ),
  7. 'categories' => array( 'footer' ),
  8. 'blockTypes' => array( 'core/template-part/footer' ),
  9. 'content' => '<!-- wp:spacer {"height":60} -->
  10. <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
  11. <!-- /wp:spacer -->
  12. <!-- wp:group {"align":"full","layout":{"inherit":true}} -->
  13. <div class="wp-block-group alignfull">
  14. <!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  15. <div class="wp-block-group alignwide"><!-- wp:paragraph {"align":"left","fontSize":"small"} -->
  16. <p class="has-text-align-left has-small-font-size">' .
  17. sprintf(
  18. /* Translators: WordPress link. */
  19. esc_html__( 'Proudly powered by %s', 'stewart' ),
  20. '<a href="' . esc_url( __( 'https://wordpress.org', 'stewart' ) ) . '" rel="nofollow">WordPress</a>'
  21. ) . '</p>
  22. <!-- /wp:paragraph -->
  23. <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left"},"overlayBackgroundColor":"background","overlayTextColor":"foreground","style":{"typography":{"fontStyle":"normal"}},"fontSize":"small"} -->
  24. <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /-->
  25. <!-- /wp:navigation --></div>
  26. <!-- /wp:group --></div>
  27. <!-- /wp:group -->
  28. <!-- wp:spacer {"height":60} -->
  29. <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
  30. <!-- /wp:spacer -->',
  31. );