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/our-gallery/config.php
<?php
/**
 * Thim_Builder Our Gallery 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_Our_Gallery' ) ) {
	/**
	 * Class Thim_Builder_Config_Our_Gallery
	 */
	class Thim_Builder_Config_Our_Gallery extends Thim_Builder_Abstract_Config {

		/**
		 * Thim_Builder_Config_Our_Gallery constructor.
		 */
		public function __construct() {
			// info
			self::$base = 'our-gallery';
			self::$name = esc_html__( 'Thim: Our Gallery', 'hotel-wp' );
			self::$desc = esc_html__( 'Add Our Gallery', 'hotel-wp' );
			self::$icon = 'thim-widget-icon thim-widget-icon-timetable';

			parent::__construct();
		}

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

			// options
			return array(
				array(
					"type"        => "dropdown",
					"admin_label" => true,
					"heading"     => esc_html__( "Layout", "hotel-wp" ),
					"param_name"  => "gallery_layout",
					"value"       => array(
						esc_html__( "Default", "hotel-wp" )  => "default",
						esc_html__( "Layout 1", "hotel-wp" )  => "layout-1",
					),
					"std"         => "default",
					"description" => esc_attr__( "", "hotel-wp" )
				),
				array(
					"type"        => "textfield",
					"admin_label" => true,
					"heading"     => esc_attr__( "Title", 'hotel-wp' ),
					"param_name"  => "title",
				),
				array(
					"type"        => "textarea",
					"admin_label" => true,
					"heading"     => esc_attr__( "Sub Title", 'hotel-wp' ),
					"param_name"  => "sub-title",
				),
				array(
					"type"        => "number",
					"min"         => "1",
					"value"       => "6",
					"admin_label" => true,
					"heading"     => esc_attr__( "Limit Posts", 'hotel-wp' ),
					"param_name"  => "limit",
					'description' => esc_attr__( '', 'hotel-wp' )
				),
				array(
					'type'        => 'dropdown',
					'admin_label' => true,
					'heading'     => esc_attr__( 'Items Visible', 'hotel-wp' ),
					'param_name'  => 'item-visible',
					'value'       => array(
						'1' => '1',
						'2' => '2',
						'3' => '3',
						'4' => '4',
						'5' => '5',
						'6' => '6',
						'7' => '7',
						'8' => '8'
					),
					'std'         => '4',
					'description' => esc_attr__( '', 'hotel-wp' )
				),

				array(
					"type"        => "textfield",
					"admin_label" => true,
					"heading"     => esc_attr__( "Image Size", 'hotel-wp' ),
					"param_name"  => "image-size",
					"description" => esc_attr__( "Enter image size (Example: \"thumbnail\", \"medium\", \"large\", \"full\" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).", 'hotel-wp' )
				),

				array(
					"type"        => "checkbox",
					"admin_label" => true,
					"heading"     => esc_attr__( "Show Navigation", 'hotel-wp' ),
					"param_name"  => "show-navigation",
					"description" => esc_attr__( "Show next/prev buttons.", 'hotel-wp' )
				),

				array(
					"type"        => "checkbox",
					"admin_label" => true,
					"heading"     => esc_attr__( "Show Dot", 'hotel-wp' ),
					"param_name"  => "show-dots",
					"description" => esc_attr__( "Show dots navigation.", 'hotel-wp' )
				),

				array(
					"type"        => "number",
					"min"         => "1",
					"value"       => "0",
					"admin_label" => true,
					"heading"     => esc_attr__( "Auto Play Speed (in ms)", 'hotel-wp' ),
					"param_name"  => "auto",
					"description" => esc_attr__( "Set 0 to disable auto play.", 'hotel-wp' )
				),
			);
		}
	}
}