| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Quick Event Manager |
| 5 |
* |
| 6 |
* @author Bright Plugins |
| 7 |
* @copyright 2025 Bright Plugins |
| 8 |
* @license GPL-3.0-or-later |
| 9 |
* |
| 10 |
* @wordpress-plugin |
| 11 |
* Plugin Name: Quick Event Manager |
| 12 |
* Plugin URI: https://brightplugins.com/ |
| 13 |
* Description: A quick and easy to use Event Manager |
| 14 |
* Version: 9.18 |
| 15 |
* Tested up to: 7.1 |
| 16 |
* Requires at least: 5.6 |
| 17 |
* Requires PHP: 7.4 |
| 18 |
* Author: Bright Plugins |
| 19 |
* Author URI: https://brightplugins.com/ |
| 20 |
* Text Domain: quick-event-manager |
| 21 |
* License: GPLv3 or later |
| 22 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
| 23 |
* Domain Path: /languages |
| 24 |
*/ |
| 25 |
|
| 26 |
/* |
| 27 |
Quick Event Manager is free software: you can redistribute it and/or modify |
| 28 |
it under the terms of the GNU General Public License as published by |
| 29 |
the Free Software Foundation, either version 2 of the License, or |
| 30 |
any later version. |
| 31 |
|
| 32 |
Quick Event Manager is distributed in the hope that it will be useful, |
| 33 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 34 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 35 |
GNU General Public License for more details. |
| 36 |
|
| 37 |
You should have received a copy of the GNU General Public License |
| 38 |
along with Quick Event Manager. If not, see http://www.gnu.org/licenses/gpl-3.0.txt. |
| 39 |
*/ |
| 40 |
|
| 41 |
namespace Quick_Event_Manager\Plugin; |
| 42 |
|
| 43 |
use Quick_Event_Manager\Plugin\Control\Plugin; |
| 44 |
|
| 45 |
// If this file is called directly, abort. |
| 46 |
if ( ! defined( 'WPINC' ) ) { |
| 47 |
die; |
| 48 |
} |
| 49 |
/** |
| 50 |
* Print full stack trace when WordPress triggers an error |
| 51 |
* Specifically captures _doing_it_wrong() calls related to text domains |
| 52 |
*/ |
| 53 |
|
| 54 |
define( 'QUICK_EVENT_MANAGER_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) ); |
| 55 |
define( 'QUICK_EVENT_MANAGER_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 56 |
define( 'QUICK_EVENT_MANAGER_PLUGIN_FILE', plugin_basename( __FILE__ ) ); |
| 57 |
define( 'QUICK_EVENT_MANAGER_PLUGIN_NAME', 'quick-event-manager' ); |
| 58 |
define( 'QUICK_EVENT_MANAGER_PLUGIN_VERSION', '9.18' ); |
| 59 |
define( 'QEMBP_ADMIN_ASSETS', plugins_url( '', __FILE__ ) . '/ui/admin' ); |
| 60 |
|
| 61 |
// Include the autoloaders so we can dynamically include the classes. |
| 62 |
require_once QUICK_EVENT_MANAGER_PLUGIN_DIR . 'control/autoloader.php'; |
| 63 |
require_once QUICK_EVENT_MANAGER_PLUGIN_DIR . 'vendor/autoload.php'; |
| 64 |
|
| 65 |
|
| 66 |
if ( ! function_exists( 'Quick_Event_Manager\Plugin\run_quick_event_manager' ) ) { |
| 67 |
function run_quick_event_manager() { |
| 68 |
|
| 69 |
$plugin = new Plugin( 'quick-event-manager', QUICK_EVENT_MANAGER_PLUGIN_VERSION, null ); |
| 70 |
$plugin->run(); |
| 71 |
|
| 72 |
if ( Plugin::can_use_premium_code__premium_only() ) { |
| 73 |
require_once QUICK_EVENT_MANAGER_PLUGIN_DIR . 'vendor/namespaced__premium_only/lib/autoload.php'; |
| 74 |
} |
| 75 |
// Signal that SDK was initiated. |
| 76 |
do_action( 'quick_event_manager_fs_loaded' ); |
| 77 |
|
| 78 |
register_activation_hook( __FILE__, array( '\Quick_Event_Manager\Plugin\Control\Activator', 'activate' ) ); |
| 79 |
|
| 80 |
register_deactivation_hook( |
| 81 |
__FILE__, |
| 82 |
array( |
| 83 |
'\Quick_Event_Manager\Plugin\Control\Deactivator', |
| 84 |
'deactivate', |
| 85 |
) |
| 86 |
); |
| 87 |
|
| 88 |
/* $qem_fs->add_action( |
| 89 |
'after_uninstall', |
| 90 |
array( |
| 91 |
'\Quick_Event_Manager\Plugin\Control\Uninstall', |
| 92 |
'uninstall', |
| 93 |
) |
| 94 |
); */ |
| 95 |
} |
| 96 |
|
| 97 |
run_quick_event_manager(); |
| 98 |
} else { |
| 99 |
//$qem_fs->set_basename( true, __FILE__ ); |
| 100 |
} |