<?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_insp.twig */
class __TwigTemplate_c9e2ab885c54967be41837d84d8ed295 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_insp.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_insp.twig"));
// line 5
$context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
// line 6
echo "<header class=\"common-header\">
<div class=\"head\">
";
// line 8
echo "</span>8,000円以上<span class=\"text-danger\">送料無料!</span>
</div>
<div class=\"body\">
<div class=\"d-flex align-items-center\">
<!-- ロゴ -->
<div class=\"me-0 me-lg-3\">
<a href=\"";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/logo.png"), "html", null, true);
echo "\" width=\"184\" height=\"45\" alt=\"ゴルフボールの名入れ・印刷はゴルフプリント\" class=\"img-fluid\"></a>
</div>
<!-- ▽ サイト検索(PC) -->
<div class=\"d-none d-lg-block\">
";
// line 18
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=\"utility-navi flex-grow-1 mx-1 mx-sm-3\">
<a href=\"";
// line 22
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_guide");
echo "\" class=\"items -guide\">ガイド</a>
<a href=\"";
// line 23
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\" class=\"items -contact\">お問合せ</a>
<a href=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/fax.pdf"), "html", null, true);
echo "\" target=\"_blank\" class=\"items -fax\">FAX</a>
";
// line 25
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 29
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"items -login\">マイページ</a>
";
} else {
// line 31
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"items -login\">ログイン</a>
";
}
// line 33
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"items -cart position-relative\">
カート
";
// line 35
if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 35, $this->source); })()) > 0)) {
// line 36
echo " <span class=\"badge bg-danger text-white rounded-pill _fs-1\" style=\"position: absolute; top: -4px; right: -4px;\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 36, $this->source); })()), 36, $this->source), "html", null, true);
echo "</span>
";
}
// line 38
echo " </a>
</div>
</div>
<!-- 電話 -->
<div class=\"free-call -header\">
<div class=\"dial\"><i class=\"icon-phone-outline\"></i>0120-669-121</div>
<div class=\"reception\">受付/ 9:30~18:00(土・日・祝を除く)</div>
</div>
</div>
<!-- ▽ サイト検索(SP) -->
<div class=\"d-block d-lg-none\">
<div class=\"container mb-3\">
";
// line 50
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>
</div>
<div class=\"foot\">
<div class=\"category-navi\">
<a href=\"";
// line 55
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=7\" class=\"items\">ボールを<br class=\"d-block d-sm-none\">選ぶ</a>
<a href=\"";
// line 56
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=8\" class=\"items\">マーカーを<br class=\"d-block d-sm-none\">選ぶ</a>
<a href=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=9\" class=\"items\">デザインを<br class=\"d-block d-sm-none\">選ぶ</a>
<a href=\"";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=10\" class=\"items\">ラッピング</a>
</div>
</div>
</header>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/header_insp.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 149 => 58, 145 => 57, 141 => 56, 137 => 55, 129 => 50, 115 => 38, 109 => 36, 107 => 35, 101 => 33, 95 => 31, 89 => 29, 87 => 25, 83 => 24, 79 => 23, 75 => 22, 68 => 18, 59 => 14, 51 => 8, 47 => 6, 45 => 5,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE, Overwrite by INSPIRATION
#}
{% set totalQuantity = get_carts_total_quantity() %}
<header class=\"common-header\">
<div class=\"head\">
{# ペイジェント導入後復活 5,000円以上<span class=\"text-danger\">代引手数料無料! #}</span>8,000円以上<span class=\"text-danger\">送料無料!</span>
</div>
<div class=\"body\">
<div class=\"d-flex align-items-center\">
<!-- ロゴ -->
<div class=\"me-0 me-lg-3\">
<a href=\"{{ url('homepage') }}\"><img src=\"{{ asset('assets/img/common/logo.png') }}\" width=\"184\" height=\"45\" alt=\"ゴルフボールの名入れ・印刷はゴルフプリント\" class=\"img-fluid\"></a>
</div>
<!-- ▽ サイト検索(PC) -->
<div class=\"d-none d-lg-block\">
{{ render(path('block_search_product')) }}
</div>
<!-- ユーティリティ -->
<div class=\"utility-navi flex-grow-1 mx-1 mx-sm-3\">
<a href=\"{{ url('help_guide') }}\" class=\"items -guide\">ガイド</a>
<a href=\"{{ url('contact') }}\" class=\"items -contact\">お問合せ</a>
<a href=\"{{ asset('assets/img/common/fax.pdf') }}\" target=\"_blank\" class=\"items -fax\">FAX</a>
{% if is_granted('ROLE_USER') %}
{#
<a href=\"{{ url('logout') }}\" class=\"items -login\">ログアウト</a>
#}
<a href=\"{{ url('mypage_login') }}\" class=\"items -login\">マイページ</a>
{% else %}
<a href=\"{{ url('mypage_login') }}\" class=\"items -login\">ログイン</a>
{% endif %}
<a href=\"{{ url('cart') }}\" class=\"items -cart position-relative\">
カート
{% if totalQuantity > 0 %}
<span class=\"badge bg-danger text-white rounded-pill _fs-1\" style=\"position: absolute; top: -4px; right: -4px;\">{{ totalQuantity }}</span>
{% endif %}
</a>
</div>
</div>
<!-- 電話 -->
<div class=\"free-call -header\">
<div class=\"dial\"><i class=\"icon-phone-outline\"></i>0120-669-121</div>
<div class=\"reception\">受付/ 9:30~18:00(土・日・祝を除く)</div>
</div>
</div>
<!-- ▽ サイト検索(SP) -->
<div class=\"d-block d-lg-none\">
<div class=\"container mb-3\">
{{ render(path('block_search_product')) }}
</div>
</div>
<div class=\"foot\">
<div class=\"category-navi\">
<a href=\"{{ url('product_list') }}?category_id=7\" class=\"items\">ボールを<br class=\"d-block d-sm-none\">選ぶ</a>
<a href=\"{{ url('product_list') }}?category_id=8\" class=\"items\">マーカーを<br class=\"d-block d-sm-none\">選ぶ</a>
<a href=\"{{ url('product_list') }}?category_id=9\" class=\"items\">デザインを<br class=\"d-block d-sm-none\">選ぶ</a>
<a href=\"{{ url('product_list') }}?category_id=10\" class=\"items\">ラッピング</a>
</div>
</div>
</header>", "Block/header_insp.twig", "/home/insp/insp.sixcore.jp/public_html/app/template/default/Block/header_insp.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 5, "if" => 25);
static $filters = array("escape" => 14);
static $functions = array("get_carts_total_quantity" => 5, "url" => 14, "asset" => 14, "render" => 18, "path" => 18, "is_granted" => 25);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape'],
['get_carts_total_quantity', 'url', 'asset', 'render', 'path', 'is_granted']
);
} 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;
}
}
}