{*
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2016 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<!--category detail-->
<div class="owl-blog-category">
	
	{if isset($owl_blog_category['image']) && $owl_allow_category_image == 1 && {$owl_blog_category['image']}!=''}
			<div class="content_scene_cat">
				<img src="{$owl_blog_category['image']|escape:'html':'UTF-8'}" title="{$owl_blog_category['name']|escape:'html':'UTF-8'}" alt="{$owl_blog_category['name']|escape:'html':'UTF-8'}" />
			</div>
	{/if}
	
	<div class="owl-blog-cat-img">
		<div class="container">
			<h1 class="page-heading"> 
			{if isset($owl_blog_category)}
				<span class="cat-name">{$owl_blog_category['name']|escape:'html':'UTF-8'}</span>
			{else}
				{l s='Welcome to our blog' mod='owlblog'}
			{/if}
			{if isset($owl_post_list)}<span class="heading-counter">{l s='There ' mod='owlblog'} {if {$count_blog|intval} > 1}{l s='are ' mod='owlblog'} {else}{l s='is ' mod='owlblog'} {/if}{$count_blog|intval} {if {$count_blog|intval} > 1}{l s='posts' mod='owlblog'} {else}{l s='post' mod='owlblog'} {/if}</span>{/if}
			</h1>
			{if isset($owl_blog_category)}
				{if strlen($owl_blog_category['description']) > 350}
				<div id="category_description_short" class="rte">{$owl_blog_category['description']|truncate:120|escape:'html':'UTF-8'}</div>
				{else}
					<div class="rte">{$owl_blog_category['description']|escape:'html':'UTF-8'}</div>
				{/if}
			{/if}
		</div>
	</div>
</div> <!-- close div cs-category-info -->
<!--list post-->
{if $owl_postes_empty == 0}
	{include file="./post_list.tpl"}
	<div class="content_sortpagebar clearfix">
		<div class="bottom-pagination-content clearfix">
			{if $owl_postes_empty != 1}
				{include file="./pagination.tpl"}
			{/if}
		</div>
	</div>
{/if}


{if $owl_postes_empty == 1}
	<div class="empty">{l s='There are no posts in this category' mod='owlblog'}</div>
{/if}
