<?php
/*
 * This file belongs to the YIT Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

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

$sticky = ( yit_get_option('header-sticky') == 'yes' ) ? ' sticky-header' : '';
$skin = yit_get_option('header-skin');
$slider = YIT_Layout()->slider_name;
$layout = ! in_array( $slider, array( false, '', 'none' ) ) ? YIT_Slider::get_slider( YIT_Layout()->slider_name )->config->layout : '';

// remove transparent skin if is not applicable
if ( 'transparent' == $skin && ! in_array( $layout, array( 'parallax', 'revolution-slider' ) ) && 'yes' != YIT_Layout()->static_image && 'yes' != YIT_Layout()->parallax && '' == get_header_image() ) {
    $skin = 'skin1';
}

if ( 'transparent' == $skin ) {
    $skin .= ' skin1';

    if ( 'yes' == YIT_Layout()->enable_dark_header ) {
        $skin .= ' dark';
    }
}
?>
<!-- START HEADER -->
<div id="header" class="clearfix <?php echo $skin . $sticky ?><?php if ( 'yes' != yit_get_option('show-dropdown-indicators') ) echo ' no-indicators' ?>">