* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * ------------------------------------------------------------------------------------------------ * * @package Aitasi_Coming_Soon */ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. require_once plugin_dir_path( __FILE__ ) . '/cs-framework-path.php'; if ( ! function_exists( 'cs_framework_init' ) && ! class_exists( 'CSFramework' ) ) { /** * Load the framework helpers, classes and configs. * * @return void */ function cs_framework_init() { // Active modules. if ( ! defined( 'CS_ACTIVE_FRAMEWORK' ) ) { define( 'CS_ACTIVE_FRAMEWORK', true ); } if ( ! defined( 'CS_ACTIVE_METABOX' ) ) { define( 'CS_ACTIVE_METABOX', true ); } if ( ! defined( 'CS_ACTIVE_SHORTCODE' ) ) { define( 'CS_ACTIVE_SHORTCODE', true ); } if ( ! defined( 'CS_ACTIVE_CUSTOMIZE' ) ) { define( 'CS_ACTIVE_CUSTOMIZE', true ); } // Helpers. cs_locate_template( 'functions/deprecated.php' ); cs_locate_template( 'functions/helpers.php' ); cs_locate_template( 'functions/actions.php' ); cs_locate_template( 'functions/enqueue.php' ); cs_locate_template( 'functions/sanitize.php' ); cs_locate_template( 'functions/validate.php' ); // Classes. cs_locate_template( 'classes/abstract.class.php' ); cs_locate_template( 'classes/options.class.php' ); cs_locate_template( 'classes/framework.class.php' ); cs_locate_template( 'classes/metabox.class.php' ); cs_locate_template( 'classes/shortcode.class.php' ); cs_locate_template( 'classes/customize.class.php' ); // Configs. cs_locate_template( 'config/framework.config.php' ); cs_locate_template( 'config/metabox.config.php' ); cs_locate_template( 'config/shortcode.config.php' ); cs_locate_template( 'config/customize.config.php' ); } add_action( 'init', 'cs_framework_init', 10 ); }