block-styles.php 805 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Quadrat Theme: Block Styles
  4. *
  5. * @package Seedlet
  6. * @since 1.0.0
  7. */
  8. if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
  9. function quadrat_register_block_styles() {
  10. if ( function_exists( 'register_block_style' ) ) {
  11. /**
  12. * Register block styles
  13. */
  14. register_block_style(
  15. 'core/cover',
  16. array(
  17. 'name' => 'quadrat-cover-diamond',
  18. 'label' => __( 'Diamond', 'quadrat' ),
  19. 'style_handle' => 'quadrat-cover-diamond',
  20. )
  21. );
  22. register_block_style(
  23. 'core/query',
  24. array(
  25. 'name' => 'quadrat-diamond-posts',
  26. 'label' => __( 'Diamond Posts', 'quadrat' ),
  27. 'style_handle' => 'quadrat-diamond-posts',
  28. )
  29. );
  30. }
  31. }
  32. endif;
  33. add_action( 'after_setup_theme', 'quadrat_register_block_styles' );