var/cache/dev/twig/4b/4befacd83545aff7d613562049401a22.php line 62

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_3.twig */
  14. class __TwigTemplate_710cf37064b155a629cd4936b0eba675 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_3.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_3.twig"));
  35.         // line 1
  36.         echo "<header class=\"block-header\">
  37.   <div class=\"py-5\">
  38.     <div class=\"container d-lg-flex justify-content-between align-items-center\">
  39.       <h1 class=\"block-heasder__logo m-0\">
  40.         ";
  41.         // line 6
  42.         echo "        <a href=\"";
  43.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  44.         echo "\">
  45.             <img style=\"height: 80px;\" src=\"";
  46.         // line 7
  47.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/logo_02.png"), "html"nulltrue);
  48.         echo "\" alt=\"EC-CUBE SHOP demo\">
  49.         </a>
  50.       </h1>
  51.       ";
  52.         // line 10
  53.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Eccube\\Controller\\Block\\SearchProductController::index"));
  54.         echo "
  55.       <ul class=\"nav flex-column flex-lg-row mt-5 mt-lg-0 ml-lg-8 align-items-center\">
  56.         <li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"";
  57.         // line 12
  58.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_about");
  59.         echo "\">";
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショップについて"), "html"nulltrue);
  61.         echo "</a></li>
  62.         <li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"";
  63.         // line 13
  64.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  65.         echo "\">";
  66.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html"nulltrue);
  67.         echo "</a></li>
  68.         <li class=\"py-3 py-lg-0 mx-2 ta-center\"><a href=\"";
  69.         // line 14
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
  71.         echo "\">
  72.           <i data-feather=\"user\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
  73.           <span class=\"d-lg-none\">マイページ</span>
  74.         </a></li>
  75.         ";
  76.         // line 18
  77.         $context["Carts"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_all_carts();
  78.         // line 19
  79.         echo "        ";
  80.         $context["totalPrice"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_price();
  81.         // line 20
  82.         echo "        ";
  83.         $context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
  84.         // line 21
  85.         echo "        <li class=\"py-3 py-lg-0 mx-2\"><a class=\"d-flex\" href=\"";
  86.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  87.         echo "\">
  88.           <div class=\"pos-relative px-2\">
  89.             <i data-feather=\"shopping-cart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
  90.             <div class=\"pos-absolute pos-3 ta-center c-white\">
  91.                 <span class=\"d-block w-1 h-1 bgc-key bdrs-circle fz-2\">";
  92.         // line 25
  93.         echo twig_escape_filter($this->envtwig_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"nulltrue);
  94.         echo "</span>
  95.             </div>
  96.           </div>
  97.           <span class=\"d-lg-none ml-3\">カート</span>
  98.         </a></li>
  99.         <li class=\"py-3 py-lg-0 ml-2 ta-center\"><a href=\"";
  100.         // line 30
  101.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
  102.         echo "\">
  103.           <i data-feather=\"heart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
  104.           <span class=\"d-lg-none\">お気に入り</span>
  105.         </a></li>
  106.       </ul>
  107.     </div>
  108.   </div>
  109.   <nav class=\"headnav my-5 my-lg-0 bgc-dark-b\">
  110.     <div class=\"container\">
  111.       <ul class=\"nav d-block d-lg-flex justify-content-between ta-center\">
  112.         <li class=\"flex-fill\">
  113.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
  114.         // line 41
  115.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  116.         echo "\">
  117.             トップページ
  118.           </a>
  119.         </li>
  120.         <li class=\"flex-fill\">
  121.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
  122.         // line 46
  123.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  124.         echo "\">
  125.             商品一覧
  126.           </a>
  127.         </li>
  128.         <li class=\"flex-fill\">
  129.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
  130.         // line 51
  131.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_about");
  132.         echo "\">
  133.             ";
  134.         // line 52
  135.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショップについて"), "html"nulltrue);
  136.         echo "
  137.           </a>
  138.         </li>
  139.         <li class=\"flex-fill\">
  140.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
  141.         // line 56
  142.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_about");
  143.         echo "\">
  144.             ";
  145.         // line 57
  146.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご利用ガイド"), "html"nulltrue);
  147.         echo "
  148.           </a>
  149.         </li>
  150.         <li class=\"flex-fill\">
  151.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"";
  152.         // line 61
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  154.         echo "\">
  155.             ";
  156.         // line 62
  157.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html"nulltrue);
  158.         echo "
  159.           </a>
  160.         </li>
  161.       </ul>
  162.     </div>
  163.   </nav>
  164. </header>";
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "Block/header_3.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         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,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("<header class=\"block-header\">
  185.   <div class=\"py-5\">
  186.     <div class=\"container d-lg-flex justify-content-between align-items-center\">
  187.       <h1 class=\"block-heasder__logo m-0\">
  188.         {#<a href=\"{{ url('homepage') }}\">{{ BaseInfo.shop_name }}</a>#}
  189.         <a href=\"{{ url('homepage') }}\">
  190.             <img style=\"height: 80px;\" src=\"{{ asset('/html/user_data/logo_02.png')}}\" alt=\"EC-CUBE SHOP demo\">
  191.         </a>
  192.       </h1>
  193.       {{ render(controller('Eccube\\\\Controller\\\\Block\\\\SearchProductController::index')) }}
  194.       <ul class=\"nav flex-column flex-lg-row mt-5 mt-lg-0 ml-lg-8 align-items-center\">
  195.         <li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"{{ url('help_about') }}\">{{ 'ショップについて'|trans }}</a></li>
  196.         <li class=\"py-3 py-lg-0\"><a class=\"px-2 fz-4 c-gray-b\" href=\"{{ url('contact') }}\">{{ 'お問い合わせ'|trans }}</a></li>
  197.         <li class=\"py-3 py-lg-0 mx-2 ta-center\"><a href=\"{{ url('mypage') }}\">
  198.           <i data-feather=\"user\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
  199.           <span class=\"d-lg-none\">マイページ</span>
  200.         </a></li>
  201.         {% set Carts = get_all_carts() %}
  202.         {% set totalPrice = get_carts_total_price() %}
  203.         {% set totalQuantity = get_carts_total_quantity() %}
  204.         <li class=\"py-3 py-lg-0 mx-2\"><a class=\"d-flex\" href=\"{{ url('cart') }}\">
  205.           <div class=\"pos-relative px-2\">
  206.             <i data-feather=\"shopping-cart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
  207.             <div class=\"pos-absolute pos-3 ta-center c-white\">
  208.                 <span class=\"d-block w-1 h-1 bgc-key bdrs-circle fz-2\">{{ totalQuantity|number_format }}</span>
  209.             </div>
  210.           </div>
  211.           <span class=\"d-lg-none ml-3\">カート</span>
  212.         </a></li>
  213.         <li class=\"py-3 py-lg-0 ml-2 ta-center\"><a href=\"{{ url('mypage_favorite') }}\">
  214.           <i data-feather=\"heart\" width=\"24\" height=\"24\" stroke-width=\"1\"></i>
  215.           <span class=\"d-lg-none\">お気に入り</span>
  216.         </a></li>
  217.       </ul>
  218.     </div>
  219.   </div>
  220.   <nav class=\"headnav my-5 my-lg-0 bgc-dark-b\">
  221.     <div class=\"container\">
  222.       <ul class=\"nav d-block d-lg-flex justify-content-between ta-center\">
  223.         <li class=\"flex-fill\">
  224.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('homepage') }}\">
  225.             トップページ
  226.           </a>
  227.         </li>
  228.         <li class=\"flex-fill\">
  229.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('product_list') }}\">
  230.             商品一覧
  231.           </a>
  232.         </li>
  233.         <li class=\"flex-fill\">
  234.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('help_about') }}\">
  235.             {{ 'ショップについて'|trans }}
  236.           </a>
  237.         </li>
  238.         <li class=\"flex-fill\">
  239.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('help_about') }}\">
  240.             {{ 'ご利用ガイド'|trans }}
  241.           </a>
  242.         </li>
  243.         <li class=\"flex-fill\">
  244.           <a class=\"d-inline-block py-4 c-white ch-gray\" href=\"{{ url('contact') }}\">
  245.             {{ 'お問い合わせ'|trans }}
  246.           </a>
  247.         </li>
  248.       </ul>
  249.     </div>
  250.   </nav>
  251. </header>""Block/header_3.twig""/home/okinawastore/okinawa-store.com/public_html/app/template/bootcube/Block/header_3.twig");
  252.     }
  253.     
  254.     public function checkSecurity()
  255.     {
  256.         static $tags = array("set" => 18);
  257.         static $filters = array("escape" => 7"trans" => 12"number_format" => 25);
  258.         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);
  259.         try {
  260.             $this->sandbox->checkSecurity(
  261.                 ['set'],
  262.                 ['escape''trans''number_format'],
  263.                 ['url''asset''render''controller''get_all_carts''get_carts_total_price''get_carts_total_quantity']
  264.             );
  265.         } catch (SecurityError $e) {
  266.             $e->setSourceContext($this->source);
  267.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  268.                 $e->setTemplateLine($tags[$e->getTagName()]);
  269.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  270.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  271.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  272.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  273.             }
  274.             throw $e;
  275.         }
  276.     }
  277. }