暫無描述

class-twentytwenty-separator-control.php 548B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Customizer Separator Control settings for this theme.
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Twenty
  7. * @since Twenty Twenty 1.0
  8. */
  9. if ( class_exists( 'WP_Customize_Control' ) ) {
  10. if ( ! class_exists( 'TwentyTwenty_Separator_Control' ) ) {
  11. /**
  12. * Separator Control.
  13. *
  14. * @since Twenty Twenty 1.0
  15. */
  16. class TwentyTwenty_Separator_Control extends WP_Customize_Control {
  17. /**
  18. * Render the hr.
  19. *
  20. * @since Twenty Twenty 1.0
  21. */
  22. public function render_content() {
  23. echo '<hr/>';
  24. }
  25. }
  26. }
  27. }