HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dailygoldindex/public_html/wp-content/plugins/jnews-gallery/class.jnews-gallery-option.php
<?php
/**
 * @author : Jegtheme
 */

/**
 * Class Theme JNews Option
 */
Class JNews_Gallery_Option
{
    /**
     * @var JNews_Gallery_Option
     */
    private static $instance;

    /**
     * @var Jeg\Customizer\Customizer
     */
    private $customizer;

    /**
     * @return JNews_Gallery_Option
     */
    public static function getInstance()
    {
        if (null === static::$instance)
        {
            static::$instance = new static();
        }
        return static::$instance;
    }

    private function __construct()
    {
        if(class_exists('Jeg\Customizer\Customizer'))
        {
            $this->customizer = Jeg\Customizer\Customizer::get_instance();

            $this->set_section();
        }
    }

    public function set_section()
    {

        $preview_slider_section = array(
            'id' => 'jnews_preview_slider_section',
            'title' => esc_html__('Gallery Shortcode', 'jnews-gallery'),
            'panel' => 'jnews_image_panel',
            'priority' => 250,
            'type' => 'jnews-lazy-section',
        );

        $preview_slider_ads_section = array(
            'id' => 'jnews_preview_slider_ads_section',
            'title' => esc_html__('Preview Slider Ads', 'jnews-gallery'),
            'panel' => 'jnews_ads',
            'priority' => 250,
            'type' => 'jnews-lazy-section',
        );

        $this->customizer->add_section($preview_slider_section);
        $this->customizer->add_section($preview_slider_ads_section);
    }

}