| 1 |
<?php |
| 2 |
/** |
| 3 |
* The plugin bootstrap file |
| 4 |
* |
| 5 |
* WordPress reads this file to generate the plugin information in the plugin |
| 6 |
* admin area. This file also includes all the dependencies used by the plugin, |
| 7 |
* registers the activation and deactivation functions, and defines a function |
| 8 |
* that starts the plugin. |
| 9 |
* |
| 10 |
* @link https://wptravelengine.com/ |
| 11 |
* @since 1.0.0 |
| 12 |
* @package WP_Travel_Engine |
| 13 |
* |
| 14 |
* @wordpress-plugin |
| 15 |
* Plugin Name: WP Travel Engine - Travel and Tour Booking Plugin |
| 16 |
* Plugin URI: https://wordpress.org/plugins/wp-travel-engine/ |
| 17 |
* Description: WP Travel Engine is a free travel booking WordPress plugin to create travel and tour packages for tour operators and travel agencies. It is a complete travel management system and includes plenty of useful features. You can create your travel booking website using WP Travel Engine in less than 5 minutes. |
| 18 |
* Version: 6.8.7 |
| 19 |
* Author: WP Travel Engine |
| 20 |
* Author URI: https://wptravelengine.com/ |
| 21 |
* License: GPLv3 |
| 22 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 23 |
* Text Domain: wp-travel-engine |
| 24 |
* Domain Path: /languages |
| 25 |
* Requires at least: 5.8 |
| 26 |
* Requires PHP: 7.4 |
| 27 |
* Tested up to: 7.0 |
| 28 |
*/ |
| 29 |
|
| 30 |
defined( 'ABSPATH' ) || exit; |
| 31 |
|
| 32 |
const WP_TRAVEL_ENGINE_FILE_PATH = __FILE__; |
| 33 |
const WP_TRAVEL_ENGINE_VERSION = '6.8.7'; |
| 34 |
|
| 35 |
/** |
| 36 |
* Load plugin updater file |
| 37 |
*/ |
| 38 |
if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) { |
| 39 |
add_action( |
| 40 |
'admin_notices', |
| 41 |
function () { |
| 42 |
echo wp_kses( |
| 43 |
sprintf( |
| 44 |
'<div class="wte-admin-notice error">%1$s</div>', |
| 45 |
__( "The PHP version doesn't meet requirement of WP Travel Engine, plugin is currently NOT RUNNING.", 'wp-travel-engine' ) |
| 46 |
), |
| 47 |
array( 'div' => array( 'class' => array() ) ) |
| 48 |
); |
| 49 |
} |
| 50 |
); |
| 51 |
} elseif ( ! version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) { |
| 52 |
add_action( |
| 53 |
'admin_notices', |
| 54 |
function () { |
| 55 |
echo wp_kses( |
| 56 |
sprintf( |
| 57 |
'<div class="wte-admin-notice error">%1$s</div>', |
| 58 |
__( 'The WordPress version is earlier than the minimum requirement to run WP Travel Engine, the plugin is NOT RUNNING.', 'wp-travel-engine' ) |
| 59 |
), |
| 60 |
array( 'div' => array( 'class' => array() ) ) |
| 61 |
); |
| 62 |
} |
| 63 |
); |
| 64 |
} elseif ( ! class_exists( '\WPTravelEngine\Plugin', false ) ) { |
| 65 |
require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
| 66 |
require_once __DIR__ . '/includes/helpers/functions.php'; |
| 67 |
require_once __DIR__ . '/includes/class-wte-session.php'; |
| 68 |
/** |
| 69 |
* Engine starts. |
| 70 |
*/ |
| 71 |
WPTravelEngine(); |
| 72 |
} |
| 73 |
|