var/cache/dev/twig/f3/f3179ca10b779c6a9a8ce84ece3e6916.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_d6096b92b0a646f1c5672d0b50d583ec 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 28
  39.         echo "
  40. ";
  41.         // line 30
  42.         $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  43.         // line 31
  44.         echo "
  45. <div class=\"ec-categoryNaviRole header\">
  46. \t<div class=\"header-nav-local\">
  47. \t\t<ul>
  48. \t\t\t<li><a href=\"/about\">はじめての方</a></li>
  49. \t\t\t<li><a href=\"/shopping-guide\">ご利用ガイド</a></li>
  50. \t\t\t<li><a href=\"/shopping-guide/mypage\">マイページ設定方法</a></li>
  51. \t\t\t<li><a href=\"/faq\">よくある質問</a></li>
  52. \t\t\t<li><a href=\"/sitemap\">サイトマップ</a></li>
  53. \t\t</ul>
  54. \t</div>
  55. \t<nav class=\"header-nav-main\">
  56. \t\t<ul>
  57. \t\t\t<li>
  58. \t\t\t\t<a href=\"/\">トップ</a>
  59. \t\t\t</li>
  60. \t\t\t<li class=\"ico_new\">
  61. \t\t\t\t<a href=\"/products/list\">商品一覧</a>
  62. \t\t\t</li>
  63. \t\t\t<li class=\"ico_new\">
  64. \t\t\t\t<a href=\"/campaign\">キャンペーン</a>
  65. \t\t\t</li>
  66. \t\t\t<li>
  67. \t\t\t\t<a href=\"/useful\">お役立ち情報</a>
  68. \t\t\t</li>
  69. \t\t\t<li>
  70. \t\t\t\t<a href=\"/shopping-guide/regular\">お得な定期</a>
  71. \t\t\t</li>
  72. \t\t</ul>
  73. \t</nav>
  74. </div>
  75. ";
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.         
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  80.     }
  81.     // line 13
  82.     public function macro_tree($__Category__ null, ...$__varargs__)
  83.     {
  84.         $macros $this->macros;
  85.         $context $this->env->mergeGlobals([
  86.             "Category" => $__Category__,
  87.             "varargs" => $__varargs__,
  88.         ]);
  89.         $blocks = [];
  90.         ob_start();
  91.         try {
  92.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  94.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  96.             // line 14
  97.             $macros["__internal_parse_0"] = $this;
  98.             // line 15
  99.             echo "<a href=\"";
  100.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  101.             echo "?category_id=";
  102.             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);
  103.             echo "\">
  104. \t";
  105.             // line 16
  106.             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);
  107.             echo "
  108. </a>
  109. ";
  110.             // line 18
  111.             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)) {
  112.                 // line 19
  113.                 echo "<ul>
  114. \t";
  115.                 // line 20
  116.                 $context['_parent'] = $context;
  117.                 $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));
  118.                 foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  119.                     // line 21
  120.                     echo "\t<li>
  121. \t\t";
  122.                     // line 22
  123.                     echo twig_call_macro($macros["__internal_parse_0"], "macro_tree", [$context["ChildCategory"]], 22$context$this->getSourceContext());
  124.                     echo "
  125. \t</li>
  126. \t";
  127.                 }
  128.                 $_parent $context['_parent'];
  129.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  130.                 $context array_intersect_key($context$_parent) + $_parent;
  131.                 // line 25
  132.                 echo "</ul>
  133. ";
  134.             }
  135.             
  136.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.             
  138.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  140.         } finally {
  141.             ob_end_clean();
  142.         }
  143.     }
  144.     public function getTemplateName()
  145.     {
  146.         return "Block/category_nav_pc.twig";
  147.     }
  148.     public function isTraitable()
  149.     {
  150.         return false;
  151.     }
  152.     public function getDebugInfo()
  153.     {
  154.         return array (  148 => 25,  139 => 22,  136 => 21,  132 => 20,  129 => 19,  127 => 18,  122 => 16,  115 => 15,  113 => 14,  94 => 13,  53 => 31,  51 => 30,  48 => 28,  45 => 12,  43 => 11,);
  155.     }
  156.     public function getSourceContext()
  157.     {
  158.         return new Source("{#
  159. This file is part of EC-CUBE
  160. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  161. http://www.ec-cube.co.jp/
  162. For the full copyright and license information, please view the LICENSE
  163. file that was distributed with this source code.
  164. #}
  165. {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  166. {% macro tree(Category) %}
  167. {% from _self import tree %}
  168. <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  169. \t{{ Category.name }}
  170. </a>
  171. {% if Category.children|length > 0 %}
  172. <ul>
  173. \t{% for ChildCategory in Category.children %}
  174. \t<li>
  175. \t\t{{ tree(ChildCategory) }}
  176. \t</li>
  177. \t{% endfor %}
  178. </ul>
  179. {% endif %}
  180. {% endmacro %}
  181. {# @see https://github.com/bolt/bolt/pull/2388 #}
  182. {% from _self import tree %}
  183. <div class=\"ec-categoryNaviRole header\">
  184. \t<div class=\"header-nav-local\">
  185. \t\t<ul>
  186. \t\t\t<li><a href=\"/about\">はじめての方</a></li>
  187. \t\t\t<li><a href=\"/shopping-guide\">ご利用ガイド</a></li>
  188. \t\t\t<li><a href=\"/shopping-guide/mypage\">マイページ設定方法</a></li>
  189. \t\t\t<li><a href=\"/faq\">よくある質問</a></li>
  190. \t\t\t<li><a href=\"/sitemap\">サイトマップ</a></li>
  191. \t\t</ul>
  192. \t</div>
  193. \t<nav class=\"header-nav-main\">
  194. \t\t<ul>
  195. \t\t\t<li>
  196. \t\t\t\t<a href=\"/\">トップ</a>
  197. \t\t\t</li>
  198. \t\t\t<li class=\"ico_new\">
  199. \t\t\t\t<a href=\"/products/list\">商品一覧</a>
  200. \t\t\t</li>
  201. \t\t\t<li class=\"ico_new\">
  202. \t\t\t\t<a href=\"/campaign\">キャンペーン</a>
  203. \t\t\t</li>
  204. \t\t\t<li>
  205. \t\t\t\t<a href=\"/useful\">お役立ち情報</a>
  206. \t\t\t</li>
  207. \t\t\t<li>
  208. \t\t\t\t<a href=\"/shopping-guide/regular\">お得な定期</a>
  209. \t\t\t</li>
  210. \t\t</ul>
  211. \t</nav>
  212. </div>
  213. ""Block/category_nav_pc.twig""/home/xs080051/million-store.com/public_html/st.million-store.com/ec/app/template/million01/Block/category_nav_pc.twig");
  214.     }
  215. }