File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/hb-rooms/config.php
<?php
/**
* Thim_Builder HB Rooms 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_HB_Rooms' ) ) {
/**
* Class Thim_Builder_Config_HB_Rooms
*/
class Thim_Builder_Config_HB_Rooms extends Thim_Builder_Abstract_Config {
/**
* Thim_Builder_Config_HB_Rooms constructor.
*/
public function __construct() {
// info
self::$base = 'hb-rooms';
self::$name = esc_html__( 'Thim: HB Rooms', 'hotel-wp' );
self::$desc = esc_html__( 'Add HB Rooms', 'hotel-wp' );
self::$icon = 'thim-widget-icon thim-widget-icon-timetable';
parent::__construct();
}
/**
* @return array
*/
public function get_options() {
// options
return array(
//Animation
array(
"type" => "dropdown",
"heading" => esc_attr__( "Select Layout", 'hotel-wp' ),
"param_name" => "rooms_layout",
"value" => array(
esc_attr__( "Grid", 'hotel-wp' ) => 'grid',
esc_attr__( "Slider", 'hotel-wp' ) => 'slider',
),
'std' => 'grid',
),
// Number rooms
array(
'type' => 'number',
'admin_label' => true,
'heading' => esc_html__( 'Number Rooms', 'hotel-wp' ),
'param_name' => 'number_rooms',
'min' => 1,
'max' => 10,
'value' => 3,
'description' => esc_html__( 'Number rooms display.', 'hotel-wp' ),
),
// Link Text
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Link Text', 'hotel-wp' ),
'value' => esc_html__( 'View all', 'hotel-wp' ),
'param_name' => 'link_text',
'description' => esc_html__( 'Write the title for the button link.', 'hotel-wp' )
),
//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"
),
"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' )
),
);
}
public function get_template_name(){
return 'default';
}
}
}