PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/mytube.pm/wp-content/themes/oceanwp/partials/header/style/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/mytube.pm/wp-content/themes/oceanwp/partials/header/style/medium-header.php

<?php
/**
 * Medium Header Style
 *
 * @package OceanWP WordPress theme
 */

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

// Get elements.
$elements = oceanwp_medium_header_elements();

// Define counter.
$count = '';

// Bottom header class.
$classes = array( 'bottom-header-wrap', 'clr' );

// Add the fixed class if only sticky menu.
if ( true === get_theme_mod( 'ocean_medium_header_stick_menu', false ) ) {
	$classes[] = 'fixed-scroll';
}

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

?>

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

<div id="site-header-inner" class="clr">

	<?php
	// If elements.
	if ( ! empty( $elements ) ) {
		?>

		<div class="top-header-wrap clr">
			<div class="container clr">
				<div class="top-header-inner clr">

					<?php
					// Loop through elements.
					foreach ( $elements as $element ) :

						// Counter.
						$count++;

						// Classes.
						$e_classes = array( 'top-col', 'clr' );

						// Count.
						$e_classes[] = 'col-' . $count;

						// If logo.
						if ( 'logo' === $element ) {
							$e_classes[] = 'logo-col';
						}

						// Turn classes into space seperated string.
						$e_classes = implode( ' ', $e_classes );
						?>

						<div class="<?php echo esc_attr( $e_classes ); ?>">

							<?php
							// Search form.
							if ( 'searchfrom' === $element ) {
								get_template_part( 'partials/header/style/medium-header-search' );

							} elseif ( 'logo' === $element ) {
								// Logo.
								get_template_part( 'partials/header/logo' );

							} elseif ( 'social' === $element ) {
								// Social buttons.
								if ( true === get_theme_mod( 'ocean_menu_social', false ) ) {
									get_template_part( 'partials/header/social' );
								}
							}
							?>

						</div>

						<?php
					endforeach;
					?>

				</div>
			</div>
		</div>

		<?php
	}
	?>

	<div class="<?php echo esc_attr( $classes ); ?>">

		<?php get_template_part( 'partials/header/nav' ); ?>

		<?php get_template_part( 'partials/mobile/mobile-icon' ); ?>

		<?php get_template_part( 'partials/mobile/mobile-dropdown' ); ?>

	</div>

</div><!-- #site-header-inner -->

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