<?php
/**
*
* A Custom control for post dropdown
*
* @since 1.0.0
*
* @package Guten Learn WordPress Theme
*
* @uses  Class WP_Customize_Control
* 
*/
if ( class_exists( 'WP_Customize_Control' ) ) :

	class Guten_Learn_Horizontal_Line extends WP_Customize_Control {

		public $type = 'guten-learn-horizontal-line';

		/**
		*    
		* Adds the horizontal line
		* @since  1.0.0
		* @access public
		* @return void   
		*  
		* @package Guten Learn WordPress Theme
		*/ 
		public function render_content() { ?>
			<style>
				hr{
					border-top: 7px solid #c1c1c1;
					border-bottom: 0;
				}
			</style>
			<div class="guten-learn-horizontal-line">
				<span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span>
				<span class="description customize-control-description"><?php echo esc_html( $this->description ) ?></span>
				<hr>
			</div>
		<?php }

	}

endif;

Guten_Learn_Customizer::add_custom_control( array(
    'type'     => 'guten-learn-horizontal-line',
    'class'    => 'Guten_Learn_Horizontal_Line',
    'sanitize' => false,
    'register_control_type' => false
));