esc_html__("Video", 'taskereasy'), "base" => "taskereasy_youtube", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy youtube", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "dropdown", "heading" => esc_html__("Style", 'taskereasy'), "param_name" => "style", "value" => array('Style 1' => 'style_1', 'Style 2' => 'style_2', 'Style 3' => 'style_3'), ), array( "type" => "textfield", "heading" => esc_html__("Link", 'taskereasy'), "param_name" => "youtube_link", "description" => 'Add Youtube link.' ), array( "type" => "textfield", "heading" => esc_html__("Title", 'taskereasy'), "param_name" => "title", 'dependency' => array( 'element' => 'style', 'value' => array('style_2', 'style_3') ), ), array( "type" => "textarea_safe", "heading" => esc_html__("Subtitle", 'taskereasy'), "param_name" => "subtext", 'dependency' => array( 'element' => 'style', 'value' => array('style_2', 'style_3') ), ), array( "type" => "textarea_safe", "heading" => esc_html__("Description", 'taskereasy'), "param_name" => "description", 'dependency' => array( 'element' => 'style', 'value' => array('style_2', 'style_3') ), ), array( "type" => "vc_link", "heading" => esc_html__("Button", 'taskereasy'), "param_name" => "button", "value" => '', 'dependency' => array( 'element' => 'style', 'value' => array('style_2', 'style_3') ), ), array( "type" => "attach_image", "heading" => esc_html__("Image Thumbnail", 'taskereasy'), "param_name" => "image", 'dependency' => array( 'element' => 'style', 'value' => array('style_2', 'style_3') ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_youtube', function($atts, $content = null) { extract(shortcode_atts(array( 'youtube_link' => '', 'style' => 'style_1', 'title' => '', 'subtext' => '', 'description' => '', 'button' => '', 'image' => '', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $youtube_url = html_entity_decode(vc_value_from_safe($youtube_link, true)); $output = ''; $output.='