var/cache/dev/twig/64/64948fdbd9c9af427dc9b289e87cd6d0.php line 35

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/header.twig */
  14. class __TwigTemplate_e6e9b138fa8b5ccc9b79ffa0c4227aa3 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  33.         // line 1
  34.         echo "<div class=\"p-header__inner\">
  35.     ";
  36.         // line 3
  37.         echo "    <div class=\"p-header__logo\">
  38.       <h1 class=\"p-header__siteTitle\">
  39.         <a href=\"";
  40.         // line 5
  41.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("homepage");
  42.         echo "\" class=\"p-header__siteTitleLink\">
  43.           <img src=\"";
  44.         // line 6
  45.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/logo_kaiteseki.svg"), "html"nulltrue);
  46.         echo "\" alt=\"";
  47.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["BaseInfo"] ?? null), "shop_name", [], "any"falsefalsetrue6), 6$this->source), "html"nulltrue);
  48.         echo "のロゴ\" class=\"p-header__logoImage\" width=\"100%\" height=\"45px\" />
  49.         </a>
  50.       </h1>
  51.     </div>
  52.     ";
  53.         // line 12
  54.         echo "    <div class=\"p-header__controls\">
  55.       ";
  56.         // line 14
  57.         echo "      <div class=\"p-header__topArea\">
  58.         
  59.         ";
  60.         // line 17
  61.         echo "        <div class=\"p-header__searchForm\">
  62.           ";
  63.         // line 18
  64.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("block_search_product"));
  65.         echo "
  66.         </div>
  67.         ";
  68.         // line 22
  69.         echo "        <ul class=\"p-header__utilityNav\">
  70.           ";
  71.         // line 25
  72.         echo "          ";
  73.         // line 26
  74.         echo "          ";
  75.         // line 27
  76.         echo "          ";
  77.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  78.             // line 28
  79.             echo "            ";
  80.             // line 29
  81.             echo "            <li class=\"p-header__utilityItem p-header__utilityItem--mypage\">
  82.               <a href=\"";
  83.             // line 30
  84.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("mypage");
  85.             echo "\" class=\"p-header__utilityLink\">
  86.                 <img src=\"";
  87.             // line 31
  88.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-login.svg"), "html"nulltrue);
  89.             echo "\" alt=\"ログインのアイコン\" width=\"auto\" height=\"19px\">
  90.                 <span class=\"p-header__utilityLabel\">マイページ</span>
  91.               </a>
  92.             </li>
  93.           ";
  94.         } else {
  95.             // line 36
  96.             echo "            ";
  97.             // line 37
  98.             echo "            <li class=\"p-header__utilityItem p-header__utilityItem--login\">
  99.               <a href=\"";
  100.             // line 38
  101.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("mypage_login");
  102.             echo "\" class=\"p-header__utilityLink\">
  103.                 <img src=\"";
  104.             // line 39
  105.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-login.svg"), "html"nulltrue);
  106.             echo "\" alt=\"ログインのアイコン\" width=\"auto\" height=\"19px\">
  107.                 <span class=\"p-header__utilityLabel\">ログイン</span>
  108.               </a>
  109.             </li>
  110.           ";
  111.         }
  112.         // line 44
  113.         echo "
  114.           ";
  115.         // line 46
  116.         echo "          ";
  117.         // line 47
  118.         echo "          ";
  119.         // line 48
  120.         echo "
  121.           ";
  122.         // line 50
  123.         echo "          ";
  124.         if (twig_get_attribute($this->env$this->source, ($context["BaseInfo"] ?? null), "option_favorite_product", [], "any"falsefalsetrue50)) {
  125.             // line 51
  126.             echo "            <li class=\"p-header__utilityItem p-header__utilityItem--favorite\">
  127.               <a href=\"";
  128.             // line 52
  129.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("mypage_favorite");
  130.             echo "\" class=\"p-header__utilityLink\">
  131.                 <img src=\"";
  132.             // line 53
  133.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-favorite.svg"), "html"nulltrue);
  134.             echo "\" alt=\"お気に入りのアイコン\" width=\"21px\" height=\"19px\">
  135.                 <span class=\"p-header__utilityLabel\">お気に入り</span>
  136.               </a>
  137.             </li>
  138.           ";
  139.         }
  140.         // line 58
  141.         echo "
  142.           ";
  143.         // line 60
  144.         echo "          <li class=\"p-header__utilityItem p-header__utilityItem--cart\">
  145.                <a href=\"";
  146.         // line 61
  147.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("cart");
  148.         echo "\" class=\"p-header__utilityLink\">
  149.                 <img src=\"";
  150.         // line 62
  151.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-cart.svg"), "html"nulltrue);
  152.         echo "\" alt=\"カートのアイコン\" width=\"21px\" height=\"19px\">
  153.                 <span class=\"p-header__utilityLabel\">カート</span>
  154.               </a>
  155.           </li>
  156.           ";
  157.         // line 68
  158.         echo "          ";
  159.         // line 69
  160.         echo "          ";
  161.         // line 70
  162.         echo "          ";
  163.         if ( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  164.             // line 71
  165.             echo "            <li class=\"p-header__utilityItem p-header__utilityItem--register p-header__utilityItem--highlight\">
  166.               <a href=\"";
  167.             // line 72
  168.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("entry");
  169.             echo "\" class=\"p-header__utilityLink\">
  170.                 <img src=\"";
  171.             // line 73
  172.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-entry.svg"), "html"nulltrue);
  173.             echo "\" alt=\"新規会員登録のアイコン\" width=\"auto\" height=\"19px\">
  174.                 <span class=\"p-header__utilityLabel\">新規会員登録</span>
  175.               </a>
  176.             </li>
  177.           ";
  178.         }
  179.         // line 78
  180.         echo "
  181.           ";
  182.         // line 80
  183.         echo "          <li class=\"p-header__utilityItem p-header__utilityItem--spNavToggle\">
  184.             <div class=\"p-header__spNav p-header__utilityLink\">
  185.                 <img src=\"";
  186.         // line 82
  187.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-menu.svg"), "html"nulltrue);
  188.         echo "\" alt=\"メニューのアイコン\" width=\"21px\" height=\"19px\">
  189.                 <span class=\"p-header__utilityLabel\">メニュー</span>
  190.             </div>
  191.           </li>
  192.         </ul>
  193.       </div>
  194.       ";
  195.         // line 90
  196.         echo "      <nav class=\"p-header__globalNav\" aria-label=\"グローバルナビゲーション\">
  197.         <ul class=\"p-header__navList\">
  198.           <li class=\"p-header__navItem\"><a href=\"";
  199.         // line 92
  200.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("product_list");
  201.         echo "\" class=\"p-header__navLink\">商品一覧</a></li>
  202.           <li class=\"p-header__navItem\"><a href=\"";
  203.         // line 93
  204.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("product_list");
  205.         echo "?category_id=all\" class=\"p-header__navLink\">カテゴリー一覧</a></li>
  206.         </ul>
  207.         <ul class=\"p-header__infoList\">
  208.           <li class=\"p-header__infoItem\"><a href=\"/help/about\" class=\"p-header__infoLink\">運営会社</a></li>
  209.           <li class=\"p-header__infoItem\"><a href=\"/guide\" class=\"p-header__infoLink\">ご利用ガイド</a></li>
  210.           <li class=\"p-header__infoItem\"><a href=\"/news\" class=\"p-header__infoLink\">お知らせ</a></li>
  211.         </ul>
  212.       </nav>
  213.     </div>
  214.   </div>";
  215.         
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  217.     }
  218.     public function getTemplateName()
  219.     {
  220.         return "Block/header.twig";
  221.     }
  222.     public function isTraitable()
  223.     {
  224.         return false;
  225.     }
  226.     public function getDebugInfo()
  227.     {
  228.         return array (  217 => 93,  213 => 92,  209 => 90,  199 => 82,  195 => 80,  192 => 78,  184 => 73,  180 => 72,  177 => 71,  174 => 70,  172 => 69,  170 => 68,  162 => 62,  158 => 61,  155 => 60,  152 => 58,  144 => 53,  140 => 52,  137 => 51,  134 => 50,  131 => 48,  129 => 47,  127 => 46,  124 => 44,  116 => 39,  112 => 38,  109 => 37,  107 => 36,  99 => 31,  95 => 30,  92 => 29,  90 => 28,  87 => 27,  85 => 26,  83 => 25,  79 => 22,  73 => 18,  70 => 17,  66 => 14,  63 => 12,  53 => 6,  49 => 5,  45 => 3,  42 => 1,);
  229.     }
  230.     public function getSourceContext()
  231.     {
  232.         return new Source("""Block/header.twig""/home/carry/staging-page.com/public_html/koyama.staging-page.com/app/template/kaitekikabe/Block/header.twig");
  233.     }
  234.     
  235.     public function checkSecurity()
  236.     {
  237.         static $tags = array("if" => 27);
  238.         static $filters = array("escape" => 6);
  239.         static $functions = array("url" => 5"asset" => 6"render" => 18"path" => 18"is_granted" => 27);
  240.         try {
  241.             $this->sandbox->checkSecurity(
  242.                 ['if'],
  243.                 ['escape'],
  244.                 ['url''asset''render''path''is_granted']
  245.             );
  246.         } catch (SecurityError $e) {
  247.             $e->setSourceContext($this->source);
  248.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  249.                 $e->setTemplateLine($tags[$e->getTagName()]);
  250.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  251.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  252.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  253.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  254.             }
  255.             throw $e;
  256.         }
  257.     }
  258. }