<?php
/* 
Template Name: Magazine Template
*/
?>
<?php
get_header();
if (shortcode_exists( 'blogwings-companion-magazina' )){?>
	<div class="home-container">
		<?php 
		//Magazine Widgets Area with Fullwidth (First)
		if ( shortcode_exists( 'blogwings-companion-magazina' ) ){
			magazina_nosidebar_before('magazine-widget','magazine-top first');
			do_shortcode( '[blogwings-companion-magazina page="magazine"]');
			magazina_nosidebar_after('magazine-widget');
		}

	 	//Magazine Widgets Area with Sidebar (First)
		if ( shortcode_exists( 'blogwings-companion-magazina' ) ){
			magazina_sidebar_before('magazine-sidebar-widget','first',' magazine-bottom first');
			do_shortcode('[blogwings-companion-magazina page="magazine-sidebar"]');
			magazina_sidebar_after('magazine-sidebar-widget','first'); 
		}

		//Magazine Widgets Area with Fullwidth (Second)
		if ( shortcode_exists( 'blogwings-companion-magazina' ) ){
			magazina_nosidebar_before('magazine-widget-second','magazine-area second');
				do_shortcode('[blogwings-companion-magazina page="magazine-widget-second"]');
			magazina_nosidebar_after('magazine-widget-second');
		}  

		 // Magazine Widgets Area with Sidebar (Second) 			
		if ( shortcode_exists( 'blogwings-companion-magazina' ) ){
			magazina_sidebar_before('magazine-sidebar-widget-second','second',' magazine-area second');
			do_shortcode('[blogwings-companion-magazina page="magazine-sidebar-second"]');
			magazina_sidebar_after('magazine-sidebar-widget-second','second'); 
		}
 		//Magazine Widgets Area with Fullwidth (Third)
		if ( shortcode_exists( 'blogwings-companion-magazina' ) ){
	       	magazina_nosidebar_before('magazine-widget-third','magazine-area second');
			do_shortcode( '[blogwings-companion-magazina page="magazine-widget-third"]' );
			magazina_nosidebar_after('magazine-widget-third');
		}  
		?>
	</div>
<?php } ?>
<?php get_footer(); ?>