{extends 'main-layout.php'}

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

{block content}
<div id="container" class="home onecolumn clear">
	{if trim($post->content) != ""}
		<div id="content" class="mainbar entry-content clearfix left">
			{include snippet-custom-services-boxes.php, boxes => $site->create('service-box', $themeOptions->globals->globalServiceBoxes)}
			
			{!$post->content}
		</div>
	{/if}
</div>
{/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}