<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/header.twig */
class __TwigTemplate_ac963dfe4735d081863bfa0ba0a1cbfe extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header.twig"));
// line 11
$context["specialRoutes"] = [0 => "lacrymachristi", 1 => "sale2025_2024_page", 2 => "ms_rocktv", 3 => "shopping_guide", 4 => "recruit", 5 => "liveartist_page", 6 => "information_kinetv", 7 => "information"];
// line 12
echo "
<div class=\"ec-headerNaviRole header-custom\">
<a href=\"";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">
<img class=\"logo\" src=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/wardrecors_logo.gif"), "html", null, true);
echo "\" alt=\"Wardrecords Logo\">
</a>
<div class=\"ec-headerNaviRole__left\">
<div class=\"ec-headerNaviRole__search\">
";
// line 19
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>
<div class=\"ec-headerRole__navSP\">
";
// line 22
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/nav_sp.twig");
echo "
</div>
</div>
<div class=\"ec-headerNaviRole__right ";
// line 25
if (twig_in_filter(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 25), "get", [0 => "_route"], "method", false, false, true, 25), (isset($context["specialRoutes"]) || array_key_exists("specialRoutes", $context) ? $context["specialRoutes"] : (function () { throw new RuntimeError('Variable "specialRoutes" does not exist.', 25, $this->source); })()))) {
echo "no-margin";
}
echo "\">
";
// line 26
if (!twig_in_filter(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 26), "get", [0 => "_route"], "method", false, false, true, 26), (isset($context["specialRoutes"]) || array_key_exists("specialRoutes", $context) ? $context["specialRoutes"] : (function () { throw new RuntimeError('Variable "specialRoutes" does not exist.', 26, $this->source); })()))) {
// line 27
echo " <div class=\"ec-headerNaviRole__nav\">
";
// line 28
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/login.twig");
echo "
</div>
";
}
// line 31
echo " <div class=\"ec-headerRole__cart ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 31), "get", [0 => "_route"], "method", false, false, true, 31), (isset($context["specialRoutes"]) || array_key_exists("specialRoutes", $context) ? $context["specialRoutes"] : (function () { throw new RuntimeError('Variable "specialRoutes" does not exist.', 31, $this->source); })()))) {
echo "hidden-cart";
}
echo "\">
";
// line 32
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/cart.twig");
echo "
</div>
</div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% set specialRoutes = ['lacrymachristi', 'sale2025_2024_page', 'ms_rocktv', 'shopping_guide', 'recruit', 'liveartist_page', 'information_kinetv', 'information'] %}
<div class=\"ec-headerNaviRole header-custom\">
<a href=\"{{ url('homepage') }}\">
<img class=\"logo\" src=\"{{ asset('assets/img/top/wardrecors_logo.gif') }}\" alt=\"Wardrecords Logo\">
</a>
<div class=\"ec-headerNaviRole__left\">
<div class=\"ec-headerNaviRole__search\">
{{ render(path('block_search_product')) }}
</div>
<div class=\"ec-headerRole__navSP\">
{{ include('Block/nav_sp.twig') }}
</div>
</div>
<div class=\"ec-headerNaviRole__right {% if app.request.get('_route') in specialRoutes %}no-margin{% endif %}\">
{% if app.request.get('_route') not in specialRoutes %}
<div class=\"ec-headerNaviRole__nav\">
{{ include('Block/login.twig') }}
</div>
{% endif %}
<div class=\"ec-headerRole__cart {% if app.request.get('_route') in specialRoutes %}hidden-cart{% endif %}\">
{{ include('Block/cart.twig') }}
</div>
</div>
</div>
", "Block/header.twig", "/home/ubuntu/wardrecords/app/template/default/Block/header.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 11, "if" => 25);
static $filters = array("escape" => 15);
static $functions = array("url" => 14, "asset" => 15, "render" => 19, "path" => 19, "include" => 22);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape'],
['url', 'asset', 'render', 'path', 'include'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}