var/cache/dev/twig/fe/fee15eaf44f00394f7a8e33e202f5106.php line 36

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Block/header.twig */
  14. class __TwigTemplate_986f1f513b442c7fe953e4fe9e02bfc7 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  36.         // line 11
  37.         echo "
  38. ";
  39.         // line 12
  40.         $this->displayBlock('stylesheet'$context$blocks);
  41.         // line 56
  42.         echo "
  43. <div class=\"kofun-header\">
  44. \t<div class=\"ec-headerNaviRole\">
  45. \t\t<div class=\"ec-headerNaviRole__left\">
  46. \t\t\t<div class=\"ec-headerNaviRole__search\">
  47. \t\t\t\t";
  48.         // line 66
  49.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  50.         echo "
  51. \t\t\t</div>
  52. \t\t\t<div class=\"ec-headerRole__navSP\">
  53. \t\t\t\t";
  54.         // line 69
  55.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/nav_sp.twig");
  56.         echo "
  57. \t\t\t</div>
  58. \t\t</div>
  59. \t\t<div class=\"ec-headerNaviRole__right\">
  60. \t\t\t<div class=\"ec-headerNaviRole__nav\">
  61. \t\t\t\t";
  62.         // line 74
  63.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/login.twig");
  64.         echo "
  65. \t\t\t</div>
  66. \t\t\t<div class=\"ec-headerRole__cart\">
  67. \t\t\t\t";
  68.         // line 77
  69.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/cart.twig");
  70.         echo "
  71. \t\t\t</div>
  72. \t\t</div>
  73. \t</div>
  74.     <div class=\"site-logo\">
  75. \t\t<a href=\"";
  76.         // line 82
  77.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  78.         echo "\" title=\"古墳の窓口\">
  79. \t\t\t<img fetchpriority=\"high\" src=\"";
  80.         // line 83
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/logo_kofunomadoguchi.png"), "html"nulltrue);
  82.         echo "\" alt=\"古墳の窓口\">
  83. \t\t</a>
  84.     </div>
  85. </div>
  86. ";
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.     }
  92.     // line 12
  93.     public function block_stylesheet($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  100.         // line 13
  101.         echo "    <style>
  102.         .kofun-header {
  103.             position: fixed;  /* 固定表示 */
  104.             top: 0;          /* 画面上部に配置 */
  105.             left: 0;         /* 左端に配置 */
  106.             width: 100%;     /* 幅を100%に */
  107.             z-index: 1000;   /* 他の要素より前面に表示 */
  108.         }
  109.         /* ヘッダーの下にコンテンツが隠れないように、bodyにパディングを追加 */
  110.         body {
  111.             padding-top: 121px;  /* ヘッダーの高さに応じて調整 */
  112.         }
  113.         @media only screen and (min-width: 768px) {
  114.             body {
  115.                 padding-top: 213px;  /* ヘッダーの高さに応じて調整 */
  116.             }
  117.         }
  118.         .ec-headerSearch .ec-headerSearch__keyword {
  119.             border: 0px;
  120.         }
  121.         .ec-headerNaviRole {
  122.             max-width: 100% !important;
  123. \t\t\t\t\t\tbackground-color: #fff;
  124.             padding-top: 0px;
  125.         }
  126.         .ec-headerNaviRole__nav{
  127.             margin-right: 10px;
  128.         }
  129.         .ec-cartNavi{
  130.             padding-bottom:20px;
  131.             height: 35px;
  132.         }
  133.         .ec-cartNavi__price{
  134.             padding-bottom:15px;
  135.         }
  136.     </style>
  137. ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     public function getTemplateName()
  144.     {
  145.         return "Block/header.twig";
  146.     }
  147.     public function isTraitable()
  148.     {
  149.         return false;
  150.     }
  151.     public function getDebugInfo()
  152.     {
  153.         return array (  120 => 13,  110 => 12,  95 => 83,  91 => 82,  83 => 77,  77 => 74,  69 => 69,  63 => 66,  51 => 56,  49 => 12,  46 => 11,);
  154.     }
  155.     public function getSourceContext()
  156.     {
  157.         return new Source("{#
  158. This file is part of EC-CUBE
  159. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  160. http://www.ec-cube.co.jp/
  161. For the full copyright and license information, please view the LICENSE
  162. file that was distributed with this source code.
  163. #}
  164. {% block stylesheet %}
  165.     <style>
  166.         .kofun-header {
  167.             position: fixed;  /* 固定表示 */
  168.             top: 0;          /* 画面上部に配置 */
  169.             left: 0;         /* 左端に配置 */
  170.             width: 100%;     /* 幅を100%に */
  171.             z-index: 1000;   /* 他の要素より前面に表示 */
  172.         }
  173.         /* ヘッダーの下にコンテンツが隠れないように、bodyにパディングを追加 */
  174.         body {
  175.             padding-top: 121px;  /* ヘッダーの高さに応じて調整 */
  176.         }
  177.         @media only screen and (min-width: 768px) {
  178.             body {
  179.                 padding-top: 213px;  /* ヘッダーの高さに応じて調整 */
  180.             }
  181.         }
  182.         .ec-headerSearch .ec-headerSearch__keyword {
  183.             border: 0px;
  184.         }
  185.         .ec-headerNaviRole {
  186.             max-width: 100% !important;
  187. \t\t\t\t\t\tbackground-color: #fff;
  188.             padding-top: 0px;
  189.         }
  190.         .ec-headerNaviRole__nav{
  191.             margin-right: 10px;
  192.         }
  193.         .ec-cartNavi{
  194.             padding-bottom:20px;
  195.             height: 35px;
  196.         }
  197.         .ec-cartNavi__price{
  198.             padding-bottom:15px;
  199.         }
  200.     </style>
  201. {% endblock %}
  202. <div class=\"kofun-header\">
  203. \t<div class=\"ec-headerNaviRole\">
  204. \t\t<div class=\"ec-headerNaviRole__left\">
  205. \t\t\t<div class=\"ec-headerNaviRole__search\">
  206. \t\t\t\t{{ render(path('block_search_product')) }}
  207. \t\t\t</div>
  208. \t\t\t<div class=\"ec-headerRole__navSP\">
  209. \t\t\t\t{{ include('Block/nav_sp.twig') }}
  210. \t\t\t</div>
  211. \t\t</div>
  212. \t\t<div class=\"ec-headerNaviRole__right\">
  213. \t\t\t<div class=\"ec-headerNaviRole__nav\">
  214. \t\t\t\t{{ include('Block/login.twig') }}
  215. \t\t\t</div>
  216. \t\t\t<div class=\"ec-headerRole__cart\">
  217. \t\t\t\t{{ include('Block/cart.twig') }}
  218. \t\t\t</div>
  219. \t\t</div>
  220. \t</div>
  221.     <div class=\"site-logo\">
  222. \t\t<a href=\"{{ url('homepage') }}\" title=\"古墳の窓口\">
  223. \t\t\t<img fetchpriority=\"high\" src=\"{{ asset('assets/img/top/logo_kofunomadoguchi.png') }}\" alt=\"古墳の窓口\">
  224. \t\t</a>
  225.     </div>
  226. </div>
  227. ""Block/header.twig""/var/www/html/app/template/default/Block/header.twig");
  228.     }
  229.     
  230.     public function checkSecurity()
  231.     {
  232.         static $tags = array("block" => 12);
  233.         static $filters = array("escape" => 83);
  234.         static $functions = array("render" => 66"path" => 66"include" => 69"url" => 82"asset" => 83);
  235.         try {
  236.             $this->sandbox->checkSecurity(
  237.                 ['block'],
  238.                 ['escape'],
  239.                 ['render''path''include''url''asset'],
  240.                 $this->source
  241.             );
  242.         } catch (SecurityError $e) {
  243.             $e->setSourceContext($this->source);
  244.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  245.                 $e->setTemplateLine($tags[$e->getTagName()]);
  246.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  247.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  248.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  249.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  250.             }
  251.             throw $e;
  252.         }
  253.     }
  254. }