C:\xampp\htdocs\landing\wp-content\plugins\js_composer\include\templates\shortcodes\vc_pie.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

/**
 * Shortcode attributes
 * @var $atts
 * @var $title
 * @var $el_class
 * @var $el_id
 * @var $value
 * @var $units
 * @var $color
 * @var $custom_color
 * @var $label_value
 * @var $css
 * @var $css_animation
 * Shortcode class
 * @var WPBakeryShortCode_Vc_Pie $this
 */
$title $el_class $el_id $value $units $color $custom_color $label_value $css $css_animation '';
$atts $this->convertOldColorsToNew$atts );
$atts vc_map_get_attributes$this->getShortcode(), $atts );
extract$atts );

wp_enqueue_script'vc_pie' );

$colors = array(
    
'blue' => '#5472d2',
    
'turquoise' => '#00c1cf',
    
'pink' => '#fe6c61',
    
'violet' => '#8d6dc4',
    
'peacoc' => '#4cadc9',
    
'chino' => '#cec2ab',
    
'mulled-wine' => '#50485b',
    
'vista-blue' => '#75d69c',
    
'orange' => '#f7be68',
    
'sky' => '#5aa1e3',
    
'green' => '#6dab3c',
    
'juicy-pink' => '#f4524d',
    
'sandy-brown' => '#f79468',
    
'purple' => '#b97ebb',
    
'black' => '#2a2a2a',
    
'grey' => '#ebebeb',
    
'white' => '#ffffff',
);

if ( 
'custom' === $color ) {
    
$color $custom_color;
} else {
    
$color = isset( $colors$color ] ) ? $colors$color ] : '';
}

if ( ! 
$color ) {
    
$color $colors['grey'];
}

$class_to_filter 'vc_pie_chart wpb_content_element';
$class_to_filter .= vc_shortcode_custom_css_class$css' ' ) . $this->getExtraClass$el_class ) . $this->getCSSAnimation$css_animation );
$css_class apply_filtersVC_SHORTCODE_CUSTOM_CSS_FILTER_TAG$class_to_filter$this->settings['base'], $atts );

$wrapper_attributes = array();
if ( ! empty( 
$el_id ) ) {
    
$wrapper_attributes[] = 'id="' esc_attr$el_id ) . '"';
}
$output '<div ' implode' '$wrapper_attributes ) . ' class= "' esc_attr$css_class ) . '" data-pie-value="' esc_attr$value ) . '" data-pie-label-value="' esc_attr$label_value ) . '" data-pie-units="' esc_attr$units ) . '" data-pie-color="' esc_attr$color ) . '">';
$output .= '<div class="wpb_wrapper">';
$output .= '<div class="vc_pie_wrapper">';
$output .= '<span class="vc_pie_chart_back" style="border-color: ' esc_attr$color ) . '"></span>';
$output .= '<span class="vc_pie_chart_value"></span>';
$output .= '<canvas width="101" height="101"></canvas>';
$output .= '</div>';

if ( 
'' !== $title ) {
    
$output .= '<h4 class="wpb_heading wpb_pie_chart_heading">' $title '</h4>';
}

$output .= '</div>';
$output .= '</div>';

return 
$output;
x

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