<?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_3.twig */
class __TwigTemplate_710cf37064b155a629cd4936b0eba675 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_3.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_3.twig"));
// line 1
echo "<header class=\"block-header\">
<div class=\"py-5\">
<div class=\"container d-lg-flex justify-content-between align-items-center\">
<h1 class=\"block-heasder__logo m-0\">
";
// line 6
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">
<img style=\"height: 80px;\" src=\"";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/logo_02.png"), "html", null, true);
echo "\" alt=\"EC-CUBE SHOP demo\">
</a>
</h1>
";
// line 10
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Eccube\\Controller\\Block\\SearchProductController::index"));
echo "
<ul class=\"nav flex-column flex-lg-row mt-5 mt-lg-0 ml-lg-8 align-items-center\">
<li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"";
// line 12
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_about");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショップについて"), "html", null, true);
echo "</a></li>
<li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"";
// line 13
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html", null, true);
echo "</a></li>
<li class=\"py-3 py-lg-0 mx-2 ta-center\"><a href=\"";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
echo "\">
<i data-feather=\"user\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
<span class=\"d-lg-none\">マイページ</span>
</a></li>
";
// line 18
$context["Carts"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_all_carts();
// line 19
echo " ";
$context["totalPrice"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_price();
// line 20
echo " ";
$context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
// line 21
echo " <li class=\"py-3 py-lg-0 mx-2\"><a class=\"d-flex\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
<div class=\"pos-relative px-2\">
<i data-feather=\"shopping-cart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
<div class=\"pos-absolute pos-3 ta-center c-white\">
<span class=\"d-block w-1 h-1 bgc-key bdrs-circle fz-2\">";
// line 25
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.', 25, $this->source); })()), 25, $this->source)), "html", null, true);
echo "</span>
</div>
</div>
<span class=\"d-lg-none ml-3\">カート</span>
</a></li>
<li class=\"py-3 py-lg-0 ml-2 ta-center\"><a href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
echo "\">
<i data-feather=\"heart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
<span class=\"d-lg-none\">お気に入り</span>
</a></li>
</ul>
</div>
</div>
<nav class=\"headnav my-5 my-lg-0 bgc-dark-b\">
<div class=\"container\">
<ul class=\"nav d-block d-lg-flex justify-content-between ta-center\">
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">
トップページ
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">
商品一覧
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
// line 51
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_about");
echo "\">
";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショップについて"), "html", null, true);
echo "
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
// line 56
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_about");
echo "\">
";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご利用ガイド"), "html", null, true);
echo "
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
// line 61
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\">
";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html", null, true);
echo "
</a>
</li>
</ul>
</div>
</nav>
</header>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/header_3.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 166 => 62, 162 => 61, 155 => 57, 151 => 56, 144 => 52, 140 => 51, 132 => 46, 124 => 41, 110 => 30, 102 => 25, 94 => 21, 91 => 20, 88 => 19, 86 => 18, 79 => 14, 73 => 13, 67 => 12, 62 => 10, 56 => 7, 51 => 6, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<header class=\"block-header\">
<div class=\"py-5\">
<div class=\"container d-lg-flex justify-content-between align-items-center\">
<h1 class=\"block-heasder__logo m-0\">
{#<a href=\"{{ url('homepage') }}\">{{ BaseInfo.shop_name }}</a>#}
<a href=\"{{ url('homepage') }}\">
<img style=\"height: 80px;\" src=\"{{ asset('/html/user_data/logo_02.png')}}\" alt=\"EC-CUBE SHOP demo\">
</a>
</h1>
{{ render(controller('Eccube\\\\Controller\\\\Block\\\\SearchProductController::index')) }}
<ul class=\"nav flex-column flex-lg-row mt-5 mt-lg-0 ml-lg-8 align-items-center\">
<li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"{{ url('help_about') }}\">{{ 'ショップについて'|trans }}</a></li>
<li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"{{ url('contact') }}\">{{ 'お問い合わせ'|trans }}</a></li>
<li class=\"py-3 py-lg-0 mx-2 ta-center\"><a href=\"{{ url('mypage') }}\">
<i data-feather=\"user\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
<span class=\"d-lg-none\">マイページ</span>
</a></li>
{% set Carts = get_all_carts() %}
{% set totalPrice = get_carts_total_price() %}
{% set totalQuantity = get_carts_total_quantity() %}
<li class=\"py-3 py-lg-0 mx-2\"><a class=\"d-flex\" href=\"{{ url('cart') }}\">
<div class=\"pos-relative px-2\">
<i data-feather=\"shopping-cart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
<div class=\"pos-absolute pos-3 ta-center c-white\">
<span class=\"d-block w-1 h-1 bgc-key bdrs-circle fz-2\">{{ totalQuantity|number_format }}</span>
</div>
</div>
<span class=\"d-lg-none ml-3\">カート</span>
</a></li>
<li class=\"py-3 py-lg-0 ml-2 ta-center\"><a href=\"{{ url('mypage_favorite') }}\">
<i data-feather=\"heart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
<span class=\"d-lg-none\">お気に入り</span>
</a></li>
</ul>
</div>
</div>
<nav class=\"headnav my-5 my-lg-0 bgc-dark-b\">
<div class=\"container\">
<ul class=\"nav d-block d-lg-flex justify-content-between ta-center\">
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('homepage') }}\">
トップページ
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('product_list') }}\">
商品一覧
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('help_about') }}\">
{{ 'ショップについて'|trans }}
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('help_about') }}\">
{{ 'ご利用ガイド'|trans }}
</a>
</li>
<li class=\"flex-fill\">
<a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('contact') }}\">
{{ 'お問い合わせ'|trans }}
</a>
</li>
</ul>
</div>
</nav>
</header>", "Block/header_3.twig", "/home/okinawastore/okinawa-store.com/public_html/app/template/bootcube/Block/header_3.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 18);
static $filters = array("escape" => 7, "trans" => 12, "number_format" => 25);
static $functions = array("url" => 6, "asset" => 7, "render" => 10, "controller" => 10, "get_all_carts" => 18, "get_carts_total_price" => 19, "get_carts_total_quantity" => 20);
try {
$this->sandbox->checkSecurity(
['set'],
['escape', 'trans', 'number_format'],
['url', 'asset', 'render', 'controller', 'get_all_carts', 'get_carts_total_price', 'get_carts_total_quantity']
);
} 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;
}
}
}