<?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;
/* @DesignTag42/tag_list.twig */
class __TwigTemplate_c7e5238f1619e874d0b1912b68f17e13 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "@DesignTag42/tag_list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@DesignTag42/tag_list.twig"));
// line 2
echo "<ul class=\"ec-shelfRole__tags\">
";
// line 3
if (array_key_exists("Product", $context)) {
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 4, $this->source); })()), "Tags", [], "any", false, false, false, 4));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 5
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Tag"], "show_product_list_flg", [], "any", false, false, false, 5)) {
// line 6
echo " <li class=\"ec-shelfRole__tag tag_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 6), "html", null, true);
echo "\"
>";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "name", [], "any", false, false, false, 7), "html", null, true);
echo "</li>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 11
echo "</ul>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@DesignTag42/tag_list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 70 => 11, 60 => 7, 55 => 6, 52 => 5, 48 => 4, 46 => 3, 43 => 2,);
}
public function getSourceContext()
{
return new Source("{# タグ #}
<ul class=\"ec-shelfRole__tags\">
{% if Product is defined %}
{% for Tag in Product.Tags %}
{% if Tag.show_product_list_flg %}
<li class=\"ec-shelfRole__tag tag_{{ Tag.id }}\"
>{{ Tag.name }}</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>", "@DesignTag42/tag_list.twig", "/home/xs031638/hieiyuba.xyz/public_html/shop/app/Plugin/DesignTag42/Resource/template/tag_list.twig");
}
}