var/cache/dev/twig/9f/9f5e066a27a51851cdc6f6c733e039b1.php line 68

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_insp.twig */
  14. class __TwigTemplate_c9e2ab885c54967be41837d84d8ed295 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.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header_insp.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header_insp.twig"));
  35.         // line 5
  36.         $context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
  37.         // line 6
  38.         echo "<header class=\"common-header\">
  39.         <div class=\"head\">
  40.             ";
  41.         // line 8
  42.         echo "</span>8,000円以上<span class=\"text-danger\">送料無料!</span>
  43.         </div>
  44.         <div class=\"body\">
  45.             <div class=\"d-flex align-items-center\">
  46.                 <!-- ロゴ -->
  47.                 <div class=\"me-0 me-lg-3\">
  48.                     <a href=\"";
  49.         // line 14
  50.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  51.         echo "\"><img src=\"";
  52.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/logo.png"), "html"nulltrue);
  53.         echo "\" width=\"184\" height=\"45\" alt=\"ゴルフボールの名入れ・印刷はゴルフプリント\" class=\"img-fluid\"></a>
  54.                 </div>
  55.                 <!-- ▽ サイト検索(PC) -->
  56.                 <div class=\"d-none d-lg-block\">
  57. ";
  58.         // line 18
  59.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  60.         echo "
  61.                 </div>
  62.                 <!-- ユーティリティ -->
  63.                 <div class=\"utility-navi flex-grow-1 mx-1 mx-sm-3\">
  64.                     <a href=\"";
  65.         // line 22
  66.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_guide");
  67.         echo "\" class=\"items -guide\">ガイド</a>
  68.                     <a href=\"";
  69.         // line 23
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  71.         echo "\" class=\"items -contact\">お問合せ</a>
  72.                     <a href=\"";
  73.         // line 24
  74.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/fax.pdf"), "html"nulltrue);
  75.         echo "\" target=\"_blank\" class=\"items -fax\">FAX</a>
  76.     ";
  77.         // line 25
  78.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  79.             // line 29
  80.             echo "                    <a href=\"";
  81.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  82.             echo "\" class=\"items -login\">マイページ</a>
  83.     ";
  84.         } else {
  85.             // line 31
  86.             echo "                    <a href=\"";
  87.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  88.             echo "\" class=\"items -login\">ログイン</a>
  89.     ";
  90.         }
  91.         // line 33
  92.         echo "                    <a href=\"";
  93.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  94.         echo "\" class=\"items -cart position-relative\">
  95.                         カート
  96.     ";
  97.         // line 35
  98.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'35$this->source); })()) > 0)) {
  99.             // line 36
  100.             echo "                        <span class=\"badge bg-danger text-white rounded-pill _fs-1\" style=\"position: absolute; top: -4px; right: -4px;\">";
  101.             echo twig_escape_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.'36$this->source); })()), 36$this->source), "html"nulltrue);
  102.             echo "</span>
  103.     ";
  104.         }
  105.         // line 38
  106.         echo "                    </a>
  107.                 </div>
  108.             </div>
  109.             <!-- 電話 -->
  110.             <div class=\"free-call -header\">
  111.                 <div class=\"dial\"><i class=\"icon-phone-outline\"></i>0120-669-121</div>
  112.                 <div class=\"reception\">受付/ 9:30~18:00(土・日・祝を除く)</div>
  113.             </div>
  114.         </div>
  115.         <!-- ▽ サイト検索(SP) -->
  116.         <div class=\"d-block d-lg-none\">
  117.             <div class=\"container mb-3\">
  118. ";
  119.         // line 50
  120.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  121.         echo "
  122.             </div>
  123.         </div>
  124.         <div class=\"foot\">
  125.             <div class=\"category-navi\">
  126.                 <a href=\"";
  127.         // line 55
  128.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  129.         echo "?category_id=7\" class=\"items\">ボールを<br class=\"d-block d-sm-none\">選ぶ</a>
  130.                 <a href=\"";
  131.         // line 56
  132.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  133.         echo "?category_id=8\" class=\"items\">マーカーを<br class=\"d-block d-sm-none\">選ぶ</a>
  134.                 <a href=\"";
  135.         // line 57
  136.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  137.         echo "?category_id=9\" class=\"items\">デザインを<br class=\"d-block d-sm-none\">選ぶ</a>
  138.                 <a href=\"";
  139.         // line 58
  140.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  141.         echo "?category_id=10\" class=\"items\">ラッピング</a>
  142.             </div>
  143.         </div>
  144.     </header>";
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.         
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  149.     }
  150.     public function getTemplateName()
  151.     {
  152.         return "Block/header_insp.twig";
  153.     }
  154.     public function isTraitable()
  155.     {
  156.         return false;
  157.     }
  158.     public function getDebugInfo()
  159.     {
  160.         return array (  149 => 58,  145 => 57,  141 => 56,  137 => 55,  129 => 50,  115 => 38,  109 => 36,  107 => 35,  101 => 33,  95 => 31,  89 => 29,  87 => 25,  83 => 24,  79 => 23,  75 => 22,  68 => 18,  59 => 14,  51 => 8,  47 => 6,  45 => 5,);
  161.     }
  162.     public function getSourceContext()
  163.     {
  164.         return new Source("{#
  165. This file is part of EC-CUBE, Overwrite by INSPIRATION
  166. #}
  167. {% set totalQuantity = get_carts_total_quantity() %}
  168. <header class=\"common-header\">
  169.         <div class=\"head\">
  170.             {# ペイジェント導入後復活 5,000円以上<span class=\"text-danger\">代引手数料無料! #}</span>8,000円以上<span class=\"text-danger\">送料無料!</span>
  171.         </div>
  172.         <div class=\"body\">
  173.             <div class=\"d-flex align-items-center\">
  174.                 <!-- ロゴ -->
  175.                 <div class=\"me-0 me-lg-3\">
  176.                     <a href=\"{{ url('homepage') }}\"><img src=\"{{ asset('assets/img/common/logo.png') }}\" width=\"184\" height=\"45\" alt=\"ゴルフボールの名入れ・印刷はゴルフプリント\" class=\"img-fluid\"></a>
  177.                 </div>
  178.                 <!-- ▽ サイト検索(PC) -->
  179.                 <div class=\"d-none d-lg-block\">
  180. {{ render(path('block_search_product')) }}
  181.                 </div>
  182.                 <!-- ユーティリティ -->
  183.                 <div class=\"utility-navi flex-grow-1 mx-1 mx-sm-3\">
  184.                     <a href=\"{{ url('help_guide') }}\" class=\"items -guide\">ガイド</a>
  185.                     <a href=\"{{ url('contact') }}\" class=\"items -contact\">お問合せ</a>
  186.                     <a href=\"{{ asset('assets/img/common/fax.pdf') }}\" target=\"_blank\" class=\"items -fax\">FAX</a>
  187.     {% if is_granted('ROLE_USER') %}
  188. {#
  189.                     <a href=\"{{ url('logout') }}\" class=\"items -login\">ログアウト</a>
  190. #}
  191.                     <a href=\"{{ url('mypage_login') }}\" class=\"items -login\">マイページ</a>
  192.     {% else %}
  193.                     <a href=\"{{ url('mypage_login') }}\" class=\"items -login\">ログイン</a>
  194.     {% endif %}
  195.                     <a href=\"{{ url('cart') }}\" class=\"items -cart position-relative\">
  196.                         カート
  197.     {% if totalQuantity > 0 %}
  198.                         <span class=\"badge bg-danger text-white rounded-pill _fs-1\" style=\"position: absolute; top: -4px; right: -4px;\">{{ totalQuantity }}</span>
  199.     {% endif %}
  200.                     </a>
  201.                 </div>
  202.             </div>
  203.             <!-- 電話 -->
  204.             <div class=\"free-call -header\">
  205.                 <div class=\"dial\"><i class=\"icon-phone-outline\"></i>0120-669-121</div>
  206.                 <div class=\"reception\">受付/ 9:30~18:00(土・日・祝を除く)</div>
  207.             </div>
  208.         </div>
  209.         <!-- ▽ サイト検索(SP) -->
  210.         <div class=\"d-block d-lg-none\">
  211.             <div class=\"container mb-3\">
  212. {{ render(path('block_search_product')) }}
  213.             </div>
  214.         </div>
  215.         <div class=\"foot\">
  216.             <div class=\"category-navi\">
  217.                 <a href=\"{{ url('product_list') }}?category_id=7\" class=\"items\">ボールを<br class=\"d-block d-sm-none\">選ぶ</a>
  218.                 <a href=\"{{ url('product_list') }}?category_id=8\" class=\"items\">マーカーを<br class=\"d-block d-sm-none\">選ぶ</a>
  219.                 <a href=\"{{ url('product_list') }}?category_id=9\" class=\"items\">デザインを<br class=\"d-block d-sm-none\">選ぶ</a>
  220.                 <a href=\"{{ url('product_list') }}?category_id=10\" class=\"items\">ラッピング</a>
  221.             </div>
  222.         </div>
  223.     </header>""Block/header_insp.twig""/home/insp/insp.sixcore.jp/public_html/app/template/default/Block/header_insp.twig");
  224.     }
  225.     
  226.     public function checkSecurity()
  227.     {
  228.         static $tags = array("set" => 5"if" => 25);
  229.         static $filters = array("escape" => 14);
  230.         static $functions = array("get_carts_total_quantity" => 5"url" => 14"asset" => 14"render" => 18"path" => 18"is_granted" => 25);
  231.         try {
  232.             $this->sandbox->checkSecurity(
  233.                 ['set''if'],
  234.                 ['escape'],
  235.                 ['get_carts_total_quantity''url''asset''render''path''is_granted']
  236.             );
  237.         } catch (SecurityError $e) {
  238.             $e->setSourceContext($this->source);
  239.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  240.                 $e->setTemplateLine($tags[$e->getTagName()]);
  241.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  242.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  243.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  244.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  245.             }
  246.             throw $e;
  247.         }
  248.     }
  249. }