%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/wp-content/themes/evenex/core/enqueues/frontend/
Upload File :
Create Path :
Current File : /var/www/html/higroup/wp-content/themes/evenex/core/enqueues/frontend/static.php

<?php if (!defined('ABSPATH')) die('Direct access forbidden.');
/**
 * enqueue all theme scripts and styles
 */


// stylesheets
// ----------------------------------------------------------------------------------------
if ( !is_admin() ) {
	// wp_enqueue_style() $handle, $src, $deps, $version
	wp_enqueue_style( 'fonts', evenex_google_fonts_url(['Poppins:300,400,500,600,700&display=swap', 'Roboto:400,500,700&display=swap', 'Rubik:400,500,700&display=swap', 'Archivo:400,500,600,700']), null,  EVENEX_VERSION );
	// 3rd party css
	wp_enqueue_style( 'bootstrap', EVENEX_CSS . '/bootstrap.min.css', null, EVENEX_VERSION );
	wp_enqueue_style( 'fontawesome-min', EVENEX_CSS . '/fontawesome.min.css', null, EVENEX_VERSION );
	wp_enqueue_style( 'select2', EVENEX_CSS . '/select2.min.css', null, EVENEX_VERSION );
	wp_enqueue_style( 'evenex-image-choose', EVENEX_CSS . '/image-choose-control.css', null, EVENEX_VERSION );
	wp_enqueue_style( 'evenex-icon', EVENEX_CSS . '/iconfont.css', null, EVENEX_VERSION );
	// theme css
	// Enable grid line parallax animation
	if ( defined( 'DEVM' ) ) {
		$on_parallax  =  evenex_option('xs_grid_line_parallax_animation');
		if($on_parallax){
			wp_enqueue_style( 'xs-grid-line-animation-css', EVENEX_CSS . '/grid-line-parallax.css', null, EVENEX_VERSION);
		}
	}
	wp_enqueue_style( 'evenex-blog', EVENEX_CSS . '/blog.css', null, EVENEX_VERSION );
	wp_enqueue_style( 'evenex-master', EVENEX_CSS . '/master.css', null, time() );
	if ( defined( 'DEVM' ) ) {
		$enable_dark_mode  =  evenex_option('enable_dark_and_light_mode');
		if ($enable_dark_mode === "yes") {
			wp_enqueue_style( 'evenex-dark', EVENEX_CSS . '/dark-theme.css', null, time() );
		}
	}
}

// javascripts
// ----------------------------------------------------------------------------------------
if ( !is_admin() ) {

	// 3rd party scripts
	wp_enqueue_script( 'popper', EVENEX_JS . '/popper.min.js', array( 'jquery' ), EVENEX_VERSION, true );
	wp_enqueue_script( 'bootstrap', EVENEX_JS . '/bootstrap.min.js', array( 'jquery' ), EVENEX_VERSION, true );
	wp_enqueue_script( 'select2', EVENEX_JS . '/select2.min.js', array( 'jquery' ), EVENEX_VERSION, true );

	// Enable grid line parallax animation
	$on_parallax  =  evenex_option('xs_grid_line_parallax_animation');

	if($on_parallax){
		// wp_enqueue_script( 'anime', EVENEX_JS . '/anime.min.js', array( 'jquery' ), EVENEX_VERSION, true );
		// wp_enqueue_script( 'xs-magician', EVENEX_JS . '/magician.js', array( 'jquery' ), EVENEX_VERSION, true );
		wp_enqueue_script( 'xs-grid-line-animation', EVENEX_JS . '/xs-grid-line-animation.js', array( 'jquery' ), EVENEX_VERSION, true );
	}
	// theme scripts
	if (is_search(  )) {
		if ( defined( 'DEVM' ) && class_exists('\Etn\Bootstrap') ) {
			$eventin_search_page_with_ajax  = evenex_option('eventin_search_page_with_ajax');
			if ($eventin_search_page_with_ajax === "yes") {
				wp_enqueue_script( 'evenex-ajax-script', EVENEX_JS . '/ajax-script.js', array( 'jquery' ), EVENEX_VERSION, true );
				/*Ajax Call*/
				$params = array(
					'ajaxurl' => admin_url('admin-ajax.php'),
					'xs_event_nonce' => wp_create_nonce('xs_nonce'),
				);
				wp_localize_script('evenex-ajax-script', 'xs_ajax_obj', $params);
			}
		}
	}
	wp_enqueue_script( 'evenex-script', EVENEX_JS . '/script.js', array( 'jquery' ), EVENEX_VERSION, true );
	// Load WordPress Comment js
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
	wp_enqueue_script( 'comment-reply' );
	}
}

Zerion Mini Shell 1.0