{*
* 2007-2015 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-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<div itemtype="#" itemscope="" class="sdsarticleCat col-xs-12 col-sm-6 col-md-6 col-lg-4">
    <div id="smartblogpost-{$post.id_post|escape:'htmlall':'UTF-8'}" class="smart-blog-post-single-item">
        <div class="sdsarticleHeader smart-blog-posts-header-area">
			{if isset($ispost) && !empty($ispost)}
			<div class="sdsarticle-img">
				<a itemprop="url"
					href="{$smartbloglink->getSmartBlogPostLink($post.id_post,$post.cat_link_rewrite)|escape:'htmlall':'UTF-8'}"
					title="{$post.meta_title|escape:'htmlall':'UTF-8'}" class="imageFeaturedLink">

				{/if}
				{assign var="img_link" value=$smartbloglink->getImageLink($post.link_rewrite, $post.id_post, 'home-default')}
				{if $img_link != 'false'}
					<img itemprop="image" alt="{$post.meta_title|escape:'htmlall':'UTF-8'}"
						src="{$img_link}"
						class="imageFeatured"> 
				{/if}

				{if isset($ispost) && !empty($ispost)}
				</a>
			</div> 
            {/if} 
            <div class="smart-blog-posts-info">
				{if $smartshowauthor ==1}{l s='Posted by'  d='Modules.Smartblog.Category_loop'}
                <span itemprop="author">&nbsp;<i class="icon-rt-person-circle-outline"></i>&nbsp; {if $smartshowauthorstyle != 0}{$post.firstname|escape:'htmlall':'UTF-8'}
                    {$post.lastname|escape:'htmlall':'UTF-8'}{else}{$post.lastname|escape:'htmlall':'UTF-8'}
                    {$post.firstname|escape:'htmlall':'UTF-8'}{/if}
                </span> {/if}
                {$assocCats = BlogCategory::getPostCategoriesFull($post.id_post)}
                {$catCounts = 0}
                {if !empty($assocCats)}
                    &nbsp;&nbsp;<i class="icon-rt-Blog"></i>&nbsp;
                    <span itemprop="articleSection">
                        {foreach $assocCats as $catid=>$assoCat}
                            {if $catCounts > 0}, {/if}
                            {$catlink=[]}
                            {$catlink.id_category = $assoCat.id_category}
                            {$catlink.slug = $assoCat.link_rewrite}
                            <a
                                href="{$smartbloglink->getSmartBlogCategoryLink($assoCat.id_category,$assoCat.link_rewrite)|escape:'htmlall':'UTF-8'}">
                                {$assoCat.name|escape:'htmlall':'UTF-8'}
                            </a>
                            {$catCounts = $catCounts + 1}
                        {/foreach}
                    </span>
                {/if}
                {if Configuration::get('smartenablecomment') == 1}
                &nbsp; <span class="comment">&nbsp;<i class="icon-rt-logo-wechat"></i>&nbsp;
                    <a href="{$smartbloglink->getSmartBlogPostLink($post.id_post,$post.link_rewrite)|escape:'htmlall':'UTF-8'}#articleComments"
                        title="{$post.totalcomment|escape:'htmlall':'UTF-8'} Comments">{l s=' Comments' d='Modules.Smartblog.Category_loop'} <span class="comment-count-number">{$post.totalcomment}</span></a></span>{if $smartshowviewed ==1}&nbsp; <span class="smart-bg-views"><i
                        class="icon-rt-eye"></i>{l s=' views' d='Modules.Smartblog.Category_loop'}
                <span class="comment-count-number">{$post.viewed|intval}</span>{/if}</span>
			</div>
            {/if}
        </div>



        <div class="articleContent">
			<div class='title_block smart-blog-posts-title'><a title="{$post.meta_title|escape:'htmlall':'UTF-8'}"
                    href="{$smartbloglink->getSmartBlogPostLink($post.id_post,$post.link_rewrite)|escape:'htmlall':'UTF-8'}">{$post.meta_title|escape:'htmlall':'UTF-8'}</a>
            </div>
            <div class="sdsarticle-des smart-blog-posts-short-description" style="text-align: left;">
                {$post.short_description}
            </div>
        </div>

        <div class="sdsreadMore smart-blog-post-readmore-btn">
            <a title="{$post.meta_title|escape:'htmlall':'UTF-8'}"
                href="{$smartbloglink->getSmartBlogPostLink($post.id_post,$post.link_rewrite)|escape:'htmlall':'UTF-8'}"
                class="r_more btn-primary"><span>{l s='Read More'  d='Modules.Smartblog.Category_loop'}</span> <i class="icon-rt-android-arrow-dropright-circle"></i></a>
        </div>



    </div>
</div>