<?php
/**
 * Plugin Name:       MenuVerse – Mobile Menu, Mega Menu & Bottom Navigation Builder
 * Plugin URI:        https://github.com/wpxero/menuverse
 * Description:       Modular navigation suite: off-canvas mobile menu, app-style bottom bar, mega menu builder, block menu builder and vertical menu. Enable only what you use.
 * Version:           0.2.0
 * Requires at least: 6.4
 * Requires PHP:      7.4
 * Author:            WPXERO
 * Author URI:        https://wpxero.com/plugins/menuverse
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       menuverse
 * Domain Path:       /languages
 *
 * @package MenuVerse
 */

defined( 'ABSPATH' ) || exit;

/*
 * Freemius before anything else this plugin does. It lives in its own global
 * namespace file because PHP will not take a `namespace` statement after other
 * code — see the note at the top of that file.
 */
require_once __DIR__ . '/includes/freemius.php';

define( 'MENUVERSE_VERSION', '0.2.0' );
define( 'MENUVERSE_FILE', __FILE__ );
define( 'MENUVERSE_PATH', plugin_dir_path( __FILE__ ) );
define( 'MENUVERSE_URL', plugin_dir_url( __FILE__ ) );
define( 'MENUVERSE_BASENAME', plugin_basename( __FILE__ ) );

require_once MENUVERSE_PATH . 'includes/class-autoloader.php';

\WPXero\MenuVerse\Autoloader::register();

require_once MENUVERSE_PATH . 'includes/functions.php';
require_once MENUVERSE_PATH . 'includes/template-tags.php';

register_activation_hook( __FILE__, array( \WPXero\MenuVerse\Activator::class, 'activate' ) );
register_deactivation_hook( __FILE__, array( \WPXero\MenuVerse\Deactivator::class, 'deactivate' ) );

add_action( 'plugins_loaded', array( \WPXero\MenuVerse\Plugin::class, 'instance' ), 10 );
