cURL Error: 0 HEX
HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System: Linux fut001.vhost.ae 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User: akiadvo (1062)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/akiadvo/public_html/wp-content/themes/lawyer-by-osetin/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
  <meta charset="<?php bloginfo( 'charset' ); ?>">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <link rel="profile" href="http://gmpg.org/xfn/11">
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  <?php wp_head(); ?>
  <?php if(osetin_get_field('custom_css_styles', 'option')){ ?>
    <?php echo '<style ="text/css">'.osetin_get_field('custom_css_styles', 'option').'</style>'; ?>
  <?php } ?>
</head>
<?php 
$background_image_size = osetin_get_settings_field('background_image_size');
$background_contain = ($background_image_size == 'small') ? '' : 'background-size: cover;';
if(is_category()){
  $cat_id =  get_query_var('cat');
  $body_bg_image = osetin_get_field('category_page_background_image', "category_{$cat_id}", false, true);
  if(empty($body_bg_image)){
    $body_bg_image = osetin_get_field('background_image_option', 'option', false, true);
  }
}else{
  $body_bg_image = osetin_get_settings_field('background_image', false, false, false, true);
}
if(!empty($body_bg_image) && is_array($body_bg_image)){
  $size = 'osetin-for-background';
  $body_bg_image_url = $body_bg_image['sizes'][ $size ];
  $body_bg_image_width = $body_bg_image['sizes'][ $size . '-width' ];
  $body_bg_image_height = $body_bg_image['sizes'][ $size . '-height' ];
  if($body_bg_image_width) $body_bg_image_width = str_replace('px', '', $body_bg_image_width);
  if($body_bg_image_height) $body_bg_image_height = str_replace('px', '', $body_bg_image_height);
}else{
  $body_bg_image_url = false;
}
$default_logo = get_template_directory_uri().'/assets/img/logo-icon-white.png';
if(osetin_get_field('enable_custom_header_settings') === true){
  $menu_style = osetin_get_field('menu_style', false, 'version1');
  $logo_image_url = osetin_get_field('logo_image');
  $logo_image_width = osetin_get_field('logo_image_width');
}else{
  $menu_style = osetin_get_field('menu_style_option', 'option', 'version1');
  $logo_image_url = osetin_get_field('logo_image_option', 'option', $default_logo);
  $logo_image_width = osetin_get_field('logo_image_width_option', 'option', '50');
}

$top_menu_bg_color =  osetin_get_field('top_menu_background_color', 'option');
$top_menu_bg_color_type =  osetin_get_field('top_menu_background_color_type', 'option', 'dark');
$top_menu_bg_image_url =  osetin_get_field('top_menu_background_image', 'option');

$top_bar_color_type = osetin_get_field('top_bar_background_color_type', 'option', 'light');

$mobile_header_background_color_type = osetin_get_field('mobile_header_background_color_type', 'option', 'dark');
$mobile_header_background_color = osetin_get_field('mobile_header_background_color', 'option');

$fixed_menu_logo_image_url = osetin_get_field('fixed_header_logo', 'option', $logo_image_url);
$fixed_menu_logo_image_width = osetin_get_field('fixed_header_logo_width', 'option', '50');
$mobile_logo_image_url = osetin_get_field('mobile_logo_image', 'option', $logo_image_url);
$mobile_logo_image_width = osetin_get_field('mobile_logo_image_width', 'option', '50');

$logo_text = osetin_get_field('logo_text', 'option', false);
$logo_sub_text = osetin_get_field('logo_sub_text', 'option', false);

if(osetin_get_field('custom_timeout')){
  $custom_timeout = osetin_get_field('custom_timeout');
}else{
  $custom_timeout = 0;
}

$last_item_not_button = osetin_get_field('not_button_last_menu_item', 'option', false);

?>
<body <?php body_class(); ?> data-custom-timeout="<?php echo esc_attr($custom_timeout); ?>" style="<?php echo osetin_get_css_prop('background-color', osetin_get_field('background_color_option', 'option')); ?><?php if($body_bg_image_url) echo osetin_get_css_prop('background-image', $body_bg_image_url, false, 'background-repeat: repeat; background-position: top center; background-attachment: fixed;'.$background_contain); ?>">
  <?php wp_body_open(); ?>
  <div class="loading-screen-w">
    <div class="loading-screen-i">
      <div class="loading-animation-w">
        <div class="loading-animation-i">
          <div class='uil-flickr-css' style='transform:scale(0.16);'><div></div><div></div></div>
        </div>
      </div>
      <div class="loading-label">
        <div class="loading-label-i"><?php _e('.. Loading ..', 'lawyer-by-osetin'); ?></div>
      </div>
    </div>
  </div>
  <div class="all-wrapper with-animations <?php echo ($last_item_not_button) ? '' : ' menu-last-item-button'; ?> top-bar-color-type-<?php echo esc_attr($top_bar_color_type); ?>">
    <div class="all-wrapper-i">

      <?php if($menu_style == 'version1'){ ?>
        <?php if(osetin_top_bar_visible()){ ?>
        <div class="os-container top-bar-links-box-container">
          <div class="top-bar-links-box-w">
            <div class="top-bar-links-box">
              <ul>
                <?php if(osetin_get_field('main_phone', 'option')){ ?>
                  <li><div class="top-bar-link-phone"><i class="os-icon os-icon-phone2"></i> <span><?php echo '<strong>'.__('Call Us: ', 'lawyer-by-osetin').'</strong> '.osetin_get_field('main_phone', 'option'); ?></span></div></li>
                <?php } ?>
                <?php if(osetin_get_field('main_address', 'option')){ ?>
                  <li><div class="top-bar-link-address"><i class="os-icon os-icon-map2"></i> <span><?php echo '<strong>'.__('Our Address: ', 'lawyer-by-osetin').'</strong> '.osetin_get_field('main_address', 'option'); ?></span></div></li>
                <?php } ?>
              </ul>
            </div>
            <?php if( osetin_have_rows('social_links', 'option') ){ ?>
              <?php osetin_social_share_icons('header'); ?>
              <span class="top-bar-social-label"><?php _e('Find us on Social Media:', 'lawyer-by-osetin'); ?></span>
            <?php } ?>
          </div>
        </div>
        <?php } ?>
        <div class="main-header-w main-header-version1">
          <div class="main-header-i">
            <div class="main-header color-scheme-<?php echo esc_attr($top_menu_bg_color_type); ?> " style="<?php echo osetin_get_css_prop('background-color', $top_menu_bg_color); ?><?php echo osetin_get_css_prop('background-image', $top_menu_bg_image_url); ?>; background-size: cover;">
              <div class="logo">
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
                  <img src="<?php echo esc_url($logo_image_url); ?>" alt="<?php echo esc_attr(get_bloginfo( 'name' )); ?>" style="width: <?php echo esc_attr($logo_image_width); ?>px;">
                  <?php if($logo_text || $logo_sub_text){
                    echo '<span class="logo-text-w">';
                    if($logo_text) echo '<span class="logo-text">'.$logo_text.'</span>';
                    if($logo_sub_text) echo '<span class="logo-sub-text">'.$logo_sub_text.'</span>';
                    echo '</span>';
                  } ?>
                </a>
              </div>
              <?php wp_nav_menu( array( 'theme_location' => 'header', 'menu_id' => 'header-menu', 'container_class' => 'top-menu menu-activated-on-hover', 'fallback_cb' => false ) ); ?>
            </div>
          </div>
        </div>
      <?php }else{ ?>
        <div class="main-header-w main-header-version2">
          <div class="main-header-meta-w">
            <div class="logo-w">
              <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
                <img src="<?php echo esc_url($logo_image_url); ?>" alt="<?php echo esc_attr(get_bloginfo( 'name' )); ?>" style="width: <?php echo esc_attr($logo_image_width); ?>px;">
                <?php if($logo_text || $logo_sub_text){
                  echo '<span class="logo-text-w">';
                  if($logo_text) echo '<span class="logo-text">'.$logo_text.'</span>';
                  if($logo_sub_text) echo '<span class="logo-sub-text">'.$logo_sub_text.'</span>';
                  echo '</span>';
                } ?>
              </a>
            </div>
            <div class="header-meta">
              <div class="header-meta-i">
                <?php if(osetin_get_field('main_phone', 'option')){ ?>
                  <div class="header-meta-box">
                    <div class="top-bar-link-phone"><i class="os-icon os-icon-phone2"></i> <span><?php echo '<strong>'.__('Call Us: ', 'lawyer-by-osetin').'</strong> '.osetin_get_field('main_phone', 'option'); ?></span></div>
                  </div>
                <?php } ?>
                <?php if(osetin_get_field('main_address', 'option')){ ?>
                  <div class="header-meta-box">
                    <div class="top-bar-link-address"><i class="os-icon os-icon-map2"></i> <span><?php echo '<strong>'.__('Our Address: ', 'lawyer-by-osetin').'</strong> '.osetin_get_field('main_address', 'option'); ?></span></div>
                  </div>
                <?php } ?>
                <?php if( osetin_have_rows('social_links', 'option') ){ ?>
                  <div class="header-meta-box">
                    <span class="top-bar-social-label"><?php _e('Social Media:', 'lawyer-by-osetin'); ?></span>
                    <?php osetin_social_share_icons('header'); ?>
                  </div>
                <?php } ?>
              </div>
            </div>
          </div>
          <div class="main-header-menu-w">
            <div class="main-header color-scheme-<?php echo esc_attr($top_menu_bg_color_type); ?> " style="<?php echo osetin_get_css_prop('background-color', $top_menu_bg_color); ?><?php echo osetin_get_css_prop('background-image', $top_menu_bg_image_url); ?>; background-size: cover;">
              <?php wp_nav_menu( array( 'theme_location' => 'header', 'menu_id' => 'header-menu', 'container_class' => 'top-menu menu-activated-on-hover', 'fallback_cb' => false ) ); ?>
            </div>
          </div>
        </div>
      <?php } ?>
      <?php if(osetin_get_field('use_fixed_header', 'option')){ ?>
        <div class="fixed-header-w color-scheme-<?php echo osetin_get_field('fixed_menu_bar_background_color_type', 'option', 'light'); ?>" style="<?php echo osetin_get_css_prop('background-color', osetin_get_field('fixed_menu_bar_background_color', 'option')); ?>">
          <div class="os-container">
            <div class="fixed-header-i">
              <div class="fixed-logo-w" style="width: <?php echo esc_attr($fixed_menu_logo_image_width); ?>px;">
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
                  <img src="<?php echo esc_url($fixed_menu_logo_image_url); ?>" alt="<?php echo esc_attr(get_bloginfo( 'name' )); ?>">
                </a>
              </div>
              <?php wp_nav_menu( array( 'theme_location' => 'header', 'menu_id' => 'fixed-header-menu', 'container_class' => 'fixed-top-menu-w menu-activated-on-hover', 'fallback_cb' => false ) ); ?>
              <div class="fixed-search-trigger-w">
                <div class="search-trigger"><i class="os-icon os-icon-thin-0034_search_find_zoom"></i></div>
              </div>
            </div>
          </div>
        </div>
      <?php } ?>
      <div class="mobile-header-w">
        <div class="mobile-header-menu-w menu-activated-on-click color-scheme-<?php echo esc_attr($mobile_header_background_color_type) ?>" style="<?php echo osetin_get_css_prop('background-color', $mobile_header_background_color); ?>">
          <?php wp_nav_menu( array( 'theme_location' => 'header', 'menu_id' => 'mobile-header-menu', 'container' => '', 'fallback_cb' => false ) ); ?>
        </div>
        <div class="mobile-header color-scheme-<?php echo esc_attr($mobile_header_background_color_type); ?> " style="<?php echo osetin_get_css_prop('background-color', $mobile_header_background_color); ?>">
          <div class="mobile-menu-toggler">
            <i class="os-icon os-icon-menu"></i>
          </div>
          <div class="mobile-logo" style="width: <?php echo esc_attr($mobile_logo_image_width); ?>px;">
            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img src="<?php echo esc_url($mobile_logo_image_url); ?>" alt="<?php echo esc_attr(get_bloginfo( 'name' )); ?>"></a>
          </div>
          <div class="mobile-menu-search-toggler">
            <i class="os-icon os-icon-magnifier-12"></i>
          </div>
        </div>
      </div>