var/cache/dev/twig/98/989d2ce6bab2c15b1f2d530404267386b7f6decaf0925fdf97d9a79f1a826fcc.php line 16

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. /* Product/detail.twig */
  14. class __TwigTemplate_fab3b87cc5aacacc2d952e7cbed9a5cdc4127f214dc6afc27df8fc10dfd904dc 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->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  39.         // line 13
  40.         $context["body_class"] = ("product product-detail product-detail-" twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'13$this->source); })()), "id", [], "any"falsefalsefalse13));
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "    <script>
  59.         eccube.classCategories = ";
  60.         // line 17
  61.         echo $this->extensions['Plugin\Synplgbase\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'17$this->source); })()));
  62.         echo ";
  63.         // 規格2に選択肢を割り当てる。
  64.         function fnSetClassCategories(form, classcat_id2_selected) {
  65.             var \$form = \$(form);
  66.             var product_id = \$form.find('input[name=product_id]').val();
  67.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  68.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  69.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  70.         }
  71.         ";
  72.         // line 28
  73.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse28)) {
  74.             // line 29
  75.             echo "        fnSetClassCategories(
  76.             \$('#form1'), ";
  77.             // line 30
  78.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'30$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse30), "vars", [], "any"falsefalsefalse30), "value", [], "any"falsefalsefalse30));
  79.             echo "
  80.         );
  81.         ";
  82.         } elseif (twig_get_attribute($this->env$this->source,         // line 32
  83. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse32)) {
  84.             // line 33
  85.             echo "        eccube.checkStock(\$('#form1'), ";
  86.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'33$this->source); })()), "id", [], "any"falsefalsefalse33), "html"nulltrue);
  87.             echo ", ";
  88.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'33$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse33), "vars", [], "any"falsefalsefalse33), "value", [], "any"falsefalsefalse33));
  89.             echo ", null);
  90.         ";
  91.         }
  92.         // line 35
  93.         echo "    </script>
  94.     <script>
  95.         \$(function() {
  96.             // bfcache無効化
  97.             \$(window).bind('pageshow', function(event) {
  98.                 if (event.originalEvent.persisted) {
  99.                     location.reload(true);
  100.                 }
  101.             });
  102.         });
  103.     </script>
  104.     <script>
  105.         \$(function() {
  106.             \$('.add-cart').on('click', function(event) {
  107.                 ";
  108.         // line 49
  109.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse49)) {
  110.             // line 50
  111.             echo "                // 規格1フォームの必須チェック
  112.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  113.                     \$('#classcategory_id1')[0].setCustomValidity('";
  114.             // line 52
  115.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  116.             echo "');
  117.                     return true;
  118.                 } else {
  119.                     \$('#classcategory_id1')[0].setCustomValidity('');
  120.                 }
  121.                 ";
  122.         }
  123.         // line 58
  124.         echo "
  125.                 ";
  126.         // line 59
  127.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse59)) {
  128.             // line 60
  129.             echo "                // 規格2フォームの必須チェック
  130.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  131.                     \$('#classcategory_id2')[0].setCustomValidity('";
  132.             // line 62
  133.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  134.             echo "');
  135.                     return true;
  136.                 } else {
  137.                     \$('#classcategory_id2')[0].setCustomValidity('');
  138.                 }
  139.                 ";
  140.         }
  141.         // line 68
  142.         echo "
  143.                 // 個数フォームのチェック
  144.                 if (\$('#quantity').val() < 1) {
  145.                     \$('#quantity')[0].setCustomValidity('";
  146.         // line 71
  147.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  148.         echo "');
  149.                     return true;
  150.                 } else {
  151.                     \$('#quantity')[0].setCustomValidity('');
  152.                 }
  153.                 event.preventDefault();
  154.                 \$form = \$('#form1');
  155.                 \$.ajax({
  156.                     url: \$form.attr('action'),
  157.                     type: \$form.attr('method'),
  158.                     data: \$form.serialize(),
  159.                     dataType: 'json',
  160.                     beforeSend: function(xhr, settings) {
  161.                         // Buttonを無効にする
  162.                         \$('.add-cart').prop('disabled', true);
  163.                     }
  164.                 }).done(function(data) {
  165.                     // レスポンス内のメッセージをalertで表示
  166.                     \$.each(data.messages, function() {
  167.                         \$('#ec-modal-header').html(this);
  168.                     });
  169.                     \$('#ec-modal-checkbox').prop('checked', true);
  170.                     // カートブロックを更新する
  171.                     \$.ajax({
  172.                         url: \"";
  173.         // line 98
  174.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  175.         echo "\",
  176.                         type: 'GET',
  177.                         dataType: 'html'
  178.                     }).done(function(html) {
  179.                         var num = \$(html).find('.ec-cartNavi__badge').html();
  180.                         \$('.header-cart span').html(num);
  181.                     });
  182.                 }).fail(function(data) {
  183.                     alert('";
  184.         // line 106
  185.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  186.         echo "');
  187.                 }).always(function(data) {
  188.                     // Buttonを有効にする
  189.                     \$('.add-cart').prop('disabled', false);
  190.                 });
  191.             });
  192.         });
  193.     </script>
  194.     <script>
  195.         \$(function() {
  196.             \$('.ec-classcategory dd').on('click', function(){
  197.                 if (!\$(this).find('.stock-none').length) {
  198.                     var classcategory_id1 = \$(this).data('classcategory-id1');
  199.                     var classcategory_id2 = \$(this).data('classcategory-id2');
  200.                     var classcategory_id2_name = \$(this).data('classcategory-id2-name');
  201.                     \$('#classcategory_id1').val(classcategory_id1);
  202.                     \$('#classcategory_id2').children().remove().end().append(\$('<option value=\"' + classcategory_id2 + '\">' + classcategory_id2_name + '</option>')).val(classcategory_id2);
  203.                     \$('html,body').animate({scrollTop: \$('#ec-productRole__cart').offset().top}, {'duration': 600, 'easing': 'easeOutCubic', 'queue': false});
  204.                 }
  205.             });
  206.         });
  207.     </script>
  208.     <script type=\"application/ld+json\">
  209.     {
  210.         \"@context\": \"http://schema.org/\",
  211.         \"@type\": \"Product\",
  212.         ";
  213.         // line 133
  214.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'133$this->source); })()), "code_min", [], "any"falsefalsefalse133))) {
  215.             // line 134
  216.             echo "            \"sku\": \"";
  217.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'134$this->source); })()), "code_min", [], "any"falsefalsefalse134), "html"nulltrue);
  218.             echo "\",
  219.         ";
  220.         }
  221.         // line 136
  222.         echo "        \"image\": [
  223.             ";
  224.         // line 137
  225.         $context['_parent'] = $context;
  226.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'137$this->source); })()), "ProductImage", [], "any"falsefalsefalse137));
  227.         $context['loop'] = [
  228.           'parent' => $context['_parent'],
  229.           'index0' => 0,
  230.           'index'  => 1,
  231.           'first'  => true,
  232.         ];
  233.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  234.             $length count($context['_seq']);
  235.             $context['loop']['revindex0'] = $length 1;
  236.             $context['loop']['revindex'] = $length;
  237.             $context['loop']['length'] = $length;
  238.             $context['loop']['last'] = === $length;
  239.         }
  240.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  241.             // line 138
  242.             echo "                \"";
  243.             echo twig_escape_filter($this->envtwig_trim_filter($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage"), "//"), "html"nulltrue);
  244.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  245.             echo "\"";
  246.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse138) == false)) {
  247.                 echo ",";
  248.             }
  249.             // line 139
  250.             echo "            ";
  251.             ++$context['loop']['index0'];
  252.             ++$context['loop']['index'];
  253.             $context['loop']['first'] = false;
  254.             if (isset($context['loop']['length'])) {
  255.                 --$context['loop']['revindex0'];
  256.                 --$context['loop']['revindex'];
  257.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  258.             }
  259.         }
  260.         $_parent $context['_parent'];
  261.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  262.         $context array_intersect_key($context$_parent) + $_parent;
  263.         // line 140
  264.         echo "        ],
  265.         \"name\": \"";
  266.         // line 141
  267.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'141$this->source); })()), "name", [], "any"falsefalsefalse141), "html"nulltrue);
  268.         echo "\",
  269.         ";
  270.         // line 142
  271.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'142$this->source); })()), "description", [], "any"falsefalsefalse142))) {
  272.             // line 143
  273.             echo "            \"description\": \"";
  274.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'143$this->source); })()), "description", [], "any"falsefalsefalse143), "html"nulltrue);
  275.             echo "\",
  276.         ";
  277.         } else {
  278.             // line 145
  279.             echo "            \"description\": \"";
  280.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'145$this->source); })()), "description_list", [], "any"falsefalsefalse145), "html"nulltrue);
  281.             echo "\",
  282.         ";
  283.         }
  284.         // line 147
  285.         echo "        \"offers\": {
  286.             \"@type\": \"Offer\",
  287.             \"url\": \"";
  288.         // line 149
  289.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  290.         echo "products/detail/";
  291.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'149$this->source); })()), "id", [], "any"falsefalsefalse149), "html"nulltrue);
  292.         echo "\",
  293.             \"itemCondition\": \"http://schema.org/NewCondition\",
  294.             ";
  295.         // line 151
  296.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'151$this->source); })()), "stock_find", [], "any"falsefalsefalse151)) {
  297.             // line 152
  298.             echo "                \"availability\": \"http://schema.org/InStock\",
  299.             ";
  300.         } else {
  301.             // line 154
  302.             echo "                \"availability\": \"http://schema.org/OutOfStock\",
  303.             ";
  304.         }
  305.         // line 156
  306.         echo "            \"price\": \"";
  307.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'156$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse156), "html"nulltrue);
  308.         echo "\",
  309.             \"priceCurrency\": \"JPY\"
  310.         }
  311.     }
  312.     </script>
  313. ";
  314.         
  315.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  316.         
  317.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  318.     }
  319.     // line 163
  320.     public function block_main($context, array $blocks = [])
  321.     {
  322.         $macros $this->macros;
  323.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  324.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  325.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  326.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  327.         // line 164
  328.         echo "    <div class=\"ec-productRole\">
  329. \t\t<div class=\"sp-bread\"><a href=\"/\">&raquo;&nbsp;車検一覧に戻る</a></div>
  330.         ";
  331.         // line 166
  332.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'166$this->source); })()), "freearea", [], "any"falsefalsefalse166)) {
  333.             // line 167
  334.             echo "             <div class=\"ec-productRole__freearea page-content\">
  335.                  ";
  336.             // line 168
  337.             echo twig_include($this->env$contexttwig_template_from_string($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'168$this->source); })()), "freearea", [], "any"falsefalsefalse168)));
  338.             echo "
  339.             </div>
  340.         ";
  341.         }
  342.         // line 171
  343.         echo "        <div class=\"ec-grid2\">
  344.             <div class=\"ec-grid2__cell\">
  345.                 <div class=\"ec-sliderItemRole\">
  346.                     <div class=\"item_visual\">
  347.                         ";
  348.         // line 175
  349.         $context['_parent'] = $context;
  350.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'175$this->source); })()), "ProductImage", [], "any"falsefalsefalse175));
  351.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  352.             // line 176
  353.             echo "                            <div class=\"slide-item\">
  354.                                 ";
  355.             // line 177
  356.             echo call_user_func_array($this->env->getFunction('synResizeImage')->getCallable(), [["url" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(            // line 178
  357. $context["ProductImage"], "save_image"), "pc" => ["width" => 660"height" => 660"type" => "contain"], "alt" => twig_get_attribute($this->env$this->source,             // line 180
  358. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'180$this->source); })()), "name", [], "any"falsefalsefalse180), "noimage" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/noimage.jpg"), "loading" => true]]);
  359.             // line 183
  360.             echo "
  361.                             </div>
  362.                         ";
  363.         }
  364.         $_parent $context['_parent'];
  365.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  366.         $context array_intersect_key($context$_parent) + $_parent;
  367.         // line 186
  368.         echo "                    </div>
  369.                     <div class=\"item_nav\">
  370.                         ";
  371.         // line 188
  372.         $context['_parent'] = $context;
  373.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'188$this->source); })()), "ProductImage", [], "any"falsefalsefalse188));
  374.         $context['loop'] = [
  375.           'parent' => $context['_parent'],
  376.           'index0' => 0,
  377.           'index'  => 1,
  378.           'first'  => true,
  379.         ];
  380.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  381.             $length count($context['_seq']);
  382.             $context['loop']['revindex0'] = $length 1;
  383.             $context['loop']['revindex'] = $length;
  384.             $context['loop']['length'] = $length;
  385.             $context['loop']['last'] = === $length;
  386.         }
  387.         foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  388.             // line 189
  389.             echo "                            <div class=\"slideThumb\" data-index=\"";
  390.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse189), "html"nulltrue);
  391.             echo "\">
  392.                                 ";
  393.             // line 191
  394.             echo "                                ";
  395.             echo call_user_func_array($this->env->getFunction('synResizeImage')->getCallable(), [["url" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(            // line 192
  396. $context["ProductImage"], "save_image"), "pc" => ["width" => 660"height" => 660"type" => "contain"], "alt" => twig_get_attribute($this->env$this->source,             // line 194
  397. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'194$this->source); })()), "name", [], "any"falsefalsefalse194), "noimage" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/noimage.jpg"), "loading" => true]]);
  398.             // line 197
  399.             echo "
  400.                             </div>
  401.                         ";
  402.             ++$context['loop']['index0'];
  403.             ++$context['loop']['index'];
  404.             $context['loop']['first'] = false;
  405.             if (isset($context['loop']['length'])) {
  406.                 --$context['loop']['revindex0'];
  407.                 --$context['loop']['revindex'];
  408.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  409.             }
  410.         }
  411.         $_parent $context['_parent'];
  412.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  413.         $context array_intersect_key($context$_parent) + $_parent;
  414.         // line 200
  415.         echo "                    </div>
  416.                 </div>
  417.             </div>
  418.             <div class=\"ec-grid2__cell\">
  419.                 <div class=\"ec-productRole__profile\">
  420.                     ";
  421.         // line 206
  422.         echo "                    ";
  423.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'206$this->source); })()), "code_min", [], "any"falsefalsefalse206))) {
  424.             // line 207
  425.             echo "                        <div class=\"ec-productRole__code\">
  426.                             ";
  427.             // line 208
  428.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品コード"), "html"nulltrue);
  429.             echo ": <span class=\"product-code-default\">";
  430.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'208$this->source); })()), "code_min", [], "any"falsefalsefalse208), "html"nulltrue);
  431.             if ((twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'208$this->source); })()), "code_min", [], "any"falsefalsefalse208) != twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'208$this->source); })()), "code_max", [], "any"falsefalsefalse208))) {
  432.                 echo " ~ ";
  433.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'208$this->source); })()), "code_max", [], "any"falsefalsefalse208), "html"nulltrue);
  434.             }
  435.             echo "</span>
  436.                         </div>
  437.                     ";
  438.         }
  439.         // line 211
  440.         echo "                    ";
  441.         // line 212
  442.         echo "                    <div class=\"ec-productRole__title\">
  443.                         <h1 class=\"ec-headingTitle\">";
  444.         // line 213
  445.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'213$this->source); })()), "name", [], "any"falsefalsefalse213), "html"nulltrue);
  446.         echo "</h1>
  447.                     </div>
  448.                     ";
  449.         // line 216
  450.         echo "                    ";
  451.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'216$this->source); })()), "Tags", [], "any"falsefalsefalse216))) {
  452.             // line 217
  453.             echo "                        <ul class=\"ec-productRole__tags\">
  454.                             ";
  455.             // line 218
  456.             $context['_parent'] = $context;
  457.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'218$this->source); })()), "Tags", [], "any"falsefalsefalse218));
  458.             foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  459.                 // line 219
  460.                 echo "                                <li class=\"ec-productRole__tag tag_";
  461.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse219), "html"nulltrue);
  462.                 echo "\">";
  463.                 echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  464.                 echo "</li>
  465.                             ";
  466.             }
  467.             $_parent $context['_parent'];
  468.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  469.             $context array_intersect_key($context$_parent) + $_parent;
  470.             // line 221
  471.             echo "                        </ul>
  472.                     ";
  473.         }
  474.         // line 223
  475.         echo "                    ";
  476.         // line 224
  477.         echo "                    <div class=\"ec-productRole__price\">
  478.                         <div class=\"ec-productRole__price01\">
  479.                             ";
  480.         // line 226
  481.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'226$this->source); })()), "hasProductClass", [], "any"falsefalsefalse226)) {
  482.             // line 227
  483.             echo "                                ";
  484.             if (( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'227$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse227)) && (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'227$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse227) == twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'227$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse227)))) {
  485.                 // line 228
  486.                 echo "                                    通常価格:<span class=\"ec-price__price price01-default\">";
  487.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'228$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse228)), "html"nulltrue);
  488.                 echo "</span>
  489.                                     <span class=\"ec-price__tax\">税込</span>
  490.                                 ";
  491.             } elseif (( !(null === twig_get_attribute($this->env$this->source,             // line 230
  492. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'230$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse230)) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'230$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse230)))) {
  493.                 // line 231
  494.                 echo "                                    通常価格:<span class=\"ec-price__price price01-default\">";
  495.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'231$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse231)), "html"nulltrue);
  496.                 echo "~";
  497.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'231$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse231)), "html"nulltrue);
  498.                 echo "</span>
  499.                                     <span class=\"ec-price__tax\">税込</span>
  500.                                 ";
  501.             }
  502.             // line 234
  503.             echo "                            ";
  504.         } else {
  505.             // line 235
  506.             echo "                                ";
  507.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'235$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse235))) {
  508.                 // line 236
  509.                 echo "                                    通常価格:<span class=\"ec-price__price price01-default\">";
  510.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'236$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse236)), "html"nulltrue);
  511.                 echo "</span>
  512.                                     <span class=\"ec-price__tax\">税込</span>
  513.                                 ";
  514.             }
  515.             // line 239
  516.             echo "                            ";
  517.         }
  518.         // line 240
  519.         echo "                        </div>
  520.                         ";
  521.         // line 242
  522.         echo "                        <div class=\"ec-productRole__price02";
  523.         if (((((isset($context["Synplgbase"]) || array_key_exists("Synplgbase"$context)) && twig_get_attribute($this->env$this->source, (isset($context["Synplgbase"]) || array_key_exists("Synplgbase"$context) ? $context["Synplgbase"] : (function () { throw new RuntimeError('Variable "Synplgbase" does not exist.'242$this->source); })()), "ProductCustomerPriceOn", [], "any"falsefalsefalse242)) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'242$this->source); })()), "getPrice03Min", [], "any"falsefalsefalse242))) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER"))) {
  524.             echo " hidden";
  525.         }
  526.         echo "\">
  527.                             ";
  528.         // line 243
  529.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'243$this->source); })()), "hasProductClass", [], "any"falsefalsefalse243)) {
  530.             // line 244
  531.             echo "                                ";
  532.             if ((twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'244$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse244) == twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'244$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse244))) {
  533.                 // line 245
  534.                 echo "                                    販売価格:<span class=\"ec-price__price price02-default\">";
  535.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'245$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse245)), "html"nulltrue);
  536.                 echo "</span>
  537.                                     <span class=\"ec-price__tax\">税込</span>
  538.                                 ";
  539.             } else {
  540.                 // line 248
  541.                 echo "                                    販売価格:<span class=\"ec-price__price price02-default\">";
  542.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'248$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse248)), "html"nulltrue);
  543.                 echo "~";
  544.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'248$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse248)), "html"nulltrue);
  545.                 echo "</span>
  546.                                     <span class=\"ec-price__tax\">税込</span>
  547.                                 ";
  548.             }
  549.             // line 251
  550.             echo "                            ";
  551.         } else {
  552.             // line 252
  553.             echo "                                販売価格:<span class=\"ec-price__price price02-default\">";
  554.             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'252$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse252)), "html"nulltrue);
  555.             echo "</span>
  556.                                 <span class=\"ec-price__tax\">税込</span>
  557.                             ";
  558.         }
  559.         // line 255
  560.         echo "                        </div>
  561.                         ";
  562.         // line 257
  563.         echo "                        ";
  564.         if (((isset($context["Synplgbase"]) || array_key_exists("Synplgbase"$context)) && twig_get_attribute($this->env$this->source, (isset($context["Synplgbase"]) || array_key_exists("Synplgbase"$context) ? $context["Synplgbase"] : (function () { throw new RuntimeError('Variable "Synplgbase" does not exist.'257$this->source); })()), "ProductCustomerPriceOn", [], "any"falsefalsefalse257))) {
  565.             // line 258
  566.             echo "                            ";
  567.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'258$this->source); })()), "getPrice03Min", [], "any"falsefalsefalse258))) {
  568.                 // line 259
  569.                 echo "                                <div class=\"ec-productRole__price03\">
  570.                                     <p>
  571.                                         ショップ会員限定価格:
  572.                                         ";
  573.                 // line 262
  574.                 if ( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  575.                     echo "<span>* 会員登録後、ログインするとこの価格で購入できます。</span>";
  576.                 }
  577.                 // line 263
  578.                 echo "                                    </p>
  579.                                     ";
  580.                 // line 264
  581.                 if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'264$this->source); })()), "hasProductClass", [], "any"falsefalsefalse264)) {
  582.                     // line 265
  583.                     echo "                                        ";
  584.                     if (( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'265$this->source); })()), "getPrice03Min", [], "any"falsefalsefalse265)) && (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'265$this->source); })()), "getPrice03Min", [], "any"falsefalsefalse265) == twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'265$this->source); })()), "getPrice03Max", [], "any"falsefalsefalse265)))) {
  585.                         // line 266
  586.                         echo "                                            <span class=\"ec-price__price price03-default\">";
  587.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'266$this->source); })()), "getPrice03IncTaxMin", [], "any"falsefalsefalse266)), "html"nulltrue);
  588.                         echo "</span>
  589.                                             <span class=\"ec-price__tax\">税込</span>
  590.                                         ";
  591.                     } elseif ( !(null === twig_get_attribute($this->env$this->source,                     // line 268
  592. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'268$this->source); })()), "getPrice03Min", [], "any"falsefalsefalse268))) {
  593.                         // line 269
  594.                         echo "                                            <span class=\"ec-price__price price03-default\">";
  595.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'269$this->source); })()), "getPrice03IncTaxMin", [], "any"falsefalsefalse269)), "html"nulltrue);
  596.                         echo "~";
  597.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'269$this->source); })()), "getPrice03IncTaxMax", [], "any"falsefalsefalse269)), "html"nulltrue);
  598.                         echo "</span>
  599.                                             <span class=\"ec-price__tax\">税込</span>
  600.                                         ";
  601.                     }
  602.                     // line 272
  603.                     echo "                                    ";
  604.                 } elseif ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'272$this->source); })()), "getPrice03Max", [], "any"falsefalsefalse272))) {
  605.                     // line 273
  606.                     echo "                                        <span class=\"ec-price__price price03-default\">";
  607.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'273$this->source); })()), "getPrice03IncTaxMin", [], "any"falsefalsefalse273)), "html"nulltrue);
  608.                     echo "</span>
  609.                                         <span class=\"ec-price__tax\">税込</span>
  610.                                     ";
  611.                 }
  612.                 // line 276
  613.                 echo "                                </div>
  614.                             ";
  615.             }
  616.             // line 278
  617.             echo "                        ";
  618.         }
  619.         // line 279
  620.         echo "                    </div>
  621.                     ";
  622.         // line 281
  623.         echo "                    ";
  624.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'281$this->source); })()), "ProductCategories", [], "any"falsefalsefalse281))) {
  625.             // line 282
  626.             echo "                        <div class=\"ec-productRole__category\">
  627.                             <div>";
  628.             // line 283
  629.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html"nulltrue);
  630.             echo "</div>
  631.                             ";
  632.             // line 284
  633.             $context['_parent'] = $context;
  634.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'284$this->source); })()), "ProductCategories", [], "any"falsefalsefalse284));
  635.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  636.                 // line 285
  637.                 echo "                                <ul>
  638.                                     <li>
  639.                                         ";
  640.                 // line 287
  641.                 $context['_parent'] = $context;
  642.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse287), "path", [], "any"falsefalsefalse287));
  643.                 $context['loop'] = [
  644.                   'parent' => $context['_parent'],
  645.                   'index0' => 0,
  646.                   'index'  => 1,
  647.                   'first'  => true,
  648.                 ];
  649.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  650.                     $length count($context['_seq']);
  651.                     $context['loop']['revindex0'] = $length 1;
  652.                     $context['loop']['revindex'] = $length;
  653.                     $context['loop']['length'] = $length;
  654.                     $context['loop']['last'] = === $length;
  655.                 }
  656.                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  657.                     // line 288
  658.                     echo "                                            <a href=\"";
  659.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  660.                     echo "?category_id=";
  661.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse288), "html"nulltrue);
  662.                     echo "\">";
  663.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse288), "html"nulltrue);
  664.                     echo "</a>";
  665.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse288) == false)) {
  666.                         // line 289
  667.                         echo "                                            <span>></span>";
  668.                     }
  669.                     ++$context['loop']['index0'];
  670.                     ++$context['loop']['index'];
  671.                     $context['loop']['first'] = false;
  672.                     if (isset($context['loop']['length'])) {
  673.                         --$context['loop']['revindex0'];
  674.                         --$context['loop']['revindex'];
  675.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  676.                     }
  677.                 }
  678.                 $_parent $context['_parent'];
  679.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  680.                 $context array_intersect_key($context$_parent) + $_parent;
  681.                 // line 291
  682.                 echo "                                    </li>
  683.                                 </ul>
  684.                             ";
  685.             }
  686.             $_parent $context['_parent'];
  687.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  688.             $context array_intersect_key($context$_parent) + $_parent;
  689.             // line 294
  690.             echo "                        </div>
  691.                     ";
  692.         }
  693.         // line 296
  694.         echo "                    ";
  695.         // line 297
  696.         echo "                    ";
  697.         // line 298
  698.         echo "                    <div class=\"ec-productRole__cart\" id=\"ec-productRole__cart\">
  699.                         <form action=\"";
  700.         // line 299
  701.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'299$this->source); })()), "id", [], "any"falsefalsefalse299)]), "html"nulltrue);
  702.         echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  703.                             ";
  704.         // line 300
  705.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'300$this->source); })()), "stock_find", [], "any"falsefalsefalse300)) {
  706.             // line 301
  707.             echo "                                <div class=\"ec-productRole__actions\">
  708.                                     ";
  709.             // line 302
  710.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse302)) {
  711.                 // line 303
  712.                 echo "                                        <div class=\"ec-select\">
  713.                                             ";
  714.                 // line 304
  715.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'304$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse304), 'widget');
  716.                 echo "
  717.                                             ";
  718.                 // line 305
  719.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'305$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse305), 'errors');
  720.                 echo "
  721.                                         </div>
  722.                                         ";
  723.                 // line 307
  724.                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse307)) {
  725.                     // line 308
  726.                     echo "                                            <div class=\"ec-select\">
  727.                                                 ";
  728.                     // line 309
  729.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'309$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse309), 'widget');
  730.                     echo "
  731.                                                 ";
  732.                     // line 310
  733.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'310$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse310), 'errors');
  734.                     echo "
  735.                                             </div>
  736.                                         ";
  737.                 }
  738.                 // line 313
  739.                 echo "                                    ";
  740.             }
  741.             // line 314
  742.             echo "                                    <div class=\"ec-numberInput\"><span>";
  743.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  744.             echo "</span>
  745.                                         ";
  746.             // line 315
  747.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'315$this->source); })()), "quantity", [], "any"falsefalsefalse315), 'widget');
  748.             echo "
  749.                                         ";
  750.             // line 316
  751.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'316$this->source); })()), "quantity", [], "any"falsefalsefalse316), 'errors');
  752.             echo "
  753.                                     </div>
  754.                                 </div>
  755.                                 <div class=\"ec-productRole__btn\">
  756.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  757.                                         ";
  758.             // line 321
  759.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  760.             echo "
  761.                                     </button>
  762.                                 </div>
  763.                             ";
  764.         } else {
  765.             // line 325
  766.             echo "                                <div class=\"ec-productRole__btn\">
  767.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  768.                                         ";
  769.             // line 327
  770.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  771.             echo "
  772.                                     </button>
  773.                                 </div>
  774.                             ";
  775.         }
  776.         // line 331
  777.         echo "
  778.                             ";
  779.         // line 332
  780.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'332$this->source); })()), 'rest');
  781.         echo "
  782.                         </form>
  783.                         <div class=\"ec-modal\">
  784.                             <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  785.                             <div class=\"ec-modal-overlay\">
  786.                                 <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  787.                                 <div class=\"ec-modal-wrap\">
  788.                                     <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"></span></label>
  789.                                     <div id=\"ec-modal-header\" class=\"text-center\">";
  790.         // line 340
  791.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  792.         echo "</div>
  793.                                     <div class=\"ec-modal-box\">
  794.                                         <div class=\"ec-role\">
  795.                                             <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
  796.         // line 343
  797.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  798.         echo "</label>
  799.                                             <a href=\"";
  800.         // line 344
  801.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  802.         echo "\" class=\"ec-inlineBtn--action\">";
  803.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  804.         echo "</a>
  805.                                         </div>
  806.                                     </div>
  807.                                 </div>
  808.                             </div>
  809.                         </div>
  810.                         ";
  811.         // line 350
  812.         if (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.'350$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse350)) {
  813.             // line 351
  814.             echo "                            <form action=\"";
  815.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'351$this->source); })()), "id", [], "any"falsefalsefalse351)]), "html"nulltrue);
  816.             echo "\" method=\"post\">
  817.                                 <div class=\"ec-productRole__btn\">
  818.                                     ";
  819.             // line 353
  820.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'353$this->source); })()) == false)) {
  821.                 // line 354
  822.                 echo "                                        <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  823.                                             ";
  824.                 // line 355
  825.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html"nulltrue);
  826.                 echo "
  827.                                         </button>
  828.                                     ";
  829.             } else {
  830.                 // line 358
  831.                 echo "                                        <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  832.                                                 disabled=\"disabled\">";
  833.                 // line 359
  834.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html"nulltrue);
  835.                 echo "
  836.                                         </button>
  837.                                     ";
  838.             }
  839.             // line 362
  840.             echo "                                </div>
  841.                             </form>
  842.                         ";
  843.         }
  844.         // line 365
  845.         echo "                    </div>
  846.                     <div class=\"ec-productRole__description page-content\">";
  847.         // line 366
  848.         echo twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'366$this->source); })()), "description_detail", [], "any"falsefalsefalse366);
  849.         echo "</div>
  850.                 </div>
  851.             </div>
  852.         </div>
  853.     </div>
  854. ";
  855.         
  856.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  857.         
  858.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  859.     }
  860.     public function getTemplateName()
  861.     {
  862.         return "Product/detail.twig";
  863.     }
  864.     public function isTraitable()
  865.     {
  866.         return false;
  867.     }
  868.     public function getDebugInfo()
  869.     {
  870.         return array (  873 => 366,  870 => 365,  865 => 362,  859 => 359,  856 => 358,  850 => 355,  847 => 354,  845 => 353,  839 => 351,  837 => 350,  826 => 344,  822 => 343,  816 => 340,  805 => 332,  802 => 331,  795 => 327,  791 => 325,  784 => 321,  776 => 316,  772 => 315,  767 => 314,  764 => 313,  758 => 310,  754 => 309,  751 => 308,  749 => 307,  744 => 305,  740 => 304,  737 => 303,  735 => 302,  732 => 301,  730 => 300,  726 => 299,  723 => 298,  721 => 297,  719 => 296,  715 => 294,  707 => 291,  692 => 289,  683 => 288,  666 => 287,  662 => 285,  658 => 284,  654 => 283,  651 => 282,  648 => 281,  645 => 279,  642 => 278,  638 => 276,  631 => 273,  628 => 272,  619 => 269,  617 => 268,  611 => 266,  608 => 265,  606 => 264,  603 => 263,  599 => 262,  594 => 259,  591 => 258,  588 => 257,  585 => 255,  578 => 252,  575 => 251,  566 => 248,  559 => 245,  556 => 244,  554 => 243,  547 => 242,  544 => 240,  541 => 239,  534 => 236,  531 => 235,  528 => 234,  519 => 231,  517 => 230,  511 => 228,  508 => 227,  506 => 226,  502 => 224,  500 => 223,  496 => 221,  485 => 219,  481 => 218,  478 => 217,  475 => 216,  470 => 213,  467 => 212,  465 => 211,  453 => 208,  450 => 207,  447 => 206,  440 => 200,  424 => 197,  422 => 194,  421 => 192,  419 => 191,  414 => 189,  397 => 188,  393 => 186,  385 => 183,  383 => 180,  382 => 178,  381 => 177,  378 => 176,  374 => 175,  368 => 171,  362 => 168,  359 => 167,  357 => 166,  353 => 164,  343 => 163,  326 => 156,  322 => 154,  318 => 152,  316 => 151,  309 => 149,  305 => 147,  299 => 145,  293 => 143,  291 => 142,  287 => 141,  284 => 140,  270 => 139,  262 => 138,  245 => 137,  242 => 136,  236 => 134,  234 => 133,  204 => 106,  193 => 98,  163 => 71,  158 => 68,  149 => 62,  145 => 60,  143 => 59,  140 => 58,  131 => 52,  127 => 50,  125 => 49,  109 => 35,  101 => 33,  99 => 32,  94 => 30,  91 => 29,  89 => 28,  75 => 17,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  871.     }
  872.     public function getSourceContext()
  873.     {
  874.         return new Source("{#
  875. This file is part of EC-CUBE
  876. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  877. http://www.ec-cube.co.jp/
  878. For the full copyright and license information, please view the LICENSE
  879. file that was distributed with this source code.
  880. #}
  881. {% extends 'default_frame.twig' %}
  882. {% set body_class = 'product product-detail product-detail-' ~ Product.id %}
  883. {% block javascript %}
  884.     <script>
  885.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  886.         // 規格2に選択肢を割り当てる。
  887.         function fnSetClassCategories(form, classcat_id2_selected) {
  888.             var \$form = \$(form);
  889.             var product_id = \$form.find('input[name=product_id]').val();
  890.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  891.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  892.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  893.         }
  894.         {% if form.classcategory_id2 is defined %}
  895.         fnSetClassCategories(
  896.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  897.         );
  898.         {% elseif form.classcategory_id1 is defined %}
  899.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  900.         {% endif %}
  901.     </script>
  902.     <script>
  903.         \$(function() {
  904.             // bfcache無効化
  905.             \$(window).bind('pageshow', function(event) {
  906.                 if (event.originalEvent.persisted) {
  907.                     location.reload(true);
  908.                 }
  909.             });
  910.         });
  911.     </script>
  912.     <script>
  913.         \$(function() {
  914.             \$('.add-cart').on('click', function(event) {
  915.                 {% if form.classcategory_id1 is defined %}
  916.                 // 規格1フォームの必須チェック
  917.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  918.                     \$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  919.                     return true;
  920.                 } else {
  921.                     \$('#classcategory_id1')[0].setCustomValidity('');
  922.                 }
  923.                 {% endif %}
  924.                 {% if form.classcategory_id2 is defined %}
  925.                 // 規格2フォームの必須チェック
  926.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  927.                     \$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  928.                     return true;
  929.                 } else {
  930.                     \$('#classcategory_id2')[0].setCustomValidity('');
  931.                 }
  932.                 {% endif %}
  933.                 // 個数フォームのチェック
  934.                 if (\$('#quantity').val() < 1) {
  935.                     \$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  936.                     return true;
  937.                 } else {
  938.                     \$('#quantity')[0].setCustomValidity('');
  939.                 }
  940.                 event.preventDefault();
  941.                 \$form = \$('#form1');
  942.                 \$.ajax({
  943.                     url: \$form.attr('action'),
  944.                     type: \$form.attr('method'),
  945.                     data: \$form.serialize(),
  946.                     dataType: 'json',
  947.                     beforeSend: function(xhr, settings) {
  948.                         // Buttonを無効にする
  949.                         \$('.add-cart').prop('disabled', true);
  950.                     }
  951.                 }).done(function(data) {
  952.                     // レスポンス内のメッセージをalertで表示
  953.                     \$.each(data.messages, function() {
  954.                         \$('#ec-modal-header').html(this);
  955.                     });
  956.                     \$('#ec-modal-checkbox').prop('checked', true);
  957.                     // カートブロックを更新する
  958.                     \$.ajax({
  959.                         url: \"{{ url('block_cart') }}\",
  960.                         type: 'GET',
  961.                         dataType: 'html'
  962.                     }).done(function(html) {
  963.                         var num = \$(html).find('.ec-cartNavi__badge').html();
  964.                         \$('.header-cart span').html(num);
  965.                     });
  966.                 }).fail(function(data) {
  967.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  968.                 }).always(function(data) {
  969.                     // Buttonを有効にする
  970.                     \$('.add-cart').prop('disabled', false);
  971.                 });
  972.             });
  973.         });
  974.     </script>
  975.     <script>
  976.         \$(function() {
  977.             \$('.ec-classcategory dd').on('click', function(){
  978.                 if (!\$(this).find('.stock-none').length) {
  979.                     var classcategory_id1 = \$(this).data('classcategory-id1');
  980.                     var classcategory_id2 = \$(this).data('classcategory-id2');
  981.                     var classcategory_id2_name = \$(this).data('classcategory-id2-name');
  982.                     \$('#classcategory_id1').val(classcategory_id1);
  983.                     \$('#classcategory_id2').children().remove().end().append(\$('<option value=\"' + classcategory_id2 + '\">' + classcategory_id2_name + '</option>')).val(classcategory_id2);
  984.                     \$('html,body').animate({scrollTop: \$('#ec-productRole__cart').offset().top}, {'duration': 600, 'easing': 'easeOutCubic', 'queue': false});
  985.                 }
  986.             });
  987.         });
  988.     </script>
  989.     <script type=\"application/ld+json\">
  990.     {
  991.         \"@context\": \"http://schema.org/\",
  992.         \"@type\": \"Product\",
  993.         {% if Product.code_min is not empty %}
  994.             \"sku\": \"{{ Product.code_min }}\",
  995.         {% endif %}
  996.         \"image\": [
  997.             {% for ProductImage in Product.ProductImage %}
  998.                 \"{{ url('homepage')|trim('//') }}{{ asset(ProductImage, 'save_image') }}\"{% if loop.last == false %},{% endif %}
  999.             {% endfor %}
  1000.         ],
  1001.         \"name\": \"{{ Product.name }}\",
  1002.         {% if Page.description is not empty %}
  1003.             \"description\": \"{{ Page.description }}\",
  1004.         {% else %}
  1005.             \"description\": \"{{ Product.description_list }}\",
  1006.         {% endif %}
  1007.         \"offers\": {
  1008.             \"@type\": \"Offer\",
  1009.             \"url\": \"{{ url('homepage') }}products/detail/{{ Product.id }}\",
  1010.             \"itemCondition\": \"http://schema.org/NewCondition\",
  1011.             {% if Product.stock_find %}
  1012.                 \"availability\": \"http://schema.org/InStock\",
  1013.             {% else %}
  1014.                 \"availability\": \"http://schema.org/OutOfStock\",
  1015.             {% endif %}
  1016.             \"price\": \"{{ Product.getPrice02IncTaxMin }}\",
  1017.             \"priceCurrency\": \"JPY\"
  1018.         }
  1019.     }
  1020.     </script>
  1021. {% endblock %}
  1022. {% block main %}
  1023.     <div class=\"ec-productRole\">
  1024. \t\t<div class=\"sp-bread\"><a href=\"/\">&raquo;&nbsp;車検一覧に戻る</a></div>
  1025.         {% if Product.freearea %}
  1026.              <div class=\"ec-productRole__freearea page-content\">
  1027.                  {{ include(template_from_string(Product.freearea|raw)) }}
  1028.             </div>
  1029.         {% endif %}
  1030.         <div class=\"ec-grid2\">
  1031.             <div class=\"ec-grid2__cell\">
  1032.                 <div class=\"ec-sliderItemRole\">
  1033.                     <div class=\"item_visual\">
  1034.                         {% for ProductImage in Product.ProductImage %}
  1035.                             <div class=\"slide-item\">
  1036.                                 {{ synResizeImage({
  1037.                                     url: asset(ProductImage, 'save_image'),
  1038.                                     pc: {width: 660, height: 660, type: 'contain'},
  1039.                                     alt: Product.name,
  1040.                                     noimage: asset('assets/img/noimage.jpg'),
  1041.                                     loading: true,
  1042.                                 }) }}
  1043.                             </div>
  1044.                         {% endfor %}
  1045.                     </div>
  1046.                     <div class=\"item_nav\">
  1047.                         {% for ProductImage in Product.ProductImage %}
  1048.                             <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\">
  1049.                                 {# slide-itemと同じ画像を指定 #}
  1050.                                 {{ synResizeImage({
  1051.                                     url: asset(ProductImage, 'save_image'),
  1052.                                     pc: {width: 660, height: 660, type: 'contain'},
  1053.                                     alt: Product.name,
  1054.                                     noimage: asset('assets/img/noimage.jpg'),
  1055.                                     loading: true,
  1056.                                 }) }}
  1057.                             </div>
  1058.                         {% endfor %}
  1059.                     </div>
  1060.                 </div>
  1061.             </div>
  1062.             <div class=\"ec-grid2__cell\">
  1063.                 <div class=\"ec-productRole__profile\">
  1064.                     {# 商品コード #}
  1065.                     {% if Product.code_min is not empty %}
  1066.                         <div class=\"ec-productRole__code\">
  1067.                             {{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  1068.                         </div>
  1069.                     {% endif %}
  1070.                     {# 商品名 #}
  1071.                     <div class=\"ec-productRole__title\">
  1072.                         <h1 class=\"ec-headingTitle\">{{ Product.name }}</h1>
  1073.                     </div>
  1074.                     {# タグ #}
  1075.                     {% if Product.Tags is not empty %}
  1076.                         <ul class=\"ec-productRole__tags\">
  1077.                             {% for Tag in Product.Tags %}
  1078.                                 <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  1079.                             {% endfor %}
  1080.                         </ul>
  1081.                     {% endif %}
  1082.                     {# 通常価格 #}
  1083.                     <div class=\"ec-productRole__price\">
  1084.                         <div class=\"ec-productRole__price01\">
  1085.                             {% if Product.hasProductClass %}
  1086.                                 {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  1087.                                     通常価格:<span class=\"ec-price__price price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span>
  1088.                                     <span class=\"ec-price__tax\">税込</span>
  1089.                                 {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  1090.                                     通常価格:<span class=\"ec-price__price price01-default\">{{ Product.getPrice01IncTaxMin|price }}~{{ Product.getPrice01IncTaxMax|price }}</span>
  1091.                                     <span class=\"ec-price__tax\">税込</span>
  1092.                                 {% endif %}
  1093.                             {% else %}
  1094.                                 {% if Product.getPrice01Max is not null %}
  1095.                                     通常価格:<span class=\"ec-price__price price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span>
  1096.                                     <span class=\"ec-price__tax\">税込</span>
  1097.                                 {% endif %}
  1098.                             {% endif %}
  1099.                         </div>
  1100.                         {# 販売価格 #}
  1101.                         <div class=\"ec-productRole__price02{% if Synplgbase is defined and Synplgbase.ProductCustomerPriceOn and Product.getPrice03Min is not null and is_granted('ROLE_USER') %} hidden{% endif %}\">
  1102.                             {% if Product.hasProductClass %}
  1103.                                 {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1104.                                     販売価格:<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1105.                                     <span class=\"ec-price__tax\">税込</span>
  1106.                                 {% else %}
  1107.                                     販売価格:<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}~{{ Product.getPrice02IncTaxMax|price }}</span>
  1108.                                     <span class=\"ec-price__tax\">税込</span>
  1109.                                 {% endif %}
  1110.                             {% else %}
  1111.                                 販売価格:<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1112.                                 <span class=\"ec-price__tax\">税込</span>
  1113.                             {% endif %}
  1114.                         </div>
  1115.                         {# 会員価格 #}
  1116.                         {% if Synplgbase is defined and Synplgbase.ProductCustomerPriceOn %}
  1117.                             {% if Product.getPrice03Min is not null %}
  1118.                                 <div class=\"ec-productRole__price03\">
  1119.                                     <p>
  1120.                                         ショップ会員限定価格:
  1121.                                         {% if not is_granted('ROLE_USER') %}<span>* 会員登録後、ログインするとこの価格で購入できます。</span>{% endif %}
  1122.                                     </p>
  1123.                                     {% if Product.hasProductClass %}
  1124.                                         {% if Product.getPrice03Min is not null and Product.getPrice03Min == Product.getPrice03Max %}
  1125.                                             <span class=\"ec-price__price price03-default\">{{ Product.getPrice03IncTaxMin|price }}</span>
  1126.                                             <span class=\"ec-price__tax\">税込</span>
  1127.                                         {% elseif Product.getPrice03Min is not null %}
  1128.                                             <span class=\"ec-price__price price03-default\">{{ Product.getPrice03IncTaxMin|price }}~{{ Product.getPrice03IncTaxMax|price }}</span>
  1129.                                             <span class=\"ec-price__tax\">税込</span>
  1130.                                         {% endif %}
  1131.                                     {% elseif Product.getPrice03Max is not null %}
  1132.                                         <span class=\"ec-price__price price03-default\">{{ Product.getPrice03IncTaxMin|price }}</span>
  1133.                                         <span class=\"ec-price__tax\">税込</span>
  1134.                                     {% endif %}
  1135.                                 </div>
  1136.                             {% endif %}
  1137.                         {% endif %}
  1138.                     </div>
  1139.                     {# 関連カテゴリ #}
  1140.                     {% if Product.ProductCategories is not empty %}
  1141.                         <div class=\"ec-productRole__category\">
  1142.                             <div>{{ '関連カテゴリ'|trans }}</div>
  1143.                             {% for ProductCategory in Product.ProductCategories %}
  1144.                                 <ul>
  1145.                                     <li>
  1146.                                         {% for Category in ProductCategory.Category.path %}
  1147.                                             <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  1148.                                             <span>></span>{% endif -%}
  1149.                                         {% endfor %}
  1150.                                     </li>
  1151.                                 </ul>
  1152.                             {% endfor %}
  1153.                         </div>
  1154.                     {% endif %}
  1155.                     {# {% if Synplgbase is defined %}{{ include_dispatch('Module/classcategory.twig') }}{% endif %} #}
  1156.                     {# {% if Synplgbase is defined %}{{ include_dispatch('Module/classcategory_table.twig') }}{% endif %} #}
  1157.                     <div class=\"ec-productRole__cart\" id=\"ec-productRole__cart\">
  1158.                         <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1159.                             {% if Product.stock_find %}
  1160.                                 <div class=\"ec-productRole__actions\">
  1161.                                     {% if form.classcategory_id1 is defined %}
  1162.                                         <div class=\"ec-select\">
  1163.                                             {{ form_widget(form.classcategory_id1) }}
  1164.                                             {{ form_errors(form.classcategory_id1) }}
  1165.                                         </div>
  1166.                                         {% if form.classcategory_id2 is defined %}
  1167.                                             <div class=\"ec-select\">
  1168.                                                 {{ form_widget(form.classcategory_id2) }}
  1169.                                                 {{ form_errors(form.classcategory_id2) }}
  1170.                                             </div>
  1171.                                         {% endif %}
  1172.                                     {% endif %}
  1173.                                     <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  1174.                                         {{ form_widget(form.quantity) }}
  1175.                                         {{ form_errors(form.quantity) }}
  1176.                                     </div>
  1177.                                 </div>
  1178.                                 <div class=\"ec-productRole__btn\">
  1179.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1180.                                         {{ 'カートに入れる'|trans }}
  1181.                                     </button>
  1182.                                 </div>
  1183.                             {% else %}
  1184.                                 <div class=\"ec-productRole__btn\">
  1185.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1186.                                         {{ 'ただいま品切れ中です。'|trans }}
  1187.                                     </button>
  1188.                                 </div>
  1189.                             {% endif %}
  1190.                             {{ form_rest(form) }}
  1191.                         </form>
  1192.                         <div class=\"ec-modal\">
  1193.                             <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  1194.                             <div class=\"ec-modal-overlay\">
  1195.                                 <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  1196.                                 <div class=\"ec-modal-wrap\">
  1197.                                     <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"></span></label>
  1198.                                     <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1199.                                     <div class=\"ec-modal-box\">
  1200.                                         <div class=\"ec-role\">
  1201.                                             <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</label>
  1202.                                             <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1203.                                         </div>
  1204.                                     </div>
  1205.                                 </div>
  1206.                             </div>
  1207.                         </div>
  1208.                         {% if BaseInfo.option_favorite_product %}
  1209.                             <form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
  1210.                                 <div class=\"ec-productRole__btn\">
  1211.                                     {% if is_favorite == false %}
  1212.                                         <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1213.                                             {{ 'お気に入りに追加'|trans }}
  1214.                                         </button>
  1215.                                     {% else %}
  1216.                                         <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1217.                                                 disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
  1218.                                         </button>
  1219.                                     {% endif %}
  1220.                                 </div>
  1221.                             </form>
  1222.                         {% endif %}
  1223.                     </div>
  1224.                     <div class=\"ec-productRole__description page-content\">{{ Product.description_detail|raw }}</div>
  1225.                 </div>
  1226.             </div>
  1227.         </div>
  1228.     </div>
  1229. {% endblock %}
  1230. ""Product/detail.twig""/home/xs920997/syaken.biz/public_html/prepaid/app/template/syntpl/Product/detail.twig");
  1231.     }
  1232. }