<article class="post-layout post-grid">
    <div class="post-thumb">
        <div class="image">
            <a href="{{post.href}}">
                {% if access_limit %}
                <div style="position: absolute; width:100%; height:100%; background-image: url(http://ocinstallerlocal/302/d_blog_module/image/catalog/d_blog_module/lock.svg);  background-color: rgb(0, 0, 0, 0.45); background-repeat: no-repeat; background-position: center;"></div>
                {% endif %}
                <img src="{{post.thumb}}" alt="{{post.image_alt}}" title="{{post.image_title}}" class="img-responsive"/>
            </a>
        </div>
    
        <div class="post-thumb-heading">            
            {% if setting.post_thumb.category_label_display %}
                <ul class="category list-unstyled">
                    {% for category in post.categories %}
                    <li><a class="{{setting.post_thumb.category_label}}" href="{{category.href}}">{{category.title}}</a></li>
                    {% endfor %}
                </ul>
            {% endif %}
            <h3 class="title"><a href="{{post.href}}">{{post.title}}</a></h3>
            <span class="title-divider"></span>
        </div>
        <div class="post-thumb-body">
            {% if setting.post_thumb.description_display %}
                <div class="short-description">{{post.short_description}}</div>
            {% endif %}
            {% if (setting.post_thumb.rating_display or setting.post_thumb.date_display) %}
            <div class="row">
                <div class="{% if (setting.post_thumb.rating_display and post.rating) %}col-md-6{% else %}col-md-12{% endif %}">
                    {% if setting.post_thumb.author_display %}
                    <span class="author"><i class="fa fa-user"></i> {{post.author}}</span>
                    {% endif %}
                    {% if setting.post_thumb.date_display %}
                    <span class="date-published"><i class="fa fa-clock-o"></i> {{post.date_published}}</span>
                    {% endif %}
                </div>
                {% if (setting.post_thumb.rating_display and post.rating) %}
                <div class="col-md-6">
                    <div class="pull-right">
                        {% include template('partial/d_rating') with ({rating:post.rating,static_rating:true})%}
                    </div>
                </div>
                {% endif %}
            </div>
            {% endif %}
            {% if (setting.post_thumb.tag_display and post.tags) %}
                <div class="tag">
                    <span class="tag-title">{{text_tags}}</span>
                    {% for tag in post.tags %}
                        <a href="{{tag.href}}">{{tag.text}}</a>
                    {% endfor %}
                </div>
            {% endif %}
        </div>
        <div class="post-thumb-footer clearfix">
            {% if (setting.post_thumb.review_display and post.review) %}<a class="review" href="{{post.href}}"><i class="fa fa-comment"></i> {{text_review}} ({{post.review}})</a>{% endif %}
            {% if (setting.post_thumb.views_display and post.views) %}<span class="view"><i class="fa fa-eye"></i> {{text_views}} {{post.views}}</span>{% endif %}
            {% if setting.post_thumb.read_more_display %}<a href="{{post.href}}" class="read-more pull-right">{{text_read_more}}</a>{% endif %}
        </div>
    
    </div>
</article>