PluginProbe
Chartify – WordPress Chart Plugin / 1.0.0
Chartify – WordPress Chart Plugin v1.0.0
3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 trunk 1.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 All 83 releases
chart-builder / chart-builder.php

chart-builder.php in Chartify – WordPress Chart Plugin 1.0.0, at chart-builder.php

163 lines 8.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://ays-pro.com/
12 * @since 1.0.0
13 * @package Chart_Builder
14 *
15 * @wordpress-plugin
16 * Plugin Name: Chart Builder
17 * Plugin URI: https://ays-pro.com/wordpress/chart-builder
18 * Description: Display the results with various charts and compare the data.
19 * Version: 1.0.0
20 * Author: Chart Builder Team
21 * Author URI: https://ays-pro.com/
22 * License: GPL-2.0+
23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24 * Text Domain: chart-builder
25 * Domain Path: /languages
26 */
27
28 // If this file is called directly, abort.
29 if ( ! defined( 'WPINC' ) ) {
30 die;
31 }
32
33 /**
34 * Currently plugin version.
35 * Start at version 1.0.0 and use SemVer - https://semver.org
36 * Rename this for your plugin and update it as you release new versions.
37 */
38 define( 'CHART_BUILDER_VERSION', '1.0.0' );
39 define( 'CHART_BUILDER_NAME_VERSION', '1.0.0' );
40 define( 'CHART_BUILDER_NAME', 'chart-builder' );
41 define( 'CHART_BUILDER_DB_PREFIX', 'ayschart_' );
42
43 if( ! defined( 'CHART_BUILDER_BASENAME' ) )
44 define( 'CHART_BUILDER_BASENAME', plugin_basename( __FILE__ ) );
45
46 if( ! defined( 'CHART_BUILDER_DIR' ) )
47 define( 'CHART_BUILDER_DIR', plugin_dir_path( __FILE__ ) );
48
49 if( ! defined( 'CHART_BUILDER_BASE_URL' ) )
50 define( 'CHART_BUILDER_BASE_URL', plugin_dir_url(__FILE__ ) );
51
52 if( ! defined( 'CHART_BUILDER_ADMIN_PATH' ) )
53 define( 'CHART_BUILDER_ADMIN_PATH', plugin_dir_path( __FILE__ ) . 'admin' );
54
55 if( ! defined( 'CHART_BUILDER_ADMIN_URL' ) )
56 define( 'CHART_BUILDER_ADMIN_URL', plugin_dir_url( __FILE__ ) . 'admin' );
57
58 if( ! defined( 'CHART_BUILDER_PUBLIC_PATH' ) )
59 define( 'CHART_BUILDER_PUBLIC_PATH', plugin_dir_path( __FILE__ ) . 'public' );
60
61 if( ! defined( 'CHART_BUILDER_PUBLIC_URL' ) )
62 define( 'CHART_BUILDER_PUBLIC_URL', plugin_dir_url( __FILE__ ) . 'public' );
63
64 /**
65 * The code that runs during plugin activation.
66 * This action is documented in includes/class-chart-builder-activator.php
67 */
68 function activate_chart_builder() {
69 require_once plugin_dir_path( __FILE__ ) . 'includes/class-chart-builder-activator.php';
70 Chart_Builder_Activator::db_update_check();
71 }
72
73 /**
74 * The code that runs during plugin deactivation.
75 * This action is documented in includes/class-chart-builder-deactivator.php
76 */
77 function deactivate_chart_builder() {
78 require_once plugin_dir_path( __FILE__ ) . 'includes/class-chart-builder-deactivator.php';
79 Chart_Builder_Deactivator::deactivate();
80 }
81
82 register_activation_hook( __FILE__, 'activate_chart_builder' );
83 register_deactivation_hook( __FILE__, 'deactivate_chart_builder' );
84
85 add_action( 'plugins_loaded', 'activate_chart_builder' );
86
87 /**
88 * The core plugin class that is used to define internationalization,
89 * admin-specific hooks, and public-facing site hooks.
90 */
91 require plugin_dir_path( __FILE__ ) . 'includes/class-chart-builder.php';
92
93 /**
94 * Begins execution of the plugin.
95 *
96 * Since everything within the plugin is registered via hooks,
97 * then kicking off the plugin from this point in the file does
98 * not affect the page life cycle.
99 *
100 * @since 1.0.0
101 */
102 function run_chart_builder() {
103
104 add_action( 'admin_notices', 'chart_builder_general_admin_notice' );
105 $plugin = new Chart_Builder();
106 $plugin->run();
107
108 }
109
110 if( !function_exists( 'chart_builder_general_admin_notice' ) ){
111 function chart_builder_general_admin_notice(){
112 global $wpdb;
113 if ( isset($_GET['page']) && strpos($_GET['page'], CHART_BUILDER_NAME) !== false ) {
114 ?>
115 <div class="ays-notice-banner">
116 <div class="navigation-bar">
117 <div id="navigation-container">
118 <a class="logo-container" href="https://ays-pro.com/wordpress/chart-builder" target="_blank">
119 <img class="logo" src="<?php echo esc_url(CHART_BUILDER_ADMIN_URL) . '/images/ays_chart_logo.png'; ?>" alt="AYS Pro logo" title="AYS Pro logo"/>
120 </a>
121 <ul id="menu">
122 <!-- <li class="modile-ddmenu-lg"><a class="ays-btn" href="https://ays-pro.com/wordpress-chart-builder-user-manual" target="_blank">DOCUMENTATION</a></li> -->
123 <!-- <li class="modile-ddmenu-xs"><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/reviews/" target="_blank">RATE US</a></li> -->
124 <li class="modile-ddmenu-lg"><a class="ays-btn" href="https://ays-demo.com/chart-builder-demo/" target="_blank">DEMO</a></li>
125 <li class="modile-ddmenu-lg take_survay"><a class="ays-btn" href=" https://ays-demo.com/chart-builder-plugin-suggestion-box/" target="_blank">MAKE A SUGGESTION</a></li>
126 <!-- <li class="modile-ddmenu-lg"><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/" target="_blank">SUPPORT FORUM</a></li> -->
127 <li class="modile-ddmenu-lg"><a class="ays-btn" href="https://ays-pro.com/plugin-customization/" target="_blank">CUSTOMIZE</a></li>
128 <!-- <li class="modile-ddmenu-lg"><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/" target="_blank">CONTACT US</a></li> -->
129 <li class="modile-ddmenu-md">
130 <a class="toggle_ddmenu" href="javascript:void(0);"><i class="ays_fa ays_fa_ellipsis_h"></i></a>
131 <ul class="ddmenu" data-expanded="false">
132 <!-- <li><a class="ays-btn" href="https://ays-pro.com/wordpress-chart-builder-user-manual" target="_blank">DOCUMENTATION</a></li> -->
133 <!-- <li><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/reviews/" target="_blank">RATE US</a></li> -->
134 <li><a class="ays-btn" href="https://ays-demo.com/chart-builder-demo/" target="_blank">DEMO</a></li>
135 <li class="take_survay"><a class="ays-btn" href=" https://ays-demo.com/chart-builder-plugin-suggestion-box/" target="_blank">MAKE A SUGGESTION</a></li>
136 <!-- <li><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/" target="_blank">SUPPORT FORUM</a></li> -->
137 <li class=""><a class="ays-btn" href="https://ays-pro.com/plugin-customization/" target="_blank">CUSTOMIZATION</a></li>
138 <!-- <li><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/" target="_blank">CONTACT US</a></li> -->
139 </ul>
140 </li>
141 <li class="modile-ddmenu-sm">
142 <a class="toggle_ddmenu" href="javascript:void(0);"><i class="ays_fa ays_fa_ellipsis_h"></i></a>
143 <ul class="ddmenu" data-expanded="false">
144 <!-- <li><a class="ays-btn" href="https://ays-pro.com/wordpress-chart-builder-user-manual" target="_blank">DOCUMENTATION</a></li> -->
145 <!-- <li><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/reviews/" target="_blank">RATE US</a></li> -->
146 <li><a class="ays-btn" href="https://ays-demo.com/chart-builder-demo/" target="_blank">DEMO</a></li>
147 <li class="take_survay"><a class="ays-btn" href=" https://ays-demo.com/chart-builder-plugin-suggestion-box/" target="_blank">MAKE A SUGGESTION</a></li>
148 <!-- <li><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/" target="_blank">SUPPORT FORUM</a></li> -->
149 <li class=""><a class="ays-btn" href="https://ays-pro.com/plugin-customization/" target="_blank">CUSTOMIZATION</a></li>
150 <!-- <li><a class="ays-btn" href="https://wordpress.org/support/plugin/chart-builder/" target="_blank">CONTACT US</a></li> -->
151 </ul>
152 </li>
153 </ul>
154 </div>
155 </div>
156 </div>
157 <?php
158 }
159 }
160 }
161
162 run_chart_builder();
163