o introduced in WordPress 4.5 add_theme_support( 'custom-logo', array( 'flex-width' => true, 'flex-height' => true, ) ); // Support for selective refresh widgets in Customizer add_theme_support( 'customize-selective-refresh-widgets' ); } endif; /** * Define Directory Location Constants */ define( 'COLORMAG_PARENT_DIR', get_template_directory() ); define( 'COLORMAG_CHILD_DIR', get_stylesheet_directory() ); define( 'COLORMAG_INCLUDES_DIR', COLORMAG_PARENT_DIR. '/inc' ); define( 'COLORMAG_CSS_DIR', COLORMAG_PARENT_DIR . '/css' ); define( 'COLORMAG_JS_DIR', COLORMAG_PARENT_DIR . '/js' ); define( 'COLORMAG_LANGUAGES_DIR', COLORMAG_PARENT_DIR . '/languages' ); define( 'COLORMAG_ADMIN_DIR', COLORMAG_INCLUDES_DIR . '/admin' ); define( 'COLORMAG_WIDGETS_DIR', COLORMAG_INCLUDES_DIR . '/widgets' ); define( 'COLORMAG_ADMIN_IMAGES_DIR', COLORMAG_ADMIN_DIR . '/images' ); /** * Define URL Location Constants */ define( 'COLORMAG_PARENT_URL', get_template_directory_uri() ); define( 'COLORMAG_CHILD_URL', get_stylesheet_directory_uri() ); define( 'COLORMAG_INCLUDES_URL', COLORMAG_PARENT_URL. '/inc' ); define( 'COLORMAG_CSS_URL', COLORMAG_PARENT_URL . '/css' ); define( 'COLORMAG_JS_URL', COLORMAG_PARENT_URL . '/js' ); define( 'COLORMAG_LANGUAGES_URL', COLORMAG_PARENT_URL . '/languages' ); define( 'COLORMAG_ADMIN_URL', COLORMAG_INCLUDES_URL . '/admin' ); define( 'COLORMAG_WIDGETS_URL', COLORMAG_INCLUDES_URL . '/widgets' ); define( 'COLORMAG_ADMIN_IMAGES_URL', COLORMAG_ADMIN_URL . '/images' ); /** Load functions */ require_once( COLORMAG_INCLUDES_DIR . '/custom-header.php' ); require_once( COLORMAG_INCLUDES_DIR . '/functions.php' ); require_once( COLORMAG_INCLUDES_DIR . '/header-functions.php' ); require_once( COLORMAG_INCLUDES_DIR . '/customizer.php' ); require_once( COLORMAG_ADMIN_DIR . '/meta-boxes.php' ); /** Load Widgets and Widgetized Area */ require_once( COLORMAG_WIDGETS_DIR . '/widgets.php' ); /** * Detect plugin. For use on Front End only. */ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); /** * Load Demo Importer Configs. */ if ( class_exists( 'TG_Demo_Importer' ) ) { require get_template_directory() . '/inc/demo-config.php'; } /** * Assign the ColorMag version to a variable. */ $theme = wp_get_theme( 'colormag' ); $colormag_version = $theme['Version']; /* Calling in the admin area for the Welcome Page */ if ( is_admin() ) { require get_template_directory() . '/inc/admin/class-colormag-admin.php'; } /** * Load TGMPA Configs. */ require_once( COLORMAG_INCLUDES_DIR . '/tgm-plugin-activation/class-tgm-plugin-activation.php' ); require_once( COLORMAG_INCLUDES_DIR . '/tgm-plugin-activation/tgmpa-colormag.php' ); ?> Publicitame – Marketing | Informática