HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/slider/config.php
<?php
/**
 * Thim_Builder Slider config class
 *
 * @version     1.0.0
 * @author      ThimPress
 * @package     Thim_Builder/Classes
 * @category    Classes
 * @author      Thimpress, tuanta
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'Thim_Builder_Config_Slider' ) ) {
	/**
	 * Class Thim_Builder_Config_Slider
	 */
	class Thim_Builder_Config_Slider extends Thim_Builder_Abstract_Config {

		/**
		 * Thim_Builder_Config_Slider constructor.
		 */
		public function __construct() {
			// info
			self::$base = 'slider';
			self::$name = esc_html__( 'Thim: Slider', 'hotel-wp' );
			self::$desc = esc_html__( 'Add Slider', 'hotel-wp' );
			self::$icon = 'thim-widget-icon thim-widget-icon-timetable';

			parent::__construct();
		}

		/**
		 * @return array
		 */
		public function get_options() {

			// options
			return array(
				array(
					'type'             => 'attach_images',
					'heading'          => esc_html__( 'Background Image', 'hotel-wp' ),
					'param_name'       => 'background_image',
					
				),
				array(
					'type'        => 'textfield',
					'heading'     => esc_html__( 'Background Title', 'hotel-wp' ),
					'param_name'  => 'bg_title',
					'std'         => esc_html__('Enjoy Vacation','hotel-wp')
				),
				array(
					'type'        => 'textfield',
					'heading'     => esc_html__( 'Primary Title', 'hotel-wp' ),
					'param_name'  => 'primary_title',
					'std'         => esc_html__('Enjoy','hotel-wp')
				),	
				array(
					'type'        => 'textfield',
					'heading'     => esc_html__( 'Second Title', 'hotel-wp' ),
					'param_name'  => 'second_title',
					'std'         => esc_html__('our vacation','hotel-wp')
				),
				array(
					'type'       => 'checkbox',
					'heading'    => esc_html__( 'Enable Autoplay', 'hotel-wp' ),
					'param_name' => 'enable_autoplay',
					'std'        => false, 
				),
				array(
					'type'        => 'number',
					'heading'     => esc_html__( 'Autoplay Speed', 'hotel-wp' ),
					'param_name'  => 'autoplay_speed',
					'std'         => '3000',
					'dependency'  => array(
						'element' => 'enable_autoplay',
						'value'   => array('yes','true')
					)
				),
			);
		}
	}
}