<?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;
/* Item/GoodsSetPurchase/main.twig */
class __TwigTemplate_d94fdd958ad75b2aabe4cb79786ad998 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", "Item/GoodsSetPurchase/main.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Item/GoodsSetPurchase/main.twig"));
// line 1
echo "<style>
.btn-v2 {
position: relative;
display: block;
padding: 1.30rem 1.00rem;
width: min(500px, 500 / 805 * 100vw);
margin: 1.00rem auto 1.00rem;
font-size: 2.6rem;
font-weight: bold;
border-radius: 0.75rem;
border: 2px solid transparent;
box-shadow: 0.15rem 0.2rem 0.1rem 0 rgba(0, 0, 0, 0.4);
box-sizing: border-box;
}
.btn-v2::after {
color: #333;
position: absolute;
content: attr(alt);
top: 116%;
left: 0;
width: 100%;
text-align: center;
font-size: 1.00rem;
font-weight: normal;
}
.btn-v2.forward {
color: white;
background: rgb(249,131,0);
background: linear-gradient(180deg, rgba(249,131,0,1) 0%, rgba(235,86,8,1) 50%);
}
.btn-v2.forward:hover {
color: rgba(235,86,8,1);
background: white;
border: 2px solid rgba(235,86,8,1);
}
.gsp-checkout-guide {
color: #333;
font-size: 1.5rem;
text-align: center;
line-height: 2.5rem;
margin: 2rem 0 8rem;
}
#cartin-button-guide {
position: relative;
background-image: url('https://img0.land-mark.biz/ut_img/public_images/itempage/goods-set-purchase/guidance.png');
background-size: cover;
width: min(751px, 751 / 805 * 100vw);
height: min(301px, 301 / 805 * 100vw);
margin: 0 auto;
}
#cartin-button-guide > button {
position: absolute;
}
#cartin-button-guide > button.guide_next_item {
left: min(405px, 405 / 805 * 100vw);
top: min(132px, 132 / 805 * 100vw);
width: min(202px, 202 / 805 * 100vw);
height: min(42px, 42 / 805 * 100vw);
}
#cartin-button-guide > button.guide_add_to_cart {
left: min(153px, 153 / 805 * 100vw);
top: min(197px, 197 / 805 * 100vw);
width: min(202px, 202 / 805 * 100vw);
height: min(42px, 42 / 805 * 100vw);
}
#label-get-started {
background-color: #118B0A;
color: white;
text-align: center;
font-size: min(23px, 23 / 805 * 100vw);
width: min(805px, 805 / 805 * 100vw);
height: min(50px, 50 / 805 * 100vw);
line-height: min(50px, 50 / 805 * 100vw);
margin: min(30px, 30 / 805 * 100vw) 0 min(7px, 7 / 805 * 100vw) 0;
}
@media screen and (max-width: 768px) {
.btn-v2 {
width: 98%;
}
}
</style>
";
// line 84
$this->loadTemplate("Item/NewCartArea/style.twig", "Item/GoodsSetPurchase/main.twig", 84)->display(twig_to_array([]));
// line 85
echo "
<style>
.item-info > .item-row {
display: grid;
grid-template-columns : 120px auto;
padding: 0.75rem 1.0rem;
}
.item-info > .item-row > .item-col.head {
font-size: 14px;
}
.item-info > .item-row > .item-col,
.item-info > .item-row > .item-col.price .price-text {
font-size: 17px;
}
.item-info > .item-row > .item-col.price {
font-size: 23px;
color: red;
}
@media screen and (max-width: 768px) {
.item-info > .item-row {
grid-template-columns : 8.25rem 1fr;
padding: 0;
}
.item-info > .item-row > .item-col.head {
font-size: 1.1rem;
}
.item-info > .item-row > .item-col,
.item-info > .item-row > .item-col.price .price-text {
font-size: 1.25rem;
}
.item-info > .item-row > .item-col.price {
font-size: 1.85rem;
color: red;
}
}
</style><style>
.sokujitsu-hassou-banner {
background-color: #EFFCFF;
border: 1px solid #C1C1C1;
font-size: 1.5rem;
padding: 2.0rem;
width: auto;
margin: 0.5rem auto;
margin-top: 1.5rem;
}
.sokujitsu-hassou-banner > .title,
.sokujitsu-hassou-banner > .description {
text-align: center;
}
.sokujitsu-hassou-banner > .title {
font-size: 1.75em;
color: #1026DB;
}
.sokujitsu-hassou-banner > .description {
font-size: 1.25em;
color: white;
background-color: #449ADC;
width: 85%;
margin: 0.75em auto;
padding: 0.5em;
}
.sokujitsu-hassou-banner > dl {
position: relative;
margin: 0;
overflow: hidden;
transition: all 0.5s linear;
}
.sokujitsu-hassou-banner > dl.closed {
height: 3.0em;
}
.sokujitsu-hassou-banner > dl.closed > dd {
opacity: 0.25;
}
.sokujitsu-hassou-banner > dl.opened {
height: auto;
}
.sokujitsu-hassou-banner > dl.closed > dt.overlay {
position: absolute;
display: inline-block;
cursor: pointer;
bottom: 0;
left: 50%;
transform: translate(-50%);
height: 2em;
color: white;
border-radius: 2rem;
padding: .5rem 5rem;
background: #1291DE;
}
.sokujitsu-hassou-banner > dl > dt:nth-of-type(n+2) {
margin-top: 1.0em;
}
.sokujitsu-hassou-banner > dl > dt,
.sokujitsu-hassou-banner > dl > dd {
font-weight: normal;
}
.sokujitsu-hassou-banner > dl > dt {
color: #1026DB;
}
.sokujitsu-hassou-banner > dl > dd {
color: #333;
}
@media screen and (max-width: 768px) {
.sokujitsu-hassou-banner {
font-size: 1.0rem;
padding: 1.0rem;
}
}
</style>
";
// line 195
$this->loadTemplate("Item/NewCartArea/script.twig", "Item/GoodsSetPurchase/main.twig", 195)->display(twig_to_array([]));
// line 196
echo "
<div id=\"cartin-button-guide\" class=\"anchor-wrapper\"></div>
<div id=\"label-get-started\">セット商品を購入する</div>
<div>
<form id=\"dummy\"></form>
<form id=\"form-goods-set-purchase\">
<input type=\"hidden\" name=\"goodsId\" value=\"";
// line 207
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["goods"]) || array_key_exists("goods", $context) ? $context["goods"] : (function () { throw new RuntimeError('Variable "goods" does not exist.', 207, $this->source); })()), "goodsId", [], "any", false, false, true, 207), 207, $this->source), "html", null, true);
echo "\">
";
// line 209
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 209, $this->source); })()), "goods", [], "any", false, false, true, 209), "childrenAsGoodsSetPurchase", [], "any", false, false, true, 209));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 210
echo "
";
// line 211
$context["child"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["child"], "goodsChild", [], "any", false, false, true, 211), "item", [], "any", false, false, true, 211);
// line 212
echo "
";
// line 213
$this->loadTemplate("Item/Common/new_main.twig", "Item/GoodsSetPurchase/main.twig", 213)->display(twig_to_array(["item" => $context["child"], "goods" => twig_get_attribute($this->env, $this->source, $context["child"], "goods", [], "any", false, false, true, 213)]));
// line 214
echo "
";
// line 215
$this->loadTemplate("Item/GoodsSetPurchase/new_cart_area.twig", "Item/GoodsSetPurchase/main.twig", 215)->display(twig_to_array(["loop" => $context["loop"], "parent" => (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 215, $this->source); })()), "item" => $context["child"], "skuMap" => (isset($context["skuMap"]) || array_key_exists("skuMap", $context) ? $context["skuMap"] : (function () { throw new RuntimeError('Variable "skuMap" does not exist.', 215, $this->source); })()), "visibleSizes" => (isset($context["visibleSizes"]) || array_key_exists("visibleSizes", $context) ? $context["visibleSizes"] : (function () { throw new RuntimeError('Variable "visibleSizes" does not exist.', 215, $this->source); })())]));
// line 216
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 218
echo "
<div class=\"anchor-wrapper gsp-checkout-guide\">
<a class=\"anchor\"></a>
<div>
<p>セット商品の選択は以上です。</p>
<p>ご注文を進めるには下記からお進みください。</p>
</div>
<button type=\"button\" class=\"btn-v2 forward btn_add_to_cart add-to-cart\" alt=\"※まだご注文は確定しませんので、ご安心ください。\"><span class=\"muji\"></span>カートに入れる</button>
</div>
</form>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Item/GoodsSetPurchase/main.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 311 => 218, 296 => 216, 294 => 215, 291 => 214, 289 => 213, 286 => 212, 284 => 211, 281 => 210, 264 => 209, 259 => 207, 246 => 196, 244 => 195, 132 => 85, 130 => 84, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<style>
.btn-v2 {
position: relative;
display: block;
padding: 1.30rem 1.00rem;
width: min(500px, 500 / 805 * 100vw);
margin: 1.00rem auto 1.00rem;
font-size: 2.6rem;
font-weight: bold;
border-radius: 0.75rem;
border: 2px solid transparent;
box-shadow: 0.15rem 0.2rem 0.1rem 0 rgba(0, 0, 0, 0.4);
box-sizing: border-box;
}
.btn-v2::after {
color: #333;
position: absolute;
content: attr(alt);
top: 116%;
left: 0;
width: 100%;
text-align: center;
font-size: 1.00rem;
font-weight: normal;
}
.btn-v2.forward {
color: white;
background: rgb(249,131,0);
background: linear-gradient(180deg, rgba(249,131,0,1) 0%, rgba(235,86,8,1) 50%);
}
.btn-v2.forward:hover {
color: rgba(235,86,8,1);
background: white;
border: 2px solid rgba(235,86,8,1);
}
.gsp-checkout-guide {
color: #333;
font-size: 1.5rem;
text-align: center;
line-height: 2.5rem;
margin: 2rem 0 8rem;
}
#cartin-button-guide {
position: relative;
background-image: url('https://img0.land-mark.biz/ut_img/public_images/itempage/goods-set-purchase/guidance.png');
background-size: cover;
width: min(751px, 751 / 805 * 100vw);
height: min(301px, 301 / 805 * 100vw);
margin: 0 auto;
}
#cartin-button-guide > button {
position: absolute;
}
#cartin-button-guide > button.guide_next_item {
left: min(405px, 405 / 805 * 100vw);
top: min(132px, 132 / 805 * 100vw);
width: min(202px, 202 / 805 * 100vw);
height: min(42px, 42 / 805 * 100vw);
}
#cartin-button-guide > button.guide_add_to_cart {
left: min(153px, 153 / 805 * 100vw);
top: min(197px, 197 / 805 * 100vw);
width: min(202px, 202 / 805 * 100vw);
height: min(42px, 42 / 805 * 100vw);
}
#label-get-started {
background-color: #118B0A;
color: white;
text-align: center;
font-size: min(23px, 23 / 805 * 100vw);
width: min(805px, 805 / 805 * 100vw);
height: min(50px, 50 / 805 * 100vw);
line-height: min(50px, 50 / 805 * 100vw);
margin: min(30px, 30 / 805 * 100vw) 0 min(7px, 7 / 805 * 100vw) 0;
}
@media screen and (max-width: 768px) {
.btn-v2 {
width: 98%;
}
}
</style>
{% include 'Item/NewCartArea/style.twig' with {} only %}
<style>
.item-info > .item-row {
display: grid;
grid-template-columns : 120px auto;
padding: 0.75rem 1.0rem;
}
.item-info > .item-row > .item-col.head {
font-size: 14px;
}
.item-info > .item-row > .item-col,
.item-info > .item-row > .item-col.price .price-text {
font-size: 17px;
}
.item-info > .item-row > .item-col.price {
font-size: 23px;
color: red;
}
@media screen and (max-width: 768px) {
.item-info > .item-row {
grid-template-columns : 8.25rem 1fr;
padding: 0;
}
.item-info > .item-row > .item-col.head {
font-size: 1.1rem;
}
.item-info > .item-row > .item-col,
.item-info > .item-row > .item-col.price .price-text {
font-size: 1.25rem;
}
.item-info > .item-row > .item-col.price {
font-size: 1.85rem;
color: red;
}
}
</style><style>
.sokujitsu-hassou-banner {
background-color: #EFFCFF;
border: 1px solid #C1C1C1;
font-size: 1.5rem;
padding: 2.0rem;
width: auto;
margin: 0.5rem auto;
margin-top: 1.5rem;
}
.sokujitsu-hassou-banner > .title,
.sokujitsu-hassou-banner > .description {
text-align: center;
}
.sokujitsu-hassou-banner > .title {
font-size: 1.75em;
color: #1026DB;
}
.sokujitsu-hassou-banner > .description {
font-size: 1.25em;
color: white;
background-color: #449ADC;
width: 85%;
margin: 0.75em auto;
padding: 0.5em;
}
.sokujitsu-hassou-banner > dl {
position: relative;
margin: 0;
overflow: hidden;
transition: all 0.5s linear;
}
.sokujitsu-hassou-banner > dl.closed {
height: 3.0em;
}
.sokujitsu-hassou-banner > dl.closed > dd {
opacity: 0.25;
}
.sokujitsu-hassou-banner > dl.opened {
height: auto;
}
.sokujitsu-hassou-banner > dl.closed > dt.overlay {
position: absolute;
display: inline-block;
cursor: pointer;
bottom: 0;
left: 50%;
transform: translate(-50%);
height: 2em;
color: white;
border-radius: 2rem;
padding: .5rem 5rem;
background: #1291DE;
}
.sokujitsu-hassou-banner > dl > dt:nth-of-type(n+2) {
margin-top: 1.0em;
}
.sokujitsu-hassou-banner > dl > dt,
.sokujitsu-hassou-banner > dl > dd {
font-weight: normal;
}
.sokujitsu-hassou-banner > dl > dt {
color: #1026DB;
}
.sokujitsu-hassou-banner > dl > dd {
color: #333;
}
@media screen and (max-width: 768px) {
.sokujitsu-hassou-banner {
font-size: 1.0rem;
padding: 1.0rem;
}
}
</style>
{% include 'Item/NewCartArea/script.twig' with {} only %}
<div id=\"cartin-button-guide\" class=\"anchor-wrapper\"></div>
<div id=\"label-get-started\">セット商品を購入する</div>
<div>
<form id=\"dummy\"></form>
<form id=\"form-goods-set-purchase\">
<input type=\"hidden\" name=\"goodsId\" value=\"{{ goods.goodsId }}\">
{% for child in item.goods.childrenAsGoodsSetPurchase %}
{% set child = child.goodsChild.item %}
{% include 'Item/Common/new_main.twig' with { item: child, goods: child.goods } only %}
{% include 'Item/GoodsSetPurchase/new_cart_area.twig' with { loop: loop, parent: item, item: child, skuMap: skuMap, visibleSizes: visibleSizes } only %}
{% endfor %}
<div class=\"anchor-wrapper gsp-checkout-guide\">
<a class=\"anchor\"></a>
<div>
<p>セット商品の選択は以上です。</p>
<p>ご注文を進めるには下記からお進みください。</p>
</div>
<button type=\"button\" class=\"btn-v2 forward btn_add_to_cart add-to-cart\" alt=\"※まだご注文は確定しませんので、ご安心ください。\"><span class=\"muji\"></span>カートに入れる</button>
</div>
</form>
</div>
", "Item/GoodsSetPurchase/main.twig", "/var/www/html/app/template/default/Item/GoodsSetPurchase/main.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 84, "for" => 209, "set" => 211);
static $filters = array("escape" => 207);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['include', 'for', 'set'],
['escape'],
[]
);
} 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;
}
}
}