<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title>
<?php wp_title( '|', true, 'right' ); ?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri() ?>/css/ie9.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri() ?>/css/ie8.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri() ?>/css/ie7.css" />
<![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri() ?>/js/html5shiv.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/js/respond.min.js"></script>
<![endif]-->
</head>
<?php global $is_IE ?>
<body id="top" <?php body_class(); ?>>
<div id="CORPO-DO-TEMA" class="CORPO-DO-SITE">
<header>
  <div class="<?php echo oriont_get_option('layoutstyle_header'); if (oriont_get_option('layoutstyle_header')); else echo"container-wide";//if(oriont_get_option('layoutstyle_header' )):; echo '-skin'; endif;?>">

    <div class="header-content">
      <div class="container">
        <div class="main-estrutura">
          <?php $logo_margin =''; if( oriont_get_option( 'logo_margin' )) $logo_margin = ' style="margin-top:'.oriont_get_option( 'logo_margin' ).'px"';  ?>
          <div class="logo"<?php echo $logo_margin ?>>
            <?php if( oriont_get_option('logo_setting') == 'title' ): ?>
            <h1><a  href="<?php echo home_url() ?>/">
              <?php bloginfo('name'); ?>
              </a> </h1>
            <p>
              <?php bloginfo( 'description' ); ?>
            </p>
            <?php else : ?>
<?php if( oriont_get_option( 'logo' ) ) $logo = oriont_get_option( 'logo' ); else $logo = get_stylesheet_directory_uri().'/images/logo.png';?>
            <a title="<?php bloginfo('name'); ?>" href="<?php echo home_url(); ?>/">
            <center>
              <img src="<?php echo $logo ; ?>" alt="<?php bloginfo('name'); ?> - <?php bloginfo( 'description' ); ?>" />
            </center>
            </a>
            <?php endif; ?>
          </div>
          <!-- .logo /-->
          <?php $search_margin =''; if( oriont_get_option( 'search_margin' )) $search_margin = ' style="margin-top:'.oriont_get_option( 'search_margin' ).'px"';  ?>
          <?php if( !oriont_get_option( 'header_search_form') ) { ?>
          <div class="left search-header"<?php echo $search_margin ?>>
            <?php get_template_part('searchform'); ?>
          </div>
          <!-- .search-header /-->
          <?php }?>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <?php /**/if(!oriont_get_option( 'main_menu' )): ?>
    <?php $stick = ''; ?>
    <?php if( oriont_get_option( 'stick_nav' ) ) $stick = ' class="fixed-enabled"' ?>
    <nav class="main-nav"<?php echo $stick; ?>>
      <div class="container">
        <div class="main-estrutura main-estrutura2">
          <?php wp_nav_menu( array( 'container_class' => 'main-menu', 'theme_location' => 'main_navigation' ,'fallback_cb' => 'oriont_nav_fallback'  ) ); ?>
        </div>
      </div>
    </nav>
    <!-- .main-nav /-->
    <?php endif; ?>
    <?php get_template_part( 'inc/nav-subcategories');	?>
    <?php get_template_part( 'inc/nav-subpages');	?>
  </div>
</header>
<!-- #header /-->
<div class="<?php echo oriont_get_option('layoutstyle_header'); if (oriont_get_option('layoutstyle_header')); else echo"container-wide";//if(oriont_get_option('layoutstyle_header' )):; echo '-skin'; endif;?>">
  <div class="breadcrumbs">
    <?php oriont_breadcrumbs() ?>
  </div>
</div>
<div class="container">
<div id="main-site-content" class="site-layout main-estrutura2">
