<?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;
/* @tbsFeaturePage/default/feature_list.twig */
class __TwigTemplate_bdc92a0d0fa99f306f62af5c428d2094 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.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", "@tbsFeaturePage/default/feature_list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@tbsFeaturePage/default/feature_list.twig"));
// line 3
$context["body_class"] = "Feature_list_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "@tbsFeaturePage/default/feature_list.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_main($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", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 6
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Features"]) || array_key_exists("Features", $context) ? $context["Features"] : (function () { throw new RuntimeError('Variable "Features" does not exist.', 8, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Feature"]) {
// line 9
echo " <li class=\"ec-shelfGrid__item\" style=\"width:50%\">
<a href=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("feature_detail", ["url" => twig_get_attribute($this->env, $this->source, $context["Feature"], "url", [], "any", false, false, true, 10)]), "html", null, true);
echo "\">
<p>
";
// line 12
if (twig_get_attribute($this->env, $this->source, $context["Feature"], "banner_file_name", [], "any", false, false, true, 12)) {
// line 13
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("tbsFeaturePage/save_image/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Feature"], "banner_file_name", [], "any", false, false, true, 13), 13, $this->source)), "plugin"), "html", null, true);
echo "\" />
";
}
// line 15
echo " </p>
</a>
<p>";
// line 17
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Feature"], "title", [], "any", false, false, true, 17), 17, $this->source), "html", null, true);
echo "</p>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Feature'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo " </ul>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@tbsFeaturePage/default/feature_list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 110 => 20, 101 => 17, 97 => 15, 91 => 13, 89 => 12, 84 => 10, 81 => 9, 77 => 8, 73 => 6, 63 => 5, 52 => 1, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'Feature_list_page' %}
{% block main %}
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% for Feature in Features %}
<li class=\"ec-shelfGrid__item\" style=\"width:50%\">
<a href=\"{{ url('feature_detail', {url : Feature.url }) }}\">
<p>
{% if Feature.banner_file_name %}
<img src=\"{{ asset('tbsFeaturePage/save_image/' ~ Feature.banner_file_name, 'plugin') }}\" />
{% endif %}
</p>
</a>
<p>{{ Feature.title }}</p>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
", "@tbsFeaturePage/default/feature_list.twig", "/home/cajiya00/jklfdsa.com/public_html/shop-iizuka-nori.jklfdsa.com/app/template/plugin/tbsFeaturePage/default/feature_list.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 3, "for" => 8, "if" => 12);
static $filters = array("escape" => 10);
static $functions = array("url" => 10, "asset" => 13);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if'],
['escape'],
['url', 'asset']
);
} 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;
}
}
}