File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/video/config.php
<?php
/**
* Thim_Builder Video 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_Video' ) ) {
/**
* Class Thim_Builder_Config_Video
*/
class Thim_Builder_Config_Video extends Thim_Builder_Abstract_Config {
/**
* Thim_Builder_Config_Video constructor.
*/
public function __construct() {
// info
self::$base = 'video';
self::$name = esc_html__( 'Thim: Video', 'hotel-wp' );
self::$desc = esc_html__( 'Add Video', '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_attr__( 'Title', 'hotel-wp' ),
'param_name' => 'title',
'description' => esc_html__( 'Write the title for video.', 'hotel-wp' )
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_attr__( 'Text Icon', 'hotel-wp' ),
'param_name' => 'text_icon',
'description' => esc_html__( 'Write the text for icon.', 'hotel-wp' )
),
// Get Video
array(
'type' => 'textfield',
'heading' => esc_html__( 'URL Video', 'hotel-wp' ),
'param_name' => 'video',
'admin_label' => true,
'value' => '',
'description' => esc_html__( 'Select an uploaded video in mp4 format. Other formats, such as webm and ogv will work in some browsers. You can use an online service such as <a href=\'http://video.online-convert.com/convert-to-mp4\' target=\'_blank\'>online-convert.com</a> to convert your videos to mp4.', 'hotel-wp' ),
),
// Get Cover Image
array(
'type' => 'attach_images',
'heading' => esc_html__( 'Select cover image', 'hotel-wp' ),
'param_name' => 'cover_image',
'admin_label' => true,
'value' => '',
'description' => esc_html__( 'Select an uploaded video in mp4 format. Other formats, such as webm and ogv will work in some browsers', 'hotel-wp' ),
),
// Get auto play
array(
'type' => 'dropdown',
'heading' => esc_attr__( 'Auto Play', 'hotel-wp' ),
'param_name' => 'auto_play',
'admin_label' => true,
'value' => array(
esc_attr__( 'No', 'hotel-wp' ) => 'no',
esc_attr__( 'Yes', 'hotel-wp' ) => 'yes',
),
'edit_field_class' => 'vc_col-sm-3',
),
// Get Muted
array(
'type' => 'dropdown',
'heading' => esc_attr__( 'Muted', 'hotel-wp' ),
'param_name' => 'muted',
'admin_label' => true,
'value' => array(
esc_attr__( 'Yes', 'hotel-wp' ) => 'yes',
esc_attr__( 'No', 'hotel-wp' ) => 'no',
),
'edit_field_class' => 'vc_col-sm-3',
),
// Get Loop
array(
'type' => 'dropdown',
'heading' => esc_attr__( 'Loop', 'hotel-wp' ),
'param_name' => 'loop',
'admin_label' => true,
'value' => array(
esc_attr__( 'Yes', 'hotel-wp' ) => 'yes',
esc_attr__( 'No', 'hotel-wp' ) => 'no',
),
'edit_field_class' => 'vc_col-sm-3',
),
);
}
public function get_template_name(){
return 'default';
}
}
}