<?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/product_item_list_common.twig */
class __TwigTemplate_6f265c1e7239b11903974461feeccf11 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/product_item_list_common.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/product_item_list_common.twig"));
// line 1
$context["displayCnt"] = 0;
// line 2
$context["breakCountForRankLabel"] = 1;
// line 3
$context["an_v"] = twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 3, $this->source); })()), "an_v", [], "any", false, false, true, 3);
// line 4
$context["session"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getSessionData();
// line 5
$context["ranking_num"] = (isset($context["max_display_cnt"]) || array_key_exists("max_display_cnt", $context) ? $context["max_display_cnt"] : (function () { throw new RuntimeError('Variable "max_display_cnt" does not exist.', 5, $this->source); })());
// line 6
$context["order_type"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getCategoryOrderType();
// line 7
echo "
<style>
#glist .gtest {
position: relative;
bottom: 0;
width: 100%;
}
</style>
<!-- glist -->
<div
\tid=\"glist\"
";
// line 18
if ((array_key_exists("useCache", $context) && (isset($context["useCache"]) || array_key_exists("useCache", $context) ? $context["useCache"] : (function () { throw new RuntimeError('Variable "useCache" does not exist.', 18, $this->source); })()))) {
echo " class=\"fbt-lazy\" ";
}
// line 19
echo "\tsummary=\"商品リスト\"
\tdata-list-name=\"";
// line 20
if ((isset($context["isMainCategory"]) || array_key_exists("isMainCategory", $context) ? $context["isMainCategory"] : (function () { throw new RuntimeError('Variable "isMainCategory" does not exist.', 20, $this->source); })())) {
echo "親カテゴリ ";
} else {
echo " 子カテゴリ ";
}
echo " / 商品DB\"
\tdata-page=\"";
// line 21
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 21, $this->source); })()), "pager_pages_current_num", [], "any", false, false, true, 21), 21, $this->source), "html", null, true);
echo "\"
data-count-per-page=\"";
// line 22
if ((array_key_exists("session", $context) && twig_get_attribute($this->env, $this->source, ($context["session"] ?? null), "display_max", [], "any", true, true, true, 22))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 22, $this->source); })()), "display_max", [], "any", false, false, true, 22), 22, $this->source), "html", null, true);
} else {
echo "10";
}
echo "\"
>
<ul>
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 25, $this->source); })()), "item", [], "any", false, false, true, 25));
$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["item"]) {
// line 26
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 26) <= twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 26, $this->source); })()), "max_cnt", [], "any", false, false, true, 26))) {
// line 27
echo " ";
$context["displayCnt"] = ((isset($context["displayCnt"]) || array_key_exists("displayCnt", $context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.', 27, $this->source); })()) + 1);
// line 28
echo " ";
if ((((isset($context["displayCnt"]) || array_key_exists("displayCnt", $context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.', 28, $this->source); })()) % (isset($context["col_count"]) || array_key_exists("col_count", $context) ? $context["col_count"] : (function () { throw new RuntimeError('Variable "col_count" does not exist.', 28, $this->source); })())) == 1)) {
// line 29
echo " ";
if (((isset($context["displayCnt"]) || array_key_exists("displayCnt", $context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.', 29, $this->source); })()) > 1)) {
// line 30
echo " </ul>
<ul>
";
// line 32
$context["breakCountForRankLabel"] = 1;
// line 33
echo " ";
}
// line 34
echo " ";
}
// line 35
echo "
";
// line 37
echo " ";
$context["item_data"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 37, $this->source); })()), "item", [], "any", false, false, true, 37), (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 37) - 1), [], "array", false, false, true, 37);
// line 38
echo " ";
$context["item_idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 38);
// line 39
echo "
<!-- item-list-item.phtml -->
";
// line 42
$context["no"] = 0;
// line 43
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, true, 43), "query", [], "any", false, true, true, 43), "get", [0 => "no"], "method", true, true, true, 43)) {
// line 44
echo " ";
$context["no"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 44, $this->source); })()), "request", [], "any", false, false, true, 44), "query", [], "any", false, false, true, 44), "get", [0 => "no"], "method", false, false, true, 44);
// line 45
echo " ";
}
// line 46
echo "
<li
class=\"category-list-item product-box\"
data-goods-id=\"";
// line 49
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["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 49, $this->source); })()), "goods_id", [], "any", false, false, true, 49), 49, $this->source)), "html", null, true);
echo "\"
data-id=\"";
// line 50
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["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 50, $this->source); })()), "kataban", [], "any", false, false, true, 50), 50, $this->source)), "html", null, true);
echo "\"
data-name=\"";
// line 51
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["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 51, $this->source); })()), "goods_name", [], "any", false, false, true, 51), 51, $this->source)), "html", null, true);
echo "\"
";
// line 52
if ((isset($context["isMainCategory"]) || array_key_exists("isMainCategory", $context) ? $context["isMainCategory"] : (function () { throw new RuntimeError('Variable "isMainCategory" does not exist.', 52, $this->source); })())) {
// line 53
echo " data-category=\"";
(((twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "main_category_name", [], "any", true, true, true, 53) && !(null === twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "main_category_name", [], "any", false, false, true, 53)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "main_category_name", [], "any", false, false, true, 53), "html", null, true))) : (print ("")));
echo "\"
";
} else {
// line 55
echo " data-category=\"";
if ((array_key_exists("mainCategoryData", $context) && twig_get_attribute($this->env, $this->source, ($context["mainCategoryData"] ?? null), "main_category_name", [], "any", true, true, true, 55))) {
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["mainCategoryData"]) || array_key_exists("mainCategoryData", $context) ? $context["mainCategoryData"] : (function () { throw new RuntimeError('Variable "mainCategoryData" does not exist.', 55, $this->source); })()), "main_category_name", [], "any", false, false, true, 55), 55, $this->source)), "html", null, true);
}
echo " / ";
if (twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "category_name", [], "any", true, true, true, 55)) {
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["category_name"]) || array_key_exists("category_name", $context) ? $context["category_name"] : (function () { throw new RuntimeError('Variable "category_name" does not exist.', 55, $this->source); })()), 55, $this->source), "html", null, true);
echo " ";
}
echo "\"
";
}
// line 57
echo " data-price=\"";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPhpFunctions("preg_replace", "@<.*>@", "", $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 57, $this->source); })()), "price", [], "any", false, false, true, 57), 57, $this->source));
echo "\"
>
\t <a href=\"";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->LM_detailLink2($this->sandbox->ensureToStringAllowed((isset($context["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 59, $this->source); })()), 59, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["canonical_category_name"]) || array_key_exists("canonical_category_name", $context) ? $context["canonical_category_name"] : (function () { throw new RuntimeError('Variable "canonical_category_name" does not exist.', 59, $this->source); })()), 59, $this->source), "", $this->sandbox->ensureToStringAllowed((isset($context["useItemUrlDuplicated"]) || array_key_exists("useItemUrlDuplicated", $context) ? $context["useItemUrlDuplicated"] : (function () { throw new RuntimeError('Variable "useItemUrlDuplicated" does not exist.', 59, $this->source); })()), 59, $this->source)), "html", null, true);
echo "\">
<div id=\"c";
// line 60
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["item_idx"]) || array_key_exists("item_idx", $context) ? $context["item_idx"] : (function () { throw new RuntimeError('Variable "item_idx" does not exist.', 60, $this->source); })()), 60, $this->source), "html", null, true);
echo "\" class=\"gcont product-link\" onclick=\"location.href='";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->LM_detailLink2($this->sandbox->ensureToStringAllowed((isset($context["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 60, $this->source); })()), 60, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["canonical_category_name"]) || array_key_exists("canonical_category_name", $context) ? $context["canonical_category_name"] : (function () { throw new RuntimeError('Variable "canonical_category_name" does not exist.', 60, $this->source); })()), 60, $this->source), "", $this->sandbox->ensureToStringAllowed((isset($context["useItemUrlDuplicated"]) || array_key_exists("useItemUrlDuplicated", $context) ? $context["useItemUrlDuplicated"] : (function () { throw new RuntimeError('Variable "useItemUrlDuplicated" does not exist.', 60, $this->source); })()), 60, $this->source)), "html", null, true);
echo "'\">
";
// line 61
if (((null === (isset($context["order_type"]) || array_key_exists("order_type", $context) ? $context["order_type"] : (function () { throw new RuntimeError('Variable "order_type" does not exist.', 61, $this->source); })())) || ((isset($context["order_type"]) || array_key_exists("order_type", $context) ? $context["order_type"] : (function () { throw new RuntimeError('Variable "order_type" does not exist.', 61, $this->source); })()) != 6))) {
// line 62
echo " ";
if ((((isset($context["no"]) || array_key_exists("no", $context) ? $context["no"] : (function () { throw new RuntimeError('Variable "no" does not exist.', 62, $this->source); })()) + (isset($context["item_idx"]) || array_key_exists("item_idx", $context) ? $context["item_idx"] : (function () { throw new RuntimeError('Variable "item_idx" does not exist.', 62, $this->source); })())) <= (isset($context["ranking_num"]) || array_key_exists("ranking_num", $context) ? $context["ranking_num"] : (function () { throw new RuntimeError('Variable "ranking_num" does not exist.', 62, $this->source); })()))) {
// line 63
echo " ";
if (((isset($context["item_idx"]) || array_key_exists("item_idx", $context) ? $context["item_idx"] : (function () { throw new RuntimeError('Variable "item_idx" does not exist.', 63, $this->source); })()) <= 3)) {
// line 64
echo " <div class=\"rank rank-top3\"><span class=\"rank-label\">人気ランキング 第";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["item_idx"]) || array_key_exists("item_idx", $context) ? $context["item_idx"] : (function () { throw new RuntimeError('Variable "item_idx" does not exist.', 64, $this->source); })()), 64, $this->source), "html", null, true);
echo "位</span></div>
";
} else {
// line 66
echo " <div class=\"rank\"><span class=\"rank-label\"><span class=\"rank-num\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["item_idx"]) || array_key_exists("item_idx", $context) ? $context["item_idx"] : (function () { throw new RuntimeError('Variable "item_idx" does not exist.', 66, $this->source); })()), 66, $this->source), "html", null, true);
echo "</span>位</span></div>
";
}
// line 68
echo " ";
$context["breakCountForRankLabel"] = ((isset($context["breakCountForRankLabel"]) || array_key_exists("breakCountForRankLabel", $context) ? $context["breakCountForRankLabel"] : (function () { throw new RuntimeError('Variable "breakCountForRankLabel" does not exist.', 68, $this->source); })()) + 1);
// line 69
echo " ";
} else {
// line 70
echo " ";
if (((isset($context["breakCountForRankLabel"]) || array_key_exists("breakCountForRankLabel", $context) ? $context["breakCountForRankLabel"] : (function () { throw new RuntimeError('Variable "breakCountForRankLabel" does not exist.', 70, $this->source); })()) != 1)) {
// line 71
echo " <div class=\"rank rank-blank\"></div>
";
// line 72
$context["breakCountForRankLabel"] = ((isset($context["breakCountForRankLabel"]) || array_key_exists("breakCountForRankLabel", $context) ? $context["breakCountForRankLabel"] : (function () { throw new RuntimeError('Variable "breakCountForRankLabel" does not exist.', 72, $this->source); })()) + 1);
// line 73
echo " ";
}
// line 74
echo " ";
}
// line 75
echo " ";
}
// line 76
echo "
<!-- メイン画像 -->
<div class=\"clearfix\">
<div class=\"gcont1\">
<div class=\"photo\">
";
// line 81
$context["_mainUrlSumImg"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->makeImageURL("goods.img", $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 81, $this->source); })()), "goods_id", [], "any", false, false, true, 81), 81, $this->source));
// line 82
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed((isset($context["_mainUrlSumImg"]) || array_key_exists("_mainUrlSumImg", $context) ? $context["_mainUrlSumImg"] : (function () { throw new RuntimeError('Variable "_mainUrlSumImg" does not exist.', 82, $this->source); })()), 82, $this->source)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 82, $this->source); })()), "goods_name", [], "any", false, false, true, 82), 82, $this->source), "html", null, true);
echo "\" border=\"0\">
</div>
</div>
</div>
<!-- メイン画像 -->
";
// line 88
echo $this->extensions['Customize\Twig\Extension\CustomExtension']->renderProductItem($this->sandbox->ensureToStringAllowed((isset($context["item_data"]) || array_key_exists("item_data", $context) ? $context["item_data"] : (function () { throw new RuntimeError('Variable "item_data" does not exist.', 88, $this->source); })()), 88, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["useCache"]) || array_key_exists("useCache", $context) ? $context["useCache"] : (function () { throw new RuntimeError('Variable "useCache" does not exist.', 88, $this->source); })()), 88, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["average"]) || array_key_exists("average", $context) ? $context["average"] : (function () { throw new RuntimeError('Variable "average" does not exist.', 88, $this->source); })()), 88, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["col_count"]) || array_key_exists("col_count", $context) ? $context["col_count"] : (function () { throw new RuntimeError('Variable "col_count" does not exist.', 88, $this->source); })()), 88, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["vendingStatusMap"]) || array_key_exists("vendingStatusMap", $context) ? $context["vendingStatusMap"] : (function () { throw new RuntimeError('Variable "vendingStatusMap" does not exist.', 88, $this->source); })()), 88, $this->source));
echo "
</div>
</a>
</li>
<!-- item-list-item.phtml -->
";
}
// line 96
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['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 97
echo "
";
// line 98
if ((((isset($context["displayCnt"]) || array_key_exists("displayCnt", $context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.', 98, $this->source); })()) > 0) && (((isset($context["displayCnt"]) || array_key_exists("displayCnt", $context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.', 98, $this->source); })()) % (isset($context["col_count"]) || array_key_exists("col_count", $context) ? $context["col_count"] : (function () { throw new RuntimeError('Variable "col_count" does not exist.', 98, $this->source); })())) > 0))) {
// line 99
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (((isset($context["col_count"]) || array_key_exists("col_count", $context) ? $context["col_count"] : (function () { throw new RuntimeError('Variable "col_count" does not exist.', 99, $this->source); })()) - ((isset($context["displayCnt"]) || array_key_exists("displayCnt", $context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.', 99, $this->source); })()) % (isset($context["col_count"]) || array_key_exists("col_count", $context) ? $context["col_count"] : (function () { throw new RuntimeError('Variable "col_count" does not exist.', 99, $this->source); })()))) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 100
echo " <p> </p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
echo " </ul>
";
}
// line 104
echo "</div>
<!-- /glist -->
";
// line 107
if ((array_key_exists("pager_data", $context) && (twig_get_attribute($this->env, $this->source, ($context["pager_data"] ?? null), "pager", [], "any", true, true, true, 107) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pager_data"]) || array_key_exists("pager_data", $context) ? $context["pager_data"] : (function () { throw new RuntimeError('Variable "pager_data" does not exist.', 107, $this->source); })()), "pager", [], "any", false, false, true, 107)) > 1)))) {
// line 108
echo " <div class=\"item-list-pagination\">
<ul>
";
// line 110
if ((twig_get_attribute($this->env, $this->source, ($context["pager_data"] ?? null), "prev_link", [], "any", true, true, true, 110) && twig_get_attribute($this->env, $this->source, (isset($context["pager_data"]) || array_key_exists("pager_data", $context) ? $context["pager_data"] : (function () { throw new RuntimeError('Variable "pager_data" does not exist.', 110, $this->source); })()), "prev_link", [], "any", false, false, true, 110))) {
// line 111
echo " <li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-prev\"><a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["pager_data"]) || array_key_exists("pager_data", $context) ? $context["pager_data"] : (function () { throw new RuntimeError('Variable "pager_data" does not exist.', 111, $this->source); })()), "prev_link", [], "any", false, false, true, 111), 111, $this->source), "html", null, true);
echo "\">前へ</a></li>
";
}
// line 113
echo "
";
// line 114
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["pager_data"]) || array_key_exists("pager_data", $context) ? $context["pager_data"] : (function () { throw new RuntimeError('Variable "pager_data" does not exist.', 114, $this->source); })()), "pager", [], "any", false, false, true, 114));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 115
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "is_current", [], "any", true, true, true, 115) && twig_get_attribute($this->env, $this->source, $context["page"], "is_current", [], "any", false, false, true, 115))) {
// line 116
echo " <li class=\"item-list-pagination-page item-list-pagination-page-current\"><span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "num", [], "any", false, false, true, 116), 116, $this->source), "html", null, true);
echo "</span></li>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 117
$context["page"], "link", [], "any", true, true, true, 117)) {
// line 118
echo " <li class=\"item-list-pagination-page item-list-pagination-page-link\"><a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "link", [], "any", false, false, true, 118), 118, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "num", [], "any", false, false, true, 118), 118, $this->source), "html", null, true);
echo "</a></li>
";
} else {
// line 120
echo " <li class=\"item-list-pagination-page ";
echo (((twig_get_attribute($this->env, $this->source, $context["page"], "is_ellipses", [], "any", true, true, true, 120) && twig_get_attribute($this->env, $this->source, $context["page"], "is_ellipses", [], "any", false, false, true, 120))) ? (" item-list-pagination-ellipses") : (""));
echo "\"><span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "num", [], "any", false, false, true, 120), 120, $this->source), "html", null, true);
echo "</span></li>
";
}
// line 122
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
echo "
";
// line 124
if ((twig_get_attribute($this->env, $this->source, ($context["pager_data"] ?? null), "next_link", [], "any", true, true, true, 124) && twig_get_attribute($this->env, $this->source, (isset($context["pager_data"]) || array_key_exists("pager_data", $context) ? $context["pager_data"] : (function () { throw new RuntimeError('Variable "pager_data" does not exist.', 124, $this->source); })()), "next_link", [], "any", false, false, true, 124))) {
// line 125
echo " <li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-next\"><a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["pager_data"]) || array_key_exists("pager_data", $context) ? $context["pager_data"] : (function () { throw new RuntimeError('Variable "pager_data" does not exist.', 125, $this->source); })()), "next_link", [], "any", false, false, true, 125), 125, $this->source), "html", null, true);
echo "\">次へ</a></li>
";
}
// line 127
echo " </ul>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/product_item_list_common.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 399 => 127, 393 => 125, 391 => 124, 388 => 123, 382 => 122, 374 => 120, 366 => 118, 364 => 117, 359 => 116, 356 => 115, 352 => 114, 349 => 113, 343 => 111, 341 => 110, 337 => 108, 335 => 107, 330 => 104, 326 => 102, 319 => 100, 314 => 99, 312 => 98, 309 => 97, 295 => 96, 284 => 88, 272 => 82, 270 => 81, 263 => 76, 260 => 75, 257 => 74, 254 => 73, 252 => 72, 249 => 71, 246 => 70, 243 => 69, 240 => 68, 234 => 66, 228 => 64, 225 => 63, 222 => 62, 220 => 61, 214 => 60, 210 => 59, 204 => 57, 190 => 55, 184 => 53, 182 => 52, 178 => 51, 174 => 50, 170 => 49, 165 => 46, 162 => 45, 159 => 44, 156 => 43, 154 => 42, 149 => 39, 146 => 38, 143 => 37, 140 => 35, 137 => 34, 134 => 33, 132 => 32, 128 => 30, 125 => 29, 122 => 28, 119 => 27, 116 => 26, 99 => 25, 89 => 22, 85 => 21, 77 => 20, 74 => 19, 70 => 18, 57 => 7, 55 => 6, 53 => 5, 51 => 4, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set displayCnt = 0 %}
{% set breakCountForRankLabel = 1 %}
{% set an_v = detailData.an_v %}
{% set session = session_data() %}
{% set ranking_num = max_display_cnt %}
{% set order_type = get_category_order_type() %}
<style>
#glist .gtest {
position: relative;
bottom: 0;
width: 100%;
}
</style>
<!-- glist -->
<div
\tid=\"glist\"
{% if useCache is defined and useCache %} class=\"fbt-lazy\" {% endif %}
\tsummary=\"商品リスト\"
\tdata-list-name=\"{% if isMainCategory %}親カテゴリ {% else %} 子カテゴリ {% endif %} / 商品DB\"
\tdata-page=\"{{ detailData.pager_pages_current_num }}\"
data-count-per-page=\"{% if session is defined and session.display_max is defined %}{{ session.display_max }}{% else %}10{% endif %}\"
>
<ul>
{% for item in detailData.item %}
{% if loop.index <= detailData.max_cnt %}
{% set displayCnt = displayCnt + 1 %}
{% if displayCnt % col_count == 1 %}
{% if displayCnt > 1 %}
</ul>
<ul>
{% set breakCountForRankLabel = 1 %}
{% endif %}
{% endif %}
{#{% set item_data = detailData.item[an_v[loop.index - 1]] %}#}
{% set item_data = detailData.item[loop.index - 1] %}
{% set item_idx = loop.index %}
<!-- item-list-item.phtml -->
{% set no = 0 %}
{% if app.request.query.get('no') is defined %}
{% set no = app.request.query.get('no') %}
{% endif %}
<li
class=\"category-list-item product-box\"
data-goods-id=\"{{ item_data.goods_id | display_text }}\"
data-id=\"{{ item_data.kataban | display_text }}\"
data-name=\"{{ item_data.goods_name | display_text }}\"
{% if isMainCategory %}
data-category=\"{{ data.main_category_name ?? '' }}\"
{% else %}
data-category=\"{% if mainCategoryData is defined and mainCategoryData.main_category_name is defined %}{{ mainCategoryData.main_category_name | display_text }}{% endif %} / {% if data.category_name is defined %} {{ category_name }} {% endif %}\"
{% endif %}
data-price=\"{{ php_preg_replace('@<.*>@', '', item_data.price) }}\"
>
\t <a href=\"{{ lm_detailLink2(item_data, canonical_category_name, '', useItemUrlDuplicated) }}\">
<div id=\"c{{ item_idx }}\" class=\"gcont product-link\" onclick=\"location.href='{{ lm_detailLink2(item_data, canonical_category_name, '', useItemUrlDuplicated) }}'\">
{% if order_type is null or order_type != 6 %}
{% if no + item_idx <= ranking_num %}
{% if item_idx <= 3 %}
<div class=\"rank rank-top3\"><span class=\"rank-label\">人気ランキング 第{{ item_idx }}位</span></div>
{% else %}
<div class=\"rank\"><span class=\"rank-label\"><span class=\"rank-num\">{{ item_idx }}</span>位</span></div>
{% endif %}
{% set breakCountForRankLabel = breakCountForRankLabel + 1 %}
{% else %}
{% if breakCountForRankLabel != 1 %}
<div class=\"rank rank-blank\"></div>
{% set breakCountForRankLabel = breakCountForRankLabel + 1 %}
{% endif %}
{% endif %}
{% endif %}
<!-- メイン画像 -->
<div class=\"clearfix\">
<div class=\"gcont1\">
<div class=\"photo\">
{% set _mainUrlSumImg = makeImageURL(\"goods.img\", item_data.goods_id) %}
<img src=\"{{ _mainUrlSumImg | display_text }}\" alt=\"{{ item_data.goods_name }}\" border=\"0\">
</div>
</div>
</div>
<!-- メイン画像 -->
{{ render_product_item(item_data, useCache, average, col_count, vendingStatusMap) | raw }}
</div>
</a>
</li>
<!-- item-list-item.phtml -->
{% endif %}
{% endfor %}
{% if displayCnt > 0 and (displayCnt % col_count > 0) %}
{% for i in 0..(col_count - displayCnt % col_count - 1) %}
<p> </p>
{% endfor %}
</ul>
{% endif %}
</div>
<!-- /glist -->
{% if pager_data is defined and (pager_data.pager is defined and (pager_data.pager | length) > 1) %}
<div class=\"item-list-pagination\">
<ul>
{% if pager_data.prev_link is defined and pager_data.prev_link %}
<li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-prev\"><a href=\"{{ pager_data.prev_link }}\">前へ</a></li>
{% endif %}
{% for page in pager_data.pager %}
{% if page.is_current is defined and page.is_current %}
<li class=\"item-list-pagination-page item-list-pagination-page-current\"><span>{{ page.num }}</span></li>
{% elseif page.link is defined %}
<li class=\"item-list-pagination-page item-list-pagination-page-link\"><a href=\"{{ page.link }}\">{{ page.num }}</a></li>
{% else %}
<li class=\"item-list-pagination-page {{ page.is_ellipses is defined and page.is_ellipses ? ' item-list-pagination-ellipses' : '' }}\"><span>{{ page.num }}</span></li>
{% endif %}
{% endfor %}
{% if pager_data.next_link is defined and pager_data.next_link %}
<li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-next\"><a href=\"{{ pager_data.next_link }}\">次へ</a></li>
{% endif %}
</ul>
</div>
{% endif %}
", "Block/product_item_list_common.twig", "/var/www/html/app/template/default/Block/product_item_list_common.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 18, "for" => 25);
static $filters = array("escape" => 21, "display_text" => 49, "raw" => 88, "length" => 107);
static $functions = array("session_data" => 4, "get_category_order_type" => 6, "php_preg_replace" => 57, "lm_detailLink2" => 59, "makeImageURL" => 81, "render_product_item" => 88, "range" => 99);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'display_text', 'raw', 'length'],
['session_data', 'get_category_order_type', 'php_preg_replace', 'lm_detailLink2', 'makeImageURL', 'render_product_item', 'range']
);
} 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;
}
}
}