footer-right.php 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Right-aligned footer block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Right-aligned footer', '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"} -->
  15. <div class="wp-block-group alignwide"><!-- wp:paragraph {"align":"right","fontSize":"small"} -->
  16. <p class="has-text-align-right 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 --></div>
  23. <!-- /wp:group --></div>
  24. <!-- /wp:group -->
  25. <!-- wp:spacer {"height":60} -->
  26. <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
  27. <!-- /wp:spacer -->',
  28. );