<?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/main.twig */
class __TwigTemplate_08fd70b8a9c9c20ab218cbe84615ad8a 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/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/main.twig"));
// line 1
echo "<div id=\"cartin-button-guide\"></div>
<div class=\"product-detail\" data-id=\"";
// line 3
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($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.', 3, $this->source); })()), "goodsMainKataban", [], "any", false, false, true, 3), 3, $this->source)), "html", null, true);
echo "\" data-name=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 3, $this->source); })()), "goods_name", [], "any", false, false, true, 3), 3, $this->source)), "html", null, true);
echo "\"
data-category=\"";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["breadCrumb"]) || array_key_exists("breadCrumb", $context) ? $context["breadCrumb"] : (function () { throw new RuntimeError('Variable "breadCrumb" does not exist.', 4, $this->source); })()));
$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["i"]) {
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 4) != 1)) {
echo " / ";
}
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["i"], "label", [], "any", false, false, true, 4), 4, $this->source), "html", null, true);
++$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['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "\"
data-price=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["size"]) || array_key_exists("size", $context) ? $context["size"] : (function () { throw new RuntimeError('Variable "size" does not exist.', 5, $this->source); })()), 0, [], "array", false, false, true, 5), "gp_price", [], "any", false, false, true, 5), 5, $this->source)), "html", null, true);
echo "\">
<div id=\"col2-wrapper\">
<!-- left contents -->
<div id=\"lcontents\">
<table cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"entry_pict\">
<img src=\"";
// line 12
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["mainUrl"]) || array_key_exists("mainUrl", $context) ? $context["mainUrl"] : (function () { throw new RuntimeError('Variable "mainUrl" does not exist.', 12, $this->source); })()), 12, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 12, $this->source); })()), 12, $this->source), "html", null, true);
echo "\" name=\"pict";
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.', 12, $this->source); })()), "goodsId", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "\" id=\"pict";
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.', 12, $this->source); })()), "goodsId", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "\"/>
</td>
</tr>
</table>
";
// line 16
if (((isset($context["thumbCount"]) || array_key_exists("thumbCount", $context) ? $context["thumbCount"] : (function () { throw new RuntimeError('Variable "thumbCount" does not exist.', 16, $this->source); })()) > 1)) {
// line 17
echo " <div class=\"entry_pict_text\">
<script type=\"text/javascript\">
<!--
if (document.all || document.getElementById) {
document.write(\"<div id='linkinfolay'>";
// line 21
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 21, $this->source); })()), 21, $this->source), "html", null, true);
echo "</div>\");
}
//-->
</script>
</div>
";
}
// line 27
echo " </div>
<!-- right contents -->
<div id=\"rcontents\">
<div id=\"rcontent\"></div>
<div class=\"goods-detail\">
";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->LM_sashikomi($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 33, $this->source); })()), "goods_detail", [], "any", false, false, true, 33), 33, $this->source)), "html", null, true);
echo "
</div>
";
// line 35
if (((twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 35, $this->source); })()), "goods_status", [], "any", false, false, true, 35) != 1) && !(isset($context["is_preview_mode"]) || array_key_exists("is_preview_mode", $context) ? $context["is_preview_mode"] : (function () { throw new RuntimeError('Variable "is_preview_mode" does not exist.', 35, $this->source); })()))) {
// line 36
echo " <style> .hinban_box {
background: none;
background-color: #f0f0f0;
} </style>
";
}
// line 41
echo "
<style>
.campaign-badge {
display: inline-block;
padding: 4px 8px;
margin: 5px 5px 5px 0;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
color: white;
}
.badge-yoridori {
background-color: #ff6b6b;
}
.badge-matome {
background-color: #4ecdc4;
}
</style>
<div id=\"";
// line 59
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.', 59, $this->source); })()), "goodsId", [], "any", false, false, true, 59), 59, $this->source), "html", null, true);
echo "\" class=\"hinban_box\">
";
// line 60
$context["hinban_length"] = twig_length_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.', 60, $this->source); })()), "goodsMainKataban", [], "any", false, false, true, 60), 60, $this->source));
// line 61
echo " ";
if (((isset($context["hinban_length"]) || array_key_exists("hinban_length", $context) ? $context["hinban_length"] : (function () { throw new RuntimeError('Variable "hinban_length" does not exist.', 61, $this->source); })()) <= 10)) {
// line 62
echo " ";
$context["fontsize"] = "40px";
// line 63
echo " ";
} elseif (((isset($context["hinban_length"]) || array_key_exists("hinban_length", $context) ? $context["hinban_length"] : (function () { throw new RuntimeError('Variable "hinban_length" does not exist.', 63, $this->source); })()) <= 12)) {
// line 64
echo " ";
$context["fontsize"] = "35px";
// line 65
echo " ";
} elseif (((isset($context["hinban_length"]) || array_key_exists("hinban_length", $context) ? $context["hinban_length"] : (function () { throw new RuntimeError('Variable "hinban_length" does not exist.', 65, $this->source); })()) <= 14)) {
// line 66
echo " ";
$context["fontsize"] = "30px";
// line 67
echo " ";
} elseif (((isset($context["hinban_length"]) || array_key_exists("hinban_length", $context) ? $context["hinban_length"] : (function () { throw new RuntimeError('Variable "hinban_length" does not exist.', 67, $this->source); })()) <= 16)) {
// line 68
echo " ";
$context["fontsize"] = "25px";
// line 69
echo " ";
} elseif (((isset($context["hinban_length"]) || array_key_exists("hinban_length", $context) ? $context["hinban_length"] : (function () { throw new RuntimeError('Variable "hinban_length" does not exist.', 69, $this->source); })()) <= 18)) {
// line 70
echo " ";
$context["fontsize"] = "20px";
// line 71
echo " ";
} elseif (((isset($context["hinban_length"]) || array_key_exists("hinban_length", $context) ? $context["hinban_length"] : (function () { throw new RuntimeError('Variable "hinban_length" does not exist.', 71, $this->source); })()) <= 20)) {
// line 72
echo " ";
$context["fontsize"] = "15px";
// line 73
echo " ";
} else {
// line 74
echo " ";
$context["fontsize"] = "40px";
// line 75
echo " ";
}
// line 76
echo " <p class=\"gno\" style=\"font-size:";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["fontsize"]) || array_key_exists("fontsize", $context) ? $context["fontsize"] : (function () { throw new RuntimeError('Variable "fontsize" does not exist.', 76, $this->source); })()), 76, $this->source), "html", null, true);
echo ";\">
<span>商品番号 :</span>";
// line 77
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.', 77, $this->source); })()), "goodsMainKataban", [], "any", false, false, true, 77), 77, $this->source), "html", null, true);
echo "
</p>
</div>
<div class=\"price_box\">
<p class=\"goods-sale-text\">";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 82, $this->source); })()), "goods_sale_text", [], "any", false, false, true, 82), 82, $this->source)), "html", null, true);
echo "</p>
";
// line 85
echo " ";
$this->loadTemplate("Product/Parts/super_sale.twig", "Item/main.twig", 85)->display(twig_to_array(["goods" => (isset($context["goods"]) || array_key_exists("goods", $context) ? $context["goods"] : (function () { throw new RuntimeError('Variable "goods" does not exist.', 85, $this->source); })())]));
// line 86
echo "
<p class=\"goods-merged-item-number-text\">";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 87, $this->source); })()), "goods_merged_item_number_text", [], "any", false, false, true, 87), 87, $this->source)), "html", null, true);
echo "</p>
<p class=\"gname\">
";
// line 89
if ((array_key_exists("goods_name_with_vending_status", $context) && (isset($context["goods_name_with_vending_status"]) || array_key_exists("goods_name_with_vending_status", $context) ? $context["goods_name_with_vending_status"] : (function () { throw new RuntimeError('Variable "goods_name_with_vending_status" does not exist.', 89, $this->source); })()))) {
// line 90
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed((isset($context["goods_name_with_vending_status"]) || array_key_exists("goods_name_with_vending_status", $context) ? $context["goods_name_with_vending_status"] : (function () { throw new RuntimeError('Variable "goods_name_with_vending_status" does not exist.', 90, $this->source); })()), 90, $this->source)), "html", null, true);
echo "
";
} else {
// line 92
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 92, $this->source); })()), "goods_name", [], "any", false, false, true, 92), 92, $this->source)), "html", null, true);
echo "
";
}
// line 94
echo " </p>
<p class=\"gname-sub\">";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 95, $this->source); })()), "goods_sub_name", [], "any", false, false, true, 95), 95, $this->source)), "html", null, true);
echo "</p>
";
// line 96
if ((twig_get_attribute($this->env, $this->source, ($context["displayTeika"] ?? null), "teika", [], "any", true, true, true, 96) && twig_get_attribute($this->env, $this->source, (isset($context["displayTeika"]) || array_key_exists("displayTeika", $context) ? $context["displayTeika"] : (function () { throw new RuntimeError('Variable "displayTeika" does not exist.', 96, $this->source); })()), "teika", [], "any", false, false, true, 96))) {
// line 97
echo " <p class=\"gteika\">希望小売価格:";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["displayTeika"]) || array_key_exists("displayTeika", $context) ? $context["displayTeika"] : (function () { throw new RuntimeError('Variable "displayTeika" does not exist.', 97, $this->source); })()), "teika", [], "any", false, false, true, 97), 97, $this->source);
echo "</p>
";
}
// line 99
echo "
";
// line 101
echo " ";
$context["campaignFlags"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getCampaignFlags($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.', 101, $this->source); })()), "goodsId", [], "any", false, false, true, 101), 101, $this->source));
// line 102
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["campaignFlags"]) || array_key_exists("campaignFlags", $context) ? $context["campaignFlags"] : (function () { throw new RuntimeError('Variable "campaignFlags" does not exist.', 102, $this->source); })()), "yoridori", [], "any", false, false, true, 102) == 1)) {
// line 103
echo " ";
$context["yoridoriInfo"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getYoridoriCampaignInfo($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.', 103, $this->source); })()), "goodsId", [], "any", false, false, true, 103), 103, $this->source));
// line 104
echo " ";
if ((isset($context["yoridoriInfo"]) || array_key_exists("yoridoriInfo", $context) ? $context["yoridoriInfo"] : (function () { throw new RuntimeError('Variable "yoridoriInfo" does not exist.', 104, $this->source); })())) {
// line 105
echo " <div class=\"campaign-badge badge-yoridori\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["yoridoriInfo"]) || array_key_exists("yoridoriInfo", $context) ? $context["yoridoriInfo"] : (function () { throw new RuntimeError('Variable "yoridoriInfo" does not exist.', 105, $this->source); })()), "name", [], "any", false, false, true, 105), 105, $this->source), "html", null, true);
echo "(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["yoridoriInfo"]) || array_key_exists("yoridoriInfo", $context) ? $context["yoridoriInfo"] : (function () { throw new RuntimeError('Variable "yoridoriInfo" does not exist.', 105, $this->source); })()), "min", [], "any", false, false, true, 105), 105, $this->source), "html", null, true);
echo "点以上で";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["yoridoriInfo"]) || array_key_exists("yoridoriInfo", $context) ? $context["yoridoriInfo"] : (function () { throw new RuntimeError('Variable "yoridoriInfo" does not exist.', 105, $this->source); })()), "percent", [], "any", false, false, true, 105), 105, $this->source), "html", null, true);
echo "%OFF)</div>
";
}
// line 108
echo " ";
}
// line 109
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["campaignFlags"]) || array_key_exists("campaignFlags", $context) ? $context["campaignFlags"] : (function () { throw new RuntimeError('Variable "campaignFlags" does not exist.', 109, $this->source); })()), "matome", [], "any", false, false, true, 109) == 1)) {
// line 110
echo " ";
$context["matomeInfo"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getMatomeCampaignInfo($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.', 110, $this->source); })()), "goodsId", [], "any", false, false, true, 110), 110, $this->source));
// line 111
echo " ";
if ((isset($context["matomeInfo"]) || array_key_exists("matomeInfo", $context) ? $context["matomeInfo"] : (function () { throw new RuntimeError('Variable "matomeInfo" does not exist.', 111, $this->source); })())) {
// line 112
echo " <div class=\"campaign-badge badge-matome\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["matomeInfo"]) || array_key_exists("matomeInfo", $context) ? $context["matomeInfo"] : (function () { throw new RuntimeError('Variable "matomeInfo" does not exist.', 112, $this->source); })()), "name", [], "any", false, false, true, 112), 112, $this->source), "html", null, true);
echo "(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["matomeInfo"]) || array_key_exists("matomeInfo", $context) ? $context["matomeInfo"] : (function () { throw new RuntimeError('Variable "matomeInfo" does not exist.', 112, $this->source); })()), "min", [], "any", false, false, true, 112), 112, $this->source), "html", null, true);
echo "点以上で";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["matomeInfo"]) || array_key_exists("matomeInfo", $context) ? $context["matomeInfo"] : (function () { throw new RuntimeError('Variable "matomeInfo" does not exist.', 112, $this->source); })()), "percent", [], "any", false, false, true, 112), 112, $this->source), "html", null, true);
echo "%OFF)</div>
";
}
// line 115
echo " ";
}
// line 116
echo " <p class=\"gprice\">
<span class=\"web_tokka\">WEB特別価格:</span><span
class=\"kakaku\">";
// line 118
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["displayPrice"]) || array_key_exists("displayPrice", $context) ? $context["displayPrice"] : (function () { throw new RuntimeError('Variable "displayPrice" does not exist.', 118, $this->source); })()), "mi", [], "any", false, false, true, 118), 118, $this->source)), "html", null, true);
echo "</span>
<span class=\"gprice-txt\">円";
// line 119
if (((isset($context["displayPrice2"]) || array_key_exists("displayPrice2", $context) ? $context["displayPrice2"] : (function () { throw new RuntimeError('Variable "displayPrice2" does not exist.', 119, $this->source); })()) != "")) {
echo "~";
}
echo "(税抜価格<span
class=\"fontsize26px\">";
// line 120
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["displayPrice"]) || array_key_exists("displayPrice", $context) ? $context["displayPrice"] : (function () { throw new RuntimeError('Variable "displayPrice" does not exist.', 120, $this->source); })()), "gp_price", [], "any", false, false, true, 120), 120, $this->source)), "html", null, true);
echo "</span>円";
if (((isset($context["displayPrice2"]) || array_key_exists("displayPrice2", $context) ? $context["displayPrice2"] : (function () { throw new RuntimeError('Variable "displayPrice2" does not exist.', 120, $this->source); })()) != "")) {
echo "~";
}
echo ")</span>
";
// line 121
if (twig_get_attribute($this->env, $this->source, ($context["displayTeika"] ?? null), "off", [], "any", true, true, true, 121)) {
// line 122
echo " <span class=\"goff\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["displayTeika"]) || array_key_exists("displayTeika", $context) ? $context["displayTeika"] : (function () { throw new RuntimeError('Variable "displayTeika" does not exist.', 122, $this->source); })()), "off", [], "any", false, false, true, 122), 122, $this->source), "html", null, true);
echo "</span>
";
}
// line 124
echo " </p>
";
// line 125
if (((isset($context["displayPrice2"]) || array_key_exists("displayPrice2", $context) ? $context["displayPrice2"] : (function () { throw new RuntimeError('Variable "displayPrice2" does not exist.', 125, $this->source); })()) != "")) {
// line 126
echo " <div class=\"sizeprice-box\"><p class=\"sizeprice-box-txt\"><span
class=\"line1\">※サイズによって価格が変わります。</span><span
class=\"sizeprice-txt\">";
// line 128
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["displayPrice2"]) || array_key_exists("displayPrice2", $context) ? $context["displayPrice2"] : (function () { throw new RuntimeError('Variable "displayPrice2" does not exist.', 128, $this->source); })()), 128, $this->source), "html", null, true);
echo "</span></p></div>
";
}
// line 130
echo "
";
// line 131
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["recentviews"] ?? null), 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.', 131, $this->source); })()), "goodsId", [], "any", false, false, true, 131), [], "array", false, true, true, 131), "main_gp_price", [], "any", true, true, true, 131) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["recentviews"]) || array_key_exists("recentviews", $context) ? $context["recentviews"] : (function () { throw new RuntimeError('Variable "recentviews" does not exist.', 131, $this->source); })()), 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.', 131, $this->source); })()), "goodsId", [], "any", false, false, true, 131), [], "array", false, false, true, 131), "main_gp_price", [], "any", false, false, true, 131) >= twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 131, $this->source); })()), "DeliveryFreeAmount", [], "any", false, false, true, 131)))) {
// line 132
echo " <p class=\"gship\"><b>送料無料商品です。</b>(※沖縄・離島を除く)</p>
";
}
// line 134
echo "
</div>
";
// line 136
if ((isset($context["isShowLeftmenu"]) || array_key_exists("isShowLeftmenu", $context) ? $context["isShowLeftmenu"] : (function () { throw new RuntimeError('Variable "isShowLeftmenu" does not exist.', 136, $this->source); })())) {
// line 137
echo " ";
} else {
// line 138
echo " <img src=\"/images/image_dt/shopping_guide.gif\" alt=\"お支払い方法\" class=\"spb20\"/><br/>
";
}
// line 140
echo "
<div id=\"share_buttons\">
<!-- Facebook -->
<div class=\"share_button\">
<div class=\"fb-like\" data-href=\"/item/";
// line 144
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.', 144, $this->source); })()), "itemId", [], "any", false, false, true, 144), 144, $this->source), "html", null, true);
echo ".html\" data-layout=\"button_count\"
data-action=\"like\" data-show-faces=\"true\" data-share=\"false\"></div>
</div>
<!-- Twitter -->
<div class=\"share_button\">
<a class=\"twitter-share-button\" href=\"https://twitter.com/share\" data-dnt=\"true\">Tweet</a>
</div>
<!-- LINEで送る -->
<div class=\"share_button\">
<div class=\"line-it-button\" data-type=\"share-a\" data-lang=\"ja\"></div>
</div>
</div>
</div>
</div>
<br class=\"clear\"/>
";
// line 159
if (((isset($context["thumbCount"]) || array_key_exists("thumbCount", $context) ? $context["thumbCount"] : (function () { throw new RuntimeError('Variable "thumbCount" does not exist.', 159, $this->source); })()) > 1)) {
// line 160
echo " <div class=\"entry_l_contents clearfix\">
<div class=\"entry_l_sam_box\">
<table cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"entry_l_sam\">
<img src=\"";
// line 165
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["mainUrlSum"]) || array_key_exists("mainUrlSum", $context) ? $context["mainUrlSum"] : (function () { throw new RuntimeError('Variable "mainUrlSum" does not exist.', 165, $this->source); })()), 165, $this->source), "html", null, true);
echo "\"
onmouseover=\"linkinfo('";
// line 166
echo $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 166, $this->source); })()), 166, $this->source);
echo "');swapImage('pict";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 166, $this->source); })()), "goods_id", [], "any", false, false, true, 166), 166, $this->source), "html", null, true);
echo "','','";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["mainUrl"]) || array_key_exists("mainUrl", $context) ? $context["mainUrl"] : (function () { throw new RuntimeError('Variable "mainUrl" does not exist.', 166, $this->source); })()), 166, $this->source), "html", null, true);
echo "',1,'";
echo $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 166, $this->source); })()), 166, $this->source);
echo "')\"
onmouseout=\"swapImage('pict";
// line 167
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 167, $this->source); })()), "goods_id", [], "any", false, false, true, 167), 167, $this->source), "html", null, true);
echo "','','";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["mainUrl"]) || array_key_exists("mainUrl", $context) ? $context["mainUrl"] : (function () { throw new RuntimeError('Variable "mainUrl" does not exist.', 167, $this->source); })()), 167, $this->source), "html", null, true);
echo "',1,'";
echo $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 167, $this->source); })()), 167, $this->source);
echo "');\"
alt=\"";
// line 168
echo $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 168, $this->source); })()), 168, $this->source);
echo "\" width=\"45\"/>
</td>
</tr>
</table>
";
// line 172
echo $this->sandbox->ensureToStringAllowed((isset($context["comment"]) || array_key_exists("comment", $context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.', 172, $this->source); })()), 172, $this->source);
echo "
</div>
";
// line 174
echo $this->sandbox->ensureToStringAllowed((isset($context["displayOther"]) || array_key_exists("displayOther", $context) ? $context["displayOther"] : (function () { throw new RuntimeError('Variable "displayOther" does not exist.', 174, $this->source); })()), 174, $this->source);
echo "
</div>
";
}
// line 177
echo " <br class=\"clear\"/>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Item/main.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 472 => 177, 466 => 174, 461 => 172, 454 => 168, 446 => 167, 436 => 166, 432 => 165, 425 => 160, 423 => 159, 405 => 144, 399 => 140, 395 => 138, 392 => 137, 390 => 136, 386 => 134, 382 => 132, 380 => 131, 377 => 130, 372 => 128, 368 => 126, 366 => 125, 363 => 124, 357 => 122, 355 => 121, 347 => 120, 341 => 119, 337 => 118, 333 => 116, 330 => 115, 319 => 112, 316 => 111, 313 => 110, 310 => 109, 307 => 108, 296 => 105, 293 => 104, 290 => 103, 287 => 102, 284 => 101, 281 => 99, 275 => 97, 273 => 96, 269 => 95, 266 => 94, 260 => 92, 254 => 90, 252 => 89, 247 => 87, 244 => 86, 241 => 85, 236 => 82, 228 => 77, 223 => 76, 220 => 75, 217 => 74, 214 => 73, 211 => 72, 208 => 71, 205 => 70, 202 => 69, 199 => 68, 196 => 67, 193 => 66, 190 => 65, 187 => 64, 184 => 63, 181 => 62, 178 => 61, 176 => 60, 172 => 59, 152 => 41, 145 => 36, 143 => 35, 138 => 33, 130 => 27, 121 => 21, 115 => 17, 113 => 16, 100 => 12, 90 => 5, 55 => 4, 49 => 3, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<div id=\"cartin-button-guide\"></div>
<div class=\"product-detail\" data-id=\"{{ goods.goodsMainKataban | display_text }}\" data-name=\"{{ data.goods_name | display_text }}\"
data-category=\"{% for i in breadCrumb %}{% if loop.index != 1 %} / {% endif %}{{ i.label }}{% endfor %}\"
data-price=\"{{ size[0].gp_price | display_text }}\">
<div id=\"col2-wrapper\">
<!-- left contents -->
<div id=\"lcontents\">
<table cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"entry_pict\">
<img src=\"{{ mainUrl }}\" alt=\"{{ comment }}\" name=\"pict{{ goods.goodsId }}\" id=\"pict{{ goods.goodsId }}\"/>
</td>
</tr>
</table>
{% if thumbCount > 1 %}
<div class=\"entry_pict_text\">
<script type=\"text/javascript\">
<!--
if (document.all || document.getElementById) {
document.write(\"<div id='linkinfolay'>{{ comment }}</div>\");
}
//-->
</script>
</div>
{% endif %}
</div>
<!-- right contents -->
<div id=\"rcontents\">
<div id=\"rcontent\"></div>
<div class=\"goods-detail\">
{{ data.goods_detail | lm_sashikomi }}
</div>
{% if data.goods_status != 1 and not is_preview_mode %}
<style> .hinban_box {
background: none;
background-color: #f0f0f0;
} </style>
{% endif %}
<style>
.campaign-badge {
display: inline-block;
padding: 4px 8px;
margin: 5px 5px 5px 0;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
color: white;
}
.badge-yoridori {
background-color: #ff6b6b;
}
.badge-matome {
background-color: #4ecdc4;
}
</style>
<div id=\"{{ goods.goodsId }}\" class=\"hinban_box\">
{% set hinban_length = goods.goodsMainKataban | length %}
{% if hinban_length <= 10 %}
{% set fontsize = '40px' %}
{% elseif hinban_length <= 12 %}
{% set fontsize = '35px' %}
{% elseif hinban_length <= 14 %}
{% set fontsize = '30px' %}
{% elseif hinban_length <= 16 %}
{% set fontsize = '25px' %}
{% elseif hinban_length <= 18 %}
{% set fontsize = '20px' %}
{% elseif hinban_length <= 20 %}
{% set fontsize = '15px' %}
{% else %}
{% set fontsize = '40px' %}
{% endif %}
<p class=\"gno\" style=\"font-size:{{ fontsize }};\">
<span>商品番号 :</span>{{ goods.goodsMainKataban }}
</p>
</div>
<div class=\"price_box\">
<p class=\"goods-sale-text\">{{ data.goods_sale_text | display_text }}</p>
{# スーパーセール #}
{% include 'Product/Parts/super_sale.twig' with { goods: goods } only %}
<p class=\"goods-merged-item-number-text\">{{ data.goods_merged_item_number_text | display_text }}</p>
<p class=\"gname\">
{% if goods_name_with_vending_status is defined and goods_name_with_vending_status %}
{{ goods_name_with_vending_status | display_text }}
{% else %}
{{ data.goods_name | display_text }}
{% endif %}
</p>
<p class=\"gname-sub\">{{ data.goods_sub_name | display_text }}</p>
{% if displayTeika.teika is defined and displayTeika.teika %}
<p class=\"gteika\">希望小売価格:{{ displayTeika.teika | raw }}</p>
{% endif %}
{# Campaign badges #}
{% set campaignFlags = getCampaignFlags(goods.goodsId) %}
{% if campaignFlags.yoridori == 1 %}
{% set yoridoriInfo = getYoridoriCampaignInfo(goods.goodsId) %}
{% if yoridoriInfo %}
<div class=\"campaign-badge badge-yoridori\">{{ yoridoriInfo.name }}({{ yoridoriInfo.min }}点以上で{{ yoridoriInfo.percent }}%OFF)</div>
{% endif %}
{% endif %}
{% if campaignFlags.matome == 1 %}
{% set matomeInfo = getMatomeCampaignInfo(goods.goodsId) %}
{% if matomeInfo %}
<div class=\"campaign-badge badge-matome\">{{ matomeInfo.name }}({{ matomeInfo.min }}点以上で{{ matomeInfo.percent }}%OFF)</div>
{% endif %}
{% endif %}
<p class=\"gprice\">
<span class=\"web_tokka\">WEB特別価格:</span><span
class=\"kakaku\">{{ displayPrice.mi | number_format }}</span>
<span class=\"gprice-txt\">円{% if displayPrice2 != \"\" %}~{% endif %}(税抜価格<span
class=\"fontsize26px\">{{ displayPrice.gp_price | number_format }}</span>円{% if displayPrice2 != \"\" %}~{% endif %})</span>
{% if displayTeika.off is defined %}
<span class=\"goff\">{{ displayTeika.off }}</span>
{% endif %}
</p>
{% if displayPrice2 != \"\" %}
<div class=\"sizeprice-box\"><p class=\"sizeprice-box-txt\"><span
class=\"line1\">※サイズによって価格が変わります。</span><span
class=\"sizeprice-txt\">{{ displayPrice2 }}</span></p></div>
{% endif %}
{% if recentviews[goods.goodsId].main_gp_price is defined and recentviews[goods.goodsId].main_gp_price >= BaseInfo.DeliveryFreeAmount %}
<p class=\"gship\"><b>送料無料商品です。</b>(※沖縄・離島を除く)</p>
{% endif %}
</div>
{% if isShowLeftmenu %}
{% else %}
<img src=\"/images/image_dt/shopping_guide.gif\" alt=\"お支払い方法\" class=\"spb20\"/><br/>
{% endif %}
<div id=\"share_buttons\">
<!-- Facebook -->
<div class=\"share_button\">
<div class=\"fb-like\" data-href=\"/item/{{ goods.itemId }}.html\" data-layout=\"button_count\"
data-action=\"like\" data-show-faces=\"true\" data-share=\"false\"></div>
</div>
<!-- Twitter -->
<div class=\"share_button\">
<a class=\"twitter-share-button\" href=\"https://twitter.com/share\" data-dnt=\"true\">Tweet</a>
</div>
<!-- LINEで送る -->
<div class=\"share_button\">
<div class=\"line-it-button\" data-type=\"share-a\" data-lang=\"ja\"></div>
</div>
</div>
</div>
</div>
<br class=\"clear\"/>
{% if thumbCount > 1 %}
<div class=\"entry_l_contents clearfix\">
<div class=\"entry_l_sam_box\">
<table cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"entry_l_sam\">
<img src=\"{{ mainUrlSum }}\"
onmouseover=\"linkinfo('{{ comment | raw }}');swapImage('pict{{ data.goods_id }}','','{{ mainUrl }}',1,'{{ comment | raw }}')\"
onmouseout=\"swapImage('pict{{ data.goods_id }}','','{{ mainUrl }}',1,'{{ comment | raw }}');\"
alt=\"{{ comment | raw }}\" width=\"45\"/>
</td>
</tr>
</table>
{{ comment | raw }}
</div>
{{ displayOther | raw }}
</div>
{% endif %}
<br class=\"clear\"/>
</div>
", "Item/main.twig", "/var/www/html/app/template/default/Item/main.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 4, "if" => 4, "set" => 60, "include" => 85);
static $filters = array("escape" => 3, "display_text" => 3, "lm_sashikomi" => 33, "length" => 60, "raw" => 97, "number_format" => 118);
static $functions = array("getCampaignFlags" => 101, "getYoridoriCampaignInfo" => 103, "getMatomeCampaignInfo" => 110);
try {
$this->sandbox->checkSecurity(
['for', 'if', 'set', 'include'],
['escape', 'display_text', 'lm_sashikomi', 'length', 'raw', 'number_format'],
['getCampaignFlags', 'getYoridoriCampaignInfo', 'getMatomeCampaignInfo']
);
} 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;
}
}
}