var/cache/dev/twig/ff/fff8b1bf035630565ddd622ed78428fd.php line 40
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;/* @OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig */class __TwigTemplate_e434e20c34a4596dd77caf787afa5b11 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['title' => [$this, 'block_title'],'post_header' => [$this, 'block_post_header'],'body' => [$this, 'block_body'],];}protected function doGetParent(array $context){// line 1return $this->loadTemplate(twig_get_attribute($this->env, $this->source, (isset($context["nglayouts"]) || array_key_exists("nglayouts", $context) ? $context["nglayouts"] : (function () { throw new RuntimeError('Variable "nglayouts" does not exist.', 1, $this->source); })()), "layoutTemplate", [], "any", false, false, false, 1), "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", 1);}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"));// line 2$macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("frontend/Macro/pagination.html.twig", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", 2)->unwrap();// line 1$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 3public function block_title($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));echo "Blog";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 5public function block_post_header($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "post_header"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "post_header"));// line 6echo "\t<!-- section start-->\t";// line 7echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_media_render", ["code" => "blog_post_header", "template" => "frontend/cms/common/media/_header.html.twig"]));echo "\t<!-- section start-->";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 10public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 11echo "\t<section class=\"news-section\">\t\t<div class=\"auto-container\">\t\t\t";// line 14if ((twig_length_filter($this->env, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 14, $this->source); })())) > 0)) {// line 15echo "\t\t\t\t<div class=\"row\">\t\t\t\t\t";// line 16$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 16, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["article"]) {// line 17echo "\t\t\t\t\t\t<!-- News Block -->\t\t\t\t\t\t<div class=\"news-block col-lg-4 col-md-6 col-sm-12 wow fadeInUp\">\t\t\t\t\t\t\t<div class=\"inner-box\">\t\t\t\t\t\t\t\t<div class=\"image-box\">\t\t\t\t\t\t\t\t\t<figure class=\"image\">\t\t\t\t\t\t\t\t\t\t<a href=\"";// line 22echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 22)]), "html", null, true);echo "\"><img style=\"height:270px;\" src=\"";(((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 22)) > 0)) ? (print (twig_escape_filter($this->env, $this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 22), 0, [], "array", false, false, false, 22), "path", [], "any", false, false, false, 22), ((array_key_exists("filter", $context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter", $context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.', 22, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true))) : (print ("https://via.placeholder.com/370x270")));echo "\" alt=\"\"></a>\t\t\t\t\t\t\t\t\t</figure>\t\t\t\t\t\t\t\t\t<span class=\"date\">";// line 24echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 24), "d"), "html", null, true);echo "\t\t\t\t\t\t\t\t\t\t<span class=\"month\">";// line 25echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 25), "M-Y"), "html", null, true);echo "</span>\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class=\"lower-content\">\t\t\t\t\t\t\t\t\t<ul class=\"post-info\">\t\t\t\t\t\t\t\t\t\t<li>\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-user-circle\"></i>Admin</li>\t\t\t\t\t\t\t\t\t\t<li>\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-comments\"></i>\t\t\t\t\t\t\t\t\t\t\t0 Comment</li>\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t<h4 class=\"title\" style=\"height:100px;\">\t\t\t\t\t\t\t\t\t\t<a href=\"";// line 37echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 37)]), "html", null, true);echo "\">";echo twig_escape_filter($this->env, (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 37)) > 60)) ? ((twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 37), 0, 50) . "...")) : (twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 37))), "html", null, true);echo " </a>\t\t\t\t\t\t\t\t\t</h4>\t\t\t\t\t\t\t\t\t<div class=\"text\">\t\t\t\t\t\t\t\t\t\t";// line 40(((twig_length_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 40))) > 200)) ? (print (twig_escape_filter($this->env, (twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 40)), 0, 200) . "..."), "html", null, true))) : (print (twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 40)))));echo "\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 46echo "\t\t\t\t</div>\t\t\t</div>\t\t";}// line 49echo "\t</section>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 190 => 49, 185 => 46, 173 => 40, 165 => 37, 150 => 25, 146 => 24, 139 => 22, 132 => 17, 128 => 16, 125 => 15, 123 => 14, 118 => 11, 108 => 10, 95 => 7, 92 => 6, 82 => 5, 62 => 3, 52 => 1, 50 => 2, 37 => 1,);}public function getSourceContext(){return new Source("{% extends nglayouts.layoutTemplate %}{% import 'frontend/Macro/pagination.html.twig' as pagination %}{% block title %}Blog{% endblock %}{% block post_header %}\t<!-- section start-->\t{{ render(path('bitbag_sylius_cms_plugin_shop_media_render', {'code' : 'blog_post_header', 'template' : 'frontend/cms/common/media/_header.html.twig'})) }}\t<!-- section start-->{% endblock %}{% block body %}\t<section class=\"news-section\">\t\t<div class=\"auto-container\">\t\t\t{% if resources | length > 0 %}\t\t\t\t<div class=\"row\">\t\t\t\t\t{% for article in resources %}\t\t\t\t\t\t<!-- News Block -->\t\t\t\t\t\t<div class=\"news-block col-lg-4 col-md-6 col-sm-12 wow fadeInUp\">\t\t\t\t\t\t\t<div class=\"inner-box\">\t\t\t\t\t\t\t\t<div class=\"image-box\">\t\t\t\t\t\t\t\t\t<figure class=\"image\">\t\t\t\t\t\t\t\t\t\t<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>\t\t\t\t\t\t\t\t\t</figure>\t\t\t\t\t\t\t\t\t<span class=\"date\">{{ article.createdAt|date('d') }}\t\t\t\t\t\t\t\t\t\t<span class=\"month\">{{ article.createdAt|date('M-Y') }}</span>\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class=\"lower-content\">\t\t\t\t\t\t\t\t\t<ul class=\"post-info\">\t\t\t\t\t\t\t\t\t\t<li>\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-user-circle\"></i>Admin</li>\t\t\t\t\t\t\t\t\t\t<li>\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-comments\"></i>\t\t\t\t\t\t\t\t\t\t\t0 Comment</li>\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t<h4 class=\"title\" style=\"height:100px;\">\t\t\t\t\t\t\t\t\t\t<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>\t\t\t\t\t\t\t\t\t</h4>\t\t\t\t\t\t\t\t\t<div class=\"text\">\t\t\t\t\t\t\t\t\t\t{{ article.content | striptags | length > 200 ? article.content|striptags|slice(0, 200)|raw ~ '...' : article.content|striptags|raw }}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t{% endfor %}\t\t\t\t</div>\t\t\t</div>\t\t{% endif %}\t</section>{% endblock %}", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", "/srv/sylius/templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig");}}