HEX
Server: LiteSpeed
System: Linux s324 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: leoir (1352)
PHP: 8.3.31
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/leoir/domains/leo-co.ir/public_html/wp-content/themes/oceanwp/partials/mobile/mobile-nav.php
<?php
/**
 * Mobile nav template part.
 *
 * @package OceanWP WordPress theme
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Menu Location.
$menu_location = apply_filters( 'ocean_mobile_menu_location', 'mobile_menu' );

$mobile_style = oceanwp_mobile_menu_style();

if (
	'sidebar' === $mobile_style
	&& ! has_nav_menu( $menu_location )
	&& has_nav_menu( 'main_menu' )
) {
	$menu_location = apply_filters( 'ocean_main_menu_location', 'main_menu' );
}

// Menu arguments.
$menu_args = array(
	'theme_location' => $menu_location,
	'container'      => false,
	'fallback_cb'    => false,
	'custom_output'  => 'mobile_menu',
);

// If sidebar mobile menu style.
if ( 'sidebar' === $mobile_style ) {
	$menu_args['menu_class'] = 'mobile-menu dropdown-menu';
}

if ( 'dropdown' === $mobile_style ) {
	$menu_args = oceanwp_apply_nav_walker_context( $menu_args, 'mobile-dropdown' );
} elseif ( 'fullscreen' === $mobile_style ) {
	$menu_args = oceanwp_apply_nav_walker_context( $menu_args, 'mobile-fullscreen' );
}

// Display menu if defined.
if ( has_nav_menu( $menu_location ) ) : ?>

	<div id="mobile-nav" class="navigation clr">

		<?php

		// Display menu.
		wp_nav_menu( $menu_args );

		?>

	</div>

<?php endif; ?>