<?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/customize_header.twig */
class __TwigTemplate_33e1c6e25b02461b589eb02d450e76bb 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/customize_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/customize_header.twig"));
// line 1
echo "<div class=\"customize_header_area\">
\t<div class=\"customize_header\">
<div class=\"customize_header_left\">
<a href=\"";
// line 4
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">
<span>";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.title"), "html", null, true);
echo "</span>
<img id=\"customizeTopImage\" src=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/会員限定.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.image"), "html", null, true);
echo "\" />
</a>
</div>
<div class=\"customize_header_right\">
<a href=\"";
// line 10
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\">
<i class=\"fa-solid fa-envelope\"></i>
<span>
";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.contact"), "html", null, true);
echo "
</span>
</a>
<span>|</span>
<span>
<a href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/UserGuideforBuyers.pdf"), "html", null, true);
echo "\"
target=\"_blank\"
rel=\"noopener\">
";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.guide"), "html", null, true);
echo "
</a>
</span>
</div>
\t</div>
<div class=\"customize_header_search_area\">
<div class=\"customize_header_sublogo\">
<img id=\"customizeSubLogo\" src=\"";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/KTM_logo.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.sublogo"), "html", null, true);
echo "\" />
</div>
<div class=\"customize_header_search\">
";
// line 31
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customize_block_search_product"));
echo "
</div>
<div class=\"customize_header_logininfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"マイページ\">
<a href=\"";
// line 34
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
echo "\">
";
// line 36
if (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.', 36, $this->source); })()), "user", [], "any", false, false, true, 36)) {
// line 37
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.greeting"), "html", null, true);
echo " ";
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.', 37, $this->source); })()), "user", [], "any", false, false, true, 37), "company_name", [], "any", false, false, true, 37), 37, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.honor"), "html", null, true);
echo "</span>
";
} else {
// line 39
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.greeting"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.guest"), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.honor"), "html", null, true);
echo "</span>
";
}
// line 41
echo " <span class=\"customize_divider\">|</span>
<i class=\"fa-regular fa-circle-user fa-2x\"></i>
</a>
</div>
";
// line 45
if (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.', 45, $this->source); })()), "user", [], "any", false, false, true, 45)) {
// line 46
echo " <div class=\"customize_header_logoutinfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"ログアウト\">
<a href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
echo "\">
<i class=\"fa-solid fa-right-from-bracket fa-2x\"></i>
</a>
</div>
";
}
// line 52
echo " <div class=\"customize_header_favorite\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"お気に入り\">
<a href=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
echo "\">
<i class=\"fa-brands fa-gratipay fa-2x\"></i>
</a>
</div>
<div class=\"customize_header_cart\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"カート\">
<a href=\"";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
<i class=\"fa fa-shopping-cart fa-2x\"></i>
</a>
</div>
</div>
</div>
<script>
\$(function () {
\$('[data-toggle=\"tooltip\"]').tooltip({
delay: { \"show\": 0, \"hide\": 0 }
});
});
</script>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/customize_header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 166 => 58, 158 => 53, 155 => 52, 147 => 47, 144 => 46, 142 => 45, 136 => 41, 127 => 39, 118 => 37, 116 => 36, 111 => 34, 105 => 31, 97 => 28, 87 => 21, 81 => 18, 73 => 13, 67 => 10, 58 => 6, 54 => 5, 50 => 4, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"customize_header_area\">
\t<div class=\"customize_header\">
<div class=\"customize_header_left\">
<a href=\"{{ url('homepage') }}\">
<span>{{ 'customize.header.title'|trans }}</span>
<img id=\"customizeTopImage\" src=\"{{ asset('assets/img/common/会員限定.png') }}\" alt=\"{{ 'customize.header.image'|trans }}\" />
</a>
</div>
<div class=\"customize_header_right\">
<a href=\"{{ url('contact') }}\">
<i class=\"fa-solid fa-envelope\"></i>
<span>
{{ 'customize.header.contact'|trans }}
</span>
</a>
<span>|</span>
<span>
<a href=\"{{ asset('assets/pdf/UserGuideforBuyers.pdf') }}\"
target=\"_blank\"
rel=\"noopener\">
{{ 'customize.header.guide'|trans }}
</a>
</span>
</div>
\t</div>
<div class=\"customize_header_search_area\">
<div class=\"customize_header_sublogo\">
<img id=\"customizeSubLogo\" src=\"{{ asset('assets/img/common/KTM_logo.png') }}\" alt=\"{{ 'customize.header.sublogo'|trans }}\" />
</div>
<div class=\"customize_header_search\">
{{ render(path('customize_block_search_product')) }}
</div>
<div class=\"customize_header_logininfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"マイページ\">
<a href=\"{{ url('mypage') }}\">
{% if app.user %}
<span>{{ 'customize.header.greeting'|trans }} {{ app.user.company_name }}{{ 'customize.header.honor'|trans }}</span>
{% else %}
<span>{{ 'customize.header.greeting'|trans }} {{ 'customize.header.guest'|trans }}{{ 'customize.header.honor'|trans }}</span>
{% endif %}
<span class=\"customize_divider\">|</span>
<i class=\"fa-regular fa-circle-user fa-2x\"></i>
</a>
</div>
{% if app.user %}
<div class=\"customize_header_logoutinfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"ログアウト\">
<a href=\"{{ url('logout') }}\">
<i class=\"fa-solid fa-right-from-bracket fa-2x\"></i>
</a>
</div>
{% endif %}
<div class=\"customize_header_favorite\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"お気に入り\">
<a href=\"{{ url('mypage_favorite') }}\">
<i class=\"fa-brands fa-gratipay fa-2x\"></i>
</a>
</div>
<div class=\"customize_header_cart\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"カート\">
<a href=\"{{ url('cart') }}\">
<i class=\"fa fa-shopping-cart fa-2x\"></i>
</a>
</div>
</div>
</div>
<script>
\$(function () {
\$('[data-toggle=\"tooltip\"]').tooltip({
delay: { \"show\": 0, \"hide\": 0 }
});
});
</script>", "Block/customize_header.twig", "/home/bluehippo91/www/bluehippo91.sakura.ne.jp/app/template/ibn4203/Block/customize_header.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 36);
static $filters = array("escape" => 5, "trans" => 5);
static $functions = array("url" => 4, "asset" => 6, "render" => 31, "path" => 31);
try {
$this->sandbox->checkSecurity(
['if'],
['escape', 'trans'],
['url', 'asset', 'render', 'path']
);
} 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;
}
}
}