<?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/lm_global_header.twig */
class __TwigTemplate_1d715debeb055f3bb4fa82e77366208b 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/lm_global_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/lm_global_header.twig"));
// line 1
echo "<div id=\"header-1-wrapper\">
<div id=\"header-1\">
<div id=\"header-1-1\">
<div id=\"header-1-1-1\" class=\"s\">
</div>
<div class=\"cart-in-box\">
";
// line 7
$context["totalPrice"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_price();
// line 8
echo " ";
$context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
// line 9
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" rel=\"nofollow\">
<img class=\"cart-img\" width=\"150px\" height=\"50px\" src=\"/images/header/cart.png\" alt=\"カートを見る\" onmouseover=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/cart_on.png'\" onmouseout=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/cart.png'\">
</a>
<div class=\"item-count\">
商品合計:
<span><b>";
// line 15
echo twig_escape_filter($this->env, twig_number_format_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.', 15, $this->source); })()), 15, $this->source)), "html", null, true);
echo "</b>点</span>
</div>
<div class=\"return-shipping\">
¥ <b>";
// line 19
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["totalPrice"]) || array_key_exists("totalPrice", $context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.', 19, $this->source); })()), 19, $this->source)), "html", null, true);
echo "</b>
</div>
<div class=\"tax-in\">(税込)</div>
<a href=\"/contact/fax/\" rel=\"nofollow\">
<img width=\"110px\" height=\"50px\" class=\"fax-img\" src=\"/images/header/fax.png\" alt=\"FAX\" onmouseover=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/fax_on.png'\" onmouseout=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/fax.png'\">
</a>
<a href=\"";
// line 26
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\" rel=\"nofollow\">
<img width=\"130px\" height=\"50px\" class=\"mail-img\" src=\"/images/header/mail.png\" alt=\"メール\" onmouseover=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/mail_on.png'\" onmouseout=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/mail.png'\">
</a>
</div>
</div>
</div>
</div>
<div id=\"header-2\">
\t";
// line 34
$context["current_path"] = 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.', 34, $this->source); })()), "request", [], "any", false, false, true, 34), "get", [0 => "_route"], "method", false, false, true, 34);
// line 35
echo " <div class=\"header-2-inner\">
<div class=\"fl\">
<div id=\"logo\">
\t ";
// line 38
if (((isset($context["current_path"]) || array_key_exists("current_path", $context) ? $context["current_path"] : (function () { throw new RuntimeError('Variable "current_path" does not exist.', 38, $this->source); })()) == "homepage")) {
// line 39
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\"><h1><img width=\"230px\" height=\"75px\" src=\"/images/header/site_logo.jpg\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\ServiceExtension']->SetHeaderH1(), "html", null, true);
echo "\"></h1></a>
";
} else {
// line 41
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\"><img width=\"230px\" height=\"75px\" src=\"/images/header/site_logo.jpg\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\ServiceExtension']->SetHeaderH1(), "html", null, true);
echo "\"></a>
";
}
// line 43
echo " </div>
</div>
<div class=\"fr\">
<img width=\"450px\" height=\"55px\" src=\"/images/header/service.jpg\" alt=\"ユニフォーム ネット販売最大手の安心感が誇るサービスと実績\">
<img width=\"280px\" height=\"85px\" src=\"/images/header/freedial.jpg\" alt=\"電話注文できます 見積り、お問合せは無料\">
</div>
</div>
</div>
<div id=\"header-3\">
<div class=\"header-3-inner\">
<div class=\"fl\">
<form class=\"d-flex flex-center-vertial\" style=\"width: 492px; height: 46.5px\" action=\"";
// line 54
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("item_searchlist");
echo "\" method=\"get\">
<input type=\"hidden\" name=\"hantei\" value=\"検索\">
<div class=\"serch-box\">
<input type=\"text\" name=\"searchtext\" value=\"";
// line 57
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, true, 57), "get", [0 => "searchtext"], "method", true, true, true, 57) && (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.', 57, $this->source); })()), "request", [], "any", false, false, true, 57), "get", [0 => "searchtext"], "method", false, false, true, 57) != ""))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 57, $this->source); })()), "request", [], "any", false, false, true, 57), "get", [0 => "searchtext"], "method", false, false, true, 57), 57, $this->source), "html", null, true);
}
echo "\" placeholder=\"商品名、品番、ブランド、キーワード\" autocomplete=\"off\" style=\"height: 34px; width: ";
echo (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) ? ("436px;") : ("442px;"));
echo "\" required />
<input type=\"image\" name=\"image\" src=\"/images/header/search.png\" class=\"fl\" alt=\"検索\" width=\"50\" height=\"34\" />
</div>
</form>
</div>
<div class=\"login-area fr\">
";
// line 63
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 64
echo " <div id=\"loggin\">
\t\t\t\t\t<div class=\"loggin-box\">
\t\t\t\t\t\t<div class=\"loggin-detail\">
<span>";
// line 67
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPhpFunctions("mb_strimwidth", $this->sandbox->ensureToStringAllowed(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.', 67, $this->source); })()), "user", [], "any", false, false, true, 67), "company_name", [], "any", false, false, true, 67), 67, $this->source), 0, 50, "...");
echo "</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"loggin-detail mt5px\">
<span>";
// line 70
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPhpFunctions("mb_strimwidth", $this->sandbox->ensureToStringAllowed(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.', 70, $this->source); })()), "user", [], "any", false, false, true, 70), "full_name", [], "any", false, false, true, 70), 70, $this->source), 0, 50, "...");
echo "</span> 様 【お客様番号】<span>";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\ServiceExtension']->GetCustomerBangou($this->sandbox->ensureToStringAllowed(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.', 70, $this->source); })()), "user", [], "any", false, false, true, 70), "LmCustomerId", [], "any", false, false, true, 70), 70, $this->source)), "html", null, true);
echo "</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
<div class=\"mt10px fl\">
<a href=\"";
// line 74
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
echo "\" rel=\"nofollow\">
<img src=\"/images/header/mypage.png\" alt=\"マイページ\" width=\"80\" height=\"25\" />
</a>
<a class=\"ml10px\" href=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
echo "\" rel=\"nofollow\">
<img src=\"/images/header/logout.png\" alt=\"ログアウト\" width=\"80\" height=\"25\" />
</a>
</div>
\t\t\t\t</div>
";
} else {
// line 83
echo " <div class=\"welcome-area flex\">
\t\t\t\t\t<div class=\"sitemap-link\">
\t\t\t\t\t\t<a href=\"/sitemap/\">サイトマップ</a>
\t\t\t\t\t</div>
\t\t\t\t\t<ul id=\"welcome-msg\">
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span>ようこそ ゲスト様</span>
\t\t\t\t\t\t\t<a href=\"";
// line 91
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\" rel=\"nofollow\"><img src=\"/images/header/member.png\" alt=\"新規会員登録\" width=\"95\" height=\"25\" /></a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span><b>再注文</b></span>
\t\t\t\t\t\t\t<span>ならまずログイン!</span><a href=\"/mypage/login/\" rel=\"nofollow\"><img src=\"/images/header/login.png\" alt=\"ログイン\" width=\"75\" height=\"25\" /></a>
\t\t\t\t\t\t</li>
\t\t\t\t\t</ul>
\t\t\t\t</div><!-- /.flex -->
";
}
// line 100
echo " </div>
</div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/lm_global_header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 212 => 100, 200 => 91, 190 => 83, 181 => 77, 175 => 74, 166 => 70, 160 => 67, 155 => 64, 153 => 63, 140 => 57, 134 => 54, 121 => 43, 113 => 41, 105 => 39, 103 => 38, 98 => 35, 96 => 34, 85 => 26, 75 => 19, 68 => 15, 58 => 9, 55 => 8, 53 => 7, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<div id=\"header-1-wrapper\">
<div id=\"header-1\">
<div id=\"header-1-1\">
<div id=\"header-1-1-1\" class=\"s\">
</div>
<div class=\"cart-in-box\">
{% set totalPrice = get_carts_total_price() %}
{% set totalQuantity = get_carts_total_quantity() %}
<a href=\"{{ url('cart') }}\" rel=\"nofollow\">
<img class=\"cart-img\" width=\"150px\" height=\"50px\" src=\"/images/header/cart.png\" alt=\"カートを見る\" onmouseover=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/cart_on.png'\" onmouseout=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/cart.png'\">
</a>
<div class=\"item-count\">
商品合計:
<span><b>{{ totalQuantity | number_format }}</b>点</span>
</div>
<div class=\"return-shipping\">
¥ <b>{{ totalPrice | number_format }}</b>
</div>
<div class=\"tax-in\">(税込)</div>
<a href=\"/contact/fax/\" rel=\"nofollow\">
<img width=\"110px\" height=\"50px\" class=\"fax-img\" src=\"/images/header/fax.png\" alt=\"FAX\" onmouseover=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/fax_on.png'\" onmouseout=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/fax.png'\">
</a>
<a href=\"{{ url('contact') }}\" rel=\"nofollow\">
<img width=\"130px\" height=\"50px\" class=\"mail-img\" src=\"/images/header/mail.png\" alt=\"メール\" onmouseover=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/mail_on.png'\" onmouseout=\"this.src='https://img0.land-mark.biz/ut_img/public_images/header/mail.png'\">
</a>
</div>
</div>
</div>
</div>
<div id=\"header-2\">
\t{% set current_path = app.request.get('_route') %}
<div class=\"header-2-inner\">
<div class=\"fl\">
<div id=\"logo\">
\t {% if current_path == 'homepage' %}
<a href=\"{{ url('homepage') }}\"><h1><img width=\"230px\" height=\"75px\" src=\"/images/header/site_logo.jpg\" alt=\"{{ HeaderH1() }}\"></h1></a>
{% else %}
<a href=\"{{ url('homepage') }}\"><img width=\"230px\" height=\"75px\" src=\"/images/header/site_logo.jpg\" alt=\"{{ HeaderH1() }}\"></a>
{% endif %}
</div>
</div>
<div class=\"fr\">
<img width=\"450px\" height=\"55px\" src=\"/images/header/service.jpg\" alt=\"ユニフォーム ネット販売最大手の安心感が誇るサービスと実績\">
<img width=\"280px\" height=\"85px\" src=\"/images/header/freedial.jpg\" alt=\"電話注文できます 見積り、お問合せは無料\">
</div>
</div>
</div>
<div id=\"header-3\">
<div class=\"header-3-inner\">
<div class=\"fl\">
<form class=\"d-flex flex-center-vertial\" style=\"width: 492px; height: 46.5px\" action=\"{{ url('item_searchlist') }}\" method=\"get\">
<input type=\"hidden\" name=\"hantei\" value=\"検索\">
<div class=\"serch-box\">
<input type=\"text\" name=\"searchtext\" value=\"{% if app.request.get('searchtext') is defined and app.request.get('searchtext') != '' %}{{ app.request.get('searchtext') }}{% endif %}\" placeholder=\"商品名、品番、ブランド、キーワード\" autocomplete=\"off\" style=\"height: 34px; width: {{ is_granted('ROLE_USER') ? '436px;' : '442px;' }}\" required />
<input type=\"image\" name=\"image\" src=\"/images/header/search.png\" class=\"fl\" alt=\"検索\" width=\"50\" height=\"34\" />
</div>
</form>
</div>
<div class=\"login-area fr\">
{% if is_granted('ROLE_USER') %}
<div id=\"loggin\">
\t\t\t\t\t<div class=\"loggin-box\">
\t\t\t\t\t\t<div class=\"loggin-detail\">
<span>{{ php_mb_strimwidth(app.user.company_name, 0, 50, \"...\") }}</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"loggin-detail mt5px\">
<span>{{ php_mb_strimwidth(app.user.full_name, 0, 50, \"...\") }}</span> 様 【お客様番号】<span>{{ GetCustomerBangou(app.user.LmCustomerId) }}</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
<div class=\"mt10px fl\">
<a href=\"{{ url('mypage') }}\" rel=\"nofollow\">
<img src=\"/images/header/mypage.png\" alt=\"マイページ\" width=\"80\" height=\"25\" />
</a>
<a class=\"ml10px\" href=\"{{ url('logout') }}\" rel=\"nofollow\">
<img src=\"/images/header/logout.png\" alt=\"ログアウト\" width=\"80\" height=\"25\" />
</a>
</div>
\t\t\t\t</div>
{% else %}
<div class=\"welcome-area flex\">
\t\t\t\t\t<div class=\"sitemap-link\">
\t\t\t\t\t\t<a href=\"/sitemap/\">サイトマップ</a>
\t\t\t\t\t</div>
\t\t\t\t\t<ul id=\"welcome-msg\">
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span>ようこそ ゲスト様</span>
\t\t\t\t\t\t\t<a href=\"{{ url('entry') }}\" rel=\"nofollow\"><img src=\"/images/header/member.png\" alt=\"新規会員登録\" width=\"95\" height=\"25\" /></a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span><b>再注文</b></span>
\t\t\t\t\t\t\t<span>ならまずログイン!</span><a href=\"/mypage/login/\" rel=\"nofollow\"><img src=\"/images/header/login.png\" alt=\"ログイン\" width=\"75\" height=\"25\" /></a>
\t\t\t\t\t\t</li>
\t\t\t\t\t</ul>
\t\t\t\t</div><!-- /.flex -->
{% endif %}
</div>
</div>
</div>
", "Block/lm_global_header.twig", "/var/www/html/app/template/default/Block/lm_global_header.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 7, "if" => 38);
static $filters = array("escape" => 15, "number_format" => 15);
static $functions = array("get_carts_total_price" => 7, "get_carts_total_quantity" => 8, "url" => 9, "HeaderH1" => 39, "is_granted" => 57, "php_mb_strimwidth" => 67, "GetCustomerBangou" => 70);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape', 'number_format'],
['get_carts_total_price', 'get_carts_total_quantity', 'url', 'HeaderH1', 'is_granted', 'php_mb_strimwidth', 'GetCustomerBangou']
);
} 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;
}
}
}