<?php
/**
 * Plugin Name: Shortcodes Ultimate
 * Plugin URI: https://getshortcodes.com/
 * Version: 5.0.3
 * Author: Vladimir Anokhin
 * Author URI: https://vanokhin.com/
 * Description: A comprehensive collection of visual components for WordPress
 * Text Domain: shortcodes-ultimate
 * Domain Path: /languages
 * License: GPLv3
 */

/**
 * Define plugin constants.
 */
define( 'SU_PLUGIN_FILE',    __FILE__ );
define( 'SU_PLUGIN_VERSION', '5.0.3'  );
define( 'SU_ENABLE_CACHE',   false    );

/**
 * Load dependencies.
 */
require_once 'inc/core/load.php';
require_once 'inc/core/assets.php';
require_once 'inc/core/shortcodes.php';
require_once 'inc/core/tools.php';
require_once 'inc/core/data.php';
require_once 'inc/core/generator-views.php';
require_once 'inc/core/generator.php';
require_once 'inc/core/widget.php';

/**
 * The code that runs during plugin activation.
 *
 * @since  5.0.0
 */
function activate_shortcodes_ultimate() {

	require_once plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes-ultimate-activator.php';

	Shortcodes_Ultimate_Activator::activate();

}

register_activation_hook( __FILE__, 'activate_shortcodes_ultimate' );

/**
 * Begins execution of the plugin.
 *
 * @since 5.0.0
 */
function run_shortcodes_ultimate() {

	require_once plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes-ultimate.php';

	$plugin = new Shortcodes_Ultimate( __FILE__, '5.0.3' );

}

run_shortcodes_ultimate();

/**
 * Finishes execution of the plugin.
 *
 * @since 5.0.2
 */
function shutdown_shortcodes_ultimate() {
	do_action( 'su/ready' );
}

add_action( 'plugins_loaded', 'shutdown_shortcodes_ultimate' );
