{extends $layout}

{block content}
<article id="post-{$post->id}" class="{$post->htmlClasses}">

	<header class="entry-header">
		
		<h1 class="entry-title">{$post->title}</h1>
		<span class="edit-link">{editPostLink $post->id}</span>

	</header>

	{if $post->thumbnailSrc}
	<a href="{!$post->thumbnailSrc}">
		<div class="entry-thumbnail">
			{ifset $fullwidth}
			<img class="fullwidth" src="{thumbnailResize $post->thumbnailSrc, w => 940, h => 250}" alt="">
			{else}
			<img src="{thumbnailResize $post->thumbnailSrc, w => 740, h => 415}" alt="">
			{/ifset}
		</div>
	</a>
	{/if}

	<div class="entry-meta">
		<span class="sep blog-date">{__ 'On:'}
			<a href="{dayLink $post->date}" title="{$post->date|date:$site->dateFormat}" rel="bookmark"><time class="entry-date" datetime="{$post->date|date:$site->dateFormat}" pubdate="">{$post->date|date:$site->dateFormat}</time></a>
		</span>
		<span class="by-author">
			<span class="sep blog-author"> {__ 'By:'} </span>
			<span class="author vcard">
				<a class="url fn n" href="{$post->author->postsUrl}" title="{__ 'View all posts by %s'|printf: $post->author->name}" rel="author"> {$post->author->name}</a>
			</span>
		</span>

		{if ($post->type == 'post' && $post->categories)}
		<span class="cat-links">
			<span class="sep blog-categories entry-utility-prep entry-utility-prep-cat-links">{__ 'Posted in'}</span>
			{!$post->categories}
		</span>
		{/if}
		
		<div class="comments-link">
			<span class="sep">Comments:</span>
			<a href="{!$post->permalink}#comments" title="{__ 'Comment on'} {$post->title}">{$post->commentsCount}</a>
		</div>
	</div>
	
	<div class="entry-content">
		{!$post->content}
	</div>

</article><!-- /#post-{$post->id} -->

{include comments.php, closeable => $themeOptions->general->closeComments, defaultState => $themeOptions->general->defaultPosition}

{ifset $themeOptions->advertising->showBox4}
<div id="advertising-box-4" class="advertising-box">
    {!$themeOptions->advertising->box4Content}
</div>
{/ifset}

{/block}