array( 'adminstyles' => true, 'customizer' => true, 'fonts' => true, 'meta' => true, 'widgets' => true, ), 'comments' => array( 'posts' => true, 'pages' => false, 'portfolio' => false, ) ); return apply_filters('themeora_theme_config_args', $args); } add_action('themeora_init', 'themeora_feature_setup'); } //END if ( !function_exists( 'themeora_feature_setup' ) ) // FEATURE SETUP RETURN /* --------------------------------------------------------------------- */ function themeora_theme_supports($group, $feature) { $setup = themeora_feature_setup(); if (isset($setup[$group][$feature]) && $setup[$group][$feature]) return true; else { } } /* LOAD FRAMEWORK /* --------------------------------------------------------------------- */ function themeora_load_framework() { //do_action('themeora_pre_framework'); // FRAMEWORK FUNCTIONS $tempdir = get_template_directory(); require_once($tempdir . '/framework/themeora-admin-init.php'); require_once($tempdir . '/framework/inc/functions/init.php'); // THEME CUSTOMIZER if (themeora_theme_supports('primary', 'customizer')) { require( THEMEORA_CUSTOMIZER_DIR . '/themeora-customizer.php' ); require( THEMEORA_CUSTOMIZER_DIR . '/themeora-customizer-css.php' ); //CUSTOMIZER CSS function themeora_customizer_ui_css() { wp_register_style('customizer-ui-css', get_template_directory_uri() . '/framework/assets/css/customizer-ui.css', 'all'); wp_enqueue_style('customizer-ui-css'); } add_action('customize_controls_print_scripts', 'themeora_customizer_ui_css'); //CUSTOMIZER JS function themeora_customizer_ui_js() { wp_register_script('customizer-ui-js', get_template_directory_uri() . '/framework/assets/js/customizer-ui.js', 'jquery'); wp_enqueue_script('customizer-ui-js'); } add_action('customize_controls_print_scripts', 'themeora_customizer_ui_js'); } //END if( themeora_theme_supports( 'primary', 'customizer' )) } add_action( 'themeora_init', 'themeora_load_framework' ); /* Run the init hook */ do_action( 'themeora_init' ); /* Run the setup hook */ do_action( 'themeora_setup' ); /* end themeora framework */