<?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;
/* default/newslist.html.twig */
class __TwigTemplate_509d05436920ca27e19f507159966a9b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 3
return $this->loadTemplate((isset($context["_layout"]) || array_key_exists("_layout", $context) ? $context["_layout"] : (function () { throw new RuntimeError('Variable "_layout" does not exist.', 3, $this->source); })()), "default/newslist.html.twig", 3);
}
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", "default/newslist.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/newslist.html.twig"));
// line 1
$context["clubPage"] = $this->env->getFunction('is_clubsite')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })()), 1, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 1, $this->source); })()), 1, $this->source));
// line 2
$context["_layout"] = (((isset($context["clubPage"]) || array_key_exists("clubPage", $context) ? $context["clubPage"] : (function () { throw new RuntimeError('Variable "clubPage" does not exist.', 2, $this->source); })())) ? ("seikoclub/layout.html.twig") : ("@CoreShopFrontend/layout.html.twig"));
// line 3
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
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 6
echo " <div class=\"container\">
<div class=\"row news-row d-flex justify-content-between\">
<div class=\"select-wrapper\">
<label id=\"selectLabel\" for=\"selectSelect\">
<img src=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/frontend/images/filter.svg"), "html", null, true);
echo "\" alt=\"\">
</label>
<select class=\"styled-select form-control site-reload\" id=\"selectSelect\" name=\"tag-filter\">
<option value=\"\">";
// line 13
if ((null === (isset($context["selectedTag"]) || array_key_exists("selectedTag", $context) ? $context["selectedTag"] : (function () { throw new RuntimeError('Variable "selectedTag" does not exist.', 13, $this->source); })()))) {
echo "Címke";
} else {
echo "Címke törlése";
}
echo "</option>
";
// line 14
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tagList"]) || array_key_exists("tagList", $context) ? $context["tagList"] : (function () { throw new RuntimeError('Variable "tagList" does not exist.', 14, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 15
echo " <option
value=\"";
// line 16
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["tag"], "getName", [], "method", false, false, true, 16), 16, $this->source), "html", null, true);
echo "\"";
if (( !(null === (isset($context["selectedTag"]) || array_key_exists("selectedTag", $context) ? $context["selectedTag"] : (function () { throw new RuntimeError('Variable "selectedTag" does not exist.', 16, $this->source); })())) && (twig_get_attribute($this->env, $this->source, (isset($context["selectedTag"]) || array_key_exists("selectedTag", $context) ? $context["selectedTag"] : (function () { throw new RuntimeError('Variable "selectedTag" does not exist.', 16, $this->source); })()), "getId", [], "method", false, false, true, 16) == twig_get_attribute($this->env, $this->source, $context["tag"], "getId", [], "method", false, false, true, 16)))) {
echo " selected=\"selected\"";
}
echo ">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["tag"], "getName", [], "method", false, false, true, 16), 16, $this->source), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " </select>
</div>
<div class=\"tag-buttons btn-group\">
<a class=\"btn btn-primary";
// line 21
if ((null === (isset($context["selectedCategory"]) || array_key_exists("selectedCategory", $context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.', 21, $this->source); })()))) {
echo " tag-button-active ";
}
echo "\"
href=\"";
// line 22
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 22, $this->source); })()), "getFullPath", [], "method", false, false, true, 22), 22, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Aktualitások"), "html", null, true);
echo "</a>
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categoryList"]) || array_key_exists("categoryList", $context) ? $context["categoryList"] : (function () { throw new RuntimeError('Variable "categoryList" does not exist.', 23, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 24
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["category"], "hidden", [], "any", false, false, true, 24)) {
// line 25
echo " <a class=\"btn btn-primary";
if (($context["category"] == (isset($context["selectedCategory"]) || array_key_exists("selectedCategory", $context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.', 25, $this->source); })()))) {
echo " tag-button-active ";
}
echo "\"
href=\"";
// line 26
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["object" => $context["category"]], null, true), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 26), 26, $this->source)), "html", null, true);
echo "
</a>
";
}
// line 29
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo " </div>
<div class=\"d-flex justify-content-between align-items-center\" id=\"newsSelect\">
<div class=\"select-wrapper date-select\">
<label id=\"selectLabel\">
<img src=\"";
// line 34
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/themes/frontend/images/up-arrow.png"), "html", null, true);
echo "\" alt=\"\">
</label>
<select name=\"order\" class=\"styled-select form-control site-reload\" id=\"selectSelect\">
<option ";
// line 37
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 37, $this->source); })()) == "asc")) {
echo " selected=\"selected\" ";
}
echo " value=\"asc\">Növekvő</option>
<option ";
// line 38
if (((isset($context["order"]) || array_key_exists("order", $context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.', 38, $this->source); })()) == "desc")) {
echo " selected=\"selected\" ";
}
echo " value=\"desc\">Csökkenő</option>
</select>
</div>
<div class=\"d-flex justify-content-end align-items-center\" id=\"select-outside-wrapper\">
<select id=\"mySelect\" class=\"styled-select form-control site-reload\" name=\"perPage\">
<option value=\"\">";
// line 43
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["perPage"]) || array_key_exists("perPage", $context) ? $context["perPage"] : (function () { throw new RuntimeError('Variable "perPage" does not exist.', 43, $this->source); })()), 43, $this->source), "html", null, true);
echo " Bejegyzés / oldal</option>
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["perPageAllowed"]) || array_key_exists("perPageAllowed", $context) ? $context["perPageAllowed"] : (function () { throw new RuntimeError('Variable "perPageAllowed" does not exist.', 44, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["number"]) {
// line 45
echo " <option value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["number"], 45, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["number"], 45, $this->source), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['number'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo " </select>
</div>
</div>
<div class=\"tag-buttons-mobile btn-group\">
<a class=\"col-12 col-sm-3 col-xs-6 btn btn-primary";
// line 51
if ((null === (isset($context["selectedCategory"]) || array_key_exists("selectedCategory", $context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.', 51, $this->source); })()))) {
echo " tag-button-active ";
}
echo "\"
href=\"";
// line 52
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 52, $this->source); })()), "getFullPath", [], "method", false, false, true, 52), 52, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Aktualitások"), "html", null, true);
echo "</a>
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categoryList"]) || array_key_exists("categoryList", $context) ? $context["categoryList"] : (function () { throw new RuntimeError('Variable "categoryList" does not exist.', 53, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 54
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["category"], "hidden", [], "any", false, false, true, 54)) {
// line 55
echo " <a class=\"col-12 col-sm-3 col-xs-6 btn btn-primary";
if (($context["category"] == (isset($context["selectedCategory"]) || array_key_exists("selectedCategory", $context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.', 55, $this->source); })()))) {
echo " active";
}
echo "\"
href=\"";
// line 56
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["object" => $context["category"]], null, true), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 56), 56, $this->source)), "html", null, true);
echo "
</a>
";
}
// line 59
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo " </div>
</div>
</div>
<div class=\"container product-container\">
<div class=\"row d-flex\">
";
// line 65
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 65, $this->source); })()), "items", [], "any", false, false, true, 65));
foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
// line 66
echo " ";
$this->loadTemplate("default/newslistitem.html.twig", "default/newslist.html.twig", 66)->display(twig_to_array(["news" => $context["news"]]));
// line 67
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['news'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
echo " </div>
<div class=\"col-12 pb-5 text-center\">
";
// line 70
$this->loadTemplate("default/paginator.html.twig", "default/newslist.html.twig", 70)->display(twig_to_array(["paginator" => // line 71
(isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 71, $this->source); })()), "category" => null]));
// line 74
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/newslist.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 280 => 74, 278 => 71, 277 => 70, 273 => 68, 267 => 67, 264 => 66, 260 => 65, 253 => 60, 247 => 59, 239 => 56, 232 => 55, 229 => 54, 225 => 53, 219 => 52, 213 => 51, 207 => 47, 196 => 45, 192 => 44, 188 => 43, 178 => 38, 172 => 37, 166 => 34, 160 => 30, 154 => 29, 146 => 26, 139 => 25, 136 => 24, 132 => 23, 126 => 22, 120 => 21, 115 => 18, 101 => 16, 98 => 15, 94 => 14, 86 => 13, 80 => 10, 74 => 6, 64 => 5, 54 => 3, 52 => 2, 50 => 1, 37 => 3,);
}
public function getSourceContext()
{
return new Source("{% set clubPage = is_clubsite(editmode, document) %}
{% set _layout = clubPage ? 'seikoclub/layout.html.twig' : '@CoreShopFrontend/layout.html.twig' %}
{% extends _layout %}
{% block content %}
<div class=\"container\">
<div class=\"row news-row d-flex justify-content-between\">
<div class=\"select-wrapper\">
<label id=\"selectLabel\" for=\"selectSelect\">
<img src=\"{{ asset('themes/frontend/images/filter.svg') }}\" alt=\"\">
</label>
<select class=\"styled-select form-control site-reload\" id=\"selectSelect\" name=\"tag-filter\">
<option value=\"\">{% if selectedTag is null %}Címke{% else %}Címke törlése{% endif %}</option>
{% for tag in tagList %}
<option
value=\"{{ tag.getName() }}\"{% if selectedTag is not null and selectedTag.getId() == tag.getId() %} selected=\"selected\"{% endif %}>{{ tag.getName() }}</option>
{% endfor %}
</select>
</div>
<div class=\"tag-buttons btn-group\">
<a class=\"btn btn-primary{% if selectedCategory is null %} tag-button-active {% endif %}\"
href=\"{{ document.getFullPath() }}\">{{ 'Aktualitások' | upper }}</a>
{% for category in categoryList %}
{% if not category.hidden %}
<a class=\"btn btn-primary{% if category == selectedCategory %} tag-button-active {% endif %}\"
href=\"{{ pimcore_url({object: category}, null, true) }}\">{{ category.name | upper }}
</a>
{% endif %}
{% endfor %}
</div>
<div class=\"d-flex justify-content-between align-items-center\" id=\"newsSelect\">
<div class=\"select-wrapper date-select\">
<label id=\"selectLabel\">
<img src=\"{{ asset(\"/themes/frontend/images/up-arrow.png\") }}\" alt=\"\">
</label>
<select name=\"order\" class=\"styled-select form-control site-reload\" id=\"selectSelect\">
<option {% if order == 'asc' %} selected=\"selected\" {% endif %} value=\"asc\">Növekvő</option>
<option {% if order == 'desc' %} selected=\"selected\" {% endif %} value=\"desc\">Csökkenő</option>
</select>
</div>
<div class=\"d-flex justify-content-end align-items-center\" id=\"select-outside-wrapper\">
<select id=\"mySelect\" class=\"styled-select form-control site-reload\" name=\"perPage\">
<option value=\"\">{{ perPage }} Bejegyzés / oldal</option>
{% for number in perPageAllowed %}
<option value=\"{{ number }}\">{{ number }}</option>
{% endfor %}
</select>
</div>
</div>
<div class=\"tag-buttons-mobile btn-group\">
<a class=\"col-12 col-sm-3 col-xs-6 btn btn-primary{% if selectedCategory is null %} tag-button-active {% endif %}\"
href=\"{{ document.getFullPath() }}\">{{ 'Aktualitások' | upper }}</a>
{% for category in categoryList %}
{% if not category.hidden %}
<a class=\"col-12 col-sm-3 col-xs-6 btn btn-primary{% if category == selectedCategory %} active{% endif %}\"
href=\"{{ pimcore_url({object: category}, null, true) }}\">{{ category.name | upper }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class=\"container product-container\">
<div class=\"row d-flex\">
{% for news in paginator.items %}
{% include 'default/newslistitem.html.twig' with {news: news} only %}
{% endfor %}
</div>
<div class=\"col-12 pb-5 text-center\">
{% include 'default/paginator.html.twig' with {
paginator: paginator,
category: null
} only %}
</div>
</div>
{% endblock %}", "default/newslist.html.twig", "/home/zoltan/public_html/boutique-v2/templates/default/newslist.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 13, "for" => 14, "include" => 66);
static $filters = array("escape" => 10, "upper" => 22);
static $functions = array("is_clubsite" => 1, "asset" => 10, "pimcore_url" => 26);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['escape', 'upper'],
['is_clubsite', 'asset', 'pimcore_url']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}