-
Notifications
You must be signed in to change notification settings - Fork 3
/
wp-canvasjs.php
58 lines (50 loc) · 1.52 KB
/
wp-canvasjs.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
<?php
/**
* Plugin Name: WP CanvasJS
* Plugin URI: https://vishwas.me/
* Description: WP CanvasJS lets you to create and add interactive Charts & StockCharts to your WordPress page and posts using CanvasJS library.
* Version: 1.5
* Author: Vishwas R
* Author URI: https://vishwas.me/
* License: MIT License
* License URI: https://opensource.org/licenses/MIT
*
* @link https://vishwas.me/
* @package WPCanvasJS
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define global constants.
*
* @since 1.0.0
*/
// Plugin version.
if ( ! defined( 'PLUGIN_VERSION' ) ) {
define( 'PLUGIN_VERSION', '1.5' );
}
if ( ! defined( 'PLUGIN_NAME' ) ) {
define( 'PLUGIN_NAME', trim( dirname( plugin_basename( __FILE__ ) ), '/' ) );
}
if ( ! defined( 'PLUGIN_DIRECTORY' ) ) {
define( 'PLUGIN_DIRECTORY', WP_PLUGIN_DIR . '/' . PLUGIN_NAME );
}
if ( ! defined( 'PLUGIN_URL' ) ) {
define( 'PLUGIN_URL', WP_PLUGIN_URL . '/' . PLUGIN_NAME );
}
/**
* Link.
*
* @since 1.0.0
*/
if ( file_exists( PLUGIN_DIRECTORY . '/chart/wp-canvasjs-chart.php' ) ) {
require_once( PLUGIN_DIRECTORY . '/chart/wp-canvasjs-chart.php' );
}
if ( file_exists( PLUGIN_DIRECTORY . '/stockchart/wp-canvasjs-stockchart.php' ) ) {
require_once( PLUGIN_DIRECTORY . '/stockchart/wp-canvasjs-stockchart.php' );
}
if ( file_exists( PLUGIN_DIRECTORY . '/admin/admin-settings.php' ) ) {
require_once( PLUGIN_DIRECTORY . '/admin/admin-settings.php' );
}