403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/langngon.com/wp-content/themes/langngon/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/langngon.com/wp-content/themes/langngon/class/Header.php
<?php 
/**
 * Custom header for the theme.
 * 
 * @copyright  ZiniMedia 2016
 * @version    Release: 1.0
 * @package    penguinmag\class
 * @author     ZiniMedia-BM
 */ 

if(!class_exists('ZiniHeader')){
    class ZiniHeader{
        private $headerBackground       = null;
        private $floatingNavigationMenu = null;
        private $showPrimaryMenu        = null;
        private $showLogo               = null;
        private $showLoginRegisterURL   = null;
        private $showHeaderSearch       = null;

        function __construct() {
            $this->headerBackground         = get_field('zini_header_background',               'option');
            $this->floatingNavigationMenu   = get_field('zini_header_floating_navigation_menu', 'option');
            $this->showPrimaryMenu          = get_field('zini_header_show_primary_menu',        'option');
            $this->showLogo                 = get_field('zini_header_show_logo',                'option');
            $this->showLoginRegisterURL     = get_field('zini_header_show_loginregister_url_',  'option');
            $this->showHeaderSearch         = get_field('zini_header_show_header_search',       'option');
        }

        function __destruct() {}

        /**
         * Get value color header background.
         * @return string
         */
        public function getHeaderBackground(){
            if ($this->headerBackground) 
                return $this->headerBackground;
            return "#fff";
        }

        /**
         * Set value for header background
         * @param   $headerBackground  
         */
        public function setHeaderBackground($headerBackground){
            $this->headerBackground = $headerBackground;
        }

        /**
         * Check on/off floating navigation menu.
         * @return boolen
         */
        public function getFloatingNavigationMenu(){
            if ($this->floatingNavigationMenu == "On")
                return true;
            return false;
        }

        /**
         * Set value for floating navigation menu
         * @param   $floatingNavigationMenu  
         */
        public function setFloatingNavigationMenu($floatingNavigationMenu){
            $this->floatingNavigationMenu = $floatingNavigationMenu;
        }

        /**
         * Check on/off show primary menu.
         * @return boolen
         */
        public function getShowPrimaryMenu(){
            if ($this->showPrimaryMenu == "On") 
                return true;
            return false;

        }

        /**
         * Set value for show primary menu
         * @param   $showPrimaryMenu  
         */
        public function setShowPrimaryMenu($showPrimaryMenu){
            $this->showPrimaryMenu = $showPrimaryMenu;
        }

        /**
         * Check enable show logo.
         * @return boolen
         */
        public function getShowLogo(){
            if ($this->showLogo == "Yes")
                return true;
            return false;
        }

        /**
         * Set value for show logo
         * @param   $showLogo  
         */
        public function setShowLogo($showLogo){
            $this->showLogo = $showLogo;
        }

        /**
         * Check enable show login register url.
         * @return boolen
         */
        public function getShowLoginRegisterURL(){
            if ($this->showLoginRegisterURL == "Yes") 
                return true;
            return false;
        }

        /**
         * Set value for show login resister url
         * @param   $showLoginRegisterURL  
         */
        public function setShowLoginRegisterURL($showLoginRegisterURL){
            $this->showLoginRegisterURL = $showLoginRegisterURL;
        }

        /**
         * Check enable show header search.
         * @return boolen
         */
        public function getShowHeaderSearch(){
            if ($this->showHeaderSearch == "Yes") 
                return true;
            return false;
        }

        /**
         * Set value for show header search
         * @param   $showHeaderSearch  
         */
        public function setShowHeaderSearch($showHeaderSearch){
            $this->showHeaderSearch = $showHeaderSearch;
        }
    }
}

// $ziniHeader = new ZiniHeader();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit