| Server IP : 161.248.188.39 / Your IP : 216.73.216.53 Web Server : Apache System : Linux 161-248-188-39.cprapid.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : mysoftbd ( 1002) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/mysoftbd/gopinathpurhs.edu.bd/wp-content/plugins/ml-slider/admin/support/ |
Upload File : |
<?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];
}
}
}