* @license GPL-2.0+ * @link http://aesopinteractive.com * @copyright 2016-2017 Hyun Supul * * @wordpress-plugin * Plugin Name: Aesop Story Engine * Plugin URI: http://aesopstoryengine.com * Description: Open-sourced suite of components that empower interactive storytelling. * Version: 1.9.10 * Author: Aesopinteractive * Author URI: http://aesopstoryengine.com * Text Domain: aesop-core * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Domain Path: /languages * GitHub Plugin URI: https://github.com/hyunsupul/aesop-core * Github Branch: dev */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } // Set some constants define( 'AI_CORE_VERSION', '1.9.10' ); define( 'AI_CORE_DIR', plugin_dir_path( __FILE__ ) ); define( 'AI_CORE_URL', plugins_url( '', __FILE__ ) ); /* ----------------------------------------------------------------------------* * Public-Facing Functionality *----------------------------------------------------------------------------*/ require_once AI_CORE_DIR.'public/class-aesop-core.php'; /* * Register hooks that are fired when the plugin is activated or deactivated. * When the plugin is deleted, the uninstall.php file is loaded. */ register_activation_hook( __FILE__, array( 'Aesop_Core', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Aesop_Core', 'deactivate' ) ); add_action( 'plugins_loaded', array( 'Aesop_Core', 'get_instance' ) ); /* ----------------------------------------------------------------------------* * Dashboard and Administrative Functionality *----------------------------------------------------------------------------*/ /* * The code below is intended to to give the lightest footprint possible. */ if ( is_admin() ) { require_once AI_CORE_DIR.'admin/class-aesop-core-admin.php'; add_action( 'plugins_loaded', array( 'Aesop_Core_Admin', 'get_instance' ) ); } /** * BLOCK: Aesop Gutenberg Blocks. */ require_once( AI_CORE_DIR . 'blocks/index.php' );