template_version, true ); /* Pass data to various Theme Scripts. We use jquery so that data is available to all (jquery dependant) theme loaded scripts */ $scriptdata = hoot_data( 'scriptdata' ); if ( !empty( $scriptdata ) && is_array( $scriptdata ) ) wp_localize_script( 'jquery', 'hootData', $scriptdata ); } endif; /** * Load stylesheets for the front end. * * @since 1.0 * @access public * @return void */ if ( !function_exists( 'hootdu_enqueue_styles' ) ) : function hootdu_enqueue_styles() { /* Load Google Fonts if 'google-fonts' is active. */ $style_uri = hootdu_google_fonts_enqueue_url(); if ( $style_uri ) wp_enqueue_style( 'hootdu-googlefont', $style_uri, array(), null ); /* Load font awesome if 'font-awesome' is active. */ if ( apply_filters( 'hoot_force_theme_fa', true, 'frontend' ) ) wp_deregister_style( 'font-awesome' ); // Bug Fix for plugins using older font-awesome library $style_uri = hoot_locate_style( hoot_data()->liburi . 'fonticons/font-awesome' ); wp_enqueue_style( 'font-awesome', $style_uri, false, '5.0.10' ); } endif; /** * Dequeue font awesome from frontend if a similar handle exists (registered by another plugin) * but it is already enqueued using the theme * * @since 1.0 * @access public * @return void */ if ( !function_exists( 'hootdu_dequeue_fontawesome' ) ) : function hootdu_dequeue_fontawesome() { if ( wp_style_is( 'fontawesome' ) ) wp_dequeue_style( 'fontawesome' ); } endif;