Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/themes/dt-the7/inc/mods/compatibility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/www/wp-content/themes/dt-the7/inc/mods/compatibility/class-compatibility-ubermenu.php
<?php
/**
 * Ubermenu compatibility class.
 *
 * @package the7
 * @since 1.0.0
 */

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }

if ( ! class_exists( 'Presscore_Modules_Compatibility_UberMenu', false ) ) :

	class Presscore_Modules_Compatibility_UberMenu {

		public static function execute() {
			if ( ! class_exists( 'UberMenu', false ) ) {
				return;
			}

			add_filter( 'body_class', array( __CLASS__, 'add_body_class_filter' ) );
		}

		public static function add_body_class_filter( $classes = array() ) {
			if ( has_nav_menu( 'primary' ) ) {
				$classes[] = 'dt-style-um';
			}

			return $classes;
		}
	}

	Presscore_Modules_Compatibility_UberMenu::execute();

endif;

Spamworldpro Mini