var/cache/dev/twig/d7/d7534c0241d3fa07dcad2868a7a8744a.php line 35

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_second_sp.twig */
  14. class __TwigTemplate_e12073438abef654fdab9719f2139765 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_second_sp.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_second_sp.twig"));
  35.         // line 1
  36.         $context["Carts"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_all_carts();
  37.         // line 2
  38.         $context["totalPrice"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_price();
  39.         // line 3
  40.         $context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
  41.         // line 4
  42.         echo "
  43. ";
  44.         // line 6
  45.         echo "<div id=\"search_header_on_page\">
  46.     <div class=\"\" style=\"float: left; width: 80%;\">
  47.     ";
  48.         // line 8
  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.     </div>
  52.     <a href=\"";
  53.         // line 10
  54.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  55.         echo "\">
  56.         <div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
  57.             <div class=\"ec-login-cart-con\" style=\"top: 5px;\">
  58.                 <img src=\"";
  59.         // line 13
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon-cart-black.svg""user_data"), "html"nulltrue);
  61.         echo "\" alt=\"カート\">
  62.                 <div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
  63.                     ";
  64.         // line 15
  65.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/cart_icon.twig");
  66.         echo "
  67.                 </div>                
  68.             </div>
  69.         </div>
  70.     </a>
  71. </div>
  72. ";
  73.         // line 23
  74.         echo "<div id=\"search_header_sticky_top\" style=\"display: none;\">
  75.     <div class=\"\" style=\"float: left; width: 80%;\">
  76.     ";
  77.         // line 25
  78.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  79.         echo "
  80.     </div>
  81.     <a href=\"";
  82.         // line 27
  83.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  84.         echo "\">
  85.         <div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
  86.             <div class=\"ec-login-cart-con\" style=\"top: 5px;\">
  87.                 <img src=\"";
  88.         // line 30
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon-cart-black.svg""user_data"), "html"nulltrue);
  90.         echo "\" alt=\"カート\">
  91.                 <div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
  92.                     ";
  93.         // line 32
  94.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/cart_icon.twig");
  95.         echo "
  96.                 </div>                
  97.             </div>
  98.         </div>
  99.     </a>
  100. </div>
  101. ";
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.         
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106.     }
  107.     public function getTemplateName()
  108.     {
  109.         return "Block/header_second_sp.twig";
  110.     }
  111.     public function isTraitable()
  112.     {
  113.         return false;
  114.     }
  115.     public function getDebugInfo()
  116.     {
  117.         return array (  104 => 32,  99 => 30,  93 => 27,  88 => 25,  84 => 23,  74 => 15,  69 => 13,  63 => 10,  58 => 8,  54 => 6,  51 => 4,  49 => 3,  47 => 2,  45 => 1,);
  118.     }
  119.     public function getSourceContext()
  120.     {
  121.         return new Source("{% set Carts = get_all_carts() %}
  122. {% set totalPrice = get_carts_total_price() %}
  123. {% set totalQuantity = get_carts_total_quantity() %}
  124. {# 初期表示の際に表示 #}
  125. <div id=\"search_header_on_page\">
  126.     <div class=\"\" style=\"float: left; width: 80%;\">
  127.     {{ render(path('block_search_product')) }}
  128.     </div>
  129.     <a href=\"{{ url('cart') }}\">
  130.         <div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
  131.             <div class=\"ec-login-cart-con\" style=\"top: 5px;\">
  132.                 <img src=\"{{ asset('assets/img/common/icon-cart-black.svg', 'user_data') }}\" alt=\"カート\">
  133.                 <div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
  134.                     {{ include('Block/cart_icon.twig') }}
  135.                 </div>                
  136.             </div>
  137.         </div>
  138.     </a>
  139. </div>
  140. {# スクロール時にフロートさせる領域 #}
  141. <div id=\"search_header_sticky_top\" style=\"display: none;\">
  142.     <div class=\"\" style=\"float: left; width: 80%;\">
  143.     {{ render(path('block_search_product')) }}
  144.     </div>
  145.     <a href=\"{{ url('cart') }}\">
  146.         <div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
  147.             <div class=\"ec-login-cart-con\" style=\"top: 5px;\">
  148.                 <img src=\"{{ asset('assets/img/common/icon-cart-black.svg', 'user_data') }}\" alt=\"カート\">
  149.                 <div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
  150.                     {{ include('Block/cart_icon.twig') }}
  151.                 </div>                
  152.             </div>
  153.         </div>
  154.     </a>
  155. </div>
  156. ""Block/header_second_sp.twig""/home/shikomel/shikomel.com/public_html/web-order-stg.shikomel.com/app/template/default/Block/header_second_sp.twig");
  157.     }
  158.     
  159.     public function checkSecurity()
  160.     {
  161.         static $tags = array("set" => 1);
  162.         static $filters = array("escape" => 13);
  163.         static $functions = array("get_all_carts" => 1"get_carts_total_price" => 2"get_carts_total_quantity" => 3"render" => 8"path" => 8"url" => 10"asset" => 13"include" => 15);
  164.         try {
  165.             $this->sandbox->checkSecurity(
  166.                 ['set'],
  167.                 ['escape'],
  168.                 ['get_all_carts''get_carts_total_price''get_carts_total_quantity''render''path''url''asset''include']
  169.             );
  170.         } catch (SecurityError $e) {
  171.             $e->setSourceContext($this->source);
  172.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  173.                 $e->setTemplateLine($tags[$e->getTagName()]);
  174.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  175.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  176.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  177.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  178.             }
  179.             throw $e;
  180.         }
  181.     }
  182. }