<?php
/**
 * Blog Over Section Title Control
 * 
 * Creates a section title/heading in Customizer
 *
 * @package Blog_Over
 */

if (!defined('ABSPATH')) {
    exit;
}

if (!class_exists('WP_Customize_Control')) {
    return;
}

/**
 * Section Title Control
 */
class blog_over_Section_Title_Control extends WP_Customize_Control
{
    /**
     * Control type
     *
     * @var string
     */
    public $type = 'blog-over-section-title';

    /**
     * Render the control content
     */
    public function render_content()
    {
        ?>
        <div class="blog-over-section-title">
            <?php if (!empty($this->label)): ?>
                <h4 class="blog-over-section-heading"><?php echo esc_html($this->label); ?></h4>
            <?php endif; ?>

            <?php if (!empty($this->description)): ?>
                <p class="blog-over-section-description"><?php echo esc_html($this->description); ?></p>
            <?php endif; ?>
        </div>
        <?php
    }
}
