HEX
Server: LiteSpeed
System: Linux standart103.isimtescil.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: byildiz (11197)
PHP: 8.2.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/byildiz.com.tr/httpdocs/wp-content/themes/lumex/header.php
<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package lumex
 */

?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<!-- Meta Data -->
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="https://gmpg.org/xfn/11">

	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
  <?php wp_body_open(); ?>

  <?php
    $accent_color1 = get_field( 'accent_color1', 'options' );
    $accent_color2 = get_field( 'accent_color2', 'options' );
    $bg_color2 = get_field( 'bg_color2', 'options' );
    $smooth_scroll_enable = get_field( 'smooth_scroll_enable', 'options' );
  ?>

  <!-- wrapper -->
  <div class="mil-page-wrapper" data-smooth-scroll="<?php echo esc_attr( $smooth_scroll_enable ); ?>" data-dark-color="<?php echo esc_attr( $accent_color2 ); ?>" data-light-color="<?php echo esc_attr( $bg_color2 ); ?>" data-accent-color="<?php echo esc_attr( $accent_color1 ); ?>">

    <?php 
        $preloader = get_field( 'preloader', 'options' );
        $preloader_home = get_field( 'preloader_home', 'options' );
        if ( $preloader_home && is_front_page() ) {
            $preloader = false;
        }
        $preloader_loading_text = get_field( 'preloader_loading_text', 'options' );
        if ( empty( $preloader_loading_text ) ) : $preloader_loading_text = esc_html__( 'Loading ...', 'lumex' ); endif;
        $preloader_logo = get_field( 'preloader_logo', 'options' );
        
        if ( ! $preloader ) :
    ?>
    <!-- preloader -->
    <div class="mil-preloader-frame">
        <div></div>
        <div class="mil-logo">
            <?php if ( $preloader_logo ) : $image = wp_get_attachment_image_url( $preloader_logo, 'lumex_950xAuto' ); $image_alt = get_post_meta( $preloader_logo, '_wp_attachment_image_alt', true); if ( empty( $image_alt ) ) : $image_alt = __( 'logo', 'lumex' ); endif; ?>
            <img src="<?php echo esc_url( $image ); ?>" alt="<?php echo esc_attr( $image_alt ); ?>" />
            <?php endif; ?>
        </div>
        <div class="mil-preloader mil-tac">
            <div>
                <?php if ( ! empty( $preloader_loading_text ) ) : ?>
                <p class="mil-c-m-3 mil-mb-1 mil-t-16"><?php echo wp_kses_post( $preloader_loading_text ); ?></p>
                <?php endif; ?>
                <div class="mil-mb-2"><span class="mil-counter mil-counter-2 mil-c-m-4">00</span><span class="mil-c-a-1 mil-sub-text-1">%</span></div>
                <div class="mil-mil-preloader-line-frame">
                    <div class="mil-mil-preloader-line"></div>
                </div>
            </div>
        </div>
    </div>
    <!-- preloader end -->
    <?php endif; ?>

    <?php
        if ( get_field( 'header_template' ) && get_field( 'custom_header' ) ) { 
            $header_template = get_field( 'header_template' );
        } else {
            $header_template = get_field( 'header_template', 'options' );
        }

        $light_ui = get_field( 'light_ui', $header_template );
        $static_height = get_field( 'static_height' );
    ?>

    <!-- top panel -->
    <div class="mil-top-panel<?php if ( $light_ui ) : ?> mil-invert<?php endif; ?><?php if ( $static_height ) : ?> mil-static<?php endif; ?>">
        <?php
        if ( $header_template && !\Elementor\Plugin::$instance->preview->is_preview_mode() ) :
            $args = array( 'post_type' => 'hf_templates', 'p' => $header_template );
            $loop = new WP_Query( $args );
            while ( $loop->have_posts() ) : $loop->the_post();
                the_content();
            endwhile; wp_reset_postdata();
        else :
        ?>
            <div class="mil-container mil-flex-row mil-aic mil-jcb">
                <a href="<?php echo esc_url( home_url() ); ?>" class="mil-logo mil-logo-default">
                    <span><?php echo esc_html( bloginfo('name') ); ?></span>
                </a>
                <div class="mil-mobile-menu">
                    <?php if ( has_nav_menu( 'primary' ) ) :
                        wp_nav_menu( array(
                            'theme_location' => 'primary',
                            'container' => 'nav',
                            'container_class' => '',
                            'menu_class' => 'mil-main-menu',
                            'walker' => new Lumex_Topmenu_Walker(),
                        ) );
                    endif; ?>
                </div>
                <div class="mil-open-mobile-menu">
                    <div class="mil-menu-btn"><span></span></div>
                </div>
            </div>
        <?php endif; ?>
    </div>
    <!-- top panel end -->

    <!-- info window -->
    <div class="mil-info-window-frame mil-invert">
        <?php get_template_part( 'template-parts/info-modal' ); ?>
    </div>
    <!-- info window end -->
    
    <?php 
        $fixed_btns_order_show = get_field( 'fixed_btns_order_show', 'options' );
        $fixed_btns_backtotop_show = get_field( 'fixed_btns_backtotop_show', 'options' );
    ?>
    <?php if ( $fixed_btns_order_show || $fixed_btns_backtotop_show ) : ?>
    <!-- order call -->
    <div class="mil-right-buttons-frame">
        <div class="mil-right-buttons">
            <?php if ( $fixed_btns_backtotop_show ) : ?>
            <a href="#top" class="mil-side-btn mil-back-to-top<?php if ( ! $fixed_btns_order_show ) : ?> mil-side-btn-rounded<?php endif; ?>">
                <i class="fa fa-arrow-up"></i>
            </a>
            <?php endif; ?>
            <?php if ( $fixed_btns_order_show ) : ?>
            <button class="mil-side-btn mil-open-window<?php if ( ! $fixed_btns_backtotop_show ) : ?> mil-side-btn-rounded<?php endif; ?>"></button>
            <?php endif; ?>
        </div>
    </div>
    <?php if ( $fixed_btns_order_show ) : ?>
    <div class="mil-order-call-frame">
        <?php get_template_part( 'template-parts/order-call-modal' ); ?>
    </div>
    <?php endif; ?>
    <!-- order call end -->
    <?php endif; ?>

    <!-- content -->
    <div id="smooth-content" class="mil-content">