Skip to content

Commit

Permalink
Fixed missing font url const's
Browse files Browse the repository at this point in the history
  • Loading branch information
cjg89 committed Feb 16, 2021
1 parent b9972a5 commit c9ee509
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions includes/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
11 changes: 7 additions & 4 deletions includes/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down Expand Up @@ -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 ) :
Expand Down

0 comments on commit c9ee509

Please sign in to comment.