templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig line 7
{% extends nglayouts.layoutTemplate %}{% import 'frontend/Macro/pagination.html.twig' as pagination %}{% block title %}Blog{% endblock %}{% block post_header %}<!-- section start-->{{ render(path('bitbag_sylius_cms_plugin_shop_media_render', {'code' : 'blog_post_header', 'template' : 'frontend/cms/common/media/_header.html.twig'})) }}<!-- section start-->{% endblock %}{% block body %}<section class="news-section"><div class="auto-container">{% if resources | length > 0 %}<div class="row">{% for article in resources %}<!-- News Block --><div class="news-block col-lg-4 col-md-6 col-sm-12 wow fadeInUp"><div class="inner-box"><div class="image-box"><figure class="image"><a href="{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}"><img style="height:270px;" src="{{ article.images | length > 0 ? article.images[0].path|imagine_filter(filter|default('sylius_large')): 'https://via.placeholder.com/370x270' }}" alt=""></a></figure><span class="date">{{ article.createdAt|date('d') }}<span class="month">{{ article.createdAt|date('M-Y') }}</span></span></div><div class="lower-content"><ul class="post-info"><li><i class="fa fa-user-circle"></i>Admin</li><li><i class="fa fa-comments"></i>0 Comment</li></ul><h4 class="title" style="height:100px;"><a href="{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}">{{article.title|length > 60 ? article.title|slice(0, 50)|raw ~ '...' : article.title}} </a></h4><div class="text">{{ article.content | striptags | length > 200 ? article.content|striptags|slice(0, 200)|raw ~ '...' : article.content|striptags|raw }}</div></div></div></div>{% endfor %}</div></div>{% endif %}</section>{% endblock %}