C:\xampp\htdocs\landing\wp-content\plugins\js_composer\include\templates\shortcodes\vc_video.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

/**
 * Shortcode attributes
 * @var $atts
 * @var $title
 * @var $link
 * @var $el_class
 * @var $el_id
 * @var $css
 * @var $css_animation
 * @var $el_width
 * @var $el_aspect
 * @var $align
 * Shortcode class
 * @var WPBakeryShortCode_Vc_Video $this
 */
$title $link $el_class $el_id $css $css_animation $el_width $el_aspect $align '';
$atts vc_map_get_attributes$this->getShortcode(), $atts );
extract$atts );

if ( 
'' === $link ) {
    return 
null;
}
$el_class $this->getExtraClass$el_class ) . $this->getCSSAnimation$css_animation );

$video_w 500;
$video_h $video_w 1.61// 1.61 golden ratio
/** @var WP_Embed $wp_embed */
global $wp_embed;
$embed '';
if ( 
is_object$wp_embed ) ) {
    
$embed $wp_embed->run_shortcode'[embed width="' $video_w '"' $video_h ']' $link '[/embed]' );
}
$el_classes = array(
    
'wpb_video_widget',
    
'wpb_content_element',
    
'vc_clearfix',
    
$el_class,
    
vc_shortcode_custom_css_class$css' ' ),
    
'vc_video-aspect-ratio-' esc_attr$el_aspect ),
    
'vc_video-el-width-' esc_attr$el_width ),
    
'vc_video-align-' esc_attr$align ),
);
$css_class implode' '$el_classes );
$css_class apply_filtersVC_SHORTCODE_CUSTOM_CSS_FILTER_TAG$css_class$this->getShortcode(), $atts );
$wrapper_attributes = array();
if ( ! empty( 
$el_id ) ) {
    
$wrapper_attributes[] = 'id="' esc_attr$el_id ) . '"';
}
$output '
    <div class="' 
esc_attr$css_class ) . '" ' implode' '$wrapper_attributes ) . '>
        <div class="wpb_wrapper">
            ' 
wpb_widget_title( array(
    
'title' => $title,
    
'extraclass' => 'wpb_video_heading',
) ) . 
'
            <div class="wpb_video_wrapper">' 
$embed '</div>
        </div>
    </div>
'
;

return 
$output;
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586