192, 'width' => 192, 'flex-width' => true, 'flex-height' => true, ) ); add_theme_support( 'block-nav-menus' ); add_theme_support( 'experimental-link-color' ); register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'alpha-health-coach' ), ) ); } endif; add_action( 'after_setup_theme', 'alpha_health_coach_setup' ); /** * Enqueue scripts and styles. */ function alpha_health_coach_scripts() { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; $theme_version = wp_get_theme()->get( 'Version' ); $deps = array( 'dashicons' ); global $wp_styles; if ( in_array( 'wc-blocks-vendors-style', $wp_styles->queue ) ) { $deps[] = 'wc-blocks-vendors-style'; } wp_enqueue_style( 'alpha-health-coach-style', get_stylesheet_uri(), $deps, date( 'Ymd-Gis', filemtime( get_theme_file_path( 'style.css' ) ) ) ); wp_enqueue_script('alpha-health-coach-main-script', get_template_directory_uri() . '/js/script.js', array('jquery'), ALPHA_HEALTH_COACH_VERSION, true); //font-awesome wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome/css/all.css', array(), '5.15.3' ); } add_action( 'wp_enqueue_scripts', 'alpha_health_coach_scripts' ); /** * Enqueue admin scripts and styles. */ function alpha_health_coach_admin_scripts() { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; $theme_version = wp_get_theme()->get( 'Version' ); $deps = array(); wp_enqueue_style( 'alpha-health-coach-admin-style', get_stylesheet_directory_uri() . '/css/admin-style.css', $deps, date( 'Ymd-Gis', filemtime( get_theme_file_path( 'style.css' ) ) ) ); wp_enqueue_style( 'alpha-health-coach-admin-css', get_template_directory_uri() . '/notice-getstart/theme-info.css', [], wp_get_theme()->get( 'Version' ) ); // Enqueue JS wp_enqueue_script( 'alpha-health-coach-admin-js', get_template_directory_uri() . '/notice-getstart/theme-info.js', [], wp_get_theme()->get( 'Version' ), true // Load in footer ); } add_action( 'admin_enqueue_scripts', 'alpha_health_coach_admin_scripts' ); /** * Load core file. */ require_once get_template_directory() . '/core/init.php'; /** * Load TGM file. */ require get_template_directory() . '/core/tgm/plugin-activation.php'; /** * Customizer */ require get_template_directory() . '/core/section-pro/customizer.php'; /** * Current theme path. * Current theme url. * Current theme version. * Current theme name. * Current theme option name. */ define( 'ALPHA_HEALTH_COACH_PATH', trailingslashit( get_template_directory() ) ); define( 'ALPHA_HEALTH_COACH_URL', trailingslashit( get_template_directory_uri() ) ); define( 'ALPHA_HEALTH_COACH_VERSION', '1.0.0' ); define( 'ALPHA_HEALTH_COACH_THEME_NAME', 'alpha-health-coach' ); define( 'ALPHA_HEALTH_COACH_OPTION_NAME', 'alpha-health-coach' ); /** * The core theme class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require ALPHA_HEALTH_COACH_PATH . 'notice-getstart/main.php'; /** * Begins execution of the theme. * * @since 1.0.0 */ function alpha_health_coach_run() { new Alpha_Health_Coach(); } alpha_health_coach_run();