';
$out .= NewRoyalSliderOptions::get_field_html( array(
'name' => 'title',
'label' => __( 'Title & alt ', 'new_royalslider' ),
'desc' => __( 'Title of the slide. Alt tag of image. Caption. (by default). In Slide Markup Editor use {{title}} to get value of this field.', 'new_royalslider' ),
'type' => 'text',
'default' => isset($slide_data['title']) ? $slide_data['title'] : ''
),'slides' );
$out .= NewRoyalSliderOptions::get_field_html( array(
'name' => 'description',
'label' => __( 'Description ', 'new_royalslider' ),
'desc' => __( 'Short description of slide, used by some templates (like content slider). In Slide Markup Editor use {{description}}} to get value of this field.', 'new_royalslider' ),
'type' => 'textarea',
'default' => isset($slide_data['description']) ? $slide_data['description'] : ''
),'slides' );
$out .= NewRoyalSliderOptions::get_field_html( array(
'name' => 'link',
'label' => __( 'Link ', 'new_royalslider' ),
'desc' => __( 'Links whole slide to URL in this field. Please note that full slide link doesn\'t work with auto-height option and overlays video. You can edit Slide Markup to link just specific button or image by wrapping it with "a" HTML tag . In Slide Markup Editor use {{link_url}} to get value of this field.', 'new_royalslider' ),
'type' => 'text',
'default' => isset($slide_data['link']) ? $slide_data['link'] : ''
),'slides' );
$out .= '
';
if( !isset($slide_data['video']) ) {
$video_data = array(
'url' => '',
'thumb' => '',
'image' => ''
);
} else {
$video_data = $slide_data['video'];
}
$out .= NewRoyalSliderOptions::get_field_html( array(
'name' => 'url',
'label' => __( 'YouTube or Vimeo video URL ', 'new_royalslider' ),
'desc' => __( 'Link to YouTube or Vimeo video page. In formats like: vimeo.com/123123 www.youtube.com/watch?v=7iIld0Z_wlc youtu.be/7iIld0Z_wlc In Slide Markup Editor use {{video_url}} to get value of this field.', 'new_royalslider' ),
'type' => 'text',
'default' => $video_data['url']
),'slides[video]' );
$out .= NewRoyalSliderOptions::get_field_html( array(
'name' => 'image',
'type' => 'hidden',
'default' => isset($video_data['image']) ? $video_data['image'] : ''
),'slides[video]' );
$out .= NewRoyalSliderOptions::get_field_html( array(
'name' => 'thumb',
'type' => 'hidden',
'default' => isset($video_data['thumb']) ? $video_data['thumb'] : ''
),'slides[video]' );
$out .= '