PluginProbe
Quick Event Manager / 9.9.2
Quick Event Manager v9.9.2
9.3.2 9.3.3 9.3.4 9.3.5 9.3.6 9.3.7 9.3.8 9.3.9 9.4.0 9.4.1 9.4.2 9.5.0 9.5.1 9.5.1.01 9.6.0 9.6.1 9.6.2 9.6.3 9.6.4 9.6.5 9.7.0 9.7.1 9.7.2 9.7.3 9.7.4 All 127 releases
quick-event-manager / quick-event-manager.php

quick-event-manager.php in Quick Event Manager 9.9.2, at quick-event-manager.php

85 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @copyright (c) 2020.
5 * @author Alan Fuller (support@fullworksplugins.com)
6 * @licence GPL V3 https://www.gnu.org/licenses/gpl-3.0.en.html
7 * @link https://fullworksplugins.com
8 *
9 * This file is part of a Fullworks plugin.
10 *
11 * This plugin is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This plugin is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this plugin. https://www.gnu.org/licenses/gpl-3.0.en.html
23 *
24 * Plugin Name: Quick Event Manager
25 *
26 * Plugin URI: https://fullworksplugins.com/products/quick-event-manager/
27 * Description: A quick and easy to use Event Manager
28 * Version: 9.9.2
29 * Requires at least: 4.6
30 * Requires PHP: 5.6
31 * Author: Fullworks
32 * Author URI: https://fullworksplugins.com/
33 * Text Domain: quick-event-manager
34 * Domain Path: /languages
35 *
36 * Original Author: Aerin
37 *
38 */
39 namespace Quick_Event_Manager\Plugin;
40
41 use Quick_Event_Manager\Plugin\Control\Plugin ;
42 use Quick_Event_Manager\Plugin\Control\Freemius_Config ;
43 // If this file is called directly, abort.
44 if ( !defined( 'WPINC' ) ) {
45 die;
46 }
47
48 if ( !function_exists( 'Quick_Event_Manager\\Plugin\\run_quick_event_manager' ) ) {
49 define( 'QUICK_EVENT_MANAGER_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
50 define( 'QUICK_EVENT_MANAGER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
51 define( 'QUICK_EVENT_MANAGER_PLUGIN_FILE', plugin_basename( __FILE__ ) );
52 define( 'QUICK_EVENT_MANAGER_PLUGIN_NAME', 'quick-event-manager' );
53 define( 'QUICK_EVENT_MANAGER_PLUGIN_VERSION', '9.9.2' );
54 // Include the autoloaders so we can dynamically include the classes.
55 require_once QUICK_EVENT_MANAGER_PLUGIN_DIR . 'control/autoloader.php';
56 require_once QUICK_EVENT_MANAGER_PLUGIN_DIR . 'vendor/autoload.php';
57 function run_quick_event_manager()
58 {
59 $freemius = new Freemius_Config();
60 $freemius = $freemius->init();
61 // Signal that SDK was initiated.
62 do_action( 'quick_event_manager_fs_loaded' );
63 register_activation_hook( __FILE__, array( '\\Quick_Event_Manager\\Plugin\\Control\\Activator', 'activate' ) );
64 register_deactivation_hook( __FILE__, array( '\\Quick_Event_Manager\\Plugin\\Control\\Deactivator', 'deactivate' ) );
65 /**
66 * @var \Freemius $freemius freemius SDK.
67 */
68 $freemius->add_action( 'after_uninstall', array( '\\Quick_Event_Manager\\Plugin\\Control\\Uninstall', 'uninstall' ) );
69 $plugin = new Plugin( 'quick-event-manager', QUICK_EVENT_MANAGER_PLUGIN_VERSION, $freemius );
70 $plugin->run();
71 }
72
73 run_quick_event_manager();
74 } else {
75 global $wfea_fs ;
76
77 if ( null !== $wfea_fs && !$wfea_fs->is_premium() ) {
78 $wfea_fs->set_basename( true, __FILE__ );
79 } else {
80 die( esc_html__( 'You already have a pro version of Quick Event Manager (Premium) installed, please check versions and delete one of them. The correct one should be in the folder wp-content/quick-event-manager-premium - this one you are trying is in folder wp-content/plugins/', 'display-eventbrite-events' ) . esc_html( basename( plugin_dir_path( __FILE__ ) ) ) );
81 }
82
83 return;
84 }
85