| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Yatra - Complete Travel & Tour Booking System |
| 4 |
* Plugin URI: https://mantrabrain.com/downloads/yatra-wordpress-travel-booking-system/?utm_source=wordpress&utm_medium=wppage&utm_campaign=wporg |
| 5 |
* Description: Yatra is a free travel & tour booking WordPress plugin to create travel and tour packages for tour operators and travel agencies. |
| 6 |
* Version: 2.0.7 |
| 7 |
* Author: Mantrabrain |
| 8 |
* Author URI: https://mantrabrain.com/ |
| 9 |
* License: GPL-2.0+ |
| 10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 11 |
* Text Domain: yatra |
| 12 |
* Domain Path: /languages |
| 13 |
*/ |
| 14 |
|
| 15 |
if (!defined('ABSPATH')) { |
| 16 |
exit; // Exit if accessed directly. |
| 17 |
} |
| 18 |
|
| 19 |
// Define YATRA_PLUGIN_FILE. |
| 20 |
if (!defined('YATRA_FILE')) { |
| 21 |
define('YATRA_FILE', __FILE__); |
| 22 |
} |
| 23 |
|
| 24 |
// Define YATRA_VERSION. |
| 25 |
if (!defined('YATRA_VERSION')) { |
| 26 |
define('YATRA_VERSION', '2.0.7'); |
| 27 |
} |
| 28 |
|
| 29 |
// Define YATRA_PLUGIN_URI. |
| 30 |
if (!defined('YATRA_PLUGIN_URI')) { |
| 31 |
define('YATRA_PLUGIN_URI', plugins_url('', YATRA_FILE)); |
| 32 |
} |
| 33 |
|
| 34 |
// Define YATRA_PLUGIN_DIR. |
| 35 |
if (!defined('YATRA_PLUGIN_DIR')) { |
| 36 |
define('YATRA_PLUGIN_DIR', plugin_dir_path(YATRA_FILE)); |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
// Include the main Yatra class. |
| 41 |
if (!class_exists('Yatra')) { |
| 42 |
include_once dirname(__FILE__) . '/includes/class-yatra.php'; |
| 43 |
} |
| 44 |
|
| 45 |
|
| 46 |
/** |
| 47 |
* Main instance of Yatra. |
| 48 |
* |
| 49 |
* Returns the main instance of Yatra to prevent the need to use globals. |
| 50 |
* |
| 51 |
* @since 1.0.0 |
| 52 |
* @return Yatra |
| 53 |
*/ |
| 54 |
function yatra_instance() |
| 55 |
{ |
| 56 |
return Yatra::instance(); |
| 57 |
} |
| 58 |
|
| 59 |
// Global for backwards compatibility. |
| 60 |
$GLOBALS['yatra-instance'] = yatra_instance(); |
| 61 |
|