var/cache/dev/twig/77/779f31105bcc141eb35141bea158b498.php line 33

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. /* Block/category_nav_pc.twig */
  14. class __TwigTemplate_20216b2ae0352f02b6be1cdc67db445c 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/category_nav_pc.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/category_nav_pc.twig"));
  33.         // line 11
  34.         $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method"falsefalsefalse11);
  35.         // line 12
  36.         echo "
  37. ";
  38.         // line 19
  39.         echo "
  40. ";
  41.         // line 21
  42.         $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  43.         // line 22
  44.         echo "
  45. <div class=\"ec-categoryNaviRole\">
  46.     <div class=\"ec-categoryNaviHeader\">
  47.         <h2>カテゴリから探す</h2>
  48.     </div>
  49.     <div class=\"ec-itemNav\">
  50.         <ul class=\"ec-itemNav__nav\">
  51.                 <li>
  52.                     <a href=\"";
  53.         // line 30
  54.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  55.         echo "\">すべて</a>
  56.                     <i class=\"fa fa-angle-right\"></i>
  57.                 </li>
  58.             ";
  59.         // line 33
  60.         $context['_parent'] = $context;
  61.         $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'33$this->source); })()));
  62.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  63.             // line 34
  64.             echo "                <li>
  65.                     ";
  66.             // line 35
  67.             echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"]], 35$context$this->getSourceContext());
  68.             echo "
  69.                     <i class=\"fa fa-angle-right\"></i>
  70.                 </li>
  71.             ";
  72.         }
  73.         $_parent $context['_parent'];
  74.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  75.         $context array_intersect_key($context$_parent) + $_parent;
  76.         // line 39
  77.         echo "        </ul>
  78.     </div>
  79. </div>
  80. ";
  81.         
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.     }
  86.     // line 13
  87.     public function macro_tree($__Category__ null, ...$__varargs__)
  88.     {
  89.         $macros $this->macros;
  90.         $context $this->env->mergeGlobals([
  91.             "Category" => $__Category__,
  92.             "varargs" => $__varargs__,
  93.         ]);
  94.         $blocks = [];
  95.         ob_start();
  96.         try {
  97.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  99.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  101.             // line 14
  102.             echo "    ";
  103.             $macros["__internal_parse_0"] = $this;
  104.             // line 15
  105.             echo "    <a href=\"";
  106.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  107.             echo "?category_id=";
  108.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'15$this->source); })()), "id", [], "any"falsefalsefalse15), "html"nulltrue);
  109.             echo "\">
  110.         ";
  111.             // line 16
  112.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'16$this->source); })()), "name", [], "any"falsefalsefalse16), "html"nulltrue);
  113.             echo "
  114.     </a>
  115. ";
  116.             
  117.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.             
  119.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  121.         } finally {
  122.             ob_end_clean();
  123.         }
  124.     }
  125.     public function getTemplateName()
  126.     {
  127.         return "Block/category_nav_pc.twig";
  128.     }
  129.     public function isTraitable()
  130.     {
  131.         return false;
  132.     }
  133.     public function getDebugInfo()
  134.     {
  135.         return array (  128 => 16,  121 => 15,  118 => 14,  99 => 13,  86 => 39,  76 => 35,  73 => 34,  69 => 33,  63 => 30,  53 => 22,  51 => 21,  48 => 19,  45 => 12,  43 => 11,);
  136.     }
  137.     public function getSourceContext()
  138.     {
  139.         return new Source("{#
  140. This file is part of EC-CUBE
  141. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  142. http://www.ec-cube.co.jp/
  143. For the full copyright and license information, please view the LICENSE
  144. file that was distributed with this source code.
  145. #}
  146. {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  147. {% macro tree(Category) %}
  148.     {% from _self import tree %}
  149.     <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  150.         {{ Category.name }}
  151.     </a>
  152. {% endmacro %}
  153. {# @see https://github.com/bolt/bolt/pull/2388 #}
  154. {% from _self import tree %}
  155. <div class=\"ec-categoryNaviRole\">
  156.     <div class=\"ec-categoryNaviHeader\">
  157.         <h2>カテゴリから探す</h2>
  158.     </div>
  159.     <div class=\"ec-itemNav\">
  160.         <ul class=\"ec-itemNav__nav\">
  161.                 <li>
  162.                     <a href=\"{{ url('product_list') }}\">すべて</a>
  163.                     <i class=\"fa fa-angle-right\"></i>
  164.                 </li>
  165.             {% for Category in Categories %}
  166.                 <li>
  167.                     {{ tree(Category) }}
  168.                     <i class=\"fa fa-angle-right\"></i>
  169.                 </li>
  170.             {% endfor %}
  171.         </ul>
  172.     </div>
  173. </div>
  174. ""Block/category_nav_pc.twig""/home/xs362797/pin-dev.net/public_html/magamar/app/template/magamar/Block/category_nav_pc.twig");
  175.     }
  176. }