File: /home/awaldron/_domains/phlibrary.alanwaldron.com/wp-content/themes/phlibrary/inc/enqueue.php
<?php
/**
* Understrap enqueue scripts
*
* @package understrap
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
if ( ! function_exists( 'understrap_scripts' ) ) {
/**
* Load theme's JavaScript and CSS sources.
*/
function understrap_scripts() {
// Get the theme data.
$the_theme = wp_get_theme();
$theme_version = $the_theme->get( 'Version' );
//$css_version = $theme_version . '.' . filemtime( get_template_directory() . '/css/theme.css' );
wp_enqueue_style( 'understrap-styles', '/wp-content/themes/phlibrary/css/theme.css', array(), 1 );
wp_enqueue_style( 'font-awesome', '/wp-content/themes/phlibrary/css/fontawesome/all.min.css', array(), 1 );
wp_enqueue_style( 'gijgo', '/wp-content/themes/phlibrary/css/assets/gijgo.min.css', array(), 1 );
$js_version = $theme_version . '.' . filemtime( get_template_directory() . '/js/theme.min.js' );
wp_enqueue_script( 'jquery314', get_template_directory_uri() . '/js/jquery.3.4.1.js', array(), 1, false );
wp_enqueue_script( 'gijgo', get_template_directory_uri() . '/js/gijgo.min.js', array(), 1, false );
wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $js_version, true );
wp_enqueue_script( 'phlibrary', get_template_directory_uri() . '/js/phlibrary.js', array(), $js_version, true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
} // endif function_exists( 'understrap_scripts' ).
add_action( 'wp_enqueue_scripts', 'understrap_scripts' );