var/cache/dev/twig/3b/3b96656b2ad68d2b74820b2fb07e8e6e.php line 284

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Block/product_item_list_common.twig */
  14. class __TwigTemplate_6f265c1e7239b11903974461feeccf11 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/product_item_list_common.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/product_item_list_common.twig"));
  35.         // line 1
  36.         $context["displayCnt"] = 0;
  37.         // line 2
  38.         $context["breakCountForRankLabel"] = 1;
  39.         // line 3
  40.         $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"falsefalsetrue3);
  41.         // line 4
  42.         $context["session"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getSessionData();
  43.         // line 5
  44.         $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); })());
  45.         // line 6
  46.         $context["order_type"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getCategoryOrderType();
  47.         // line 7
  48.         echo "
  49. <style>
  50. #glist .gtest {
  51.     position: relative;
  52.     bottom: 0;
  53.     width: 100%;
  54. }
  55. </style>
  56. <!-- glist -->
  57. <div
  58. \tid=\"glist\"
  59.   ";
  60.         // line 18
  61.         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); })()))) {
  62.             echo " class=\"fbt-lazy\" ";
  63.         }
  64.         // line 19
  65.         echo "\tsummary=\"商品リスト\"
  66. \tdata-list-name=\"";
  67.         // line 20
  68.         if ((isset($context["isMainCategory"]) || array_key_exists("isMainCategory"$context) ? $context["isMainCategory"] : (function () { throw new RuntimeError('Variable "isMainCategory" does not exist.'20$this->source); })())) {
  69.             echo "親カテゴリ ";
  70.         } else {
  71.             echo " 子カテゴリ ";
  72.         }
  73.         echo " / 商品DB\"
  74. \tdata-page=\"";
  75.         // line 21
  76.         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"falsefalsetrue21), 21$this->source), "html"nulltrue);
  77.         echo "\"
  78.   data-count-per-page=\"";
  79.         // line 22
  80.         if ((array_key_exists("session"$context) && twig_get_attribute($this->env$this->source, ($context["session"] ?? null), "display_max", [], "any"truetruetrue22))) {
  81.             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"falsefalsetrue22), 22$this->source), "html"nulltrue);
  82.         } else {
  83.             echo "10";
  84.         }
  85.         echo "\"
  86. >
  87.   <ul>
  88.     ";
  89.         // line 25
  90.         $context['_parent'] = $context;
  91.         $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"falsefalsetrue25));
  92.         $context['loop'] = [
  93.           'parent' => $context['_parent'],
  94.           'index0' => 0,
  95.           'index'  => 1,
  96.           'first'  => true,
  97.         ];
  98.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  99.             $length count($context['_seq']);
  100.             $context['loop']['revindex0'] = $length 1;
  101.             $context['loop']['revindex'] = $length;
  102.             $context['loop']['length'] = $length;
  103.             $context['loop']['last'] = === $length;
  104.         }
  105.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  106.             // line 26
  107.             echo "      ";
  108.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue26) <= 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"falsefalsetrue26))) {
  109.                 // line 27
  110.                 echo "        ";
  111.                 $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);
  112.                 // line 28
  113.                 echo "        ";
  114.                 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)) {
  115.                     // line 29
  116.                     echo "          ";
  117.                     if (((isset($context["displayCnt"]) || array_key_exists("displayCnt"$context) ? $context["displayCnt"] : (function () { throw new RuntimeError('Variable "displayCnt" does not exist.'29$this->source); })()) > 1)) {
  118.                         // line 30
  119.                         echo "            </ul>
  120.             <ul>
  121.             ";
  122.                         // line 32
  123.                         $context["breakCountForRankLabel"] = 1;
  124.                         // line 33
  125.                         echo "          ";
  126.                     }
  127.                     // line 34
  128.                     echo "        ";
  129.                 }
  130.                 // line 35
  131.                 echo "
  132.         ";
  133.                 // line 37
  134.                 echo "        ";
  135.                 $context["item_data"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue37), (twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue37) - 1), [], "array"falsefalsetrue37);
  136.                 // line 38
  137.                 echo "        ";
  138.                 $context["item_idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue38);
  139.                 // line 39
  140.                 echo "
  141.         <!-- item-list-item.phtml -->
  142.         ";
  143.                 // line 42
  144.                 $context["no"] = 0;
  145.                 // line 43
  146.                 echo "        ";
  147.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruetrue43), "query", [], "any"falsetruetrue43), "get", [=> "no"], "method"truetruetrue43)) {
  148.                     // line 44
  149.                     echo "          ";
  150.                     $context["no"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue44), "query", [], "any"falsefalsetrue44), "get", [=> "no"], "method"falsefalsetrue44);
  151.                     // line 45
  152.                     echo "        ";
  153.                 }
  154.                 // line 46
  155.                 echo "
  156.         <li
  157.           class=\"category-list-item product-box\"
  158.           data-goods-id=\"";
  159.                 // line 49
  160.                 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"falsefalsetrue49), 49$this->source)), "html"nulltrue);
  161.                 echo "\"
  162.           data-id=\"";
  163.                 // line 50
  164.                 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"falsefalsetrue50), 50$this->source)), "html"nulltrue);
  165.                 echo "\"
  166.           data-name=\"";
  167.                 // line 51
  168.                 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"falsefalsetrue51), 51$this->source)), "html"nulltrue);
  169.                 echo "\"
  170.           ";
  171.                 // line 52
  172.                 if ((isset($context["isMainCategory"]) || array_key_exists("isMainCategory"$context) ? $context["isMainCategory"] : (function () { throw new RuntimeError('Variable "isMainCategory" does not exist.'52$this->source); })())) {
  173.                     // line 53
  174.                     echo "          data-category=\"";
  175.                     (((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "main_category_name", [], "any"truetruetrue53) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "main_category_name", [], "any"falsefalsetrue53)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "main_category_name", [], "any"falsefalsetrue53), "html"nulltrue))) : (print ("")));
  176.                     echo "\"
  177.           ";
  178.                 } else {
  179.                     // line 55
  180.                     echo "          data-category=\"";
  181.                     if ((array_key_exists("mainCategoryData"$context) && twig_get_attribute($this->env$this->source, ($context["mainCategoryData"] ?? null), "main_category_name", [], "any"truetruetrue55))) {
  182.                         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"falsefalsetrue55), 55$this->source)), "html"nulltrue);
  183.                     }
  184.                     echo " / ";
  185.                     if (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "category_name", [], "any"truetruetrue55)) {
  186.                         echo " ";
  187.                         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"nulltrue);
  188.                         echo " ";
  189.                     }
  190.                     echo "\"
  191.           ";
  192.                 }
  193.                 // line 57
  194.                 echo "          data-price=\"";
  195.                 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"falsefalsetrue57), 57$this->source));
  196.                 echo "\"
  197.         >
  198. \t        <a href=\"";
  199.                 // line 59
  200.                 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"nulltrue);
  201.                 echo "\">
  202.             <div id=\"c";
  203.                 // line 60
  204.                 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"nulltrue);
  205.                 echo "\" class=\"gcont product-link\" onclick=\"location.href='";
  206.                 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"nulltrue);
  207.                 echo "'\">
  208.               ";
  209.                 // line 61
  210.                 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))) {
  211.                     // line 62
  212.                     echo "                ";
  213.                     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); })()))) {
  214.                         // line 63
  215.                         echo "                  ";
  216.                         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)) {
  217.                             // line 64
  218.                             echo "                    <div class=\"rank rank-top3\"><span class=\"rank-label\">人気ランキング 第";
  219.                             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"nulltrue);
  220.                             echo "位</span></div>
  221.                   ";
  222.                         } else {
  223.                             // line 66
  224.                             echo "                    <div class=\"rank\"><span class=\"rank-label\"><span class=\"rank-num\">";
  225.                             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"nulltrue);
  226.                             echo "</span>位</span></div>
  227.                   ";
  228.                         }
  229.                         // line 68
  230.                         echo "                  ";
  231.                         $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);
  232.                         // line 69
  233.                         echo "                ";
  234.                     } else {
  235.                         // line 70
  236.                         echo "                  ";
  237.                         if (((isset($context["breakCountForRankLabel"]) || array_key_exists("breakCountForRankLabel"$context) ? $context["breakCountForRankLabel"] : (function () { throw new RuntimeError('Variable "breakCountForRankLabel" does not exist.'70$this->source); })()) != 1)) {
  238.                             // line 71
  239.                             echo "                    <div class=\"rank rank-blank\"></div>
  240.                     ";
  241.                             // line 72
  242.                             $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);
  243.                             // line 73
  244.                             echo "                  ";
  245.                         }
  246.                         // line 74
  247.                         echo "                ";
  248.                     }
  249.                     // line 75
  250.                     echo "              ";
  251.                 }
  252.                 // line 76
  253.                 echo "
  254.               <!-- メイン画像 -->
  255.               <div class=\"clearfix\">
  256.                 <div class=\"gcont1\">
  257.                   <div class=\"photo\">
  258.                     ";
  259.                 // line 81
  260.                 $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"falsefalsetrue81), 81$this->source));
  261.                 // line 82
  262.                 echo "                    <img src=\"";
  263.                 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"nulltrue);
  264.                 echo "\" alt=\"";
  265.                 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"falsefalsetrue82), 82$this->source), "html"nulltrue);
  266.                 echo "\" border=\"0\">
  267.                   </div>
  268.                 </div>
  269.               </div>
  270.               <!-- メイン画像 -->
  271.               ";
  272.                 // line 88
  273.                 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));
  274.                 echo "
  275.             </div>
  276.           </a>
  277.         </li>
  278.         <!-- item-list-item.phtml -->
  279.       ";
  280.             }
  281.             // line 96
  282.             echo "    ";
  283.             ++$context['loop']['index0'];
  284.             ++$context['loop']['index'];
  285.             $context['loop']['first'] = false;
  286.             if (isset($context['loop']['length'])) {
  287.                 --$context['loop']['revindex0'];
  288.                 --$context['loop']['revindex'];
  289.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  290.             }
  291.         }
  292.         $_parent $context['_parent'];
  293.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  294.         $context array_intersect_key($context$_parent) + $_parent;
  295.         // line 97
  296.         echo "
  297.     ";
  298.         // line 98
  299.         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))) {
  300.             // line 99
  301.             echo "      ";
  302.             $context['_parent'] = $context;
  303.             $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)));
  304.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  305.                 // line 100
  306.                 echo "        <p>&nbsp;</p>
  307.       ";
  308.             }
  309.             $_parent $context['_parent'];
  310.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  311.             $context array_intersect_key($context$_parent) + $_parent;
  312.             // line 102
  313.             echo "      </ul>
  314.     ";
  315.         }
  316.         // line 104
  317.         echo "</div>
  318. <!-- /glist -->
  319. ";
  320.         // line 107
  321.         if ((array_key_exists("pager_data"$context) && (twig_get_attribute($this->env$this->source, ($context["pager_data"] ?? null), "pager", [], "any"truetruetrue107) && (twig_length_filter($this->envtwig_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"falsefalsetrue107)) > 1)))) {
  322.             // line 108
  323.             echo "    <div class=\"item-list-pagination\">
  324.         <ul>
  325.             ";
  326.             // line 110
  327.             if ((twig_get_attribute($this->env$this->source, ($context["pager_data"] ?? null), "prev_link", [], "any"truetruetrue110) && 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"falsefalsetrue110))) {
  328.                 // line 111
  329.                 echo "                <li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-prev\"><a href=\"";
  330.                 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"falsefalsetrue111), 111$this->source), "html"nulltrue);
  331.                 echo "\">前へ</a></li>
  332.             ";
  333.             }
  334.             // line 113
  335.             echo "
  336.             ";
  337.             // line 114
  338.             $context['_parent'] = $context;
  339.             $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"falsefalsetrue114));
  340.             foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  341.                 // line 115
  342.                 echo "                ";
  343.                 if ((twig_get_attribute($this->env$this->source$context["page"], "is_current", [], "any"truetruetrue115) && twig_get_attribute($this->env$this->source$context["page"], "is_current", [], "any"falsefalsetrue115))) {
  344.                     // line 116
  345.                     echo "                    <li class=\"item-list-pagination-page item-list-pagination-page-current\"><span>";
  346.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "num", [], "any"falsefalsetrue116), 116$this->source), "html"nulltrue);
  347.                     echo "</span></li>
  348.                 ";
  349.                 } elseif (twig_get_attribute($this->env$this->source,                 // line 117
  350. $context["page"], "link", [], "any"truetruetrue117)) {
  351.                     // line 118
  352.                     echo "                    <li class=\"item-list-pagination-page item-list-pagination-page-link\"><a href=\"";
  353.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "link", [], "any"falsefalsetrue118), 118$this->source), "html"nulltrue);
  354.                     echo "\">";
  355.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "num", [], "any"falsefalsetrue118), 118$this->source), "html"nulltrue);
  356.                     echo "</a></li>
  357.                 ";
  358.                 } else {
  359.                     // line 120
  360.                     echo "                    <li class=\"item-list-pagination-page ";
  361.                     echo (((twig_get_attribute($this->env$this->source$context["page"], "is_ellipses", [], "any"truetruetrue120) && twig_get_attribute($this->env$this->source$context["page"], "is_ellipses", [], "any"falsefalsetrue120))) ? (" item-list-pagination-ellipses") : (""));
  362.                     echo "\"><span>";
  363.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["page"], "num", [], "any"falsefalsetrue120), 120$this->source), "html"nulltrue);
  364.                     echo "</span></li>
  365.                 ";
  366.                 }
  367.                 // line 122
  368.                 echo "            ";
  369.             }
  370.             $_parent $context['_parent'];
  371.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  372.             $context array_intersect_key($context$_parent) + $_parent;
  373.             // line 123
  374.             echo "
  375.             ";
  376.             // line 124
  377.             if ((twig_get_attribute($this->env$this->source, ($context["pager_data"] ?? null), "next_link", [], "any"truetruetrue124) && 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"falsefalsetrue124))) {
  378.                 // line 125
  379.                 echo "                <li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-next\"><a href=\"";
  380.                 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"falsefalsetrue125), 125$this->source), "html"nulltrue);
  381.                 echo "\">次へ</a></li>
  382.             ";
  383.             }
  384.             // line 127
  385.             echo "        </ul>
  386.     </div>
  387. ";
  388.         }
  389.         
  390.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  391.         
  392.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  393.     }
  394.     public function getTemplateName()
  395.     {
  396.         return "Block/product_item_list_common.twig";
  397.     }
  398.     public function isTraitable()
  399.     {
  400.         return false;
  401.     }
  402.     public function getDebugInfo()
  403.     {
  404.         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,);
  405.     }
  406.     public function getSourceContext()
  407.     {
  408.         return new Source("{% set displayCnt = 0 %}
  409. {% set breakCountForRankLabel = 1 %}
  410. {% set an_v = detailData.an_v %}
  411. {% set session = session_data() %}
  412. {% set ranking_num = max_display_cnt %}
  413. {% set order_type = get_category_order_type() %}
  414. <style>
  415. #glist .gtest {
  416.     position: relative;
  417.     bottom: 0;
  418.     width: 100%;
  419. }
  420. </style>
  421. <!-- glist -->
  422. <div
  423. \tid=\"glist\"
  424.   {% if useCache is defined and useCache %} class=\"fbt-lazy\" {% endif %}
  425. \tsummary=\"商品リスト\"
  426. \tdata-list-name=\"{% if isMainCategory %}親カテゴリ {% else %} 子カテゴリ {% endif %} / 商品DB\"
  427. \tdata-page=\"{{ detailData.pager_pages_current_num }}\"
  428.   data-count-per-page=\"{% if session is defined and session.display_max is defined %}{{ session.display_max }}{% else %}10{% endif %}\"
  429. >
  430.   <ul>
  431.     {% for item in detailData.item %}
  432.       {% if loop.index <= detailData.max_cnt %}
  433.         {% set displayCnt = displayCnt + 1 %}
  434.         {% if displayCnt % col_count == 1 %}
  435.           {% if displayCnt > 1 %}
  436.             </ul>
  437.             <ul>
  438.             {% set breakCountForRankLabel = 1 %}
  439.           {% endif %}
  440.         {% endif %}
  441.         {#{% set item_data = detailData.item[an_v[loop.index - 1]] %}#}
  442.         {% set item_data = detailData.item[loop.index - 1] %}
  443.         {% set item_idx = loop.index %}
  444.         <!-- item-list-item.phtml -->
  445.         {% set no = 0 %}
  446.         {% if app.request.query.get('no') is defined %}
  447.           {% set no = app.request.query.get('no') %}
  448.         {% endif %}
  449.         <li
  450.           class=\"category-list-item product-box\"
  451.           data-goods-id=\"{{ item_data.goods_id | display_text }}\"
  452.           data-id=\"{{ item_data.kataban | display_text }}\"
  453.           data-name=\"{{ item_data.goods_name | display_text }}\"
  454.           {% if isMainCategory %}
  455.           data-category=\"{{ data.main_category_name ?? '' }}\"
  456.           {% else %}
  457.           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 %}\"
  458.           {% endif %}
  459.           data-price=\"{{ php_preg_replace('@<.*>@', '', item_data.price) }}\"
  460.         >
  461. \t        <a href=\"{{ lm_detailLink2(item_data, canonical_category_name, '', useItemUrlDuplicated) }}\">
  462.             <div id=\"c{{ item_idx }}\" class=\"gcont product-link\" onclick=\"location.href='{{ lm_detailLink2(item_data, canonical_category_name, '', useItemUrlDuplicated) }}'\">
  463.               {% if order_type is null or order_type != 6 %}
  464.                 {% if no + item_idx <= ranking_num %}
  465.                   {% if item_idx <= 3 %}
  466.                     <div class=\"rank rank-top3\"><span class=\"rank-label\">人気ランキング 第{{ item_idx }}位</span></div>
  467.                   {% else %}
  468.                     <div class=\"rank\"><span class=\"rank-label\"><span class=\"rank-num\">{{ item_idx }}</span>位</span></div>
  469.                   {% endif %}
  470.                   {% set breakCountForRankLabel = breakCountForRankLabel + 1 %}
  471.                 {% else %}
  472.                   {% if breakCountForRankLabel != 1 %}
  473.                     <div class=\"rank rank-blank\"></div>
  474.                     {% set breakCountForRankLabel = breakCountForRankLabel + 1 %}
  475.                   {% endif %}
  476.                 {% endif %}
  477.               {% endif %}
  478.               <!-- メイン画像 -->
  479.               <div class=\"clearfix\">
  480.                 <div class=\"gcont1\">
  481.                   <div class=\"photo\">
  482.                     {% set _mainUrlSumImg = makeImageURL(\"goods.img\", item_data.goods_id) %}
  483.                     <img src=\"{{ _mainUrlSumImg | display_text }}\" alt=\"{{ item_data.goods_name }}\" border=\"0\">
  484.                   </div>
  485.                 </div>
  486.               </div>
  487.               <!-- メイン画像 -->
  488.               {{ render_product_item(item_data, useCache, average, col_count, vendingStatusMap) | raw }}
  489.             </div>
  490.           </a>
  491.         </li>
  492.         <!-- item-list-item.phtml -->
  493.       {% endif %}
  494.     {% endfor %}
  495.     {% if displayCnt > 0 and (displayCnt % col_count > 0) %}
  496.       {% for i in 0..(col_count - displayCnt % col_count - 1) %}
  497.         <p>&nbsp;</p>
  498.       {% endfor %}
  499.       </ul>
  500.     {% endif %}
  501. </div>
  502. <!-- /glist -->
  503. {% if pager_data is defined and (pager_data.pager is defined and (pager_data.pager | length) > 1) %}
  504.     <div class=\"item-list-pagination\">
  505.         <ul>
  506.             {% if pager_data.prev_link is defined and pager_data.prev_link %}
  507.                 <li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-prev\"><a href=\"{{ pager_data.prev_link }}\">前へ</a></li>
  508.             {% endif %}
  509.             {% for page in pager_data.pager %}
  510.                 {% if page.is_current is defined and page.is_current %}
  511.                     <li class=\"item-list-pagination-page item-list-pagination-page-current\"><span>{{ page.num }}</span></li>
  512.                 {% elseif page.link is defined %}
  513.                     <li class=\"item-list-pagination-page item-list-pagination-page-link\"><a href=\"{{ page.link }}\">{{ page.num }}</a></li>
  514.                 {% else %}
  515.                     <li class=\"item-list-pagination-page {{ page.is_ellipses is defined and page.is_ellipses ? ' item-list-pagination-ellipses' : '' }}\"><span>{{ page.num }}</span></li>
  516.                 {% endif %}
  517.             {% endfor %}
  518.             {% if pager_data.next_link is defined and pager_data.next_link %}
  519.                 <li class=\"item-list-pagination-page item-list-pagination-prev-next item-list-pagination-next\"><a href=\"{{ pager_data.next_link }}\">次へ</a></li>
  520.             {% endif %}
  521.         </ul>
  522.     </div>
  523. {% endif %}
  524. ""Block/product_item_list_common.twig""/var/www/html/app/template/default/Block/product_item_list_common.twig");
  525.     }
  526.     
  527.     public function checkSecurity()
  528.     {
  529.         static $tags = array("set" => 1"if" => 18"for" => 25);
  530.         static $filters = array("escape" => 21"display_text" => 49"raw" => 88"length" => 107);
  531.         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);
  532.         try {
  533.             $this->sandbox->checkSecurity(
  534.                 ['set''if''for'],
  535.                 ['escape''display_text''raw''length'],
  536.                 ['session_data''get_category_order_type''php_preg_replace''lm_detailLink2''makeImageURL''render_product_item''range']
  537.             );
  538.         } catch (SecurityError $e) {
  539.             $e->setSourceContext($this->source);
  540.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  541.                 $e->setTemplateLine($tags[$e->getTagName()]);
  542.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  543.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  544.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  545.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  546.             }
  547.             throw $e;
  548.         }
  549.     }
  550. }