| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Easy Hotel |
| 4 |
* Description: Easy Hotel Plugin, A complete hotel booking solution for WordPress website. |
| 5 |
* Plugin URI: https://themewant.com/downloads/hotel-booking/ |
| 6 |
* Author: Themewant |
| 7 |
* Author URI: http://themewant.com/ |
| 8 |
* Version: 2.0.8 |
| 9 |
* License: GPL2 |
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
* Text Domain: easy-hotel |
| 12 |
* Domain Path: /languages |
| 13 |
*/ |
| 14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 15 |
|
| 16 |
define( 'ESHB_VERSION', '2.0.8' ); |
| 17 |
define( 'ESHB_PL_ROOT', __FILE__ ); |
| 18 |
define( 'ESHB_PL_URL', plugins_url( '/', ESHB_PL_ROOT ) ); |
| 19 |
define( 'ESHB_PL_PATH', plugin_dir_path( ESHB_PL_ROOT ) ); |
| 20 |
define( 'ESHB_DIR_URL', plugin_dir_url( ESHB_PL_ROOT ) ); |
| 21 |
define( 'ESHB_PLUGIN_BASE', plugin_basename( ESHB_PL_ROOT ) ); |
| 22 |
|
| 23 |
include 'admin/includes/classes/class.helper.php'; |
| 24 |
include 'admin/includes/admin-init.php'; |
| 25 |
include 'admin/includes/activation.php'; |
| 26 |
include 'admin/includes/compat-bogo.php'; |
| 27 |
|
| 28 |
include 'public/includes/widgets/widgets.php'; |
| 29 |
include 'public/includes/gutenberg/blocks/blocks.php'; |
| 30 |
include 'admin/includes/dashboard/init.php'; |
| 31 |
include 'class.easy-hotel.php'; |
| 32 |
|
| 33 |
// PMS module. Self contained under /pms — remove this line to disable it entirely. |
| 34 |
include 'pms/pms.php'; |
| 35 |
|
| 36 |
register_activation_hook(__FILE__, 'eshb_create_easy_hotel_pages'); |
| 37 |
add_action( 'plugins_loaded', function(){ |
| 38 |
ESHB_MAIN::instance(); |
| 39 |
}, 12 ); |
| 40 |
|
| 41 |
/** |
| 42 |
* Initialize the plugin tracker |
| 43 |
* |
| 44 |
* @return void |
| 45 |
*/ |
| 46 |
function eshb_appsero_init_tracker() { |
| 47 |
|
| 48 |
if ( ! class_exists( 'Appsero\Client' ) ) { |
| 49 |
include ESHB_PL_PATH . 'admin/includes/opt-in/Client.php'; |
| 50 |
} |
| 51 |
|
| 52 |
$client = new Appsero\Client( 'aad425e0-9ec8-4de0-a3cf-011a98a4fb39', 'Easy Hotel Booking – Powerful Hotel Booking', __FILE__ ); |
| 53 |
|
| 54 |
// Active insights |
| 55 |
$client->insights()->init(); |
| 56 |
|
| 57 |
} |
| 58 |
|
| 59 |
add_action( 'plugins_loaded', 'eshb_appsero_init_tracker' ); |