{extends 'main-layout.php'}

{var $sectionsOrder = isset($post->options('sections-order')->overrideGlobal) ? $post->options('sections-order')->order : null}

{block content}
<!-- TOOLBAR -->
<div class="toolbar">

	<div id="breadcrumb">You are here: {breadcrumbs}</div>

	{include general-search-form.php}

</div>

<!-- SUBPAGE -->
<div id="container" class="subpage clear onecolumn">
	<!-- MAINBAR -->
	<div id="content" class="mainbar entry-content">
		<div id="content-wrapper">
			<h1>{$post->title}</h1>

			{if $post->thumbnailSrc != false }
			<div class="entry-thumbnail">
				<img src="{$timthumbUrl}?src={$post->thumbnailSrc}&w=640&h=200" alt="" />
			</div>
			{/if}

			{!$post->content}

			{include snippet-comments.php}

		</div><!-- end of content-wrapper -->
	</div><!-- end of mainbar -->

</div><!-- end of container -->
{/block}

{? isset($post->options('slider')->overrideGlobal) ? $localslider = 'slider' : $localslider = 'xb'}
{define $localslider}
  <div class="slider-holder">
  {include snippet-custom-home-slider.php,
  	options => $post->options('slider'),
  	slides => $site->create('slider-creator', $post->options('slider')->sliderType),
  	name => $name,
  	desc => $desc
  }
  {include snippet-custom-home-slider.php,
  	options => $post->options('slider'),
  	slides => $site->create('slider-creator', $post->options('slider')->sliderType2),
  	name2 => $name2,
  	desc2 => $desc2
  }
  {include snippet-custom-home-slider.php,
  	options => $post->options('slider'),
  	slides => $site->create('slider-creator', $post->options('slider')->sliderType3),
  	name3 => $name3,
  	desc3 => $desc3
  }
  {include snippet-custom-home-slider.php,
  	options => $post->options('slider'),
  	slides => $site->create('slider-creator', $post->options('slider')->sliderType4),
  	name4 => $name4,
  	desc4 => $desc4
  }
  </div>
{/define}

{? isset($post->options('testimonials')->overrideGlobal) ? $sectionB = 'sectionB' : $sectionB = 'xb'}
{define $sectionB}
	{include snippet-custom-testimonials.php, show => $post->options('testimonials')->show, options => $post->options('testimonials')}
{/define}