<?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_4a981db2caafcf9777b7c9320b960b3139496ffbf9690fab633705570ebba08d 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 = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header.twig"));
// line 11
echo "<header>
<div class=\"wrap\">
<div class=\"logo\">
<a href=\"";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\"><h1><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/ny_logo_w.svg", "user_data"), "html", null, true);
echo "\" alt=\"logo\">Ny Paradisa</h1></a>
</div>
<nav>
<input type=\"checkbox\" id=\"chk\">
<ul>
";
// line 20
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 21
echo "<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
echo "\" class=\"btn\">マイページ</a></li>
";
// line 22
if (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 22, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 22)) {
// line 23
echo "<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
echo "\" class=\"btn\">お気に入り</a></li>
";
}
// line 25
echo "
<li><a href=\"";
// line 26
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
echo "\" class=\"btn\">ログアウト</a></li>
";
} else {
// line 28
echo "<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\" class=\"btn\">新規会員登録</a></li>
";
// line 29
if (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 29, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 29)) {
// line 30
echo "<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
echo "\" class=\"btn\">お気に入り</a></li>
";
}
// line 32
echo "<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"btn\">ログイン</a></li>
";
}
// line 34
echo "
";
// line 35
if ((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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "get", [0 => "_route"], "method", false, false, false, 35) != "user_data")) {
// line 36
echo "<li><label for=\"rekichk\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon_reki.svg", "user_data"), "html", null, true);
echo "\" alt=\"閲覧履歴\"></label></li>
";
}
// line 38
echo "
<li><label for=\"searchk\"><img src=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon-glass_h.svg", "user_data"), "html", null, true);
echo "\" alt=\"検索\"></label></li>
<li><a href=\"/contact\"><img src=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon_email_h.svg", "user_data"), "html", null, true);
echo "\" alt=\"email\"></a></li>
<li><a href=\"https://www.instagram.com/ny_paradisa/\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icons8-instagram_h.svg", "user_data"), "html", null, true);
echo "\" alt=\"instagram\"></a></li>
<li><a href=\"https://twitter.com/nyparadisa\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icons8-twitter_h.svg", "user_data"), "html", null, true);
echo "\" alt=\"twitter\"></a></li>
<li class=\"ec-headerRole__cart\">";
// line 43
echo twig_include($this->env, $context, "Block/cart.twig");
echo "</li>
<li class=\"sp\">
<label for=\"chk\">×</label>
</li>
</ul>
<label for=\"chk\" id=\"humbt\">
<span></span>
<span></span>
<span></span>
</label>
</nav>
</div>
</header>
<input type=\"checkbox\" id=\"searchk\">
<div class=\"searchbox\">
<p class=\"txtR\"><strong>■商品検索</strong><label for=\"searchk\">×</label></p>
";
// line 60
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>
<input type=\"checkbox\" id=\"rekichk\">
<div class=\"rirekibox\">
<p class=\"txtR\"><strong>■商品閲覧履歴</strong><label for=\"rekichk\">×</label></p>
";
// line 66
$context["Products"] = $this->extensions['Customize\Twig\Extension\MyExtension']->krsort((isset($context["productHistory"]) || array_key_exists("productHistory", $context) ? $context["productHistory"] : (function () { throw new RuntimeError('Variable "productHistory" does not exist.', 66, $this->source); })()));
// line 67
if ((twig_length_filter($this->env, (isset($context["Products"]) || array_key_exists("Products", $context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.', 67, $this->source); })())) > 0)) {
// line 68
echo "<ul>
";
// line 69
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Products"]) || array_key_exists("Products", $context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.', 69, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 70
echo "<li>
<a href=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 71)]), "html", null, true);
echo "\">
<div class=\"pic\">
<img src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["Product"], "getMainListImage", [], "any", false, false, false, 73), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 73), "html", null, true);
echo "\">
</div>
<p>";
// line 75
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 75), "html", null, true);
echo ":
";
// line 76
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 76)) {
// line 77
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 77) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 77))) {
// line 78
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 78)), "html", null, true);
echo "
";
} else {
// line 80
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 80)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, false, 80)), "html", null, true);
echo "
";
}
// line 82
echo " ";
} else {
// line 83
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 83)), "html", null, true);
echo "
";
}
// line 85
echo " </p>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 89
echo "
</ul>
";
} else {
// line 92
echo "<p>まだ閲覧履歴はありません。</p>
";
}
// line 94
echo "</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Block/header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 236 => 94, 232 => 92, 227 => 89, 218 => 85, 212 => 83, 209 => 82, 201 => 80, 195 => 78, 192 => 77, 190 => 76, 186 => 75, 179 => 73, 174 => 71, 171 => 70, 167 => 69, 164 => 68, 162 => 67, 160 => 66, 151 => 60, 131 => 43, 127 => 42, 123 => 41, 119 => 40, 115 => 39, 112 => 38, 106 => 36, 104 => 35, 101 => 34, 95 => 32, 89 => 30, 87 => 29, 82 => 28, 77 => 26, 74 => 25, 68 => 23, 66 => 22, 61 => 21, 59 => 20, 48 => 14, 43 => 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.
#}
<header>
<div class=\"wrap\">
<div class=\"logo\">
<a href=\"{{ url('homepage') }}\"><h1><img src=\"{{ asset('assets/images/ny_logo_w.svg', 'user_data') }}\" alt=\"logo\">Ny Paradisa</h1></a>
</div>
<nav>
<input type=\"checkbox\" id=\"chk\">
<ul>
{% if is_granted('ROLE_USER') %}
<li><a href=\"{{ url('mypage') }}\" class=\"btn\">マイページ</a></li>
{% if BaseInfo.option_favorite_product %}
<li><a href=\"{{ url('mypage_favorite') }}\" class=\"btn\">お気に入り</a></li>
{% endif %}
<li><a href=\"{{ url('logout') }}\" class=\"btn\">ログアウト</a></li>
{% else %}
<li><a href=\"{{ url('entry') }}\" class=\"btn\">新規会員登録</a></li>
{% if BaseInfo.option_favorite_product %}
<li><a href=\"{{ url('mypage_favorite') }}\" class=\"btn\">お気に入り</a></li>
{% endif %}
<li><a href=\"{{ url('mypage_login') }}\" class=\"btn\">ログイン</a></li>
{% endif %}
{% if app.request.get('_route') != 'user_data' %}
<li><label for=\"rekichk\"><img src=\"{{ asset('assets/images/icon_reki.svg', 'user_data') }}\" alt=\"閲覧履歴\"></label></li>
{% endif %}
<li><label for=\"searchk\"><img src=\"{{ asset('assets/images/icon-glass_h.svg', 'user_data') }}\" alt=\"検索\"></label></li>
<li><a href=\"/contact\"><img src=\"{{ asset('assets/images/icon_email_h.svg', 'user_data') }}\" alt=\"email\"></a></li>
<li><a href=\"https://www.instagram.com/ny_paradisa/\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"{{ asset('assets/images/icons8-instagram_h.svg', 'user_data') }}\" alt=\"instagram\"></a></li>
<li><a href=\"https://twitter.com/nyparadisa\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"{{ asset('assets/images/icons8-twitter_h.svg', 'user_data') }}\" alt=\"twitter\"></a></li>
<li class=\"ec-headerRole__cart\">{{ include('Block/cart.twig') }}</li>
<li class=\"sp\">
<label for=\"chk\">×</label>
</li>
</ul>
<label for=\"chk\" id=\"humbt\">
<span></span>
<span></span>
<span></span>
</label>
</nav>
</div>
</header>
<input type=\"checkbox\" id=\"searchk\">
<div class=\"searchbox\">
<p class=\"txtR\"><strong>■商品検索</strong><label for=\"searchk\">×</label></p>
{{ render(path('block_search_product')) }}
</div>
<input type=\"checkbox\" id=\"rekichk\">
<div class=\"rirekibox\">
<p class=\"txtR\"><strong>■商品閲覧履歴</strong><label for=\"rekichk\">×</label></p>
{% set Products = productHistory|krsort %}
{% if Products|length > 0 %}
<ul>
{% for Product in Products %}
<li>
<a href=\"{{ url('product_detail', {'id':Product.id}) }}\">
<div class=\"pic\">
<img src=\"{{ asset(Product.getMainListImage, 'save_image') }}\" alt=\"{{Product.name}}\">
</div>
<p>{{Product.name}}:
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>まだ閲覧履歴はありません。</p>
{% endif %}
</div>", "Block/header.twig", "/home/ny-paradisa/public_html/app/template/default/Block/header.twig");
}
}