{extends 'main-layout.php'}
{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 subpage-line clear {isActiveSidebar post-sidebar}{else}onecolumn{/isActiveSidebar post-sidebar}">
	<!-- MAINBAR -->
	<div id="content" class="mainbar entry-content clearfix left">
		<div class="{isActiveSidebar post-sidebar}left leftContent{else}content{/isActiveSidebar}">
			<h1>{$post->title}</h1>
			{include snippet-posted-on-comments.php}
			<div class="non-thumb-item left">
				<ul>
					<li class="user">{include snippet-posted-by.php post => $post}</li>
					{if $post->categories}
					<li class="categories">{!$post->categories}</li>
					{/if}
					<li class="comm">{$post->commentsCount}</li>
				</ul>
			</div>
			<div class="tool-buttons">
					{editPostLink $post->id}
					<span class="share-link" title="Drag to Share"><a class="share-button" rel="prettySociable" href="{$post->permalink}">SHARE</a></span>
				</div>
			</div>
			{if $post->thumbnailSrc != false }
			<div class="entry-thumbnail">
				{isActiveSidebar post-sidebar}
					<img src="{$timthumbUrl}?src={$post->thumbnailSrc}&w=644%&h=300" alt="" />
					{else}<img class="nosidebar" src="{$timthumbUrl}?src={$post->thumbnailSrc}&w=984" alt="" />
				{/isActiveSidebar}
				
				
			</div>
			{/if}
			{if $site->isSearch}
			<div class="entry-summary">
				{$post->excerpt}
			</div><!-- .entry-summary -->
			{else}
			<div class="border-holder">
				{!$post->content}
				{if $post->tags}<div class="tags">{!$post->tags}</div>{/if}
				{postContentPager}
			</div>
			{/if}
			
		</div>

		{include 'snippet-post-nav.php' location=> nav-above}
		{include snippet-comments.php}		
	</div><!-- end of mainbar -->
	{isActiveSidebar post-sidebar}
		<!-- SIDEBAR -->
	<div class="sidebar clearfix right">
		{dynamicSidebar post-sidebar}
	</div>
	{/isActiveSidebar}
</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}

