var/cache/dev/twig/f3/f3e19af139b45cb519edd4ae0d3bdfb5.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_sp.twig */
  14. class __TwigTemplate_bd3411de5c2544b761698e84d3bb8ecf 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_sp.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_sp.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 28
  39.         echo "
  40. ";
  41.         // line 30
  42.         $macros["__internal_parse_3"] = $this->macros["__internal_parse_3"] = $this;
  43.         // line 31
  44.         echo "
  45. <nav class=\"ec-headerCategoryArea\">
  46.     <div id=\"categorynav_title\" class=\"ec-headerCategoryArea__heading\">
  47.         <p>";
  48.         // line 34
  49.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Product List"), "html"nulltrue);
  50.         echo "</p>
  51.     </div>
  52.     <div class=\"ec-itemNav\">
  53.         <ul class=\"ec-itemNav__nav\">
  54.             ";
  55.         // line 38
  56.         $context['_parent'] = $context;
  57.         $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'38$this->source); })()));
  58.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  59.             // line 39
  60.             echo "                <li>
  61.                     ";
  62.             // line 40
  63.             echo twig_call_macro($macros["__internal_parse_3"], "macro_tree", [$context["Category"]], 40$context$this->getSourceContext());
  64.             echo "
  65.                 </li>
  66.             ";
  67.         }
  68.         $_parent $context['_parent'];
  69.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  70.         $context array_intersect_key($context$_parent) + $_parent;
  71.         // line 43
  72.         echo "        </ul>
  73.     </div>
  74. </nav>
  75. <div class=\"to-salon\">
  76.     <a class=\"ec-headerLink__item to_top\" href=\"https://www.owl-horie.com/\">
  77.         <span class=\"small\">owl&owlsSPA</span><br>
  78.         <i class=\"fa-regular fa-building-memo\"></i> ";
  79.         // line 50
  80.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SALON TOP"), "html"nulltrue);
  81.         echo "
  82.     </a>
  83. </div>";
  84.         
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.     }
  89.     // line 13
  90.     public function macro_tree($__Category__ null, ...$__varargs__)
  91.     {
  92.         $macros $this->macros;
  93.         $context $this->env->mergeGlobals([
  94.             "Category" => $__Category__,
  95.             "varargs" => $__varargs__,
  96.         ]);
  97.         $blocks = [];
  98.         ob_start();
  99.         try {
  100.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  102.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  104.             // line 14
  105.             echo "    ";
  106.             $macros["__internal_parse_2"] = $this;
  107.             // line 15
  108.             echo "    <a href=\"";
  109.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  110.             echo "?category_id=";
  111.             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);
  112.             echo "\">
  113.         ";
  114.             // line 16
  115.             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);
  116.             echo "
  117.     </a>
  118.     ";
  119.             // line 18
  120.             if ((twig_length_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.'18$this->source); })()), "children", [], "any"falsefalsefalse18)) > 0)) {
  121.                 // line 19
  122.                 echo "        <ul>
  123.             ";
  124.                 // line 20
  125.                 $context['_parent'] = $context;
  126.                 $context['_seq'] = twig_ensure_traversable(twig_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.'20$this->source); })()), "children", [], "any"falsefalsefalse20));
  127.                 foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  128.                     // line 21
  129.                     echo "                <li>
  130.                     ";
  131.                     // line 22
  132.                     echo twig_call_macro($macros["__internal_parse_2"], "macro_tree", [$context["ChildCategory"]], 22$context$this->getSourceContext());
  133.                     echo "
  134.                 </li>
  135.             ";
  136.                 }
  137.                 $_parent $context['_parent'];
  138.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  139.                 $context array_intersect_key($context$_parent) + $_parent;
  140.                 // line 25
  141.                 echo "        </ul>
  142.     ";
  143.             }
  144.             
  145.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146.             
  147.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  149.         } finally {
  150.             ob_end_clean();
  151.         }
  152.     }
  153.     public function getTemplateName()
  154.     {
  155.         return "Block/category_nav_sp.twig";
  156.     }
  157.     public function isTraitable()
  158.     {
  159.         return false;
  160.     }
  161.     public function getDebugInfo()
  162.     {
  163.         return array (  158 => 25,  149 => 22,  146 => 21,  142 => 20,  139 => 19,  137 => 18,  132 => 16,  125 => 15,  122 => 14,  103 => 13,  90 => 50,  81 => 43,  72 => 40,  69 => 39,  65 => 38,  58 => 34,  53 => 31,  51 => 30,  48 => 28,  45 => 12,  43 => 11,);
  164.     }
  165.     public function getSourceContext()
  166.     {
  167.         return new Source("{#
  168. This file is part of EC-CUBE
  169. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  170. http://www.ec-cube.co.jp/
  171. For the full copyright and license information, please view the LICENSE
  172. file that was distributed with this source code.
  173. #}
  174. {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  175. {% macro tree(Category) %}
  176.     {% from _self import tree %}
  177.     <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  178.         {{ Category.name }}
  179.     </a>
  180.     {% if Category.children|length > 0 %}
  181.         <ul>
  182.             {% for ChildCategory in Category.children %}
  183.                 <li>
  184.                     {{ tree(ChildCategory) }}
  185.                 </li>
  186.             {% endfor %}
  187.         </ul>
  188.     {% endif %}
  189. {% endmacro %}
  190. {# @see https://github.com/bolt/bolt/pull/2388 #}
  191. {% from _self import tree %}
  192. <nav class=\"ec-headerCategoryArea\">
  193.     <div id=\"categorynav_title\" class=\"ec-headerCategoryArea__heading\">
  194.         <p>{{ 'Product List'|trans }}</p>
  195.     </div>
  196.     <div class=\"ec-itemNav\">
  197.         <ul class=\"ec-itemNav__nav\">
  198.             {% for Category in Categories %}
  199.                 <li>
  200.                     {{ tree(Category) }}
  201.                 </li>
  202.             {% endfor %}
  203.         </ul>
  204.     </div>
  205. </nav>
  206. <div class=\"to-salon\">
  207.     <a class=\"ec-headerLink__item to_top\" href=\"https://www.owl-horie.com/\">
  208.         <span class=\"small\">owl&owlsSPA</span><br>
  209.         <i class=\"fa-regular fa-building-memo\"></i> {{ 'SALON TOP'|trans }}
  210.     </a>
  211. </div>""Block/category_nav_sp.twig""/home/owl/owl-horie.com/public_html/test-eccube.owl-horie.com/app/template/cosme41/Block/category_nav_sp.twig");
  212.     }
  213. }