HEX
Server: LiteSpeed
System: Linux premium283.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: citaqlmd (746)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //home/citaqlmd/coastal-connexion.com/wp-content/plugins/ml-slider/admin/support/Settings.php
<?php

if (!defined('ABSPATH')) {
    die('No direct access.');
}

if (! class_exists('MetaSlider_Settings')) {
    /**
     * Class to handle settings for MetaSlider.
     */
    class MetaSlider_Settings
    {
        const GLOBAL_OPTIONS_OPTION_NAME = 'metaslider_global_settings';

        /**
         * Instance object
         *
         * @var MetaSlider_Settings
         * @see get_instance()
         */
        protected static $instance = null;

        public function __construct()
        {
        }

        /**
         * Used to access the instance
         *
         * @return MetaSlider_Settings - class instance
         */
        public static function get_instance()
        {
            if (null === self::$instance) {
                self::$instance = new self();
            }

            return self::$instance;
        }

        private function get_option($option_name, $default = null)
        {
            $settings = get_option(self::GLOBAL_OPTIONS_OPTION_NAME);

            if (false === $settings) {
                return $default;
            }

            if (! isset($settings[$option_name])) {
                return $default;
            }

            return $settings[$option_name];
        }
    }
}