403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.252
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/SliderOptions.php
<?php 
/**
 * Custom slider for the theme.
 * 
 * @copyright  ZiniMedia 2016
 * @version    Release: 1.0
 * @package    penguinmag\class
 * @author     ZiniMedia-BM
 */ 

if(!class_exists('ZiniSliderOptions')){
    class ZiniSliderOptions{

        private $gallerySkin	      	= null;
        private $sliderCaptions			= null;
        private $autoPlay     		   	= null;
        private $autoPlaySpeed  	 	= null;
        private $imageClick             = null;
        private $hideArrows             = null;
        private $displayDots            = null;
        private $mouseDrag              = null;
        private $fade                   = null;
        private $pauseOnHover           = null;
        private $infinite               = null;
        private $lazyLoad               = null;
        private $moveSlideWithTouch     = null;
        private $transitionSpeed        = null;

    	function __construct(){
    		$this->gallerySkin	  	    = get_field('zini_slide_gallery_skin','option');	
    		$this->sliderCaptions	    = get_field('zini_slider_captions','option');	
    		$this->autoPlay     	    = get_field('zini_slide_auto_play','option');	
            $this->autoPlaySpeed        = get_field('zini_slide_auto_play_speed','option'); 
    		$this->imageClick    	    = get_field('zini_slider_image_click','option');	
            $this->hideArrows           = get_field('zini_slider_hide_arrows','option');
            $this->displayDots          = get_field('zini_slider_display_dots','option');
            $this->mouseDrag            = get_field('zini_slider_mouse_drag','option');
            $this->fade                 = get_field('zini_slider_fade','option');
            $this->pauseOnHover         = get_field('zini_slider_pause_on_hover','option');
            $this->infinite             = get_field('zini_slider_infinite','option');
            $this->lazyLoad             = get_field('zini_slider_lazy_load','option');
            $this->moveSlideWithTouch   = get_field('zini_slider_move_with_touch','option');
            $this->transitionSpeed      = get_field('zini_slider_transition_speed','option');
    	}

    	function __destruct(){}

//======================================================================
// GET VALUES
//======================================================================


        /**
         * Get value gallery skin.
         * @return string
         */
        public function getGallerySkin(){
            if ($this->gallerySkin)
                return $this->gallerySkin;
            return "";
        }

        /**
         * Set value for gallery skin.
         * @param   $gallerySkin  
         */
        public function setGallerySkin($gallerySkin){
            $this->gallerySkin = $gallerySkin;
        }

        // get value enable slider captions
        public function getSliderCaptions(){
        	if ($this->sliderCaptions)
        		return $this->sliderCaptions;
        }

        // get value enable image click
        public function getImageClick(){
            if ($this->imageClick)
                return $this->imageClick;
        }

        // get value enable auto play
        public function getAutoPlay(){
        	if ($this->autoPlay == "True")
        		return $this->autoPlay;
            return 0;
        }
        public function getHideArrows(){
                    if ($this->hideArrows == "True") 
                        return 1;
                    return 0;
        }
        public function getDisplayDots(){
                    if ($this->displayDots == "True") 
                        return 1;
                    return 0;
        }
        public function getMouseDrag(){
                    if ($this->mouseDrag == "True") 
                        return 1;
                    return 0;
        }
        public function getFade(){
                    if ($this->fade == "True") 
                        return 1;
                    return 0;
        }
        public function getPauseOnHover(){
                    if ($this->pauseOnHover == "True") 
                        return 1;
                    return 0;
        }
        public function getInfinite(){
                    if ($this->infinite == "True") 
                        return 1;
                    return 0;
        }
        public function getLazyLoad(){
                    if ($this->lazyLoad == "True") 
                        return 1;
                    return 0;
        }
        public function getSliderMoveWithTouch(){
                    if ($this->moveSlideWithTouch == "True") 
                        return 1;
                    return 0;
        }

        /**
         * Get value play speed.
         * @return int
         */
        public function getAutoPlaySpeed(){
            if ($this->autoPlaySpeed)
                return $this->autoPlaySpeed;
            return 10;
        }

        /**
         * Get value transition speed.
         * @return int
         */
        public function getTransitionSpeed(){
            if ($this->transitionSpeed)
                return $this->transitionSpeed;
            return 10;
        }
//======================================================================
// CHECK VALUES
//======================================================================
		/**
         * Check on/off enable slider caption
         * @return boolen
         */
        public function checkEnableSliderCaptions(){
            if ($this->sliderCaptions == "True") 
                return true;
            return false;
        }

        /**
         * Check on/off enable auto play.
         * @return boolen
         */
        public function checkEnableAutoPlay(){
            if ($this->autoPlay == "True") 
                return true;
            return false;
        }

        /**
         * Check on/off enable image click
         * @return boolen
         */
        public function checkEnableImageClick(){
            if ($this->imageClick == "True") 
                return true;
            return false;
        }

        public function checkHideArrows(){
            if ($this->hideArrows == "True") 
                return true;
            return false;
        }
        public function checkDisplayDots(){
            if ($this->displayDots == "True") 
                return true;
            return false;
        }
        public function checkEnableMouseDrag(){
            if ($this->mouseDrag == "True") 
                return true;
            return false;
        }
        public function checkFade(){
            if ($this->fade == "True") 
                return true;
            return false;
        }
        public function checkPauseOnHover(){
            if ($this->pauseOnHover == "True") 
                return true;
            return false;
        }
        public function checkInfinite(){
            if ($this->infinite == "True") 
                return true;
            return false;
        }
        public function checkLazyLoad(){
            if ($this->lazyLoad == "True") 
                return true;
            return false;
        }
        public function checkMoveSlideWithTouch(){
            if ($this->moveSlideWithTouch == "True") 
                return true;
            return false;
        }
//======================================================================
// SET VALUES
//======================================================================
        /**
         * Set value for auto play speed.
         * @param   $autoPlaySpeed  
         */
        public function setAutoPlaySpeed($autoPlaySpeed){
            $this->autoPlaySpeed = $autoPlaySpeed;
        }
        /**
         * Set value for enable image click
         * @param   $imageClick  
         */
        public function setImageClick($imageClick){
            $this->imageClick = $imageClick;
        }
        /**
         * Set value for enable slider caption
         * @param   $sliderCaptions  
         */
        public function setSliderCaptions($sliderCaptions){
            $this->sliderCaptions = $sliderCaptions;
        }
        /**
         * Set value for enable auto play
         * @param   $autoPlay  
         */
        public function setAutoPlay($autoPlay){
            $this->autoPlay = $autoPlay;
        }

        public function setEnableImageClick($imageClick){
            $this->imageClick == $imageClick;
        }
        public function setHideArrows($hideArrows){
            $this->hideArrows == $hideArrows;
        }
        public function setDisplayDots($displayDots){
            $this->displayDots == $displayDots;
        }
        public function setEnableMouseDrag($mouseDrag){
            $this->mouseDrag == $mouseDrag;
        }
        public function setFade($fade){
            $this->fade == $fade;
        }
        public function setPauseOnHover($pauseOnHover){
            $this->pauseOnHover == $pauseOnHover;
        }
        public function setInfinite($infinite){
            $this->infinite == $infinite;
        }
        public function setLazyLoad($lazyLoad){
            $this->lazyLoad == $lazyLoad;
        }
        public function setMoveSlideWithTouch($moveSlideWithTouch){
            $this->moveSlideWithTouch == $moveSlideWithTouch;
        }
    }
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit