var/cache/dev/twig/5f/5f1d18405c3194b1c006b20c2099dd9c.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_ac963dfe4735d081863bfa0ba0a1cbfe 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.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  35.         // line 11
  36.         $context["specialRoutes"] = [=> "lacrymachristi"=> "sale2025_2024_page"=> "ms_rocktv"=> "shopping_guide"=> "recruit"=> "liveartist_page"=> "information_kinetv"=> "information"];
  37.         // line 12
  38.         echo "
  39. <div class=\"ec-headerNaviRole header-custom\">
  40.     <a href=\"";
  41.         // line 14
  42.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  43.         echo "\">
  44.         <img class=\"logo\" src=\"";
  45.         // line 15
  46.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/wardrecors_logo.gif"), "html"nulltrue);
  47.         echo "\" alt=\"Wardrecords Logo\">
  48.     </a>
  49.     <div class=\"ec-headerNaviRole__left\">
  50.         <div class=\"ec-headerNaviRole__search\">
  51.             ";
  52.         // line 19
  53.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  54.         echo "
  55.         </div>
  56.         <div class=\"ec-headerRole__navSP\">
  57.             ";
  58.         // line 22
  59.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/nav_sp.twig");
  60.         echo "
  61.         </div>
  62.     </div>
  63.     <div class=\"ec-headerNaviRole__right ";
  64.         // line 25
  65.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'25$this->source); })()), "request", [], "any"falsefalsetrue25), "get", [=> "_route"], "method"falsefalsetrue25), (isset($context["specialRoutes"]) || array_key_exists("specialRoutes"$context) ? $context["specialRoutes"] : (function () { throw new RuntimeError('Variable "specialRoutes" does not exist.'25$this->source); })()))) {
  66.             echo "no-margin";
  67.         }
  68.         echo "\">
  69.         ";
  70.         // line 26
  71.         if (!twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsetrue26), "get", [=> "_route"], "method"falsefalsetrue26), (isset($context["specialRoutes"]) || array_key_exists("specialRoutes"$context) ? $context["specialRoutes"] : (function () { throw new RuntimeError('Variable "specialRoutes" does not exist.'26$this->source); })()))) {
  72.             // line 27
  73.             echo "        <div class=\"ec-headerNaviRole__nav\">
  74.             ";
  75.             // line 28
  76.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/login.twig");
  77.             echo "
  78.         </div>
  79.         ";
  80.         }
  81.         // line 31
  82.         echo "        <div class=\"ec-headerRole__cart ";
  83.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'31$this->source); })()), "request", [], "any"falsefalsetrue31), "get", [=> "_route"], "method"falsefalsetrue31), (isset($context["specialRoutes"]) || array_key_exists("specialRoutes"$context) ? $context["specialRoutes"] : (function () { throw new RuntimeError('Variable "specialRoutes" does not exist.'31$this->source); })()))) {
  84.             echo "hidden-cart";
  85.         }
  86.         echo "\">
  87.             ";
  88.         // line 32
  89.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/cart.twig");
  90.         echo "
  91.         </div>
  92.     </div>
  93. </div>
  94. ";
  95.         
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.     }
  100.     public function getTemplateName()
  101.     {
  102.         return "Block/header.twig";
  103.     }
  104.     public function isTraitable()
  105.     {
  106.         return false;
  107.     }
  108.     public function getDebugInfo()
  109.     {
  110.         return array (  98 => 32,  91 => 31,  85 => 28,  82 => 27,  80 => 26,  74 => 25,  68 => 22,  62 => 19,  55 => 15,  51 => 14,  47 => 12,  45 => 11,);
  111.     }
  112.     public function getSourceContext()
  113.     {
  114.         return new Source("{#
  115. This file is part of EC-CUBE
  116. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  117. http://www.ec-cube.co.jp/
  118. For the full copyright and license information, please view the LICENSE
  119. file that was distributed with this source code.
  120. #}
  121. {% set specialRoutes = ['lacrymachristi', 'sale2025_2024_page', 'ms_rocktv', 'shopping_guide', 'recruit', 'liveartist_page', 'information_kinetv', 'information'] %}
  122. <div class=\"ec-headerNaviRole header-custom\">
  123.     <a href=\"{{ url('homepage') }}\">
  124.         <img class=\"logo\" src=\"{{ asset('assets/img/top/wardrecors_logo.gif') }}\" alt=\"Wardrecords Logo\">
  125.     </a>
  126.     <div class=\"ec-headerNaviRole__left\">
  127.         <div class=\"ec-headerNaviRole__search\">
  128.             {{ render(path('block_search_product')) }}
  129.         </div>
  130.         <div class=\"ec-headerRole__navSP\">
  131.             {{ include('Block/nav_sp.twig') }}
  132.         </div>
  133.     </div>
  134.     <div class=\"ec-headerNaviRole__right {% if app.request.get('_route') in specialRoutes %}no-margin{% endif %}\">
  135.         {% if app.request.get('_route') not in specialRoutes %}
  136.         <div class=\"ec-headerNaviRole__nav\">
  137.             {{ include('Block/login.twig') }}
  138.         </div>
  139.         {% endif %}
  140.         <div class=\"ec-headerRole__cart {% if app.request.get('_route') in specialRoutes %}hidden-cart{% endif %}\">
  141.             {{ include('Block/cart.twig') }}
  142.         </div>
  143.     </div>
  144. </div>
  145. ""Block/header.twig""/home/ubuntu/wardrecords/app/template/default/Block/header.twig");
  146.     }
  147.     
  148.     public function checkSecurity()
  149.     {
  150.         static $tags = array("set" => 11"if" => 25);
  151.         static $filters = array("escape" => 15);
  152.         static $functions = array("url" => 14"asset" => 15"render" => 19"path" => 19"include" => 22);
  153.         try {
  154.             $this->sandbox->checkSecurity(
  155.                 ['set''if'],
  156.                 ['escape'],
  157.                 ['url''asset''render''path''include'],
  158.                 $this->source
  159.             );
  160.         } catch (SecurityError $e) {
  161.             $e->setSourceContext($this->source);
  162.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  163.                 $e->setTemplateLine($tags[$e->getTagName()]);
  164.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  165.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  166.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  167.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  168.             }
  169.             throw $e;
  170.         }
  171.     }
  172. }