<?php
    global $passport_theme_setting;
    global $passport_headline_column;
    global $passport_headline_sidebar_position;
    global $passport_headline_sidebar_width;


    $passport_headline_column		    = get_theme_mod( 'passport_headline_column', 'sidebar' );
	$passport_headline_sidebar_position	= get_theme_mod( 'passport_headline_sidebar_position', 'right' );
	$passport_headline_sidebar_width    = get_theme_mod( 'passport_headline_sidebar_width', 'sidebar_33' );

    /* Blog Page */
    if( is_front_page() && is_home() ) : ?>
        <!-- No content -->
	<?php elseif( is_front_page()  ) :
		if( 'full_width_container' == $passport_theme_setting ) : ?>
            <!-- No content -->
		<?php else : ?><!-- Fix Container -->
			<div id ="headline-wrapper" class="content-column fix-width clearfix">
			<?php if ( empty ( $hide_secondary_menu_bar ) ) { passport_secondary_bar(); } ?>
				<div id="headline" class="<?php if( 'main_content' == $passport_headline_column ) { echo 'main-content'; } else { echo 'sidebar'; } ?> headline layout">
			<?php if( 'main_content' == $passport_headline_column ) : ?> 
				<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
					<div class="row">
						<?php if ( is_active_sidebar( PASSPORT_THEME_SLUG . '-headline' ) ) : ?>
							<?php dynamic_sidebar( PASSPORT_THEME_SLUG . '-headline' ); ?>
						<?php endif; ?>
					</div>
				</div>
			<?php elseif( 'sidebar' == $passport_headline_column )  : ?>
				<?php if( 'right' == $passport_headline_sidebar_position ) : ?>
					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
					<?php elseif( 'sidebar_33'== $passport_headline_sidebar_width ) : ?>
						<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
					<?php endif; ?>
							<div class="row">
								<?php if ( is_active_sidebar( PASSPORT_THEME_SLUG . '-headline' ) ) : ?>
									<?php dynamic_sidebar( PASSPORT_THEME_SLUG . '-headline' ); ?>
								<?php endif; ?>
							</div>
					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php elseif( 'sidebar_33'== $passport_headline_sidebar_width ) : ?>
						</div>
					<?php endif; ?>

					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
					<?php elseif( 'sidebar_33' == $passport_headline_sidebar_width ) : ?>
						<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
					<?php endif; ?>
					<?php if ( is_active_sidebar( PASSPORT_THEME_SLUG . '-sidebar-headline' ) ) : ?>
						<div class="row">
							<div class="right-sidebar">
								<?php dynamic_sidebar( PASSPORT_THEME_SLUG . '-sidebar-headline' ); ?>
							</div>
						</div>
					<?php endif; ?>

					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php elseif( 'sidebar_33' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php endif; ?>

				<?php elseif ( 'left' == $passport_headline_sidebar_position ) : ?>
					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
					<?php elseif( 'sidebar_33' == $passport_headline_sidebar_width ) : ?>
						<div id="sidebar" class="col-md-4 col-lg-4">
					<?php endif; ?>
					<?php if ( is_active_sidebar( PASSPORT_THEME_SLUG . '-sidebar-headline' ) ) : ?>
						<div class="row">
							<div class="left-sidebar">
								<?php dynamic_sidebar( PASSPORT_THEME_SLUG . '-sidebar-headline' ); ?>
							</div>
						</div>
					<?php endif; ?>
					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php elseif( 'sidebar_33' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php endif; ?>

					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
					<?php elseif( 'sidebar_33' == $passport_headline_sidebar_width ) : ?>
						<div class="col-md-8 col-lg-8">
					<?php endif; ?>
							<div class="row">
								<?php if ( is_active_sidebar( PASSPORT_THEME_SLUG . '-headline' ) ) : ?>
									<?php dynamic_sidebar( PASSPORT_THEME_SLUG . '-headline' ); ?>
								<?php endif; ?>
							</div>
					<?php if( 'sidebar_25' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php elseif( 'sidebar_33' == $passport_headline_sidebar_width ) : ?>
						</div>
					<?php endif; ?>

				<?php endif; ?>
				</div>
			<?php endif; ?><!-- End of Sidebar Column -->
			</div>
		<?php endif;  ?><!-- End of Headline -->
	<?php endif;