<?php
/**
 * Plugin Name:       Odysseo Core
 * Plugin URI:        https://gigaikripaservices.com/themes/odysseo
 * Description:       Companion plugin for the Odysseo theme. Provides the travel functionality that belongs in a plugin: Destinations, Tour Packages, Fleet, Testimonials and Gallery post types, the SEO / structured-data module, contact inquiries, and the demo importer. Keeps this functionality with your content if you change themes.
 * Version:           1.0.0
 * Requires at least: 6.0
 * Requires PHP:      7.4
 * Author:            Chandrabhan Shekhawat
 * Author URI:        https://gigaikripaservices.com/
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       odysseo-core
 *
 * @package OdysseoCore
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

define( 'ODYSSEO_CORE_VERSION', '1.0.0' );
define( 'ODYSSEO_CORE_DIR', plugin_dir_path( __FILE__ ) );
define( 'ODYSSEO_CORE_URL', plugin_dir_url( __FILE__ ) );

/**
 * Load the plugin modules.
 */
function odysseo_core_boot() {
	// Custom post types & taxonomies (must load before the 'init' hook fires).
	require_once ODYSSEO_CORE_DIR . 'includes/post-types.php';
	// Editor meta boxes & term fields.
	require_once ODYSSEO_CORE_DIR . 'includes/meta-boxes.php';
	// Media picker for image fields on the editor screens.
	require_once ODYSSEO_CORE_DIR . 'includes/admin-media.php';
	// Contact inquiries (storage CPT) + the front-end form AJAX handler.
	require_once ODYSSEO_CORE_DIR . 'includes/contact-inquiries.php';
	require_once ODYSSEO_CORE_DIR . 'includes/contact-form.php';
	// Per-page content meta box (writes the _odm_* meta the theme reads).
	require_once ODYSSEO_CORE_DIR . 'includes/page-meta-box.php';
	// One Click Demo Import integration.
	require_once ODYSSEO_CORE_DIR . 'includes/demo-import.php';
	// SEO / structured data module (self-contained).
	require_once ODYSSEO_CORE_DIR . 'includes/odysseo-seo/odysseo-seo.php';
}
add_action( 'after_setup_theme', 'odysseo_core_boot', 5 );

/*
 * Translations load automatically: WordPress loads the plugin's text domain from
 * the directory's language packs since 4.6, so an explicit load_plugin_textdomain()
 * call is not needed.
 */
