HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/www/adila/wp-content/themes/tombuild/templates/site-header.php
<?php
/**
 * Header
 *
 * @package tombuild
 * @version 3.8.9
 */

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

if ( (tombuild_header_style() == '1') || (get_post_type() == 'elementor_library') ) {
    $cls ='';
    $has_info = false;
    $has_social = false;
    $has_top = false;
    if (tombuild_get_mod('header_info_phone', '') ||
        tombuild_get_mod('header_info_email', '') ||
        tombuild_get_mod('header_info_address', ''))
        $has_info = true;

    if (tombuild_get_mod('header_socials', false))
        $has_social = true;

    if ($has_social || $has_info)
        $has_top = true;

    // Get header style
    $cls = tombuild_get_mod( 'header_class' );
    ?>

    <header id="site-header" class="<?php echo esc_attr( $cls ); ?>">
        <?php if ($has_top) { ?>
            <div class="top-bar">
                <div class="tombuild-container">
                    <div class="top-bar-inner">
                        <div class="topbar-left">
                            <?php get_template_part( 'templates/header-social'); ?>
                        </div> 

                        <div class="topbar-right">
                            <?php get_template_part( 'templates/header-info'); ?>
                        </div>
                    </div>
                </div>
            </div>
        <?php } ?>

        <div class="tombuild-container">
        	<div class="site-header-inner">
                <?php 
                get_template_part( 'templates/header-logo');  
                get_template_part( 'templates/header-menu');       
            	get_template_part( 'templates/header-button');
            	?>
        	</div>
        </div>
    </header><!-- /#site-header -->
<?php } else {

    $float = tombuild_get_elementor_option('header_float');
    if ( (tombuild_header_style() == tombuild_get_mod('header_site_style', 1) ) && tombuild_get_mod('header_float', false) ) $float = 'yes';

    ?>
    <div class="tombuild-header tombuild-container <?php if ($float == 'yes') echo 'header-float'; ?>">
        <?php echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display(tombuild_header_style(), false); ?>
    </div>
    <?php

    $idf = tombuild_get_mod( 'header_fixed', '1' );
    if (!is_null(tombuild_get_elementor_option('header_fixed')) && (tombuild_get_elementor_option('header_fixed') !== '0'))
       $idf = tombuild_get_elementor_option('header_fixed');
    if ($idf !== '1') { ?>
        <div class="tombuild-header-fixed fixed-hide tombuild-container">
            <?php echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display($idf, false); ?>
        </div>
    <?php }
    
} ?>