<?php
/**
 * The template for displaying the full width carousel section
 *
 * @package WordPress
 * @subpackage Edition
 * @since Edition 1.0
 */
global 
$tw_order_class,	// section order 
$tw_section;		// section object

$tw_section = themewich_section_object();	// section post options
$section_id = get_the_ID($post);			// section id

// Set post classes
$tw_section->post_classes  = array(
	$tw_section->carousel_width == 'full' ?  'full-carousel' : 'fixed-carousel',
	'section',
	$tw_order_class,
	$tw_section->title_class
); ?>

<div <?php post_class($tw_section->post_classes); ?>>
	<?php themewich_section_edit(); // edit button ?>

	<div class="container">
		<div class="col-md-12">
			<?php get_template_part(TW_SECTIONS_DIR .'/section-title'); // section title ?>

			<div class="pageflip">
				<div id="slider-prev"></div>
				<div id="slider-next"></div>
			</div>
		</div>
	</div>

	<?php get_template_part(TW_SECTIONS_DIR . '/carousel-' . $tw_section->carousel_size ); ?>

</div><!--.homesection-->