diff --git a/includes/config.php b/includes/config.php index aa884d2..893389a 100644 --- a/includes/config.php +++ b/includes/config.php @@ -8,6 +8,7 @@ define( 'UCFWP_THEME_CSS_URL', UCFWP_THEME_STATIC_URL . '/css' ); define( 'UCFWP_THEME_JS_URL', UCFWP_THEME_STATIC_URL . '/js' ); define( 'UCFWP_THEME_IMG_URL', UCFWP_THEME_STATIC_URL . '/img' ); +define( 'UCFWP_THEME_FONT_URL', UCFWP_THEME_STATIC_URL . '/fonts' ); define( 'UCFWP_THEME_TEMPLATE_PARTS_PATH', 'template-parts' ); define( 'UCFWP_THEME_CUSTOMIZER_PREFIX', 'ucfwp_' ); define( 'UCFWP_MAINSITE_NAV_URL', 'https://www.ucf.edu/wp-json/ucf-rest-menus/v1/menus/23' ); diff --git a/includes/meta.php b/includes/meta.php index daf9062..cb8114a 100644 --- a/includes/meta.php +++ b/includes/meta.php @@ -37,7 +37,10 @@ function ucfwp_enqueue_frontend_assets() { // Register main theme stylesheet wp_enqueue_style( 'style', UCFWP_THEME_CSS_URL . '/style.min.css', $style_deps, $theme_version ); + // Register UCF Header wp_enqueue_script( 'ucf-header', '//universityheader.ucf.edu/bar/js/university-header.js?use-1200-breakpoint=1', null, null, true ); + + // Register main theme scripts wp_enqueue_script( 'tether', 'https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js', null, null, true ); wp_enqueue_script( 'script', UCFWP_THEME_JS_URL . '/script.min.js', array( 'jquery', 'tether' ), $theme_version, true ); @@ -98,13 +101,13 @@ function ucfwp_add_meta_tags() { case 'none': break; case '5': - $fa_fonts[] = THEME_FONT_URL . '/font-awesome-5/fa-regular-400.woff2'; - $fa_fonts[] = THEME_FONT_URL . '/font-awesome-5/fa-solid-900.woff2'; - $fa_fonts[] = THEME_FONT_URL . '/font-awesome-5/fa-brands-400.woff2'; + $fa_fonts[] = UCFWP_THEME_FONT_URL . '/font-awesome-5/fa-regular-400.woff2'; + $fa_fonts[] = UCFWP_THEME_FONT_URL . '/font-awesome-5/fa-solid-900.woff2'; + $fa_fonts[] = UCFWP_THEME_FONT_URL . '/font-awesome-5/fa-brands-400.woff2'; break; case '4': default: - $fa_fonts[] = THEME_FONT_URL . '/font-awesome-4/fontawesome-webfont.woff2'; + $fa_fonts[] = UCFWP_THEME_FONT_URL . '/font-awesome-4/fontawesome-webfont.woff2'; break; } foreach ( $fa_fonts as $fa_font ) :