block-styles.php 732 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Seedlet Theme: Block Styles
  4. *
  5. * @package Seedlet
  6. * @since 1.0.0
  7. */
  8. if ( function_exists( 'register_block_style' ) ) {
  9. function seedlet_register_block_styles() {
  10. /**
  11. * Register block styles
  12. */
  13. register_block_style(
  14. 'core/latest-posts',
  15. array(
  16. 'name' => 'seedlet-alternating-grid',
  17. 'label' => __( 'Alternating Grid', 'seedlet' ),
  18. 'style_handle' => 'seedlet-alternating-grid',
  19. )
  20. );
  21. register_block_style(
  22. 'a8c/blog-posts',
  23. array(
  24. 'name' => 'seedlet-alternating-grid',
  25. 'label' => __( 'Alternating Grid', 'seedlet' ),
  26. 'style_handle' => 'seedlet-alternating-grid',
  27. )
  28. );
  29. }
  30. add_action( 'init', 'seedlet_register_block_styles' );
  31. }