C:\xampp\htdocs\landing\wp-content\plugins\js_composer\include\classes\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
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

/**
 * Class WPBakeryShortCode_Vc_Pie
 */
class WPBakeryShortCode_Vc_Pie extends WPBakeryShortCode {
    
/**
     * WPBakeryShortCode_Vc_Pie constructor.
     * @param $settings
     */
    
public function __construct$settings ) {
        
parent::__construct$settings );
        
$this->jsScripts();
    }

    public function 
jsScripts() {
        
wp_register_script'vc_waypoints'vc_asset_url'lib/vc_waypoints/vc-waypoints.min.js' ), array( 'jquery-core' ), WPB_VC_VERSIONtrue );
        
wp_register_script'progressCircle'vc_asset_url'lib/bower/progress-circle/ProgressCircle.min.js' ), array(), WPB_VC_VERSIONtrue );
        
wp_register_script'vc_pie'vc_asset_url'lib/vc_chart/jquery.vc_chart.min.js' ), array(
            
'jquery-core',
            
'vc_waypoints',
            
'progressCircle',
        ), 
WPB_VC_VERSIONtrue );
    }

    
/**
     * Convert old color names to new ones for BC
     *
     * @param array $atts
     *
     * @return array
     */
    
public static function convertOldColorsToNew$atts ) {
        
$map = array(
            
'btn-primary' => '#0088cc',
            
'btn-success' => '#6ab165',
            
'btn-warning' => '#ff9900',
            
'btn-inverse' => '#555555',
            
'btn-danger' => '#ff675b',
            
'btn-info' => '#58b9da',
            
'primary' => '#0088cc',
            
'success' => '#6ab165',
            
'warning' => '#ff9900',
            
'inverse' => '#555555',
            
'danger' => '#ff675b',
            
'info' => '#58b9da',
            
'default' => '#f7f7f7',
        );

        if ( isset( 
$atts['color'] ) && isset( $map$atts['color'] ] ) ) {
            
$atts['custom_color'] = $map$atts['color'] ];
            
$atts['color'] = 'custom';
        }

        return 
$atts;
    }
}
x

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