<?php
/**
 * Customize info control.
 *
 * @since  1.0.0
 *
 * @package Masonry_Blog
 */

if ( ! class_exists( 'Masonry_Blog_Customize_Info_Control' ) ) {
	/**
	 * Customize info control class.
	 *
	 * @since 1.0.0
	 *
	 * @see WP_Customize_Control
	 */
	class Masonry_Blog_Customize_Info_Control extends WP_Customize_Control {
		/**
		 * Control type
		 *
		 * @var string
		 */
		public $type = 'info';
		/**
		 * Control method
		 *
		 * @since 1.0.0
		 */
		public function render_content() {
			?>
			<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
			<?php
			if ( $this->description ) {
				?>
				<p><?php echo esc_html( $this->description ); ?></p>
				<?php
			}
		}
	}
}
