403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/yme/wp-content/themes/oceanwp/partials/header/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/yme/wp-content/themes/oceanwp/partials/header/layout.php
<?php
/**
 * Main Header Layout
 *
 * @package OceanWP WordPress theme
 */

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

// Header style.
$header_style = oceanwp_header_style();

// Header height, used for local scrolling.
$header_height = get_theme_mod( 'ocean_header_height', 74 );

if ( class_exists( 'Ocean_Sticky_Header' ) ) {

	if ( 'shrink' === get_theme_mod( 'osh_sticky_header_style', 'shrink' ) ) {
		$header_height = get_theme_mod( 'osh_shrink_header_height', '54' );
	}
}

// If vertical header style.
if ( 'vertical' === $header_style ) {
	$header_height = 0;
}


// Add container class if the header is not full width.
$class = '';
if ( true !== get_theme_mod( 'ocean_header_full_width', false ) ) {
	$class = 'container';
}

do_action( 'ocean_before_header' );

// If transparent header style.
if ( 'transparent' === $header_style
	|| ( 'full_screen' === $header_style && true === get_theme_mod( 'ocean_full_screen_header_transparent', false ) )
		|| ( 'center' === $header_style && true === get_theme_mod( 'ocean_center_header_transparent', false ) )
		|| ( 'medium' === $header_style && true === get_theme_mod( 'ocean_medium_header_transparent', false ) ) ) { ?>
	<div id="transparent-header-wrap" class="clr">
	<?php
}
?>

<header id="site-header" class="<?php echo esc_attr( oceanwp_header_classes() ); ?>" data-height="<?php echo esc_attr( $header_height ); ?>"<?php oceanwp_schema_markup( 'header' ); ?> role="banner">

	<?php
	// Elementor `header` location.
	if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) {
		?>

		<?php
		// If header video.
		if ( function_exists( 'has_header_video' ) && has_header_video() ) {
			?>
			<div class="custom-header-media">
				<?php the_custom_header_markup(); ?>
			</div>
			<?php
		}

		if ( 'top' === $header_style ) {
			// If top header style.
			get_template_part( 'partials/header/style/top-header' );

		} elseif ( 'full_screen' === $header_style ) {
			// If full screen header style.
			get_template_part( 'partials/header/style/full-screen-header' );

		} elseif ( 'center' === $header_style ) {
			// If center header style.
			get_template_part( 'partials/header/style/center-header' );

		} elseif ( 'medium' === $header_style ) {
			// If medium header style.
			get_template_part( 'partials/header/style/medium-header' );

		} elseif ( 'vertical' === $header_style ) {
			// If vertical header style.
			get_template_part( 'partials/header/style/vertical-header' );

		} elseif ( 'custom' === $header_style ) {
			// If custom header style.
			get_template_part( 'partials/header/style/custom-header' );

		} else {
			// Default header style.
			?>
			<?php do_action( 'ocean_before_header_inner' ); ?>

			<div id="site-header-inner" class="clr <?php echo esc_attr( $class ); ?>">

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

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

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

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

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

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

			<?php
		}
		?>

		<?php
		// If header media.
		if ( has_header_image() ) {
			?>
			<div class="overlay-header-media"></div>
			<?php
		}
		?>

		<?php
	}
	?>

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

<?php
// If transparent header style.
if ( 'transparent' === $header_style
	|| ( 'full_screen' === $header_style && true === get_theme_mod( 'ocean_full_screen_header_transparent', false ) )
		|| ( 'center' === $header_style && true === get_theme_mod( 'ocean_center_header_transparent', false ) )
		|| ( 'medium' === $header_style && true === get_theme_mod( 'ocean_medium_header_transparent', false ) ) ) {
	?>
	</div>
	<?php
}

do_action( 'ocean_after_header' ); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit