BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
CTR
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
📤 Upload
📝 New File
📁 New Folder
Close
Editing: vc-round-chart.php
<?php /** * Class that handles specific [vc_round_chart] shortcode. * * @see js_composer/include/templates/shortcodes/vc_round_chart.php */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Class WPBakeryShortCode_Vc_Round_Chart */ class WPBakeryShortCode_Vc_Round_Chart extends WPBakeryShortCode { /** * WPBakeryShortCode_Vc_Round_Chart constructor. * * @param array $settings */ public function __construct( $settings ) { parent::__construct( $settings ); $this->jsScripts(); } /** * Register scripts. */ public function jsScripts() { wp_register_script( 'vc_waypoints', vc_asset_url( 'lib/vc/vc_waypoints/vc-waypoints.min.js' ), [ 'jquery-core' ], WPB_VC_VERSION, true ); wp_register_script( 'ChartJS', vc_asset_url( 'lib/vendor/node_modules/chart.js/dist/chart.min.js' ), [], WPB_VC_VERSION, true ); wp_register_script( 'vc_round_chart', vc_asset_url( 'lib/vc/vc_round_chart/vc_round_chart.min.js' ), [ 'jquery-core', 'vc_waypoints', 'ChartJS', ], WPB_VC_VERSION, true ); } }
Save
Cancel