<?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_986f1f513b442c7fe953e4fe9e02bfc7 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 = [
'stylesheet' => [$this, 'block_stylesheet'],
];
$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.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.twig"));
// line 11
echo "
";
// line 12
$this->displayBlock('stylesheet', $context, $blocks);
// line 56
echo "
<div class=\"kofun-header\">
\t<div class=\"ec-headerNaviRole\">
\t\t<div class=\"ec-headerNaviRole__left\">
\t\t\t<div class=\"ec-headerNaviRole__search\">
\t\t\t\t";
// line 66
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
\t\t\t</div>
\t\t\t<div class=\"ec-headerRole__navSP\">
\t\t\t\t";
// line 69
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/nav_sp.twig");
echo "
\t\t\t</div>
\t\t</div>
\t\t<div class=\"ec-headerNaviRole__right\">
\t\t\t<div class=\"ec-headerNaviRole__nav\">
\t\t\t\t";
// line 74
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/login.twig");
echo "
\t\t\t</div>
\t\t\t<div class=\"ec-headerRole__cart\">
\t\t\t\t";
// line 77
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/cart.twig");
echo "
\t\t\t</div>
\t\t</div>
\t</div>
<div class=\"site-logo\">
\t\t<a href=\"";
// line 82
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\" title=\"古墳の窓口\">
\t\t\t<img fetchpriority=\"high\" src=\"";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/logo_kofunomadoguchi.png"), "html", null, true);
echo "\" alt=\"古墳の窓口\">
\t\t</a>
</div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 12
public function block_stylesheet($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(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 13
echo " <style>
.kofun-header {
position: fixed; /* 固定表示 */
top: 0; /* 画面上部に配置 */
left: 0; /* 左端に配置 */
width: 100%; /* 幅を100%に */
z-index: 1000; /* 他の要素より前面に表示 */
}
/* ヘッダーの下にコンテンツが隠れないように、bodyにパディングを追加 */
body {
padding-top: 121px; /* ヘッダーの高さに応じて調整 */
}
@media only screen and (min-width: 768px) {
body {
padding-top: 213px; /* ヘッダーの高さに応じて調整 */
}
}
.ec-headerSearch .ec-headerSearch__keyword {
border: 0px;
}
.ec-headerNaviRole {
max-width: 100% !important;
\t\t\t\t\t\tbackground-color: #fff;
padding-top: 0px;
}
.ec-headerNaviRole__nav{
margin-right: 10px;
}
.ec-cartNavi{
padding-bottom:20px;
height: 35px;
}
.ec-cartNavi__price{
padding-bottom:15px;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Block/header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 120 => 13, 110 => 12, 95 => 83, 91 => 82, 83 => 77, 77 => 74, 69 => 69, 63 => 66, 51 => 56, 49 => 12, 46 => 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.
#}
{% block stylesheet %}
<style>
.kofun-header {
position: fixed; /* 固定表示 */
top: 0; /* 画面上部に配置 */
left: 0; /* 左端に配置 */
width: 100%; /* 幅を100%に */
z-index: 1000; /* 他の要素より前面に表示 */
}
/* ヘッダーの下にコンテンツが隠れないように、bodyにパディングを追加 */
body {
padding-top: 121px; /* ヘッダーの高さに応じて調整 */
}
@media only screen and (min-width: 768px) {
body {
padding-top: 213px; /* ヘッダーの高さに応じて調整 */
}
}
.ec-headerSearch .ec-headerSearch__keyword {
border: 0px;
}
.ec-headerNaviRole {
max-width: 100% !important;
\t\t\t\t\t\tbackground-color: #fff;
padding-top: 0px;
}
.ec-headerNaviRole__nav{
margin-right: 10px;
}
.ec-cartNavi{
padding-bottom:20px;
height: 35px;
}
.ec-cartNavi__price{
padding-bottom:15px;
}
</style>
{% endblock %}
<div class=\"kofun-header\">
\t<div class=\"ec-headerNaviRole\">
\t\t<div class=\"ec-headerNaviRole__left\">
\t\t\t<div class=\"ec-headerNaviRole__search\">
\t\t\t\t{{ render(path('block_search_product')) }}
\t\t\t</div>
\t\t\t<div class=\"ec-headerRole__navSP\">
\t\t\t\t{{ include('Block/nav_sp.twig') }}
\t\t\t</div>
\t\t</div>
\t\t<div class=\"ec-headerNaviRole__right\">
\t\t\t<div class=\"ec-headerNaviRole__nav\">
\t\t\t\t{{ include('Block/login.twig') }}
\t\t\t</div>
\t\t\t<div class=\"ec-headerRole__cart\">
\t\t\t\t{{ include('Block/cart.twig') }}
\t\t\t</div>
\t\t</div>
\t</div>
<div class=\"site-logo\">
\t\t<a href=\"{{ url('homepage') }}\" title=\"古墳の窓口\">
\t\t\t<img fetchpriority=\"high\" src=\"{{ asset('assets/img/top/logo_kofunomadoguchi.png') }}\" alt=\"古墳の窓口\">
\t\t</a>
</div>
</div>
", "Block/header.twig", "/var/www/html/app/template/default/Block/header.twig");
}
public function checkSecurity()
{
static $tags = array("block" => 12);
static $filters = array("escape" => 83);
static $functions = array("render" => 66, "path" => 66, "include" => 69, "url" => 82, "asset" => 83);
try {
$this->sandbox->checkSecurity(
['block'],
['escape'],
['render', 'path', 'include', 'url', 'asset'],
$this->source
);
} 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;
}
}
}