<?php
use 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_9cb6f58281ac572e7c96292b95789458 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'blog_articles' => [$this, 'block_blog_articles'],
'blog_disqus' => [$this, 'block_blog_disqus'],
];
}
protected function doGetParent(array $context)
{
// line 4
return "@SyliusShop/layout.html.twig";
}
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 1
$macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", 1)->unwrap();
// line 2
$macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", 2)->unwrap();
// line 4
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 7
echo " <div class=\"container-blog\">
<div class=\"container-h\">
";
// line 9
$this->displayBlock('blog_articles', $context, $blocks);
// line 242
echo "
";
// line 243
if ($this->extensions['Odiseo\SyliusBlogPlugin\Twig\BlogExtension']->getDisqusShortname()) {
// line 244
echo " ";
$this->displayBlock('blog_disqus', $context, $blocks);
// line 247
echo " ";
}
// line 248
echo " </div>
<style>
/*.desc-date{*/
/* display: inline-flex;*/
/* gap: 1rem;*/
/* align-items: flex-end;*/
/*}*/
/*!*#main-container{*!*/
/*!* margin-top: 7.5rem ;*!*/
/*!*}*!*/
/*.container-blog-article{*/
/* display: grid;*/
/* grid-template-columns: 1fr 1fr;*/
/* gap: 2rem;*/
/* padding-bottom: 4rem;*/
/*}*/
/*.container-blog{*/
/* padding-top: 2rem;*/
/*}*/
/*.description > *{*/
/* margin-top: 1rem !important;*/
/*}*/
/*.description h3 {*/
/* margin: 0;*/
/* font-size: 1.75rem;*/
/*}*/
/*.description h3 a {*/
/* color: #000;*/
/*}*/
/*.first-article .image{*/
/* width: 100%;*/
/* height: auto;*/
/*}*/
/*.column-left-article{*/
/*!* first column*!*/
/* grid-column: span 1;*/
/*}*/
/*.column-right-article{*/
/* display: flex;*/
/* flex-direction: column;*/
/* !*gap: 1rem;*!*/
/*}*/
/*.column-right-article .other-article:first-of-type .item{*/
/* padding: 0 0 0.5rem 0 ;*/
/*}*/
/*.column-right-article .other-article:last-of-type .item{*/
/* padding: 0.5rem 0 0 0 ;*/
/* border: 0;*/
/*}*/
/*.other-article .item{*/
/* display: flex;*/
/* flex-direction: row-reverse;*/
/* align-items: center;*/
/* justify-content: space-between;*/
/* gap: 2rem;*/
/* padding: 0.5rem 0;*/
/* border-bottom: 1px solid #D9D9D9;*/
/*}*/
/*.other-article .item .image img{*/
/* width: 200px !important;*/
/* max-width: none !important;*/
/* height: auto;*/
/*}*/
/*.other-article .description{*/
/* width: 100%;*/
/*}*/
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_blog_articles($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", "blog_articles"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blog_articles"));
// line 10
echo " ";
if ((twig_length_filter($this->env, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 10, $this->source); })())) > 0)) {
// line 11
echo " <div class=\"container-blog-article\">
<div class=\"column-left-article\">
";
// line 13
$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.', 13, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 14
echo "
";
// line 15
$context["month"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 15), "F");
// line 16
echo " ";
$context["translation"] = ("sylius.ui." . (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 16, $this->source); })()));
// line 17
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 17)) {
// line 18
echo " <div class=\"first-article\">
<div class=\"item\">
";
// line 20
if ($this->extensions['Odiseo\SyliusBlogPlugin\Twig\BlogExtension']->getDisqusShortname()) {
// line 21
echo " <a href=\"";
echo 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, 21)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 21)]), "html", null, true);
echo "\">
";
// line 22
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 22)) > 0)) {
// line 23
echo " <div class=\"image\">
<img src=\"";
// line 24
echo 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, 24), 0, [], "array", false, false, false, 24), "path", [], "any", false, false, false, 24), ((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.', 24, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
";
// line 26
echo " </div>
";
}
// line 28
echo " </a>
";
} else {
// line 30
echo " <a href=\"";
echo 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, 30)]), "html", null, true);
echo "\">
";
// line 31
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 31)) > 0)) {
// line 32
echo " <div class=\"image\">
<img src=\"";
// line 33
echo 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, 33), 0, [], "array", false, false, false, 33), "path", [], "any", false, false, false, 33), ((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.', 33, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
</div>
";
}
// line 36
echo " </a>
";
}
// line 38
echo " <div class=\"description\">
<div class=\"desc-date\">
<svg width=\"18\" height=\"21\" viewBox=\"0 0 18 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M5 12.5C4.71667 12.5 4.479 12.404 4.287 12.212C4.09567 12.0207 4 11.7833 4 11.5C4 11.2167 4.09567 10.979 4.287 10.787C4.479 10.5957 4.71667 10.5 5 10.5C5.28333 10.5 5.521 10.5957 5.713 10.787C5.90433 10.979 6 11.2167 6 11.5C6 11.7833 5.90433 12.0207 5.713 12.212C5.521 12.404 5.28333 12.5 5 12.5ZM9 12.5C8.71667 12.5 8.47933 12.404 8.288 12.212C8.096 12.0207 8 11.7833 8 11.5C8 11.2167 8.096 10.979 8.288 10.787C8.47933 10.5957 8.71667 10.5 9 10.5C9.28333 10.5 9.521 10.5957 9.713 10.787C9.90433 10.979 10 11.2167 10 11.5C10 11.7833 9.90433 12.0207 9.713 12.212C9.521 12.404 9.28333 12.5 9 12.5ZM13 12.5C12.7167 12.5 12.4793 12.404 12.288 12.212C12.096 12.0207 12 11.7833 12 11.5C12 11.2167 12.096 10.979 12.288 10.787C12.4793 10.5957 12.7167 10.5 13 10.5C13.2833 10.5 13.5207 10.5957 13.712 10.787C13.904 10.979 14 11.2167 14 11.5C14 11.7833 13.904 12.0207 13.712 12.212C13.5207 12.404 13.2833 12.5 13 12.5ZM2 20.5C1.45 20.5 0.979 20.3043 0.587 19.913C0.195667 19.521 0 19.05 0 18.5V4.5C0 3.95 0.195667 3.47933 0.587 3.088C0.979 2.696 1.45 2.5 2 2.5H3V0.5H5V2.5H13V0.5H15V2.5H16C16.55 2.5 17.021 2.696 17.413 3.088C17.8043 3.47933 18 3.95 18 4.5V18.5C18 19.05 17.8043 19.521 17.413 19.913C17.021 20.3043 16.55 20.5 16 20.5H2ZM2 18.5H16V8.5H2V18.5Z\" fill=\"#858585\"/>
</svg>
";
// line 43
echo 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, 43), "j"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 43, $this->source); })())), "html", null, true);
echo ", ";
echo 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, 43), "Y"), "html", null, true);
echo "
</div>
<h3>
<a href=\"";
// line 46
echo 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, 46)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 46)]), "html", null, true);
echo "\">
";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "translations", [], "any", false, false, false, 47), "fr_FR", [], "array", false, false, false, 47), "title", [], "any", false, false, false, 47), "html", null, true);
echo "
</a>
</h3>
<p>
";
// line 51
if ((twig_length_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 51))) > 200)) {
// line 52
echo " ";
echo twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 52)), 0, 200);
echo "...
";
} else {
// line 54
echo " ";
echo twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 54));
echo "
";
}
// line 56
echo " </p>
</div>
</div>
</div>
";
}
// line 61
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
echo " </div>
<div class=\"column-right-article\">
";
// line 64
$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.', 64, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 65
echo " ";
$context["month"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 65), "F");
// line 66
echo " ";
$context["translation"] = ("sylius.ui." . (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 66, $this->source); })()));
// line 67
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 67) <= 5) && (twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 67) != 0))) {
// line 68
echo " <div class=\"other-article\">
<div class=\"item\">
";
// line 70
if ($this->extensions['Odiseo\SyliusBlogPlugin\Twig\BlogExtension']->getDisqusShortname()) {
// line 71
echo " <a href=\"";
echo 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, 71)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 71)]), "html", null, true);
echo "\">
";
// line 72
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 72)) > 0)) {
// line 73
echo " <div class=\"image\">
<img src=\"";
// line 74
echo 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, 74), 0, [], "array", false, false, false, 74), "path", [], "any", false, false, false, 74), ((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.', 74, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
</div>
";
}
// line 77
echo " </a>
";
} else {
// line 79
echo " <a href=\"";
echo 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, 79)]), "html", null, true);
echo "\">
";
// line 80
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 80)) > 0)) {
// line 81
echo " <div class=\"image\">
<img src=\"";
// line 82
echo 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, 82), 0, [], "array", false, false, false, 82), "path", [], "any", false, false, false, 82), ((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.', 82, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
</div>
";
}
// line 85
echo " </a>
";
}
// line 87
echo " <div class=\"description\">
<div class=\"desc-date\">
<svg width=\"18\" height=\"21\" viewBox=\"0 0 18 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M5 12.5C4.71667 12.5 4.479 12.404 4.287 12.212C4.09567 12.0207 4 11.7833 4 11.5C4 11.2167 4.09567 10.979 4.287 10.787C4.479 10.5957 4.71667 10.5 5 10.5C5.28333 10.5 5.521 10.5957 5.713 10.787C5.90433 10.979 6 11.2167 6 11.5C6 11.7833 5.90433 12.0207 5.713 12.212C5.521 12.404 5.28333 12.5 5 12.5ZM9 12.5C8.71667 12.5 8.47933 12.404 8.288 12.212C8.096 12.0207 8 11.7833 8 11.5C8 11.2167 8.096 10.979 8.288 10.787C8.47933 10.5957 8.71667 10.5 9 10.5C9.28333 10.5 9.521 10.5957 9.713 10.787C9.90433 10.979 10 11.2167 10 11.5C10 11.7833 9.90433 12.0207 9.713 12.212C9.521 12.404 9.28333 12.5 9 12.5ZM13 12.5C12.7167 12.5 12.4793 12.404 12.288 12.212C12.096 12.0207 12 11.7833 12 11.5C12 11.2167 12.096 10.979 12.288 10.787C12.4793 10.5957 12.7167 10.5 13 10.5C13.2833 10.5 13.5207 10.5957 13.712 10.787C13.904 10.979 14 11.2167 14 11.5C14 11.7833 13.904 12.0207 13.712 12.212C13.5207 12.404 13.2833 12.5 13 12.5ZM2 20.5C1.45 20.5 0.979 20.3043 0.587 19.913C0.195667 19.521 0 19.05 0 18.5V4.5C0 3.95 0.195667 3.47933 0.587 3.088C0.979 2.696 1.45 2.5 2 2.5H3V0.5H5V2.5H13V0.5H15V2.5H16C16.55 2.5 17.021 2.696 17.413 3.088C17.8043 3.47933 18 3.95 18 4.5V18.5C18 19.05 17.8043 19.521 17.413 19.913C17.021 20.3043 16.55 20.5 16 20.5H2ZM2 18.5H16V8.5H2V18.5Z\" fill=\"#858585\"/>
</svg>
";
// line 92
echo 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, 92), "j"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 92, $this->source); })())), "html", null, true);
echo ", ";
echo 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, 92), "Y"), "html", null, true);
echo "
</div>
<h3>
<a href=\"";
// line 95
echo 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, 95)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 95)]), "html", null, true);
echo "\">
";
// line 96
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "translations", [], "any", false, false, false, 96), "fr_FR", [], "array", false, false, false, 96), "title", [], "any", false, false, false, 96), "html", null, true);
echo "
</a>
</h3>
</div>
</div>
</div>
";
}
// line 103
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
echo " </div>
</div>
";
} else {
// line 108
echo " ";
echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 108, $context, $this->getSourceContext());
echo "
";
}
// line 110
echo " <div class=\"ui stackable two column grid\" id=\"last-item-article-responsive\">
";
// line 111
if (twig_get_attribute($this->env, $this->source, ($context["resources"] ?? null), 1, [], "array", true, true, false, 111)) {
// line 112
echo " <div class=\"item\">
<div class=\"content\">
<a class=\"header\" href=\"";
// line 114
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 114, $this->source); })()), 1, [], "array", false, false, false, 114), "slug", [], "any", false, false, false, 114)]), "html", null, true);
echo "\">
";
// line 115
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 115, $this->source); })()), 1, [], "array", false, false, false, 115), "images", [], "any", false, false, false, 115)) > 0)) {
// line 116
echo " <div class=\"image\">
<img src=\"";
// line 117
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 117, $this->source); })()), 1, [], "array", false, false, false, 117), "images", [], "any", false, false, false, 117), 0, [], "array", false, false, false, 117), "path", [], "any", false, false, false, 117), ((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.', 117, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
</div>
";
}
// line 120
echo " </a>
<div class=\"description\">
";
// line 122
$context["month"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 122, $this->source); })()), 1, [], "array", false, false, false, 122), "createdAt", [], "any", false, false, false, 122), "F");
// line 123
echo " ";
$context["translation"] = ("sylius.ui." . (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 123, $this->source); })()));
// line 124
echo " <div class=\"desc-date\">
<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M7 15C6.64583 15 6.34875 14.88 6.10875 14.64C5.86958 14.4008 5.75 14.1042 5.75 13.75C5.75 13.3958 5.86958 13.0988 6.10875 12.8588C6.34875 12.6196 6.64583 12.5 7 12.5C7.35417 12.5 7.65125 12.6196 7.89125 12.8588C8.13042 13.0988 8.25 13.3958 8.25 13.75C8.25 14.1042 8.13042 14.4008 7.89125 14.64C7.65125 14.88 7.35417 15 7 15ZM12 15C11.6458 15 11.3492 14.88 11.11 14.64C10.87 14.4008 10.75 14.1042 10.75 13.75C10.75 13.3958 10.87 13.0988 11.11 12.8588C11.3492 12.6196 11.6458 12.5 12 12.5C12.3542 12.5 12.6513 12.6196 12.8913 12.8588C13.1304 13.0988 13.25 13.3958 13.25 13.75C13.25 14.1042 13.1304 14.4008 12.8913 14.64C12.6513 14.88 12.3542 15 12 15ZM17 15C16.6458 15 16.3492 14.88 16.11 14.64C15.87 14.4008 15.75 14.1042 15.75 13.75C15.75 13.3958 15.87 13.0988 16.11 12.8588C16.3492 12.6196 16.6458 12.5 17 12.5C17.3542 12.5 17.6508 12.6196 17.89 12.8588C18.13 13.0988 18.25 13.3958 18.25 13.75C18.25 14.1042 18.13 14.4008 17.89 14.64C17.6508 14.88 17.3542 15 17 15ZM3.25 25C2.5625 25 1.97375 24.7554 1.48375 24.2663C0.994583 23.7763 0.75 23.1875 0.75 22.5V5C0.75 4.3125 0.994583 3.72417 1.48375 3.235C1.97375 2.745 2.5625 2.5 3.25 2.5H4.5V0H7V2.5H17V0H19.5V2.5H20.75C21.4375 2.5 22.0263 2.745 22.5163 3.235C23.0054 3.72417 23.25 4.3125 23.25 5V22.5C23.25 23.1875 23.0054 23.7763 22.5163 24.2663C22.0263 24.7554 21.4375 25 20.75 25H3.25ZM3.25 22.5H20.75V10H3.25V22.5Z\" fill=\"#858585\"/>
</svg>
";
// line 128
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 128, $this->source); })()), 1, [], "array", false, false, false, 128), "createdAt", [], "any", false, false, false, 128), "j"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 128, $this->source); })())), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 128, $this->source); })()), 1, [], "array", false, false, false, 128), "createdAt", [], "any", false, false, false, 128), "Y"), "html", null, true);
echo "
<style>
.description .desc-date svg {
color: #E35E31;
}
</style>
</div>
<h3>
<a href=\"";
// line 136
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 136, $this->source); })()), 1, [], "array", false, false, false, 136), "slug", [], "any", false, false, false, 136)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 136, $this->source); })()), 1, [], "array", false, false, false, 136), "slug", [], "any", false, false, false, 136)]), "html", null, true);
echo "\">
";
// line 137
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 137, $this->source); })()), 1, [], "array", false, false, false, 137), "translations", [], "any", false, false, false, 137), "fr_FR", [], "array", false, false, false, 137), "title", [], "any", false, false, false, 137), "html", null, true);
echo "
</a>
</h3>
<p>
";
// line 141
if ((twig_length_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 141, $this->source); })()), 1, [], "array", false, false, false, 141), "content", [], "any", false, false, false, 141))) > 200)) {
// line 142
echo " ";
echo twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 142, $this->source); })()), 1, [], "array", false, false, false, 142), "content", [], "any", false, false, false, 142)), 0, 200);
echo "...
";
} else {
// line 144
echo " ";
echo twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 144, $this->source); })()), 1, [], "array", false, false, false, 144), "content", [], "any", false, false, false, 144));
echo "
";
}
// line 146
echo " </p>
</div>
</div>
</div>
";
}
// line 151
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["resources"] ?? null), 2, [], "array", true, true, false, 151)) {
// line 152
echo " <div class=\"item\">
<div class=\"content\">
<a class=\"header\" href=\"";
// line 154
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 154, $this->source); })()), 2, [], "array", false, false, false, 154), "slug", [], "any", false, false, false, 154)]), "html", null, true);
echo "\">
";
// line 155
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 155, $this->source); })()), 2, [], "array", false, false, false, 155), "images", [], "any", false, false, false, 155)) > 0)) {
// line 156
echo " <div class=\"image\">
<img src=\"";
// line 157
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 157, $this->source); })()), 2, [], "array", false, false, false, 157), "images", [], "any", false, false, false, 157), 0, [], "array", false, false, false, 157), "path", [], "any", false, false, false, 157), ((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.', 157, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
</div>
";
}
// line 160
echo " </a>
<div class=\"description\">
";
// line 162
$context["month"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 162, $this->source); })()), 2, [], "array", false, false, false, 162), "createdAt", [], "any", false, false, false, 162), "F");
// line 163
echo " ";
$context["translation"] = ("sylius.ui." . (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 163, $this->source); })()));
// line 164
echo " <div class=\"desc-date\">
<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M7 15C6.64583 15 6.34875 14.88 6.10875 14.64C5.86958 14.4008 5.75 14.1042 5.75 13.75C5.75 13.3958 5.86958 13.0988 6.10875 12.8588C6.34875 12.6196 6.64583 12.5 7 12.5C7.35417 12.5 7.65125 12.6196 7.89125 12.8588C8.13042 13.0988 8.25 13.3958 8.25 13.75C8.25 14.1042 8.13042 14.4008 7.89125 14.64C7.65125 14.88 7.35417 15 7 15ZM12 15C11.6458 15 11.3492 14.88 11.11 14.64C10.87 14.4008 10.75 14.1042 10.75 13.75C10.75 13.3958 10.87 13.0988 11.11 12.8588C11.3492 12.6196 11.6458 12.5 12 12.5C12.3542 12.5 12.6513 12.6196 12.8913 12.8588C13.1304 13.0988 13.25 13.3958 13.25 13.75C13.25 14.1042 13.1304 14.4008 12.8913 14.64C12.6513 14.88 12.3542 15 12 15ZM17 15C16.6458 15 16.3492 14.88 16.11 14.64C15.87 14.4008 15.75 14.1042 15.75 13.75C15.75 13.3958 15.87 13.0988 16.11 12.8588C16.3492 12.6196 16.6458 12.5 17 12.5C17.3542 12.5 17.6508 12.6196 17.89 12.8588C18.13 13.0988 18.25 13.3958 18.25 13.75C18.25 14.1042 18.13 14.4008 17.89 14.64C17.6508 14.88 17.3542 15 17 15ZM3.25 25C2.5625 25 1.97375 24.7554 1.48375 24.2663C0.994583 23.7763 0.75 23.1875 0.75 22.5V5C0.75 4.3125 0.994583 3.72417 1.48375 3.235C1.97375 2.745 2.5625 2.5 3.25 2.5H4.5V0H7V2.5H17V0H19.5V2.5H20.75C21.4375 2.5 22.0263 2.745 22.5163 3.235C23.0054 3.72417 23.25 4.3125 23.25 5V22.5C23.25 23.1875 23.0054 23.7763 22.5163 24.2663C22.0263 24.7554 21.4375 25 20.75 25H3.25ZM3.25 22.5H20.75V10H3.25V22.5Z\" fill=\"#858585\"/>
</svg>
";
// line 168
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 168, $this->source); })()), 2, [], "array", false, false, false, 168), "createdAt", [], "any", false, false, false, 168), "j"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 168, $this->source); })())), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 168, $this->source); })()), 2, [], "array", false, false, false, 168), "createdAt", [], "any", false, false, false, 168), "Y"), "html", null, true);
echo "
<style>
.description .desc-date svg {
color: #E35E31;
}
</style>
</div>
<h3>
<a href=\"";
// line 176
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 176, $this->source); })()), 2, [], "array", false, false, false, 176), "slug", [], "any", false, false, false, 176)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 176, $this->source); })()), 2, [], "array", false, false, false, 176), "slug", [], "any", false, false, false, 176)]), "html", null, true);
echo "\">
";
// line 177
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 177, $this->source); })()), 2, [], "array", false, false, false, 177), "translations", [], "any", false, false, false, 177), "fr_FR", [], "array", false, false, false, 177), "title", [], "any", false, false, false, 177), "html", null, true);
echo "
</a>
</h3>
<p>
";
// line 181
if ((twig_length_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 181, $this->source); })()), 2, [], "array", false, false, false, 181), "content", [], "any", false, false, false, 181))) > 200)) {
// line 182
echo " ";
echo twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 182, $this->source); })()), 2, [], "array", false, false, false, 182), "content", [], "any", false, false, false, 182)), 0, 200);
echo "...
";
} else {
// line 184
echo " ";
echo twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 184, $this->source); })()), 2, [], "array", false, false, false, 184), "content", [], "any", false, false, false, 184));
echo "
";
}
// line 186
echo " </p>
</div>
</div>
</div>
";
}
// line 191
echo " </div>
<div class=\"sixteen wide mobile four wide computer column\" id=\"last-item-article-destock\">
";
// line 193
if ((twig_length_filter($this->env, (isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 193, $this->source); })())) > 0)) {
// line 194
echo " <div class=\"latest-items\">
";
// line 195
$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.', 195, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 196
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 196) > 5)) {
// line 197
echo " <div class=\"item\">
<div class=\"content\">
<a class=\"header\" href=\"";
// line 199
echo 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, 199)]), "html", null, true);
echo "\">
";
// line 200
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "images", [], "any", false, false, false, 200)) > 0)) {
// line 201
echo " <div class=\"image\">
<img src=\"";
// line 202
echo 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, 202), 0, [], "array", false, false, false, 202), "path", [], "any", false, false, false, 202), ((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.', 202, $this->source); })()), "sylius_large")) : ("sylius_large"))), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " alt=\"\" class=\"ui bordered image\" />
</div>
";
}
// line 205
echo " </a>
<div class=\"description\">
";
// line 207
$context["month"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 207), "F");
// line 208
echo " ";
$context["translation"] = ("sylius.ui." . (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 208, $this->source); })()));
// line 209
echo " <div class=\"desc-date\">
<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M7 15C6.64583 15 6.34875 14.88 6.10875 14.64C5.86958 14.4008 5.75 14.1042 5.75 13.75C5.75 13.3958 5.86958 13.0988 6.10875 12.8588C6.34875 12.6196 6.64583 12.5 7 12.5C7.35417 12.5 7.65125 12.6196 7.89125 12.8588C8.13042 13.0988 8.25 13.3958 8.25 13.75C8.25 14.1042 8.13042 14.4008 7.89125 14.64C7.65125 14.88 7.35417 15 7 15ZM12 15C11.6458 15 11.3492 14.88 11.11 14.64C10.87 14.4008 10.75 14.1042 10.75 13.75C10.75 13.3958 10.87 13.0988 11.11 12.8588C11.3492 12.6196 11.6458 12.5 12 12.5C12.3542 12.5 12.6513 12.6196 12.8913 12.8588C13.1304 13.0988 13.25 13.3958 13.25 13.75C13.25 14.1042 13.1304 14.4008 12.8913 14.64C12.6513 14.88 12.3542 15 12 15ZM17 15C16.6458 15 16.3492 14.88 16.11 14.64C15.87 14.4008 15.75 14.1042 15.75 13.75C15.75 13.3958 15.87 13.0988 16.11 12.8588C16.3492 12.6196 16.6458 12.5 17 12.5C17.3542 12.5 17.6508 12.6196 17.89 12.8588C18.13 13.0988 18.25 13.3958 18.25 13.75C18.25 14.1042 18.13 14.4008 17.89 14.64C17.6508 14.88 17.3542 15 17 15ZM3.25 25C2.5625 25 1.97375 24.7554 1.48375 24.2663C0.994583 23.7763 0.75 23.1875 0.75 22.5V5C0.75 4.3125 0.994583 3.72417 1.48375 3.235C1.97375 2.745 2.5625 2.5 3.25 2.5H4.5V0H7V2.5H17V0H19.5V2.5H20.75C21.4375 2.5 22.0263 2.745 22.5163 3.235C23.0054 3.72417 23.25 4.3125 23.25 5V22.5C23.25 23.1875 23.0054 23.7763 22.5163 24.2663C22.0263 24.7554 21.4375 25 20.75 25H3.25ZM3.25 22.5H20.75V10H3.25V22.5Z\" fill=\"#858585\"/>
</svg>
";
// line 213
echo 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, 213), "j"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 213, $this->source); })())), "html", null, true);
echo ", ";
echo 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, 213), "Y"), "html", null, true);
echo "
<style>
.description .desc-date svg {
color: #E35E31;
}
</style>
</div>
<h3>
<a href=\"";
// line 221
echo 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, 221)]), "html", null, true);
echo "\" data-disqus-identifier=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 221)]), "html", null, true);
echo "\">
";
// line 222
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "translations", [], "any", false, false, false, 222), "fr_FR", [], "array", false, false, false, 222), "title", [], "any", false, false, false, 222), "html", null, true);
echo "
</a>
</h3>
<p>
";
// line 226
if ((twig_length_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 226))) > 200)) {
// line 227
echo " ";
echo twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 227)), 0, 200);
echo "...
";
} else {
// line 229
echo " ";
echo twig_striptags(twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 229));
echo "
";
}
// line 231
echo " </p>
</div>
</div>
</div>
";
}
// line 236
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 237
echo " </div>
";
}
// line 239
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 244
public function block_blog_disqus($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", "blog_disqus"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blog_disqus"));
// line 245
echo " ";
$this->loadTemplate("@OdiseoSyliusBlogPlugin/Shop/Article/_disqus.html.twig", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", 245)->display($context);
// line 246
echo " ";
$__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 ( 812 => 246, 809 => 245, 799 => 244, 787 => 239, 783 => 237, 769 => 236, 762 => 231, 756 => 229, 750 => 227, 748 => 226, 741 => 222, 735 => 221, 720 => 213, 714 => 209, 711 => 208, 709 => 207, 705 => 205, 697 => 202, 694 => 201, 692 => 200, 688 => 199, 684 => 197, 681 => 196, 664 => 195, 661 => 194, 659 => 193, 655 => 191, 648 => 186, 642 => 184, 636 => 182, 634 => 181, 627 => 177, 621 => 176, 606 => 168, 600 => 164, 597 => 163, 595 => 162, 591 => 160, 583 => 157, 580 => 156, 578 => 155, 574 => 154, 570 => 152, 567 => 151, 560 => 146, 554 => 144, 548 => 142, 546 => 141, 539 => 137, 533 => 136, 518 => 128, 512 => 124, 509 => 123, 507 => 122, 503 => 120, 495 => 117, 492 => 116, 490 => 115, 486 => 114, 482 => 112, 480 => 111, 477 => 110, 471 => 108, 466 => 105, 451 => 103, 441 => 96, 435 => 95, 425 => 92, 418 => 87, 414 => 85, 406 => 82, 403 => 81, 401 => 80, 396 => 79, 392 => 77, 384 => 74, 381 => 73, 379 => 72, 372 => 71, 370 => 70, 366 => 68, 363 => 67, 360 => 66, 357 => 65, 340 => 64, 336 => 62, 322 => 61, 315 => 56, 309 => 54, 303 => 52, 301 => 51, 294 => 47, 288 => 46, 278 => 43, 271 => 38, 267 => 36, 259 => 33, 256 => 32, 254 => 31, 249 => 30, 245 => 28, 241 => 26, 235 => 24, 232 => 23, 230 => 22, 223 => 21, 221 => 20, 217 => 18, 214 => 17, 211 => 16, 209 => 15, 206 => 14, 189 => 13, 185 => 11, 182 => 10, 172 => 9, 92 => 248, 89 => 247, 86 => 244, 84 => 243, 81 => 242, 79 => 9, 75 => 7, 65 => 6, 54 => 4, 52 => 2, 50 => 1, 37 => 4,);
}
public function getSourceContext()
{
return new Source("{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
{% import '@SyliusUi/Macro/messages.html.twig' as messages %}
{% extends '@SyliusShop/layout.html.twig' %}
{% block content %}
<div class=\"container-blog\">
<div class=\"container-h\">
{% block blog_articles %}
{% if resources|length > 0 %}
<div class=\"container-blog-article\">
<div class=\"column-left-article\">
{% for article in resources %}
{% set month = article.createdAt|date('F') %}
{% set translation = 'sylius.ui.' ~ month %}
{% if loop.first %}
<div class=\"first-article\">
<div class=\"item\">
{% if disqus_shortname() %}
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{% if article.images|length > 0 %}
<div class=\"image\">
<img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
{# <img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_small')) }}\" alt=\"{{ article.images[0].path }}\">#}
</div>
{% endif %}
</a>
{% else %}
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{% if article.images|length > 0 %}
<div class=\"image\">
<img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
</div>
{% endif %}
</a>
{% endif %}
<div class=\"description\">
<div class=\"desc-date\">
<svg width=\"18\" height=\"21\" viewBox=\"0 0 18 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M5 12.5C4.71667 12.5 4.479 12.404 4.287 12.212C4.09567 12.0207 4 11.7833 4 11.5C4 11.2167 4.09567 10.979 4.287 10.787C4.479 10.5957 4.71667 10.5 5 10.5C5.28333 10.5 5.521 10.5957 5.713 10.787C5.90433 10.979 6 11.2167 6 11.5C6 11.7833 5.90433 12.0207 5.713 12.212C5.521 12.404 5.28333 12.5 5 12.5ZM9 12.5C8.71667 12.5 8.47933 12.404 8.288 12.212C8.096 12.0207 8 11.7833 8 11.5C8 11.2167 8.096 10.979 8.288 10.787C8.47933 10.5957 8.71667 10.5 9 10.5C9.28333 10.5 9.521 10.5957 9.713 10.787C9.90433 10.979 10 11.2167 10 11.5C10 11.7833 9.90433 12.0207 9.713 12.212C9.521 12.404 9.28333 12.5 9 12.5ZM13 12.5C12.7167 12.5 12.4793 12.404 12.288 12.212C12.096 12.0207 12 11.7833 12 11.5C12 11.2167 12.096 10.979 12.288 10.787C12.4793 10.5957 12.7167 10.5 13 10.5C13.2833 10.5 13.5207 10.5957 13.712 10.787C13.904 10.979 14 11.2167 14 11.5C14 11.7833 13.904 12.0207 13.712 12.212C13.5207 12.404 13.2833 12.5 13 12.5ZM2 20.5C1.45 20.5 0.979 20.3043 0.587 19.913C0.195667 19.521 0 19.05 0 18.5V4.5C0 3.95 0.195667 3.47933 0.587 3.088C0.979 2.696 1.45 2.5 2 2.5H3V0.5H5V2.5H13V0.5H15V2.5H16C16.55 2.5 17.021 2.696 17.413 3.088C17.8043 3.47933 18 3.95 18 4.5V18.5C18 19.05 17.8043 19.521 17.413 19.913C17.021 20.3043 16.55 20.5 16 20.5H2ZM2 18.5H16V8.5H2V18.5Z\" fill=\"#858585\"/>
</svg>
{{ article.createdAt|date('j') }} {{ translation|trans }}, {{ article.createdAt|date('Y') }}
</div>
<h3>
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{{article.translations['fr_FR'].title}}
</a>
</h3>
<p>
{% if article.content|striptags|length > 200 %}
{{ article.content|striptags|slice(0, 200)|raw }}...
{% else %}
{{ article.content|striptags|raw }}
{% endif %}
</p>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"column-right-article\">
{% for article in resources %}
{% set month = article.createdAt|date('F') %}
{% set translation = 'sylius.ui.' ~ month %}
{% if loop.index <= 5 and loop.index0 != 0 %}
<div class=\"other-article\">
<div class=\"item\">
{% if disqus_shortname() %}
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{% if article.images|length > 0 %}
<div class=\"image\">
<img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
</div>
{% endif %}
</a>
{% else %}
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{% if article.images|length > 0 %}
<div class=\"image\">
<img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
</div>
{% endif %}
</a>
{% endif %}
<div class=\"description\">
<div class=\"desc-date\">
<svg width=\"18\" height=\"21\" viewBox=\"0 0 18 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M5 12.5C4.71667 12.5 4.479 12.404 4.287 12.212C4.09567 12.0207 4 11.7833 4 11.5C4 11.2167 4.09567 10.979 4.287 10.787C4.479 10.5957 4.71667 10.5 5 10.5C5.28333 10.5 5.521 10.5957 5.713 10.787C5.90433 10.979 6 11.2167 6 11.5C6 11.7833 5.90433 12.0207 5.713 12.212C5.521 12.404 5.28333 12.5 5 12.5ZM9 12.5C8.71667 12.5 8.47933 12.404 8.288 12.212C8.096 12.0207 8 11.7833 8 11.5C8 11.2167 8.096 10.979 8.288 10.787C8.47933 10.5957 8.71667 10.5 9 10.5C9.28333 10.5 9.521 10.5957 9.713 10.787C9.90433 10.979 10 11.2167 10 11.5C10 11.7833 9.90433 12.0207 9.713 12.212C9.521 12.404 9.28333 12.5 9 12.5ZM13 12.5C12.7167 12.5 12.4793 12.404 12.288 12.212C12.096 12.0207 12 11.7833 12 11.5C12 11.2167 12.096 10.979 12.288 10.787C12.4793 10.5957 12.7167 10.5 13 10.5C13.2833 10.5 13.5207 10.5957 13.712 10.787C13.904 10.979 14 11.2167 14 11.5C14 11.7833 13.904 12.0207 13.712 12.212C13.5207 12.404 13.2833 12.5 13 12.5ZM2 20.5C1.45 20.5 0.979 20.3043 0.587 19.913C0.195667 19.521 0 19.05 0 18.5V4.5C0 3.95 0.195667 3.47933 0.587 3.088C0.979 2.696 1.45 2.5 2 2.5H3V0.5H5V2.5H13V0.5H15V2.5H16C16.55 2.5 17.021 2.696 17.413 3.088C17.8043 3.47933 18 3.95 18 4.5V18.5C18 19.05 17.8043 19.521 17.413 19.913C17.021 20.3043 16.55 20.5 16 20.5H2ZM2 18.5H16V8.5H2V18.5Z\" fill=\"#858585\"/>
</svg>
{{ article.createdAt|date('j') }} {{ translation|trans }}, {{ article.createdAt|date('Y') }}
</div>
<h3>
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{{ article.translations['fr_FR'].title }}
</a>
</h3>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% else %}
{{ messages.info('sylius.ui.no_results_to_display') }}
{% endif %}
<div class=\"ui stackable two column grid\" id=\"last-item-article-responsive\">
{% if resources[1] is defined %}
<div class=\"item\">
<div class=\"content\">
<a class=\"header\" href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : resources[1].slug}) }}\">
{% if resources[1].images|length > 0 %}
<div class=\"image\">
<img src=\"{{ resources[1].images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
</div>
{% endif %}
</a>
<div class=\"description\">
{% set month = resources[1].createdAt|date('F') %}
{% set translation = 'sylius.ui.' ~ month %}
<div class=\"desc-date\">
<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M7 15C6.64583 15 6.34875 14.88 6.10875 14.64C5.86958 14.4008 5.75 14.1042 5.75 13.75C5.75 13.3958 5.86958 13.0988 6.10875 12.8588C6.34875 12.6196 6.64583 12.5 7 12.5C7.35417 12.5 7.65125 12.6196 7.89125 12.8588C8.13042 13.0988 8.25 13.3958 8.25 13.75C8.25 14.1042 8.13042 14.4008 7.89125 14.64C7.65125 14.88 7.35417 15 7 15ZM12 15C11.6458 15 11.3492 14.88 11.11 14.64C10.87 14.4008 10.75 14.1042 10.75 13.75C10.75 13.3958 10.87 13.0988 11.11 12.8588C11.3492 12.6196 11.6458 12.5 12 12.5C12.3542 12.5 12.6513 12.6196 12.8913 12.8588C13.1304 13.0988 13.25 13.3958 13.25 13.75C13.25 14.1042 13.1304 14.4008 12.8913 14.64C12.6513 14.88 12.3542 15 12 15ZM17 15C16.6458 15 16.3492 14.88 16.11 14.64C15.87 14.4008 15.75 14.1042 15.75 13.75C15.75 13.3958 15.87 13.0988 16.11 12.8588C16.3492 12.6196 16.6458 12.5 17 12.5C17.3542 12.5 17.6508 12.6196 17.89 12.8588C18.13 13.0988 18.25 13.3958 18.25 13.75C18.25 14.1042 18.13 14.4008 17.89 14.64C17.6508 14.88 17.3542 15 17 15ZM3.25 25C2.5625 25 1.97375 24.7554 1.48375 24.2663C0.994583 23.7763 0.75 23.1875 0.75 22.5V5C0.75 4.3125 0.994583 3.72417 1.48375 3.235C1.97375 2.745 2.5625 2.5 3.25 2.5H4.5V0H7V2.5H17V0H19.5V2.5H20.75C21.4375 2.5 22.0263 2.745 22.5163 3.235C23.0054 3.72417 23.25 4.3125 23.25 5V22.5C23.25 23.1875 23.0054 23.7763 22.5163 24.2663C22.0263 24.7554 21.4375 25 20.75 25H3.25ZM3.25 22.5H20.75V10H3.25V22.5Z\" fill=\"#858585\"/>
</svg>
{{ resources[1].createdAt|date('j') }} {{ translation|trans }}, {{ resources[1].createdAt|date('Y') }}
<style>
.description .desc-date svg {
color: #E35E31;
}
</style>
</div>
<h3>
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : resources[1].slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : resources[1].slug}) }}\">
{{ resources[1].translations['fr_FR'].title }}
</a>
</h3>
<p>
{% if resources[1].content|striptags|length > 200 %}
{{ resources[1].content|striptags|slice(0, 200)|raw }}...
{% else %}
{{ resources[1].content|striptags|raw }}
{% endif %}
</p>
</div>
</div>
</div>
{% endif %}
{% if resources[2] is defined %}
<div class=\"item\">
<div class=\"content\">
<a class=\"header\" href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : resources[2].slug}) }}\">
{% if resources[2].images|length > 0 %}
<div class=\"image\">
<img src=\"{{ resources[2].images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
</div>
{% endif %}
</a>
<div class=\"description\">
{% set month = resources[2].createdAt|date('F') %}
{% set translation = 'sylius.ui.' ~ month %}
<div class=\"desc-date\">
<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M7 15C6.64583 15 6.34875 14.88 6.10875 14.64C5.86958 14.4008 5.75 14.1042 5.75 13.75C5.75 13.3958 5.86958 13.0988 6.10875 12.8588C6.34875 12.6196 6.64583 12.5 7 12.5C7.35417 12.5 7.65125 12.6196 7.89125 12.8588C8.13042 13.0988 8.25 13.3958 8.25 13.75C8.25 14.1042 8.13042 14.4008 7.89125 14.64C7.65125 14.88 7.35417 15 7 15ZM12 15C11.6458 15 11.3492 14.88 11.11 14.64C10.87 14.4008 10.75 14.1042 10.75 13.75C10.75 13.3958 10.87 13.0988 11.11 12.8588C11.3492 12.6196 11.6458 12.5 12 12.5C12.3542 12.5 12.6513 12.6196 12.8913 12.8588C13.1304 13.0988 13.25 13.3958 13.25 13.75C13.25 14.1042 13.1304 14.4008 12.8913 14.64C12.6513 14.88 12.3542 15 12 15ZM17 15C16.6458 15 16.3492 14.88 16.11 14.64C15.87 14.4008 15.75 14.1042 15.75 13.75C15.75 13.3958 15.87 13.0988 16.11 12.8588C16.3492 12.6196 16.6458 12.5 17 12.5C17.3542 12.5 17.6508 12.6196 17.89 12.8588C18.13 13.0988 18.25 13.3958 18.25 13.75C18.25 14.1042 18.13 14.4008 17.89 14.64C17.6508 14.88 17.3542 15 17 15ZM3.25 25C2.5625 25 1.97375 24.7554 1.48375 24.2663C0.994583 23.7763 0.75 23.1875 0.75 22.5V5C0.75 4.3125 0.994583 3.72417 1.48375 3.235C1.97375 2.745 2.5625 2.5 3.25 2.5H4.5V0H7V2.5H17V0H19.5V2.5H20.75C21.4375 2.5 22.0263 2.745 22.5163 3.235C23.0054 3.72417 23.25 4.3125 23.25 5V22.5C23.25 23.1875 23.0054 23.7763 22.5163 24.2663C22.0263 24.7554 21.4375 25 20.75 25H3.25ZM3.25 22.5H20.75V10H3.25V22.5Z\" fill=\"#858585\"/>
</svg>
{{ resources[2].createdAt|date('j') }} {{ translation|trans }}, {{ resources[2].createdAt|date('Y') }}
<style>
.description .desc-date svg {
color: #E35E31;
}
</style>
</div>
<h3>
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : resources[2].slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : resources[2].slug}) }}\">
{{ resources[2].translations['fr_FR'].title }}
</a>
</h3>
<p>
{% if resources[2].content|striptags|length > 200 %}
{{ resources[2].content|striptags|slice(0, 200)|raw }}...
{% else %}
{{ resources[2].content|striptags|raw }}
{% endif %}
</p>
</div>
</div>
</div>
{% endif %}
</div>
<div class=\"sixteen wide mobile four wide computer column\" id=\"last-item-article-destock\">
{% if resources|length > 0 %}
<div class=\"latest-items\">
{% for article in resources %}
{% if loop.index > 5 %}
<div class=\"item\">
<div class=\"content\">
<a class=\"header\" href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{% if article.images|length > 0 %}
<div class=\"image\">
<img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}\" {{ sylius_test_html_attribute('main-image') }} alt=\"\" class=\"ui bordered image\" />
</div>
{% endif %}
</a>
<div class=\"description\">
{% set month = article.createdAt|date('F') %}
{% set translation = 'sylius.ui.' ~ month %}
<div class=\"desc-date\">
<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path d=\"M7 15C6.64583 15 6.34875 14.88 6.10875 14.64C5.86958 14.4008 5.75 14.1042 5.75 13.75C5.75 13.3958 5.86958 13.0988 6.10875 12.8588C6.34875 12.6196 6.64583 12.5 7 12.5C7.35417 12.5 7.65125 12.6196 7.89125 12.8588C8.13042 13.0988 8.25 13.3958 8.25 13.75C8.25 14.1042 8.13042 14.4008 7.89125 14.64C7.65125 14.88 7.35417 15 7 15ZM12 15C11.6458 15 11.3492 14.88 11.11 14.64C10.87 14.4008 10.75 14.1042 10.75 13.75C10.75 13.3958 10.87 13.0988 11.11 12.8588C11.3492 12.6196 11.6458 12.5 12 12.5C12.3542 12.5 12.6513 12.6196 12.8913 12.8588C13.1304 13.0988 13.25 13.3958 13.25 13.75C13.25 14.1042 13.1304 14.4008 12.8913 14.64C12.6513 14.88 12.3542 15 12 15ZM17 15C16.6458 15 16.3492 14.88 16.11 14.64C15.87 14.4008 15.75 14.1042 15.75 13.75C15.75 13.3958 15.87 13.0988 16.11 12.8588C16.3492 12.6196 16.6458 12.5 17 12.5C17.3542 12.5 17.6508 12.6196 17.89 12.8588C18.13 13.0988 18.25 13.3958 18.25 13.75C18.25 14.1042 18.13 14.4008 17.89 14.64C17.6508 14.88 17.3542 15 17 15ZM3.25 25C2.5625 25 1.97375 24.7554 1.48375 24.2663C0.994583 23.7763 0.75 23.1875 0.75 22.5V5C0.75 4.3125 0.994583 3.72417 1.48375 3.235C1.97375 2.745 2.5625 2.5 3.25 2.5H4.5V0H7V2.5H17V0H19.5V2.5H20.75C21.4375 2.5 22.0263 2.745 22.5163 3.235C23.0054 3.72417 23.25 4.3125 23.25 5V22.5C23.25 23.1875 23.0054 23.7763 22.5163 24.2663C22.0263 24.7554 21.4375 25 20.75 25H3.25ZM3.25 22.5H20.75V10H3.25V22.5Z\" fill=\"#858585\"/>
</svg>
{{ article.createdAt|date('j') }} {{ translation|trans }}, {{ article.createdAt|date('Y') }}
<style>
.description .desc-date svg {
color: #E35E31;
}
</style>
</div>
<h3>
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" data-disqus-identifier=\"{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\">
{{ article.translations['fr_FR'].title }}
</a>
</h3>
<p>
{% if article.content|striptags|length > 200 %}
{{ article.content|striptags|slice(0, 200)|raw }}...
{% else %}
{{ article.content|striptags|raw }}
{% endif %}
</p>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% if disqus_shortname() %}
{% block blog_disqus %}
{% include '@OdiseoSyliusBlogPlugin/Shop/Article/_disqus.html.twig' %}
{% endblock %}
{% endif %}
</div>
<style>
/*.desc-date{*/
/* display: inline-flex;*/
/* gap: 1rem;*/
/* align-items: flex-end;*/
/*}*/
/*!*#main-container{*!*/
/*!* margin-top: 7.5rem ;*!*/
/*!*}*!*/
/*.container-blog-article{*/
/* display: grid;*/
/* grid-template-columns: 1fr 1fr;*/
/* gap: 2rem;*/
/* padding-bottom: 4rem;*/
/*}*/
/*.container-blog{*/
/* padding-top: 2rem;*/
/*}*/
/*.description > *{*/
/* margin-top: 1rem !important;*/
/*}*/
/*.description h3 {*/
/* margin: 0;*/
/* font-size: 1.75rem;*/
/*}*/
/*.description h3 a {*/
/* color: #000;*/
/*}*/
/*.first-article .image{*/
/* width: 100%;*/
/* height: auto;*/
/*}*/
/*.column-left-article{*/
/*!* first column*!*/
/* grid-column: span 1;*/
/*}*/
/*.column-right-article{*/
/* display: flex;*/
/* flex-direction: column;*/
/* !*gap: 1rem;*!*/
/*}*/
/*.column-right-article .other-article:first-of-type .item{*/
/* padding: 0 0 0.5rem 0 ;*/
/*}*/
/*.column-right-article .other-article:last-of-type .item{*/
/* padding: 0.5rem 0 0 0 ;*/
/* border: 0;*/
/*}*/
/*.other-article .item{*/
/* display: flex;*/
/* flex-direction: row-reverse;*/
/* align-items: center;*/
/* justify-content: space-between;*/
/* gap: 2rem;*/
/* padding: 0.5rem 0;*/
/* border-bottom: 1px solid #D9D9D9;*/
/*}*/
/*.other-article .item .image img{*/
/* width: 200px !important;*/
/* max-width: none !important;*/
/* height: auto;*/
/*}*/
/*.other-article .description{*/
/* width: 100%;*/
/*}*/
</style>
{% endblock %}
", "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig", "/var/www/Bikers/templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig");
}
}