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/posts/config.php
<?php
/**
 * Thim_Builder Posts 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_Posts' ) ) {
	/**
	 * Class Thim_Builder_Config_Posts
	 */
	class Thim_Builder_Config_Posts extends Thim_Builder_Abstract_Config {

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

			parent::__construct();
		}

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

			// options
			return array(
				array(
					"type"        => "number",
					"heading"     => esc_attr__( "Number posts", 'hotel-wp' ),
					"param_name"  => "post_limit",
					"admin_label" => true,
					'std'         => 4,
					'description' => esc_attr__( 'Number posts to display.', 'hotel-wp' ),
				),
				// Columns
				array(
					"type"        => "number",
					"heading"     => esc_attr__( "Columns", 'hotel-wp' ),
					"param_name"  => "post_column",
					"admin_label" => true,
					'std'         => 3,
					'description' => esc_attr__( 'Number columns', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array(
							'style-1',
							'style-2',
							'style-5',
							'style-6'
						),
					),
				),
				// Display button?
				array(
					'type'        => 'checkbox',
					'admin_label' => true,
					'heading'     => esc_html__( 'Hide button Read more?', 'hotel-wp' ),
					'param_name'  => 'post_button',
					'description' => esc_html__( 'Tick it to hide the button read more.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array('style-1','style-2','style-3','style-5'),
					),
				),
				//Use custom or default title?
				array(
					'type'        => 'dropdown',
					'admin_label' => true,
					'heading'     => esc_html__( 'Use custom or default readmore button?', 'hotel-wp' ),
					'param_name'  => 'readmore_custom',
					'value'       => array(
						esc_html__( 'Default', 'hotel-wp' ) => '',
						esc_html__( 'Custom', 'hotel-wp' )  => 'custom',
					),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array('style-1','style-2','style-3','style-5'),
					),
				),
				//Readmore Text
				array(
					'type'        => 'textfield',
					'admin_label' => true,
					'heading'     => esc_html__( 'Text Readmore', 'hotel-wp' ),
					'param_name'  => 'readmore_text',
					'std'         => esc_html__( 'Read More', 'hotel-wp' ),
					'description' => esc_html__( 'Write the text for readmore button.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'readmore_custom',
						'value'   => 'custom',
					),
				),
				//Readmore color
				array(
					'type'        => 'colorpicker',
					'admin_label' => true,
					'heading'     => esc_html__( 'Readmore color ', 'hotel-wp' ),
					'param_name'  => 'readmore_color',
					'std'         => '#e7ad44',
					'description' => esc_html__( 'Select the readmore button color.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'readmore_custom',
						'value'   => 'custom',
					),
				),
				// Select category
				array(
					'type'        => 'dropdown',
					'admin_label' => true,
					'heading'     => esc_html__( 'Select category', 'hotel-wp' ),
					'param_name'  => 'cat_id',
					'value'       => thim_get_cat_taxonomy( 'category', array( esc_html__( 'All', 'hotel-wp' ) => 'all' ), true )
				),
				array(
					"type"        => "dropdown",
					"heading"     => esc_attr__( "Style", 'hotel-wp' ),
					"param_name"  => "style",
					"admin_label" => true,
					"value"       => array(
						esc_attr__( 'Style 1', 'hotel-wp' ) => 'style-1',
						esc_attr__( 'Style 2', 'hotel-wp' ) => 'style-2',
						esc_attr__( 'Style 3', 'hotel-wp' ) => 'style-3',
						esc_attr__( 'Style 4', 'hotel-wp' ) => 'style-4',
						esc_attr__( 'Style 5', 'hotel-wp' ) => 'style-5',
						esc_attr__( 'Style 6', 'hotel-wp' ) => 'style-6',
					),
					"description" => esc_attr__( "Select layout style.", 'hotel-wp' )
				),

				array(
					'type'        => 'textfield',
					'admin_label' => true,
					'heading'     => esc_html__( 'Text View', 'hotel-wp' ),
					'param_name'  => 'view_all',
					'std'         => esc_html__( 'All  Blog', 'hotel-wp' ),
					'description' => esc_html__( 'Write the text for readmore button.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => 'style-4',
					),
				),
				array(
					'type'        => 'textfield',
					'admin_label' => true,
					'heading'     => esc_html__( 'Link Text View', 'hotel-wp' ),
					'param_name'  => 'view_link',
					'std'         => esc_html__( '#', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => 'style-4',
					),
				),
				
				// Display category?
				array(
					'type'             => 'checkbox',
					'admin_label'      => true,
					'heading'          => esc_html__( 'Show category', 'hotel-wp' ),
					'param_name'       => 'category_button',
					'description'      => esc_html__( 'Tick it to show category.', 'hotel-wp' ),
					'edit_field_class' => 'vc_col-sm-4',
					'dependency'       => array(
						'element' => 'style',
						'value'   => array(
							'style-3'
						),
					),
				),
				//Background category
				array(
					'type'        => 'colorpicker',
					'admin_label' => true,
					'heading'     => esc_html__( 'Background Category color ', 'hotel-wp' ),
					'param_name'  => 'bg_category',
					'std'         => '#009ae2',
					'description' => esc_html__( 'Select the Background Category color.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array(
							'style-3'
						),
					),
				),
				// Display info?
				array(
					'type'        => 'checkbox',
					'admin_label' => true,
					'heading'     => esc_html__( 'Show custom info post', 'hotel-wp' ),
					'param_name'  => 'info_button',
					'description' => esc_html__( 'Tick it to show custom info post.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array(
							'style-2',
							'style-5'
						),
					),
				),
				// Display excerpt?
				array(
					'type'        => 'checkbox',
					'admin_label' => true,
					'heading'     => esc_html__( 'Show excerpt description', 'hotel-wp' ),
					'param_name'  => 'excerpt_button',
					'description' => esc_html__( 'Tick it to show excerpt description.', 'hotel-wp' ),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array(
							'style-2',
							'style-3'
						),
					),
				),
				//Animation
				array(
					"type"        => "dropdown",
					"heading"     => esc_attr__( "Animation", 'hotel-wp' ),
					"param_name"  => "css_animation",
					"admin_label" => true,
					"value"       => array(
						esc_attr__( "No", 'hotel-wp' )                 => '',
						esc_attr__( "Top to bottom", 'hotel-wp' )      => "top-to-bottom",
						esc_attr__( "Bottom to top", 'hotel-wp' )      => "bottom-to-top",
						esc_attr__( "Left to right", 'hotel-wp' )      => "left-to-right",
						esc_attr__( "Right to left", 'hotel-wp' )      => "right-to-left",
						esc_attr__( "Appear from center", 'hotel-wp' ) => "appear"
					),
					'dependency'  => array(
						'element' => 'style',
						'value'   => array('style-1','style-2','style-3'),
					),
					"description" => esc_attr__( "Select type of animation if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", 'hotel-wp' )
				),
			);
		}
	}
}