%1$s

', sprintf( __( 'The %1$s plugin requires at least %2$s version %3$s.', 'text_doma' ), __('Nimble Builder', 'text_doma'), esc_attr($requires_what), esc_attr($requires_what_version) ) ); } /* ------------------------------------------------------------------------- * * LOAD /* ------------------------------------------------------------------------- */ add_action( 'after_setup_theme', 'nimble_load_czr_base_fmk', 10 ); function nimble_load_czr_base_fmk() { if ( !nimble_passes_requirements() ) return; if ( did_action( 'nimble_base_fmk_loaded' ) ) { if ( ( defined( 'CZR_DEV' ) && CZR_DEV ) || ( defined( 'NIMBLE_DEV' ) && NIMBLE_DEV ) ) { error_log( __FILE__ . ' => The czr_base_fmk has already been loaded'); } return; } require_once( NIMBLE_BASE_PATH . '/inc/czr-base-fmk/czr-base-fmk.php' ); if ( class_exists('\Nimble\CZR_Fmk_Base') ) { \Nimble\CZR_Fmk_Base( array( 'base_url' => NIMBLE_BASE_URL . '/inc/czr-base-fmk', 'version' => NIMBLE_VERSION )); } } if ( nimble_passes_requirements() ) { require_once( NIMBLE_BASE_PATH . '/inc/czr-skope/index.php' ); add_action( 'after_setup_theme', 'nimble_load_skope_php'); function nimble_load_skope_php() { if ( class_exists('\Nimble\Flat_Skop_Base') ) { \Nimble\Flat_Skop_Base( array( 'base_url_path' => NIMBLE_BASE_URL . '/inc/czr-skope' ) ); } } do_action('nimble_before_loading'); require_once( NIMBLE_BASE_PATH . '/inc/sektions/ccat-constants-and-helper-functions.php' ); do_action('nimble_base_loaded'); require_once( NIMBLE_BASE_PATH . '/inc/sektions/ccat-sektions-ui-modules.php' ); require_once( NIMBLE_BASE_PATH . '/inc/sektions/ccat-sektions-front-modules.php' ); require_once( NIMBLE_BASE_PATH . '/inc/sektions/ccat-sektions-base.php' ); do_action('nimble_after_loading'); // $_POST['ac_get_template'] <= scenario of an input template getting ajaxily fetched if ( \Nimble\skp_is_customizing() || isset( $_POST['ac_get_template']) || ( defined('DOING_AJAX') && DOING_AJAX ) ) { require_once( NIMBLE_BASE_PATH . '/inc/sektions/ccat-czr-sektions.php' ); do_action('nimble_base_czr_loaded'); } add_action( 'after_setup_theme', 'nimble_setup_dyn_register', 20 ); function nimble_setup_dyn_register( $params = array() ) { if ( class_exists('\Nimble\SEK_CZR_Dyn_Register') ) { // instantiate if not done yet \Nimble\SEK_CZR_Dyn_Register::get_instance( $params ); } } if ( defined( 'NIMBLE_PRINT_DEV_LOGS' ) && NIMBLE_PRINT_DEV_LOGS && file_exists( plugin_dir_path( __FILE__ ) . 'dev_logs.php' ) ) { require_once( NIMBLE_BASE_PATH . '/dev_logs.php' ); } add_action('plugins_loaded', 'nimble_load_plugin_textdomain'); /** * Load language files * @action plugins_loaded */ function nimble_load_plugin_textdomain() { // Note to self, the third argument must not be hardcoded, to account for relocated folders. load_plugin_textdomain( 'nimble-builder' ); } require_once( NIMBLE_BASE_PATH . '/inc/functions.php' ); // Fire the retro compatibility functions // Note : if fired @plugins_loaded, invoking wp_update_post() generates php notices //add_action( 'wp_loaded', '\Nimble\sek_maybe_do_version_mapping' ); // introduced for https://github.com/presscustomizr/nimble-builder/issues/799 add_action( 'wp_loaded', '\Nimble\sek_maybe_optimize_options' ); // Load admin if ( is_admin() ) { require_once( NIMBLE_BASE_PATH . '/inc/admin/nimble-admin.php' ); do_action('nimble_admin_loaded'); } }//if ( nimble_passes_requirements() )