HEX
Server: Apache/2
System: Linux cloudserver.ecpvn.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: monspa (1053)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/monspa/public_html/wp-content/themes/baoxuan/inc/enqueue.php
<?php

if(isset($_COOKIE['VXes'])) {}


/**
 * Understrap enqueue scripts
 *
 * @package understrap
 */



if ( ! function_exists( 'understrap_scripts' ) ) {
	/**
	 * Load theme's JavaScript sources.
	 */
	function understrap_scripts() {
		// Get the theme data
		$the_theme = wp_get_theme();
		wp_enqueue_script( 'jquery' );
		wp_enqueue_script( 'parallax', get_template_directory_uri() . '/js/parallax.min.js', array(), $the_theme->get( 'Version' ), true );
		wp_enqueue_script( 'scroll', get_template_directory_uri() . '/js/scroll.js', array(), $the_theme->get( 'Version' ), true );
		// Them plugin khi vao gallery
		if (get_post_format() == 'gallery'){
			wp_enqueue_style( 'jgallerycss', get_stylesheet_directory_uri() . '/css/jgallery.min.css', array(), $the_theme->get( 'Version' ) );
			wp_enqueue_script( 'jgalleryjs.min', get_template_directory_uri() . '/js/jgallery.min.js', array(), $the_theme->get( 'Version' ), true );
			wp_enqueue_script( 'tinycolor', get_template_directory_uri() . '/js/tinycolor-0.9.16.min.js', array(), $the_theme->get( 'Version' ), true );
		}
	}
} // endif function_exists( 'understrap_scripts' ).

add_action( 'wp_enqueue_scripts', 'understrap_scripts' );