| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Ultimate Dashboard |
| 4 |
* Plugin URI: https://ultimatedashboard.io/ |
| 5 |
* Description: Create a custom Dashboard and give the WordPress admin area a more meaningful use. |
| 6 |
* Version: 3.8.17 |
| 7 |
* Author: David Vongries |
| 8 |
* Author URI: https://davidvongries.com/ |
| 9 |
* License: GPL v2 or later |
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
* Text Domain: ultimate-dashboard |
| 12 |
* |
| 13 |
* @package Ultimate_Dashboard |
| 14 |
*/ |
| 15 |
|
| 16 |
defined( 'ABSPATH' ) || die( "Can't access directly" ); |
| 17 |
|
| 18 |
// Plugin constants. |
| 19 |
define( 'ULTIMATE_DASHBOARD_PLUGIN_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) ); |
| 20 |
define( 'ULTIMATE_DASHBOARD_PLUGIN_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) ); |
| 21 |
define( 'ULTIMATE_DASHBOARD_PLUGIN_VERSION', '3.8.17' ); |
| 22 |
define( 'ULTIMATE_DASHBOARD_PLUGIN_FILE', plugin_basename( __FILE__ ) ); |
| 23 |
|
| 24 |
// Admin menu specific support. |
| 25 |
require_once __DIR__ . '/modules/admin-menu/inc/not-doing-ajax.php'; |
| 26 |
udb_admin_menu_not_doing_ajax(); |
| 27 |
|
| 28 |
// Helper classes. |
| 29 |
require __DIR__ . '/helpers/class-screen-helper.php'; |
| 30 |
require __DIR__ . '/helpers/class-color-helper.php'; |
| 31 |
require __DIR__ . '/helpers/class-widget-helper.php'; |
| 32 |
require __DIR__ . '/helpers/class-content-helper.php'; |
| 33 |
require __DIR__ . '/helpers/class-user-helper.php'; |
| 34 |
require __DIR__ . '/helpers/class-array-helper.php'; |
| 35 |
require __DIR__ . '/helpers/class-admin-bar-helper.php'; |
| 36 |
|
| 37 |
// Base module. |
| 38 |
require __DIR__ . '/modules/base/class-base-module.php'; |
| 39 |
require __DIR__ . '/modules/base/class-base-output.php'; |
| 40 |
|
| 41 |
// Core classes. |
| 42 |
require __DIR__ . '/class-backwards-compatibility.php'; |
| 43 |
require __DIR__ . '/class-vars.php'; |
| 44 |
require __DIR__ . '/class-setup.php'; |
| 45 |
|
| 46 |
/** |
| 47 |
* Check whether Ultimate Dashboard Pro is active. |
| 48 |
* This function can be called anywhere after "plugins_loaded" hook. |
| 49 |
* |
| 50 |
* @return bool |
| 51 |
*/ |
| 52 |
function udb_is_pro_active() { |
| 53 |
return defined( 'ULTIMATE_DASHBOARD_PRO_PLUGIN_VERSION' ); |
| 54 |
} |
| 55 |
|
| 56 |
Udb\Backwards_Compatibility::init(); |
| 57 |
Udb\Setup::init(); |
| 58 |
|