HEX
Server: Apache
System: Linux main79 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64
User: serwer143450 (7544)
PHP: 7.4.33
Disabled: opcache_reset, opcache_invalidate, opcache_compile_file, opcache_get_configuration, opcache_get_status
Upload Files
File: /home/platne/serwer143450/public_html/exzo.hillconnect.pl/wp-content/themes/exzo/header.php
<!DOCTYPE HTML>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>

<!-- LOADER -->
<div id="loader-wrapper"></div>
<?php
$exzo_settings = get_exzo_settings();

$class_col_5 = ' ';
$class_col_7 = ' ';

if ( isset( $exzo_settings['exzo_rtl'] ) && $exzo_settings['exzo_rtl'] == true ) {
	$class_col_5 = 'col-md-5 hidden-xs hidden-sm';
	$class_col_7 = 'col-md-7 col-md-text-left';
} else {
	$class_col_7 = 'col-md-6 col-md-text-right';
	$class_col_5 = 'col-md-6 hidden-xs hidden-sm';
}


?>
<div id="content-block">
    <!-- HEADER -->
    <header class="main_header">
        <div class="header-top">
            <div class="content-margins">
                <div class="row">
                    <div class="<?php echo esc_attr( $class_col_5 ); ?>">
						<?php
						$phone = get_theme_mod( 'Header_phone' );
						$phone2 = get_theme_mod( 'Header_phone' );
						$str = str_replace( " ", "", $phone2 );
						if ( isset( $phone{1} ) ) {
							?>
                            <div class="entry"><b> <?php echo esc_html__( 'contact us:', 'exzo' ); ?></b> <a
                                        href="tel:+<?php echo esc_attr( $str ); ?>"><?php echo esc_html( '+' . $phone ); ?></a>
                            </div>
							<?php
						}

						$email = get_theme_mod( 'Header_email' );
						if ( isset( $email{1} ) ) {
							?>
                            <div class="entry"><b><?php echo esc_html__( 'email:', 'exzo' ); ?></b> <a
                                        href="mailto:<?php echo antispambot( $email ); ?>"><?php echo antispambot( $email ); ?></a>
                            </div>
							<?php
						}
						?>


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

						<?php if ( !is_user_logged_in() ): ?>
                            <div class="entry">
                                <a class="open-popup"
                                   data-rel="1"><b><?php echo esc_html__( 'login', 'exzo' ); ?></b></a>&nbsp; <?php echo esc_html__( 'or', 'exzo' ); ?>
                                &nbsp;<a
                                        class="open-popup"
                                        data-rel="2"><b><?php echo esc_html__( 'register', 'exzo' ); ?></b></a></div>
						<?php else: ?>
                            <div class="entry">
								<?php
								$current_user = wp_get_current_user();

								echo esc_html__( 'Welcome, ', 'exzo' ) . esc_html( $current_user->data->display_name ) . ' ';
								wp_loginout( get_home_url( '/' ) );
								?>
                            </div>

							<?php

						endif; ?>
						<?php if ( function_exists( 'qtranxf_getLanguage' ) || defined( 'ICL_LANGUAGE_CODE' ) ) { ?>
                            <div class="entry language">
                                <div class="title"><b><?php
										if ( function_exists( 'qtranxf_getLanguage' ) ) {
											echo esc_html( qtranxf_getLanguage() );
										}
										if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
											echo esc_html( ICL_LANGUAGE_CODE );
										}
										?>

                                    </b></div>
                                <div class="language-toggle header-toggle-animation">
									<?php
									if ( function_exists( 'qtranxf_getLanguage' ) ) {
										foreach ( qtranxf_getSortedLanguages() as $language ) {
											if ( is_404() ) {
												$url = home_url();
											} else {
												$url = '';
											}
											?>
                                            <a class="language"
                                               href="<?php echo esc_url( qtranxf_convertURL( $url, $language, false, true ) . '"' ); ?>"><?php echo esc_html( $language ); ?></a>
											<?php
										}
									}

									// WPML get languages
									if ( function_exists( 'icl_get_languages' ) ) {
										$languages = icl_get_languages( 'skip_missing=1' );

										foreach ( $languages as $l ) {
											?>
                                            <a class="language"
                                               href="<?php echo esc_url( $l['url'] ); ?>"><?php echo esc_html( $l['code'] ); ?></a>
											<?php
										}

									}

									?>

                                </div>
                            </div>
							<?php
						}
						if ( isset( $exzo_settings['exzo_wishlist_page']{0} ) ) {
							?>
                            <div class="entry hidden-xs hidden-sm">
                                <a href="<?php echo esc_url( get_the_permalink( $exzo_settings['exzo_wishlist_page'] ) ); ?>"><i
                                            class="fa fa-heart-o" aria-hidden="true"></i></a>
                            </div>
						<?php } ?>
						<?php if ( function_exists( 'wc_coupons_enabled' ) ): ?>
                            <div class="entry hidden-xs hidden-sm cart">
								<?php get_template_part( 'partials/header', 'bag' ) ?>
                            </div>
						<?php endif; ?>
                        <div class="hamburger-icon">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="header-bottom">
            <div class="content-margins">
                <div class="row">
                    <div class="col-xs-5 col-sm-3">
                        <a id="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">

							<?php

							$img = get_theme_mod( 'logo_loader' );
							if ( isset( $img{5} ) ) {
								$logo = $img;
								?>
                                <img alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"
                                     src="<?php echo esc_url( $logo ); ?>">
								<?php
							} else {
								?>

                                <span class="brand-text navbar-brand">
                            <?php echo esc_html( get_option( 'blogname' ) ); ?>
                                </span>

								<?php

							}

							?>


                        </a>
                    </div>
					<?php
					$class = 'text-right';
					if ( isset( $exzo_settings['exzo_rtl'] ) && $exzo_settings['exzo_rtl'] == true ) {
						$class = 'text-left';
					}
					?>
                    <div class="col-xs-7 col-sm-9 <?php echo esc_attr( $class ); ?>">
                        <div class="nav-wrapper">
                            <div class="nav-close-layer"></div>
                            <nav>

								<?php $exzo_defaults = array(
									'theme_location' => 'exzo_topmenu',
									'menu' => '',
									'container' => '',
									'container_class' => '',
									'container_id' => '',
									'menu_class' => '',
									'menu_id' => '',
									'echo' => true,
									'fallback_cb' => '',
									'before' => '',
									'after' => '',
									'link_before' => '',
									'link_after' => '',
									'items_wrap' => '<ul id="%1$s" class=" %2$s">%3$s</ul>',
									'depth' => 0,
									'walker' => new exzo_top_menu_walker(),
								);


								if ( has_nav_menu( 'exzo_topmenu' ) ) {
									wp_nav_menu( $exzo_defaults );
								}
								?>
                                <div class="navigation-title">
									<?php echo esc_html__( 'Navigation', 'exzo' ); ?>
                                    <div class="hamburger-icon active">
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </div>
                                </div>
                            </nav>
                        </div>
                        <div class="header-bottom-icon toggle-search"><i class="fa fa-search" aria-hidden="true"></i>
                        </div>
						<?php
						if ( isset( $exzo_settings['exzo_wishlist_page']{0} ) ) {
							?>
                            <div class="header-bottom-icon visible-rd">
                                <a href="<?php echo esc_url( get_the_permalink( $exzo_settings['exzo_wishlist_page'] ) ); ?>"><i
                                            class="fa fa-heart-o" aria-hidden="true"></i></a>
                            </div>
						<?php } ?>


						<?php if ( function_exists( 'wc_coupons_enabled' ) ):
							$count = count( wp_list_pluck( WC()->cart->get_cart(), 'product_id' ) );

							?>
                            <div class="header-bottom-icon visible-rd header-bottom-cart ">
                                <a href="<?php echo esc_url( wc_get_cart_url() ); ?>">
                                    <i class="fa fa-shopping-bag" aria-hidden="true"></i>
                                </a>
                                <span class="cart-label"><?php echo esc_html( $count ); ?></span>

                            </div>
						<?php endif; ?>
                    </div>
                </div>
                <div class="header-search-wrapper">
                    <div class="header-search-content">
                        <div class="container-fluid">
                            <div class="row">
                                <div class="col-sm-8 col-sm-offset-2 col-lg-6 col-lg-offset-3">

                                    <form action="<?php echo esc_url( home_url( '/' ) ); ?>">
                                        <div class="search-submit">
                                            <i class="fa fa-search" aria-hidden="true"></i>
                                            <input type="submit">
                                        </div>
                                        <input class="simple-input style-1" name="s" type="text"
                                               value="" placeholder="<?php esc_html_e( 'Enter keyword ', 'exzo' ); ?>">
                                    </form>

									<?php
									$exzo_settings = get_exzo_settings();
									if ( isset( $exzo_settings['exzo_rtl'] ) && $exzo_settings['exzo_rtl'] == true ) {
										?>
                                        <div class="empty-space col-xs-b25 col-sm-b50"></div>
										<?php
									}
									?>


                                </div>
                            </div>
                        </div>
                        <div class="button-close"></div>
                    </div>
                </div>
            </div>
        </div>

    </header>