<?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_second_sp.twig */
class __TwigTemplate_e12073438abef654fdab9719f2139765 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 = [
];
$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_second_sp.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_second_sp.twig"));
// line 1
$context["Carts"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_all_carts();
// line 2
$context["totalPrice"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_price();
// line 3
$context["totalQuantity"] = $this->extensions['Eccube\Twig\Extension\CartServiceExtension']->get_carts_total_quantity();
// line 4
echo "
";
// line 6
echo "<div id=\"search_header_on_page\">
<div class=\"\" style=\"float: left; width: 80%;\">
";
// line 8
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>
<a href=\"";
// line 10
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
<div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
<div class=\"ec-login-cart-con\" style=\"top: 5px;\">
<img src=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon-cart-black.svg", "user_data"), "html", null, true);
echo "\" alt=\"カート\">
<div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
";
// line 15
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/cart_icon.twig");
echo "
</div>
</div>
</div>
</a>
</div>
";
// line 23
echo "<div id=\"search_header_sticky_top\" style=\"display: none;\">
<div class=\"\" style=\"float: left; width: 80%;\">
";
// line 25
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>
<a href=\"";
// line 27
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
<div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
<div class=\"ec-login-cart-con\" style=\"top: 5px;\">
<img src=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon-cart-black.svg", "user_data"), "html", null, true);
echo "\" alt=\"カート\">
<div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
";
// line 32
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/cart_icon.twig");
echo "
</div>
</div>
</div>
</a>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/header_second_sp.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set Carts = get_all_carts() %}
{% set totalPrice = get_carts_total_price() %}
{% set totalQuantity = get_carts_total_quantity() %}
{# 初期表示の際に表示 #}
<div id=\"search_header_on_page\">
<div class=\"\" style=\"float: left; width: 80%;\">
{{ render(path('block_search_product')) }}
</div>
<a href=\"{{ url('cart') }}\">
<div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
<div class=\"ec-login-cart-con\" style=\"top: 5px;\">
<img src=\"{{ asset('assets/img/common/icon-cart-black.svg', 'user_data') }}\" alt=\"カート\">
<div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
{{ include('Block/cart_icon.twig') }}
</div>
</div>
</div>
</a>
</div>
{# スクロール時にフロートさせる領域 #}
<div id=\"search_header_sticky_top\" style=\"display: none;\">
<div class=\"\" style=\"float: left; width: 80%;\">
{{ render(path('block_search_product')) }}
</div>
<a href=\"{{ url('cart') }}\">
<div class=\"d-flex align-items-center\" style=\"margin: auto; height: 40px;\">
<div class=\"ec-login-cart-con\" style=\"top: 5px;\">
<img src=\"{{ asset('assets/img/common/icon-cart-black.svg', 'user_data') }}\" alt=\"カート\">
<div class=\"cart_icon_outer\" style=\"position: relative; top: -35px; left: 10px;\">
{{ include('Block/cart_icon.twig') }}
</div>
</div>
</div>
</a>
</div>
", "Block/header_second_sp.twig", "/home/shikomel/shikomel.com/public_html/web-order-stg.shikomel.com/app/template/default/Block/header_second_sp.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1);
static $filters = array("escape" => 13);
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);
try {
$this->sandbox->checkSecurity(
['set'],
['escape'],
['get_all_carts', 'get_carts_total_price', 'get_carts_total_quantity', 'render', 'path', 'url', 'asset', 'include']
);
} 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;
}
}
}