var/cache/dev/twig/ea/ea0b23794d0a1c871093c6ab15965912.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @tbsFeaturePage/default/feature_list.twig */
  14. class __TwigTemplate_bdc92a0d0fa99f306f62af5c428d2094 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->blocks = [
  23.             'main' => [$this, 'block_main'],
  24.         ];
  25.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros = $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@tbsFeaturePage/default/feature_list.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@tbsFeaturePage/default/feature_list.twig"));
  40.         // line 3
  41.         $context["body_class"] = "Feature_list_page";
  42.         // line 1
  43.         $this->parent = $this->loadTemplate("default_frame.twig", "@tbsFeaturePage/default/feature_list.twig", 1);
  44.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_main($context, array $blocks = [])
  52.     {
  53.         $macros = $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  58.         // line 6
  59.         echo "    <div class=\"ec-shelfRole\">
  60.         <ul class=\"ec-shelfGrid\">
  61.             ";
  62.         // line 8
  63.         $context['_parent'] = $context;
  64.         $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); })()));
  65.         foreach ($context['_seq'] as $context["_key"] => $context["Feature"]) {
  66.             // line 9
  67.             echo "                <li class=\"ec-shelfGrid__item\" style=\"width:50%\">
  68.                     <a href=\"";
  69.             // line 10
  70.             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);
  71.             echo "\">
  72.                         <p>
  73.                         ";
  74.             // line 12
  75.             if (twig_get_attribute($this->env, $this->source, $context["Feature"], "banner_file_name", [], "any", false, false, true, 12)) {
  76.                 // line 13
  77.                 echo "                            <img src=\"";
  78.                 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);
  79.                 echo "\" />
  80.                         ";
  81.             }
  82.             // line 15
  83.             echo "                        </p>
  84.                     </a>
  85.                     <p>";
  86.             // line 17
  87.             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);
  88.             echo "</p>
  89.                 </li>
  90.             ";
  91.         }
  92.         $_parent = $context['_parent'];
  93.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Feature'], $context['_parent'], $context['loop']);
  94.         $context = array_intersect_key($context, $_parent) + $_parent;
  95.         // line 20
  96.         echo "        </ul>
  97.     </div>
  98. ";
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.         
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103.     }
  104.     public function getTemplateName()
  105.     {
  106.         return "@tbsFeaturePage/default/feature_list.twig";
  107.     }
  108.     public function isTraitable()
  109.     {
  110.         return false;
  111.     }
  112.     public function getDebugInfo()
  113.     {
  114.         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,);
  115.     }
  116.     public function getSourceContext()
  117.     {
  118.         return new Source("{% extends 'default_frame.twig' %}
  119. {% set body_class = 'Feature_list_page' %}
  120. {% block main %}
  121.     <div class=\"ec-shelfRole\">
  122.         <ul class=\"ec-shelfGrid\">
  123.             {% for Feature in Features %}
  124.                 <li class=\"ec-shelfGrid__item\" style=\"width:50%\">
  125.                     <a href=\"{{ url('feature_detail', {url : Feature.url }) }}\">
  126.                         <p>
  127.                         {% if Feature.banner_file_name %}
  128.                             <img src=\"{{ asset('tbsFeaturePage/save_image/' ~ Feature.banner_file_name, 'plugin') }}\" />
  129.                         {% endif %}
  130.                         </p>
  131.                     </a>
  132.                     <p>{{ Feature.title }}</p>
  133.                 </li>
  134.             {% endfor %}
  135.         </ul>
  136.     </div>
  137. {% endblock %}
  138. ", "@tbsFeaturePage/default/feature_list.twig", "/home/cajiya00/jklfdsa.com/public_html/shop-iizuka-nori.jklfdsa.com/app/template/plugin/tbsFeaturePage/default/feature_list.twig");
  139.     }
  140.     
  141.     public function checkSecurity()
  142.     {
  143.         static $tags = array("set" => 3, "for" => 8, "if" => 12);
  144.         static $filters = array("escape" => 10);
  145.         static $functions = array("url" => 10, "asset" => 13);
  146.         try {
  147.             $this->sandbox->checkSecurity(
  148.                 ['set', 'for', 'if'],
  149.                 ['escape'],
  150.                 ['url', 'asset']
  151.             );
  152.         } catch (SecurityError $e) {
  153.             $e->setSourceContext($this->source);
  154.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  155.                 $e->setTemplateLine($tags[$e->getTagName()]);
  156.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  157.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  158.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  159.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  160.             }
  161.             throw $e;
  162.         }
  163.     }
  164. }