File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/testimonials/config.php
<?php
/**
* Thim_Builder Testimonials 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_Testimonials' ) ) {
/**
* Class Thim_Builder_Config_Testimonials
*/
class Thim_Builder_Config_Testimonials extends Thim_Builder_Abstract_Config {
/**
* Thim_Builder_Config_Testimonials constructor.
*/
public function __construct() {
// info
self::$base = 'testimonials';
self::$name = esc_html__( 'Thim: Testimonials', 'hotel-wp' );
self::$desc = esc_html__( 'Add Testimonials', 'hotel-wp' );
self::$icon = 'thim-widget-icon thim-widget-icon-timetable';
parent::__construct();
}
/**
* @return array
*/
public function get_options() {
// options
return array(
array(
"type" => "textfield",
"admin_label" => true,
"heading" => esc_html__( "Block Title", "hotel-wp" ),
"param_name" => "title",
"dependency" => array(
"element" => "layout",
"value" => array("default","layout-1")
),
"description" => esc_html__( "Write the title for the block.", "hotel-wp" )
),
array(
"type" => "number",
"min" => "1",
"value" => "3",
"admin_label" => true,
"heading" => esc_html__( "Number testimonials", 'hotel-wp' ),
"param_name" => "number-posts",
'description' => esc_html__( '', 'hotel-wp' )
),
array(
"type" => "dropdown",
"admin_label" => true,
"heading" => esc_html__( "Layout", "hotel-wp" ),
"param_name" => "layout",
"value" => array(
esc_html__( "Default", "hotel-wp" ) => "default",
esc_html__( "Layout 1", "hotel-wp" ) => "layout-1",
esc_html__( "Layout 2", "hotel-wp" ) => "layout-2",
esc_html__( "Layout 3", "hotel-wp" ) => "layout-3",
esc_html__( "Layout 4", "hotel-wp" ) => "layout-4",
),
"std" => "default",
"description" => esc_attr__( "", "hotel-wp" )
),
array(
"type" => "dropdown",
"admin_label" => true,
"heading" => esc_attr__( "Style", "hotel-wp" ),
"param_name" => "style",
"value" => array(
esc_html__( "Left style", "hotel-wp" ) => "left",
esc_html__( "Center style", "hotel-wp" ) => "center",
),
"std" => "left",
"dependency" => array(
"element" => "layout",
"value" => array("default","layout-1")
),
"description" => esc_attr__( "", "hotel-wp" )
),
array(
"admin_label" => true,
"type" => "dropdown",
"admin_label" => true,
"heading" => esc_attr__( "Auto Play Speed", "hotel-wp" ),
"param_name" => "auto",
"value" => array(
esc_html__( "Yes", "hotel-wp" ) => "true",
esc_html__( "No", "hotel-wp" ) => "false",
),
"dependency" => array(
"element" => "layout",
"value" => array("default","layout-1")
)
),
array(
"type" => "dropdown",
"heading" => esc_html__( "Animation", "hotel-wp" ),
"param_name" => "css_animation",
"admin_label" => true,
"value" => array(
esc_html__( "No", "hotel-wp" ) => "no",
esc_html__( "Top to bottom", "hotel-wp" ) => "slideInDown",
esc_html__( "Bottom to top", "hotel-wp" ) => "slideInUp",
esc_html__( "Left to right", "hotel-wp" ) => "slideInLeft",
esc_html__( "Right to left", "hotel-wp" ) => "slideInRight",
esc_html__( "Appear from center", "hotel-wp" ) => "zoomIn"
),
"std" => "no",
"description" => esc_html__( "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" ),
),
);
}
}
}