ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

class-twentytwenty-separator-control.php (548B)


      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 
     10 if ( class_exists( 'WP_Customize_Control' ) ) {
     11 
     12 	if ( ! class_exists( 'TwentyTwenty_Separator_Control' ) ) {
     13 		/**
     14 		 * Separator Control.
     15 		 *
     16 		 * @since Twenty Twenty 1.0
     17 		 */
     18 		class TwentyTwenty_Separator_Control extends WP_Customize_Control {
     19 			/**
     20 			 * Render the hr.
     21 			 *
     22 			 * @since Twenty Twenty 1.0
     23 			 */
     24 			public function render_content() {
     25 				echo '<hr/>';
     26 			}
     27 
     28 		}
     29 	}
     30 }