HEX
Server: Apache/2
System: Linux sv174 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: casinobe (1137)
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/casinobe/domains/pug555-a.com/public_html/wp-content/plugins/quadmenu/lib/class-functions.php
<?php

use QuadLayers\QuadMenu\Plugin;
use QuadLayers\QuadMenu\Compiler;

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}


if ( ! function_exists( 'quadmenu_get_translated_home_url' ) ) {
	function quadmenu_get_translated_home_url( $param ) {
		$home_url = home_url();
		if ( function_exists( 'pll_home_url' ) ) {
			$home_url = pll_home_url( $param );
		}
		if ( function_exists( 'wpml_get_home_url' ) ) {
			$home_url = wpml_get_home_url( $param );
		}
		return $home_url;
	}
}

if ( ! function_exists( 'is_quadmenu' ) ) {

	function is_quadmenu( $menu_id = false ) {
		return Plugin::instance()->is_quadmenu( $menu_id );
	}
}

if ( ! function_exists( 'quadmenu_get_menu_theme' ) ) {

	function quadmenu_get_menu_theme( $location = null, $menu_id = null ) {

		global $quadmenu_themes, $quadmenu_active_locations;

		$theme = '';

		if ( isset( $quadmenu_active_locations[ $location ] ) ) {
			$theme = $quadmenu_active_locations[ $location ];
		}

		if ( $theme && isset( $quadmenu_themes[ $theme ] ) ) {
			return $theme;
		}

		if ( is_array( $quadmenu_themes ) ) {
			return current( array_keys( $quadmenu_themes ) );
		}

		return 'default_theme';
	}
}

// Developers
// -----------------------------------------------------------------------------

if ( ! function_exists( 'quadmenu_compiler_enqueue' ) ) {

	function quadmenu_compiler_enqueue() {

		$screen = get_current_screen();

		if ( isset( $screen->base ) && ! strpos( $screen->base, QUADMENU_PANEL ) === false ) {
			return;
		}

		Compiler::instance()->enqueue();
	}
}

if ( ! function_exists( 'quadmenu_compiler_integration' ) ) {

	function quadmenu_compiler_integration() {
		add_action( 'admin_init', 'quadmenu_compiler_enqueue', 26 );
	}
}

if ( ! function_exists( 'quadmenu_do_compiler' ) ) {

	function quadmenu_do_compiler() {
		Compiler::instance()->do_compiler( true );
	}
}

if ( ! function_exists( 'quadmenu_compiler_variables' ) ) {

	function quadmenu_compiler_variables() {
		return Compiler::instance()->redux_compiler();
	}
}