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/walla3t.corals.io/wp-content/themes/apper/partials/header/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/header/nav.php
<?php
/**
 * Header menu template part.
 *
 * @package Apper WordPress theme
 */

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

// Return if disabled
if ( ! acmthemes_display_navigation() ) {
	return;
}

//get framework settings
$settings = acmthemes_settings();

// Header style
$header_style = acmthemes_header_style();

// Get classes for the header menu
$wrap_classes  = acmthemes_header_menu_classes( 'wrapper' );
$inner_classes = acmthemes_header_menu_classes( 'inner' );

// Menu Location
$menu_location = apply_filters( 'main_menu_location', 'main_menu' );


	// Display menu if defined
	if ( has_nav_menu( $menu_location ) ) :

		// Get menu classes
		$menu_classes = array( 'main-menu' );

		// If full screen header style
		if ( 'full_screen' == $header_style ) {
			$menu_classes[] = 'fs-dropdown-menu';
		} else {
			$menu_classes[] = 'dropdown-menu';
		}

		// If is not full screen or vertical header style
		if ( 'full_screen' != $header_style
			&& 'vertical' != $header_style ) {
			$menu_classes[] = 'sf-menu';
		}

		// Turn menu classes into space seperated string
		$menu_classes = implode( ' ', $menu_classes );

		// Menu arguments
		$menu_args = array(
			'theme_location' => $menu_location,
			'menu_class'     => $menu_classes,
			'container'      => false,
			'fallback_cb'    => false,
			'link_before'    => '<span class="text-wrap">',
			'link_after'     => '</span>',
			'walker'         => new ACMTHEMES_Custom_Nav_Walker(),
		);

		// Check if custom menu
		if ( $menu = acmthemes_header_custom_menu() ) {
			$menu_args['menu']  = $menu;
		}

		do_action( 'before_nav' );

		// If is not full screen header style
		if ( 'full_screen' != $header_style ) { ?>
			<div id="site-navigation-wrap" class="<?php echo esc_attr( $wrap_classes ); ?>">
					<?php } ?>

						<?php do_action( 'before_nav_inner' ); ?>

						<?php
						// Add container if is medium header style
						if ( 'medium' == $header_style ) { ?>
							<div class="container clr">
						<?php } ?>

						<nav id="site-navigation" class="<?php echo esc_attr( $inner_classes ); ?>"<?php acmthemes_schema_markup( 'site_navigation' ); ?>>

							<?php

							wp_nav_menu( $menu_args );

							get_template_part( 'partials/header/search-replace' );

			 ?>
						</nav><!-- #site-navigation -->

						<?php
						// Add container if is medium header style
						if ( 'medium' == $header_style ) { ?>
							</div>
						<?php } ?>

						<?php do_action( 'after_nav_inner' );

			// If is not full screen header style
			if ( 'full_screen' != $header_style ) { ?>
			</div><!-- #site-navigation-wrap -->
		<?php } ?>

		<div class="woo-cart-item header-right">
			<?php
			if( ! isset( $settings['shop_type'] ) || 'default' == $settings['shop_type'] ) {
				//show menu cart count
				if( function_exists( 'acmthemes_wcmenucart_menu_item' ) ) {
					acmthemes_wcmenucart_menu_item();
				}
			}

			?>
		</div>
		<?php
		if( isset( $settings['enable_menu_cta'] ) && 1 == $settings['enable_menu_cta'] ) {
			$btn_text = ( isset( $settings['menu_cta_text'] ) && ! empty( $settings['menu_cta_text'] ) ) ? $settings['menu_cta_text'] : 'Get started';
			$btn_link = ( isset( $settings['menu_cta_url'] ) && ! empty( $settings['menu_cta_url'] ) ) ? $settings['menu_cta_url'] : '#';
			?>
			<div class="nav-menu-button">
				<a class="nav-cta-btn dark-btn" href="<?php echo esc_url( $btn_link ); ?>"><?php echo esc_html( $btn_text ); ?></a>
			</div>
		<?php
		}

		// shown only when enabled
		if( isset( $settings['enable_search_on_menu'] ) && $settings['enable_search_on_menu'] == 1 ) {
			?>
			<div class="nav-menu-search">
				<a href="#" class="site-search-toggle acm-search-replace">
					<span class="icon-magnifier"></span>
				</a>
			</div>
			<?php
		}
		?>

		<?php do_action( 'after_nav' ); ?>

	<?php endif;

Spamworldpro Mini