var/cache/dev/twig/6b/6b42fda89f11fddb066c4623cb007db09f83ac2a6759854c64e8fd70b5f5679d.php line 1085

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_cac06048e9f2e6430e99752c7300e20d62bce0f537bf586a1b0bf8030de1ee7c 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/detail.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/detail.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "    <style>
  60.         .slick-slider {
  61.             margin-bottom: 30px;
  62.         }
  63.         .slick-dots {
  64.             position: absolute;
  65.             bottom: -45px;
  66.             display: block;
  67.             width: 100%;
  68.             padding: 0;
  69.             list-style: none;
  70.             text-align: center;
  71.         }
  72.         .slick-dots li {
  73.             position: relative;
  74.             display: inline-block;
  75.             width: 20px;
  76.             height: 20px;
  77.             margin: 0 5px;
  78.             padding: 0;
  79.             cursor: pointer;
  80.         }
  81.         .slick-dots li button {
  82.             font-size: 0;
  83.             line-height: 0;
  84.             display: block;
  85.             width: 20px;
  86.             height: 20px;
  87.             padding: 5px;
  88.             cursor: pointer;
  89.             color: transparent;
  90.             border: 0;
  91.             outline: none;
  92.             background: transparent;
  93.         }
  94.         .slick-dots li button:hover,
  95.         .slick-dots li button:focus {
  96.             outline: none;
  97.         }
  98.         .slick-dots li button:hover:before,
  99.         .slick-dots li button:focus:before {
  100.             opacity: 1;
  101.         }
  102.         .slick-dots li button:before {
  103.             content: \" \";
  104.             line-height: 20px;
  105.             position: absolute;
  106.             top: 0;
  107.             left: 0;
  108.             width: 12px;
  109.             height: 12px;
  110.             text-align: center;
  111.             opacity: .25;
  112.             background-color: black;
  113.             border-radius: 50%;
  114.         }
  115.         .slick-dots li.slick-active button:before {
  116.             opacity: .75;
  117.             background-color: black;
  118.         }
  119.         .slick-dots li button.thumbnail img {
  120.             width: 0;
  121.             height: 0;
  122.         }
  123.     </style>
  124. ";
  125.         
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  127.         
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  129.     }
  130.     // line 95
  131.     public function block_javascript($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  138.         // line 96
  139.         echo "    <script>
  140.         eccube.classCategories = ";
  141.         // line 97
  142.         echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'97$this->source); })()));
  143.         echo ";
  144.         // 規格2に選択肢を割り当てる。
  145.         function fnSetClassCategories(form, classcat_id2_selected) {
  146.             var \$form = \$(form);
  147.             var product_id = \$form.find('input[name=product_id]').val();
  148.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  149.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  150.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  151.         }
  152.         ";
  153.         // line 108
  154.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse108)) {
  155.             // line 109
  156.             echo "        fnSetClassCategories(
  157.             \$('#form1'), ";
  158.             // line 110
  159.             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.'110$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse110), "vars", [], "any"falsefalsefalse110), "value", [], "any"falsefalsefalse110));
  160.             echo "
  161.         );
  162.         ";
  163.         } elseif (twig_get_attribute($this->env$this->source,         // line 112
  164. ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse112)) {
  165.             // line 113
  166.             echo "        eccube.checkStock(\$('#form1'), ";
  167.             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.'113$this->source); })()), "id", [], "any"falsefalsefalse113), "html"nulltrue);
  168.             echo ", ";
  169.             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.'113$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse113), "vars", [], "any"falsefalsefalse113), "value", [], "any"falsefalsefalse113));
  170.             echo ", null);
  171.         ";
  172.         }
  173.         // line 115
  174.         echo "    </script>
  175.     <script>
  176.         \$(function() {
  177.             // bfcache無効化
  178.             \$(window).bind('pageshow', function(event) {
  179.                 if (event.originalEvent.persisted) {
  180.                     location.reload(true);
  181.                 }
  182.             });
  183.             \$('.item_visual').slick({
  184.                 dots: false,
  185.                 arrows: false,
  186.                 responsive: [{
  187.                     breakpoint: 768,
  188.                     settings: {
  189.                         dots: true
  190.                     }
  191.                 }]
  192.             });
  193.             \$('.slideThumb').on('click', function() {
  194.                 var index = \$(this).attr('data-index');
  195.                 \$('.item_visual').slick('slickGoTo', index, false);
  196.             })
  197.         });
  198.     </script>
  199.     <script>
  200.         \$(function() {
  201.             \$('.add-cart').on('click', function(event) {
  202.                 ";
  203.         // line 145
  204.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse145)) {
  205.             // line 146
  206.             echo "                // 規格1フォームの必須チェック
  207.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  208.                     \$('#classcategory_id1')[0].setCustomValidity('";
  209.             // line 148
  210.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  211.             echo "');
  212.                     return true;
  213.                 } else {
  214.                     \$('#classcategory_id1')[0].setCustomValidity('');
  215.                 }
  216.                 ";
  217.         }
  218.         // line 154
  219.         echo "
  220.                 ";
  221.         // line 155
  222.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse155)) {
  223.             // line 156
  224.             echo "                // 規格2フォームの必須チェック
  225.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  226.                     \$('#classcategory_id2')[0].setCustomValidity('";
  227.             // line 158
  228.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.product_class_unselected"), "html"nulltrue);
  229.             echo "');
  230.                     return true;
  231.                 } else {
  232.                     \$('#classcategory_id2')[0].setCustomValidity('');
  233.                 }
  234.                 ";
  235.         }
  236.         // line 164
  237.         echo "
  238.                 // 個数フォームのチェック
  239.                 if (\$('#quantity').val() < 1) {
  240.                     \$('#quantity')[0].setCustomValidity('";
  241.         // line 167
  242.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.invalid_quantity"), "html"nulltrue);
  243.         echo "');
  244.                     return true;
  245.                 } else {
  246.                     \$('#quantity')[0].setCustomValidity('');
  247.                 }
  248.                 event.preventDefault();
  249.                 \$form = \$('#form1');
  250.                 \$.ajax({
  251.                     url: \$form.attr('action'),
  252.                     type: \$form.attr('method'),
  253.                     data: \$form.serialize(),
  254.                     dataType: 'json',
  255.                     beforeSend: function(xhr, settings) {
  256.                         // Buttonを無効にする
  257.                         \$('.add-cart').prop('disabled', true);
  258.                     }
  259.                 }).done(function(data) {
  260.                     // レスポンス内のメッセージをalertで表示
  261.                     \$.each(data.messages, function() {
  262.                         \$('#ec-modal-header').html(this);
  263.                     });
  264.                     \$('#ec-modal-checkbox').prop('checked', true);
  265.                     // カートブロックを更新する
  266.                     \$.ajax({
  267.                         url: \"";
  268.         // line 194
  269.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  270.         echo "\",
  271.                         type: 'GET',
  272.                         dataType: 'html'
  273.                     }).done(function(html) {
  274.                         \$('.ec-headerRole__cart').html(html);
  275.                         \$(\".ec-cartNavi__badge_menu\").html( \$('.ec-headerNaviRole .ec-cartNavi__badge').text() );
  276.                     });
  277.                 }).fail(function(data) {
  278.                     alert('";
  279.         // line 202
  280.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "html"nulltrue);
  281.         echo "');
  282.                 }).always(function(data) {
  283.                     // Buttonを有効にする
  284.                     \$('.add-cart').prop('disabled', false);
  285.                 });
  286.             });
  287.         });
  288.     </script>
  289. \t";
  290.         // line 211
  291.         if ( !(null === 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.'211$this->source); })()), "option_colorbox", [], "any"falsefalsefalse211))) {
  292.             // line 212
  293.             echo "\t<script src=\"";
  294.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.colorbox/jquery.colorbox-min.js"), "html"nulltrue);
  295.             echo "\"></script>
  296. \t<script type=\"text/javascript\">
  297. \t\t\$(document).ready(function() {
  298. \t\t\t\$(\".cbox\").colorbox({maxWidth:'100%',maxHeight:'100%',speed:'200'});
  299. \t\t});
  300. \t</script>
  301. \t";
  302.         }
  303.         // line 219
  304.         echo "
  305. \t";
  306.         // line 220
  307.         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.'220$this->source); })()), "option_thumbnail", [], "any"falsefalsefalse220) == 1)) {
  308.             // line 221
  309.             echo "\t<!-- ▼【商品画像】カスタマイズ -->
  310. \t<script>
  311. \t\t\$(function(){
  312. \t\t\t\$('.main_visual').css('display', 'block');
  313. \t\t\t\$('.main_visual').slick({
  314. \t\t\t\tdots: false,
  315. \t\t\t\tarrows: false,
  316. \t\t\t\tautoplay: true,
  317. \t\t\t\tautoplaySpeed:5000,
  318. \t\t\t\tspeed: 300,
  319. \t\t\t\tasNavFor: '.main_visual-thumbnails'
  320. \t\t\t})
  321. \t\t
  322. \t\t\t\$('.main_visual-thumbnails').css('display', 'block');
  323. \t\t\t\$('.main_visual-thumbnails').slick({
  324. \t\t\t\tslidesToShow: 3,
  325. \t\t\t\tarrows: false,
  326. \t\t\t\tasNavFor: '.main_visual',
  327. \t\t\t\tfocusOnSelect: true
  328. \t\t\t})
  329. \t\t});
  330. \t</script>
  331. \t";
  332.         }
  333.         // line 244
  334.         echo "
  335. \t";
  336.         // line 246
  337.         echo "\t";
  338.         $this->loadTemplate("Product/option_detailclass_script.twig""Product/detail.twig"246)->display($context);
  339.         
  340.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  341.         
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  343.     }
  344.     // line 249
  345.     public function block_main($context, array $blocks = [])
  346.     {
  347.         $macros $this->macros;
  348.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  349.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  350.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  351.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  352.         // line 250
  353.         echo "    <div class=\"ec-productRole\">
  354.         ";
  355.         // line 252
  356.         echo "        ";
  357.         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.'252$this->source); })()), "ProductCategories", [], "any"falsefalsefalse252))) {
  358.             // line 253
  359.             echo "            <div class=\"ec-productRole__category\">
  360.                 <div>";
  361.             // line 254
  362.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.related_category"), "html"nulltrue);
  363.             echo "</div>
  364.                 ";
  365.             // line 255
  366.             $context['_parent'] = $context;
  367.             $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.'255$this->source); })()), "ProductCategories", [], "any"falsefalsefalse255));
  368.             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  369.                 // line 256
  370.                 echo "                    <ul>
  371.                         <li>
  372.                             ";
  373.                 // line 258
  374.                 $context['_parent'] = $context;
  375.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse258), "path", [], "any"falsefalsefalse258));
  376.                 $context['loop'] = [
  377.                   'parent' => $context['_parent'],
  378.                   'index0' => 0,
  379.                   'index'  => 1,
  380.                   'first'  => true,
  381.                 ];
  382.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  383.                     $length count($context['_seq']);
  384.                     $context['loop']['revindex0'] = $length 1;
  385.                     $context['loop']['revindex'] = $length;
  386.                     $context['loop']['length'] = $length;
  387.                     $context['loop']['last'] = === $length;
  388.                 }
  389.                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  390.                     // line 259
  391.                     echo "                                <a href=\"";
  392.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  393.                     echo "?category_id=";
  394.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse259), "html"nulltrue);
  395.                     echo "\">";
  396.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse259), "html"nulltrue);
  397.                     echo "</a>";
  398.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse259) == false)) {
  399.                         // line 260
  400.                         echo "                                <span>></span>";
  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['Category'], $context['_parent'], $context['loop']);
  413.                 $context array_intersect_key($context$_parent) + $_parent;
  414.                 // line 262
  415.                 echo "                        </li>
  416.                     </ul>
  417.                 ";
  418.             }
  419.             $_parent $context['_parent'];
  420.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  421.             $context array_intersect_key($context$_parent) + $_parent;
  422.             // line 265
  423.             echo "            </div>
  424.         ";
  425.         }
  426.         // line 267
  427.         echo "
  428.         <div class=\"ec-grid2\">
  429.             <div class=\"ec-grid2__cell\">
  430.                 <div class=\"ec-sliderItemRole\">
  431.                     ";
  432.         // line 271
  433.         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.'271$this->source); })()), "option_thumbnail", [], "any"falsefalsefalse271) == 1)) {
  434.             // line 272
  435.             echo "                        <ul class=\"main_visual\" style=\"display:none;\">
  436. \t\t\t\t\t\t";
  437.             // line 273
  438.             $context['_parent'] = $context;
  439.             $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.'273$this->source); })()), "ProductImage", [], "any"falsefalsefalse273));
  440.             $context['_iterated'] = false;
  441.             foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  442.                 // line 274
  443.                 echo "\t\t\t\t\t\t\t<li class=\"item\">
  444. \t\t\t\t\t\t\t\t";
  445.                 // line 275
  446.                 if ( !(null === 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.'275$this->source); })()), "option_colorbox", [], "any"falsefalsefalse275))) {
  447.                     // line 276
  448.                     echo "\t\t\t\t\t\t\t\t\t<a href=\"";
  449.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  450.                     echo "\" class=\"cbox\"><img src=\"";
  451.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  452.                     echo "\"></a>
  453. \t\t\t\t\t\t\t\t";
  454.                 } else {
  455.                     // line 278
  456.                     echo "\t\t\t\t\t\t\t\t\t<img src=\"";
  457.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  458.                     echo "\">
  459. \t\t\t\t\t\t\t\t";
  460.                 }
  461.                 // line 280
  462.                 echo "\t\t\t\t\t\t\t</li>
  463. \t\t\t\t\t\t";
  464.                 $context['_iterated'] = true;
  465.             }
  466.             if (!$context['_iterated']) {
  467.                 // line 282
  468.                 echo "\t\t\t\t\t\t\t<li class=\"item\"><img src=\"";
  469.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  470.                 echo "\"/></li>
  471. \t\t\t\t\t\t";
  472.             }
  473.             $_parent $context['_parent'];
  474.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  475.             $context array_intersect_key($context$_parent) + $_parent;
  476.             // line 284
  477.             echo "\t\t\t\t\t    </ul>
  478.                         ";
  479.             // line 286
  480.             if ((twig_length_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.'286$this->source); })()), "ProductImage", [], "any"falsefalsefalse286)) > 1)) {
  481.                 // line 287
  482.                 echo "                            <ul class=\"main_visual-thumbnails\" style=\"display:none;\">
  483.                                 ";
  484.                 // line 288
  485.                 $context['_parent'] = $context;
  486.                 $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.'288$this->source); })()), "ProductImage", [], "any"falsefalsefalse288));
  487.                 foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  488.                     // line 289
  489.                     echo "                                <li class=\"item\">
  490.                                     <img src=\"";
  491.                     // line 290
  492.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  493.                     echo "\">
  494.                                 </li>
  495.                                 ";
  496.                 }
  497.                 $_parent $context['_parent'];
  498.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  499.                 $context array_intersect_key($context$_parent) + $_parent;
  500.                 // line 293
  501.                 echo "                            </ul>
  502.                         ";
  503.             }
  504.             // line 295
  505.             echo "                    ";
  506.         } else {
  507.             // line 296
  508.             echo "                        <div class=\"item_visual\">
  509.                             ";
  510.             // line 297
  511.             $context['_parent'] = $context;
  512.             $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.'297$this->source); })()), "ProductImage", [], "any"falsefalsefalse297));
  513.             $context['_iterated'] = false;
  514.             foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  515.                 // line 298
  516.                 echo "                                <div class=\"slide-item\"><img src=\"";
  517.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  518.                 echo "\"></div>
  519.                             ";
  520.                 $context['_iterated'] = true;
  521.             }
  522.             if (!$context['_iterated']) {
  523.                 // line 300
  524.                 echo "                                <div class=\"slide-item\"><img src=\"";
  525.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  526.                 echo "\"/></div>
  527.                             ";
  528.             }
  529.             $_parent $context['_parent'];
  530.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  531.             $context array_intersect_key($context$_parent) + $_parent;
  532.             // line 302
  533.             echo "                        </div>
  534.                         <div class=\"item_nav\">
  535.                             ";
  536.             // line 304
  537.             $context['_parent'] = $context;
  538.             $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.'304$this->source); })()), "ProductImage", [], "any"falsefalsefalse304));
  539.             $context['loop'] = [
  540.               'parent' => $context['_parent'],
  541.               'index0' => 0,
  542.               'index'  => 1,
  543.               'first'  => true,
  544.             ];
  545.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  546.                 $length count($context['_seq']);
  547.                 $context['loop']['revindex0'] = $length 1;
  548.                 $context['loop']['revindex'] = $length;
  549.                 $context['loop']['length'] = $length;
  550.                 $context['loop']['last'] = === $length;
  551.             }
  552.             foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  553.                 // line 305
  554.                 echo "                                <div class=\"slideThumb\" data-index=\"";
  555.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse305), "html"nulltrue);
  556.                 echo "\"><img src=\"";
  557.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  558.                 echo "\"></div>
  559.                             ";
  560.                 ++$context['loop']['index0'];
  561.                 ++$context['loop']['index'];
  562.                 $context['loop']['first'] = false;
  563.                 if (isset($context['loop']['length'])) {
  564.                     --$context['loop']['revindex0'];
  565.                     --$context['loop']['revindex'];
  566.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  567.                 }
  568.             }
  569.             $_parent $context['_parent'];
  570.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  571.             $context array_intersect_key($context$_parent) + $_parent;
  572.             // line 307
  573.             echo "                        </div>
  574.                     ";
  575.         }
  576.         // line 309
  577.         echo "                </div>
  578.             </div>
  579.             <div class=\"ec-grid2__cell\">
  580.                 <div class=\"ec-productRole__profile\">
  581.                     ";
  582.         // line 314
  583.         echo "                    <div class=\"ec-productRole__title\">
  584.                         <h2 class=\"ec-headingTitle\">";
  585.         // line 315
  586.         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.'315$this->source); })()), "name", [], "any"falsefalsefalse315), "html"nulltrue);
  587.         echo "</h2>
  588.                     </div>
  589.                     ";
  590.         // line 318
  591.         echo "                    <ul class=\"ec-productRole__tags\">
  592.                         ";
  593.         // line 319
  594.         $context['_parent'] = $context;
  595.         $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.'319$this->source); })()), "Tags", [], "any"falsefalsefalse319));
  596.         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  597.             // line 320
  598.             echo "                            <li class=\"ec-productRole__tag tag_";
  599.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse320), "html"nulltrue);
  600.             echo "\">";
  601.             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  602.             echo "</li>
  603.                         ";
  604.         }
  605.         $_parent $context['_parent'];
  606.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  607.         $context array_intersect_key($context$_parent) + $_parent;
  608.         // line 322
  609.         echo "                    </ul>
  610.                     ";
  611.         // line 324
  612.         echo "                    ";
  613.         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.'324$this->source); })()), "hasProductClass", [], "any"falsefalsefalse324)) {
  614.             // line 325
  615.             echo "<div class=\"ec-productRole__priceRegular\">
  616.                             ";
  617.             // line 326
  618.             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.'326$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse326)) && (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.'326$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse326) == 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.'326$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse326)))) {
  619.                 // line 327
  620.                 echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  621.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  622.                 echo ":<span class=\"price01-default\">";
  623.                 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.'327$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse327)), "html"nulltrue);
  624.                 echo "</span></span>
  625.                                 <span class=\"ec-productRole__priceRegularTax\">";
  626.                 // line 328
  627.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  628.                 echo "</span>
  629.                             ";
  630.             } elseif (( !(null === twig_get_attribute($this->env$this->source,             // line 329
  631. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'329$this->source); })()), "getPrice01Min", [], "any"falsefalsefalse329)) &&  !(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.'329$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse329)))) {
  632.                 // line 330
  633.                 echo "                                <span class=\"ec-productRole__priceRegularPrice\">";
  634.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  635.                 echo ":<span class=\"price01-default\">";
  636.                 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.'330$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse330)), "html"nulltrue);
  637.                 echo "~ ";
  638.                 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.'330$this->source); })()), "getPrice01IncTaxMax", [], "any"falsefalsefalse330)), "html"nulltrue);
  639.                 echo "</span></span>
  640.                                 <span class=\"ec-productRole__priceRegularTax\">";
  641.                 // line 331
  642.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  643.                 echo "</span>
  644.                             ";
  645.             }
  646.             // line 333
  647.             echo "                        </div>
  648.                     ";
  649.         } else {
  650.             // line 335
  651.             echo "                        ";
  652.             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.'335$this->source); })()), "getPrice01Max", [], "any"falsefalsefalse335))) {
  653.                 // line 336
  654.                 echo "                            <span class=\"ec-productRole__priceRegularPrice\">";
  655.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "html"nulltrue);
  656.                 echo ":";
  657.                 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.'336$this->source); })()), "getPrice01IncTaxMin", [], "any"falsefalsefalse336)), "html"nulltrue);
  658.                 echo "</span>
  659.                             <span class=\"ec-productRole__priceRegularTax\">";
  660.                 // line 337
  661.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  662.                 echo "</span>
  663.                         ";
  664.             }
  665.             // line 339
  666.             echo "                    ";
  667.         }
  668.         // line 340
  669.         echo "                    ";
  670.         // line 341
  671.         echo "                    <div class=\"ec-productRole__price\">
  672.                         ";
  673.         // line 342
  674.         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.'342$this->source); })()), "hasProductClass", [], "any"falsefalsefalse342)) {
  675.             // line 343
  676.             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.'343$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse343) == 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.'343$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse343))) {
  677.                 // line 344
  678.                 echo "                                <div class=\"ec-price\">
  679.                                     <span class=\"ec-price__price price02-default\">";
  680.                 // line 345
  681.                 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.'345$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse345)), "html"nulltrue);
  682.                 echo "</span>
  683.                                     <span class=\"ec-price__tax\">";
  684.                 // line 346
  685.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  686.                 echo "</span>
  687.                                 </div>
  688.                             ";
  689.             } else {
  690.                 // line 349
  691.                 echo "                                <div class=\"ec-price\">
  692.                                     <span class=\"ec-price__price price02-default\">";
  693.                 // line 350
  694.                 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.'350$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse350)), "html"nulltrue);
  695.                 echo " ~ ";
  696.                 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.'350$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsefalse350)), "html"nulltrue);
  697.                 echo "</span>
  698.                                     <span class=\"ec-price__tax\">";
  699.                 // line 351
  700.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  701.                 echo "</span>
  702.                                 </div>
  703.                             ";
  704.             }
  705.             // line 354
  706.             echo "                        ";
  707.         } else {
  708.             // line 355
  709.             echo "                            <div class=\"ec-price\">
  710.                                 <span class=\"ec-price__price\">";
  711.             // line 356
  712.             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.'356$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse356)), "html"nulltrue);
  713.             echo "</span>
  714.                                 <span class=\"ec-price__tax\">";
  715.             // line 357
  716.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html"nulltrue);
  717.             echo "</span>
  718.                             </div>
  719.                         ";
  720.         }
  721.         // line 360
  722.         echo "                    </div>
  723.                     ";
  724.         // line 362
  725.         echo "                    ";
  726.         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.'362$this->source); })()), "code_min", [], "any"falsefalsefalse362))) {
  727.             // line 363
  728.             echo "                        <div class=\"ec-productRole__code\">
  729.                             ";
  730.             // line 364
  731.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.code"), "html"nulltrue);
  732.             echo ": <span class=\"product-code-default\">";
  733.             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.'364$this->source); })()), "code_min", [], "any"falsefalsefalse364), "html"nulltrue);
  734.             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.'364$this->source); })()), "code_min", [], "any"falsefalsefalse364) != 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.'364$this->source); })()), "code_max", [], "any"falsefalsefalse364))) {
  735.                 echo " ~ ";
  736.                 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.'364$this->source); })()), "code_max", [], "any"falsefalsefalse364), "html"nulltrue);
  737.             }
  738.             echo "</span>
  739.                         </div>
  740.                     ";
  741.         }
  742.         // line 367
  743.         echo "                    
  744.                     <div class=\"ec-productRole__feature\">";
  745.         // line 368
  746.         echo twig_nl2br(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.'368$this->source); })()), "description_detail", [], "any"falsefalsefalse368));
  747.         echo "
  748.                     </div>
  749. \t\t\t\t\t";
  750.         // line 372
  751.         echo "                    ";
  752.         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.'372$this->source); })()), "arrival_date", [], "any"falsefalsefalse372)) && (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.'372$this->source); })()), "arrival_date", [], "any"falsefalsefalse372) >= twig_date_converter($this->env))) || ( !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.'372$this->source); })()), "endsell_date", [], "any"falsefalsefalse372)) && (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.'372$this->source); })()), "endsell_date", [], "any"falsefalsefalse372) < twig_date_converter($this->env))))) {
  753.             // line 373
  754.             echo "\t\t\t\t\t\t<div class=\"text-danger\" style=\"margin:10px 0;\">
  755. \t\t\t\t\t\t\t期間限定商品:現在ご購入いただけません。
  756. \t\t\t\t\t\t</div>
  757. \t\t\t\t\t";
  758.         } else {
  759.             // line 377
  760.             echo "\t\t\t\t\t";
  761.             // line 378
  762.             echo "
  763.                         <form action=\"";
  764.             // line 379
  765.             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.'379$this->source); })()), "id", [], "any"falsefalsefalse379)]), "html"nulltrue);
  766.             echo "\" method=\"post\" id=\"form1\" name=\"form1\">
  767.                         ";
  768.             // line 382
  769.             echo "                        ";
  770.             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.'382$this->source); })()), "option_class", [], "any"falsefalsefalse382) == "0") && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse382))) {
  771.                 // line 383
  772.                 echo "                        ";
  773.                 // line 384
  774.                 echo "                        ";
  775.             } elseif (((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.'384$this->source); })()), "option_class", [], "any"falsefalsefalse384) == 1) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse384))) {
  776.                 // line 385
  777.                 echo "                            ";
  778.                 $this->loadTemplate("Product/option_detailclass1.twig""Product/detail.twig"385)->display($context);
  779.                 // line 386
  780.                 echo "                        ";
  781.                 // line 387
  782.                 echo "                        ";
  783.             } elseif (((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.'387$this->source); })()), "option_class", [], "any"falsefalsefalse387) == 2) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse387))) {
  784.                 // line 388
  785.                 echo "                            ";
  786.                 $this->loadTemplate("Product/option_detailclass2.twig""Product/detail.twig"388)->display($context);
  787.                 // line 389
  788.                 echo "                        ";
  789.                 // line 390
  790.                 echo "                        ";
  791.             } elseif (((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.'390$this->source); })()), "option_detailclass", [], "any"falsefalsefalse390) == 1) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse390))) {
  792.                 // line 391
  793.                 echo "                            ";
  794.                 $this->loadTemplate("Product/option_detailclass1.twig""Product/detail.twig"391)->display($context);
  795.                 // line 392
  796.                 echo "                        ";
  797.                 // line 393
  798.                 echo "                        ";
  799.             } elseif (((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.'393$this->source); })()), "option_detailclass", [], "any"falsefalsefalse393) == 2) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse393))) {
  800.                 // line 394
  801.                 echo "                            ";
  802.                 $this->loadTemplate("Product/option_detailclass2.twig""Product/detail.twig"394)->display($context);
  803.                 // line 395
  804.                 echo "                        ";
  805.             }
  806.             // line 396
  807.             echo "
  808.                         ";
  809.             // line 398
  810.             echo "                        ";
  811.             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.'398$this->source); })()), "option_class", [], "any"falsefalsefalse398) == 1) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse398))) {
  812.                 // line 399
  813.                 echo "                        ";
  814.                 // line 400
  815.                 echo "                        ";
  816.             } elseif ((((((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.'400$this->source); })()), "option_class", [], "any"falsefalsefalse400) == "0") && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse400)) || ((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.'400$this->source); })()), "option_class", [], "any"falsefalsefalse400) == 2) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse400))) || (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.'400$this->source); })()), "option_detailclass", [], "any"falsefalsefalse400) != 1)) ||  !twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse400))) {
  817.                 // line 401
  818.                 echo "
  819.                             ";
  820.                 // line 403
  821.                 echo "                            ";
  822.                 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.'403$this->source); })()), "option_detailclass", [], "any"falsefalsefalse403) == "0") || (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.'403$this->source); })()), "option_class", [], "any"falsefalsefalse403) == "0")) ||  !twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse403))) {
  823.                     // line 404
  824.                     echo "                                ";
  825.                     $this->loadTemplate("Product/option_detailclass0.twig""Product/detail.twig"404)->display($context);
  826.                     // line 405
  827.                     echo "                            ";
  828.                 }
  829.                 // line 406
  830.                 echo "
  831.                             ";
  832.                 // line 407
  833.                 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.'407$this->source); })()), "stock_find", [], "any"falsefalsefalse407)) {
  834.                     // line 408
  835.                     echo "                                <div class=\"ec-productRole__actions\">
  836.                                     ";
  837.                     // line 409
  838.                     if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse409)) {
  839.                         // line 410
  840.                         echo "                                        <div class=\"ec-select\">
  841.                                             ";
  842.                         // line 411
  843.                         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.'411$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse411), 'widget');
  844.                         echo "
  845.                                             ";
  846.                         // line 412
  847.                         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.'412$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse412), 'errors');
  848.                         echo "
  849.                                         </div>
  850.                                         ";
  851.                         // line 414
  852.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse414)) {
  853.                             // line 415
  854.                             echo "                                            <div class=\"ec-select\">
  855.                                                 ";
  856.                             // line 416
  857.                             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.'416$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse416), 'widget');
  858.                             echo "
  859.                                                 ";
  860.                             // line 417
  861.                             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.'417$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse417), 'errors');
  862.                             echo "
  863.                                             </div>
  864.                                         ";
  865.                         }
  866.                         // line 420
  867.                         echo "                                    ";
  868.                     }
  869.                     // line 421
  870.                     echo "                                    <div class=\"ec-numberInput\"><span>";
  871.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.quantity"), "html"nulltrue);
  872.                     echo "</span>
  873.                                         ";
  874.                     // line 422
  875.                     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.'422$this->source); })()), "quantity", [], "any"falsefalsefalse422), 'widget');
  876.                     echo "
  877.                                         ";
  878.                     // line 423
  879.                     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.'423$this->source); })()), "quantity", [], "any"falsefalsefalse423), 'errors');
  880.                     echo "
  881.                                     </div>
  882.                                 </div>
  883.                                 <div class=\"ec-productRole__btn\">
  884.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  885.                                         ";
  886.                     // line 428
  887.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html"nulltrue);
  888.                     echo "
  889.                                     </button>
  890.                                 </div>
  891.                             ";
  892.                 } else {
  893.                     // line 432
  894.                     echo "                                <div class=\"ec-productRole__btn\">
  895.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  896.                                         ";
  897.                     // line 434
  898.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.out_of_stock"), "html"nulltrue);
  899.                     echo "
  900.                                     </button>
  901.                                 </div>
  902.                             ";
  903.                 }
  904.                 // line 438
  905.                 echo "                        ";
  906.             }
  907.             // line 439
  908.             echo "                        
  909.                         ";
  910.             // line 441
  911.             echo "                        ";
  912.             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.'441$this->source); })()), "option_class", [], "any"falsefalsefalse441) == 1) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse441)) || ((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.'441$this->source); })()), "option_class", [], "any"falsefalsefalse441) == 2) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse441)))) {
  913.                 // line 442
  914.                 echo "                            <div style=\"display:none;\">
  915.                         ";
  916.             } elseif ((((twig_get_attribute($this->env$this->source,             // line 443
  917. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'443$this->source); })()), "option_class", [], "any"falsefalsefalse443) == "0") && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse443)) || (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.'443$this->source); })()), "option_detailclass", [], "any"falsefalsefalse443) != 0))) {
  918.                 // line 444
  919.                 echo "                            <div style=\"display:none;\">
  920.                         ";
  921.             }
  922.             // line 446
  923.             echo "                        
  924.                             ";
  925.             // line 447
  926.             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.'447$this->source); })()), 'rest');
  927.             echo "
  928.                             
  929.                         ";
  930.             // line 449
  931.             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.'449$this->source); })()), "option_class", [], "any"falsefalsefalse449) == 1) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse449)) || ((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.'449$this->source); })()), "option_class", [], "any"falsefalsefalse449) == 2) && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse449)))) {
  932.                 // line 450
  933.                 echo "                            </div>
  934.                         ";
  935.             } elseif ((((twig_get_attribute($this->env$this->source,             // line 451
  936. (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'451$this->source); })()), "option_class", [], "any"falsefalsefalse451) == "0") && twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse451)) || (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.'451$this->source); })()), "option_detailclass", [], "any"falsefalsefalse451) != 0))) {
  937.                 // line 452
  938.                 echo "                            </div>
  939.                         ";
  940.             }
  941.             // line 454
  942.             echo "
  943.                         </form>
  944.                     ";
  945.         }
  946.         // line 457
  947.         echo "                    
  948.                     <div class=\"ec-modal\">
  949.                         <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  950.                         <div class=\"ec-modal-overlay\">
  951.                             <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  952.                             <div class=\"ec-modal-wrap\">
  953.                                 <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  954.         // line 463
  955.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  956.         echo "\" alt=\"\"/></span></label>
  957.                                 <div id=\"ec-modal-header\" class=\"text-center\">";
  958.         // line 464
  959.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_complete"), "html"nulltrue);
  960.         echo "</div>
  961.                                 <div class=\"ec-modal-box\">
  962.                                     <div class=\"ec-role\">
  963.                                         <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
  964.         // line 467
  965.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.continue"), "html"nulltrue);
  966.         echo "</label>
  967.                                         <a href=\"";
  968.         // line 468
  969.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  970.         echo "\" class=\"ec-inlineBtn--action\">";
  971.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.go_to_cart"), "html"nulltrue);
  972.         echo "</a>
  973.                                     </div>
  974.                                 </div>
  975.                             </div>
  976.                         </div>
  977.                     </div>
  978.                     ";
  979.         // line 474
  980.         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.'474$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse474)) {
  981.             // line 475
  982.             echo "                        <form action=\"";
  983.             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.'475$this->source); })()), "id", [], "any"falsefalsefalse475)]), "html"nulltrue);
  984.             echo "\" method=\"post\">
  985.                             <div class=\"ec-productRole__btn\">
  986.                                 ";
  987.             // line 477
  988.             if (((isset($context["is_favorite"]) || array_key_exists("is_favorite"$context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.'477$this->source); })()) == false)) {
  989.                 // line 478
  990.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  991.                                         ";
  992.                 // line 479
  993.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite"), "html"nulltrue);
  994.                 echo "
  995.                                     </button>
  996.                                 ";
  997.             } else {
  998.                 // line 482
  999.                 echo "                                    <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1000.                                             disabled=\"disabled\">";
  1001.                 // line 483
  1002.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_favorite_alrady"), "html"nulltrue);
  1003.                 echo "
  1004.                                     </button>
  1005.                                 ";
  1006.             }
  1007.             // line 486
  1008.             echo "                            </div>
  1009.                         </form>
  1010.                     ";
  1011.         }
  1012.         // line 489
  1013.         echo "                    <div class=\"share_products\">
  1014.                     </div>
  1015. \t\t\t\t\t";
  1016.         // line 492
  1017.         echo "\t\t\t\t\t";
  1018.         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.'492$this->source); })()), "youtube", [], "any"falsefalsefalse492))) {
  1019.             // line 493
  1020.             echo "\t\t\t\t\t\t<div id=\"detail_youtube_area\">
  1021. \t\t\t\t\t\t\t<div class=\"embed-container\">
  1022. \t\t\t\t\t\t\t\t<iframe src=\"https://www.youtube.com/embed/";
  1023.             // line 495
  1024.             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.'495$this->source); })()), "youtube", [], "any"falsefalsefalse495), "html"nulltrue);
  1025.             echo "?wmode=transparent\" frameborder=\"0\" allowfullscreen></iframe>
  1026. \t\t\t\t\t\t\t</div>
  1027. \t\t\t\t\t\t</div>
  1028. \t\t\t\t\t";
  1029.         }
  1030.         // line 499
  1031.         echo "
  1032.                 </div>
  1033.             </div>
  1034.         </div>
  1035.         
  1036.         ";
  1037.         // line 504
  1038.         echo $this->env->getFunction('eccube_block_plg_product_item')->getCallable()($context"plg_product_item");
  1039.         echo "
  1040.     
  1041.         ";
  1042.         // line 506
  1043.         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.'506$this->source); })()), "freearea", [], "any"falsefalsefalse506)) {
  1044.             // line 507
  1045.             echo "             <div class=\"ec-productRole__description\">
  1046.                  ";
  1047.             // line 508
  1048.             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.'508$this->source); })()), "freearea", [], "any"falsefalsefalse508)));
  1049.             echo "
  1050.             </div>
  1051.         ";
  1052.         }
  1053.         // line 511
  1054.         echo "    </div>
  1055. ";
  1056.         
  1057.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1058.         
  1059.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1060.     }
  1061.     public function getTemplateName()
  1062.     {
  1063.         return "Product/detail.twig";
  1064.     }
  1065.     public function isTraitable()
  1066.     {
  1067.         return false;
  1068.     }
  1069.     public function getDebugInfo()
  1070.     {
  1071.         return array (  1101 => 511,  1095 => 508,  1092 => 507,  1090 => 506,  1085 => 504,  1078 => 499,  1071 => 495,  1067 => 493,  1064 => 492,  1060 => 489,  1055 => 486,  1049 => 483,  1046 => 482,  1040 => 479,  1037 => 478,  1035 => 477,  1029 => 475,  1027 => 474,  1016 => 468,  1012 => 467,  1006 => 464,  1002 => 463,  994 => 457,  989 => 454,  985 => 452,  983 => 451,  980 => 450,  978 => 449,  973 => 447,  970 => 446,  966 => 444,  964 => 443,  961 => 442,  958 => 441,  955 => 439,  952 => 438,  945 => 434,  941 => 432,  934 => 428,  926 => 423,  922 => 422,  917 => 421,  914 => 420,  908 => 417,  904 => 416,  901 => 415,  899 => 414,  894 => 412,  890 => 411,  887 => 410,  885 => 409,  882 => 408,  880 => 407,  877 => 406,  874 => 405,  871 => 404,  868 => 403,  865 => 401,  862 => 400,  860 => 399,  857 => 398,  854 => 396,  851 => 395,  848 => 394,  845 => 393,  843 => 392,  840 => 391,  837 => 390,  835 => 389,  832 => 388,  829 => 387,  827 => 386,  824 => 385,  821 => 384,  819 => 383,  816 => 382,  811 => 379,  808 => 378,  806 => 377,  800 => 373,  797 => 372,  791 => 368,  788 => 367,  776 => 364,  773 => 363,  770 => 362,  767 => 360,  761 => 357,  757 => 356,  754 => 355,  751 => 354,  745 => 351,  739 => 350,  736 => 349,  730 => 346,  726 => 345,  723 => 344,  721 => 343,  719 => 342,  716 => 341,  714 => 340,  711 => 339,  706 => 337,  699 => 336,  696 => 335,  692 => 333,  687 => 331,  678 => 330,  676 => 329,  672 => 328,  665 => 327,  663 => 326,  660 => 325,  657 => 324,  654 => 322,  643 => 320,  639 => 319,  636 => 318,  631 => 315,  628 => 314,  622 => 309,  618 => 307,  599 => 305,  582 => 304,  578 => 302,  569 => 300,  561 => 298,  556 => 297,  553 => 296,  550 => 295,  546 => 293,  537 => 290,  534 => 289,  530 => 288,  527 => 287,  525 => 286,  521 => 284,  512 => 282,  506 => 280,  500 => 278,  492 => 276,  490 => 275,  487 => 274,  482 => 273,  479 => 272,  477 => 271,  471 => 267,  467 => 265,  459 => 262,  444 => 260,  435 => 259,  418 => 258,  414 => 256,  410 => 255,  406 => 254,  403 => 253,  400 => 252,  397 => 250,  387 => 249,  376 => 246,  373 => 244,  348 => 221,  346 => 220,  343 => 219,  332 => 212,  330 => 211,  318 => 202,  307 => 194,  277 => 167,  272 => 164,  263 => 158,  259 => 156,  257 => 155,  254 => 154,  245 => 148,  241 => 146,  239 => 145,  207 => 115,  199 => 113,  197 => 112,  192 => 110,  189 => 109,  187 => 108,  173 => 97,  170 => 96,  160 => 95,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  1072.     }
  1073.     public function getSourceContext()
  1074.     {
  1075.         return new Source("{#
  1076. This file is part of EC-CUBE
  1077. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1078. http://www.ec-cube.co.jp/
  1079. For the full copyright and license information, please view the LICENSE
  1080. file that was distributed with this source code.
  1081. #}
  1082. {% extends 'default_frame.twig' %}
  1083. {% set body_class = 'product_page' %}
  1084. {% block stylesheet %}
  1085.     <style>
  1086.         .slick-slider {
  1087.             margin-bottom: 30px;
  1088.         }
  1089.         .slick-dots {
  1090.             position: absolute;
  1091.             bottom: -45px;
  1092.             display: block;
  1093.             width: 100%;
  1094.             padding: 0;
  1095.             list-style: none;
  1096.             text-align: center;
  1097.         }
  1098.         .slick-dots li {
  1099.             position: relative;
  1100.             display: inline-block;
  1101.             width: 20px;
  1102.             height: 20px;
  1103.             margin: 0 5px;
  1104.             padding: 0;
  1105.             cursor: pointer;
  1106.         }
  1107.         .slick-dots li button {
  1108.             font-size: 0;
  1109.             line-height: 0;
  1110.             display: block;
  1111.             width: 20px;
  1112.             height: 20px;
  1113.             padding: 5px;
  1114.             cursor: pointer;
  1115.             color: transparent;
  1116.             border: 0;
  1117.             outline: none;
  1118.             background: transparent;
  1119.         }
  1120.         .slick-dots li button:hover,
  1121.         .slick-dots li button:focus {
  1122.             outline: none;
  1123.         }
  1124.         .slick-dots li button:hover:before,
  1125.         .slick-dots li button:focus:before {
  1126.             opacity: 1;
  1127.         }
  1128.         .slick-dots li button:before {
  1129.             content: \" \";
  1130.             line-height: 20px;
  1131.             position: absolute;
  1132.             top: 0;
  1133.             left: 0;
  1134.             width: 12px;
  1135.             height: 12px;
  1136.             text-align: center;
  1137.             opacity: .25;
  1138.             background-color: black;
  1139.             border-radius: 50%;
  1140.         }
  1141.         .slick-dots li.slick-active button:before {
  1142.             opacity: .75;
  1143.             background-color: black;
  1144.         }
  1145.         .slick-dots li button.thumbnail img {
  1146.             width: 0;
  1147.             height: 0;
  1148.         }
  1149.     </style>
  1150. {% endblock %}
  1151. {% block javascript %}
  1152.     <script>
  1153.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  1154.         // 規格2に選択肢を割り当てる。
  1155.         function fnSetClassCategories(form, classcat_id2_selected) {
  1156.             var \$form = \$(form);
  1157.             var product_id = \$form.find('input[name=product_id]').val();
  1158.             var \$sele1 = \$form.find('select[name=classcategory_id1]');
  1159.             var \$sele2 = \$form.find('select[name=classcategory_id2]');
  1160.             eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
  1161.         }
  1162.         {% if form.classcategory_id2 is defined %}
  1163.         fnSetClassCategories(
  1164.             \$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  1165.         );
  1166.         {% elseif form.classcategory_id1 is defined %}
  1167.         eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  1168.         {% endif %}
  1169.     </script>
  1170.     <script>
  1171.         \$(function() {
  1172.             // bfcache無効化
  1173.             \$(window).bind('pageshow', function(event) {
  1174.                 if (event.originalEvent.persisted) {
  1175.                     location.reload(true);
  1176.                 }
  1177.             });
  1178.             \$('.item_visual').slick({
  1179.                 dots: false,
  1180.                 arrows: false,
  1181.                 responsive: [{
  1182.                     breakpoint: 768,
  1183.                     settings: {
  1184.                         dots: true
  1185.                     }
  1186.                 }]
  1187.             });
  1188.             \$('.slideThumb').on('click', function() {
  1189.                 var index = \$(this).attr('data-index');
  1190.                 \$('.item_visual').slick('slickGoTo', index, false);
  1191.             })
  1192.         });
  1193.     </script>
  1194.     <script>
  1195.         \$(function() {
  1196.             \$('.add-cart').on('click', function(event) {
  1197.                 {% if form.classcategory_id1 is defined %}
  1198.                 // 規格1フォームの必須チェック
  1199.                 if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
  1200.                     \$('#classcategory_id1')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1201.                     return true;
  1202.                 } else {
  1203.                     \$('#classcategory_id1')[0].setCustomValidity('');
  1204.                 }
  1205.                 {% endif %}
  1206.                 {% if form.classcategory_id2 is defined %}
  1207.                 // 規格2フォームの必須チェック
  1208.                 if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
  1209.                     \$('#classcategory_id2')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
  1210.                     return true;
  1211.                 } else {
  1212.                     \$('#classcategory_id2')[0].setCustomValidity('');
  1213.                 }
  1214.                 {% endif %}
  1215.                 // 個数フォームのチェック
  1216.                 if (\$('#quantity').val() < 1) {
  1217.                     \$('#quantity')[0].setCustomValidity('{{ 'front.product.invalid_quantity'|trans }}');
  1218.                     return true;
  1219.                 } else {
  1220.                     \$('#quantity')[0].setCustomValidity('');
  1221.                 }
  1222.                 event.preventDefault();
  1223.                 \$form = \$('#form1');
  1224.                 \$.ajax({
  1225.                     url: \$form.attr('action'),
  1226.                     type: \$form.attr('method'),
  1227.                     data: \$form.serialize(),
  1228.                     dataType: 'json',
  1229.                     beforeSend: function(xhr, settings) {
  1230.                         // Buttonを無効にする
  1231.                         \$('.add-cart').prop('disabled', true);
  1232.                     }
  1233.                 }).done(function(data) {
  1234.                     // レスポンス内のメッセージをalertで表示
  1235.                     \$.each(data.messages, function() {
  1236.                         \$('#ec-modal-header').html(this);
  1237.                     });
  1238.                     \$('#ec-modal-checkbox').prop('checked', true);
  1239.                     // カートブロックを更新する
  1240.                     \$.ajax({
  1241.                         url: \"{{ url('block_cart') }}\",
  1242.                         type: 'GET',
  1243.                         dataType: 'html'
  1244.                     }).done(function(html) {
  1245.                         \$('.ec-headerRole__cart').html(html);
  1246.                         \$(\".ec-cartNavi__badge_menu\").html( \$('.ec-headerNaviRole .ec-cartNavi__badge').text() );
  1247.                     });
  1248.                 }).fail(function(data) {
  1249.                     alert('{{ 'front.product.add_cart_error'|trans }}');
  1250.                 }).always(function(data) {
  1251.                     // Buttonを有効にする
  1252.                     \$('.add-cart').prop('disabled', false);
  1253.                 });
  1254.             });
  1255.         });
  1256.     </script>
  1257. \t{% if BaseInfo.option_colorbox is not null %}
  1258. \t<script src=\"{{ asset('assets/js/jquery.colorbox/jquery.colorbox-min.js') }}\"></script>
  1259. \t<script type=\"text/javascript\">
  1260. \t\t\$(document).ready(function() {
  1261. \t\t\t\$(\".cbox\").colorbox({maxWidth:'100%',maxHeight:'100%',speed:'200'});
  1262. \t\t});
  1263. \t</script>
  1264. \t{% endif %}
  1265. \t{% if BaseInfo.option_thumbnail == 1 %}
  1266. \t<!-- ▼【商品画像】カスタマイズ -->
  1267. \t<script>
  1268. \t\t\$(function(){
  1269. \t\t\t\$('.main_visual').css('display', 'block');
  1270. \t\t\t\$('.main_visual').slick({
  1271. \t\t\t\tdots: false,
  1272. \t\t\t\tarrows: false,
  1273. \t\t\t\tautoplay: true,
  1274. \t\t\t\tautoplaySpeed:5000,
  1275. \t\t\t\tspeed: 300,
  1276. \t\t\t\tasNavFor: '.main_visual-thumbnails'
  1277. \t\t\t})
  1278. \t\t
  1279. \t\t\t\$('.main_visual-thumbnails').css('display', 'block');
  1280. \t\t\t\$('.main_visual-thumbnails').slick({
  1281. \t\t\t\tslidesToShow: 3,
  1282. \t\t\t\tarrows: false,
  1283. \t\t\t\tasNavFor: '.main_visual',
  1284. \t\t\t\tfocusOnSelect: true
  1285. \t\t\t})
  1286. \t\t});
  1287. \t</script>
  1288. \t{% endif %}
  1289. \t{# ▼規格表示javascript #}
  1290. \t{% include 'Product/option_detailclass_script.twig' %}
  1291. {% endblock %}
  1292. {% block main %}
  1293.     <div class=\"ec-productRole\">
  1294.         {# 関連カテゴリ #}
  1295.         {% if Product.ProductCategories is not empty %}
  1296.             <div class=\"ec-productRole__category\">
  1297.                 <div>{{ 'front.product.related_category'|trans }}</div>
  1298.                 {% for ProductCategory in Product.ProductCategories %}
  1299.                     <ul>
  1300.                         <li>
  1301.                             {% for Category in ProductCategory.Category.path %}
  1302.                                 <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
  1303.                                 <span>></span>{% endif -%}
  1304.                             {% endfor %}
  1305.                         </li>
  1306.                     </ul>
  1307.                 {% endfor %}
  1308.             </div>
  1309.         {% endif %}
  1310.         <div class=\"ec-grid2\">
  1311.             <div class=\"ec-grid2__cell\">
  1312.                 <div class=\"ec-sliderItemRole\">
  1313.                     {% if BaseInfo.option_thumbnail == 1 %}
  1314.                         <ul class=\"main_visual\" style=\"display:none;\">
  1315. \t\t\t\t\t\t{% for ProductImage in Product.ProductImage %}
  1316. \t\t\t\t\t\t\t<li class=\"item\">
  1317. \t\t\t\t\t\t\t\t{% if BaseInfo.option_colorbox is not null %}
  1318. \t\t\t\t\t\t\t\t\t<a href=\"{{ asset(ProductImage, 'save_image') }}\" class=\"cbox\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></a>
  1319. \t\t\t\t\t\t\t\t{% else %}
  1320. \t\t\t\t\t\t\t\t\t<img src=\"{{ asset(ProductImage, 'save_image') }}\">
  1321. \t\t\t\t\t\t\t\t{% endif %}
  1322. \t\t\t\t\t\t\t</li>
  1323. \t\t\t\t\t\t{% else %}
  1324. \t\t\t\t\t\t\t<li class=\"item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></li>
  1325. \t\t\t\t\t\t{% endfor %}
  1326. \t\t\t\t\t    </ul>
  1327.                         {% if Product.ProductImage|length > 1 %}
  1328.                             <ul class=\"main_visual-thumbnails\" style=\"display:none;\">
  1329.                                 {% for ProductImage in Product.ProductImage %}
  1330.                                 <li class=\"item\">
  1331.                                     <img src=\"{{ asset(ProductImage, 'save_image') }}\">
  1332.                                 </li>
  1333.                                 {% endfor %}
  1334.                             </ul>
  1335.                         {% endif %}
  1336.                     {% else %}
  1337.                         <div class=\"item_visual\">
  1338.                             {% for ProductImage in Product.ProductImage %}
  1339.                                 <div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></div>
  1340.                             {% else %}
  1341.                                 <div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></div>
  1342.                             {% endfor %}
  1343.                         </div>
  1344.                         <div class=\"item_nav\">
  1345.                             {% for ProductImage in Product.ProductImage %}
  1346.                                 <div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></div>
  1347.                             {% endfor %}
  1348.                         </div>
  1349.                     {% endif %}
  1350.                 </div>
  1351.             </div>
  1352.             <div class=\"ec-grid2__cell\">
  1353.                 <div class=\"ec-productRole__profile\">
  1354.                     {# 商品名 #}
  1355.                     <div class=\"ec-productRole__title\">
  1356.                         <h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
  1357.                     </div>
  1358.                     {# タグ #}
  1359.                     <ul class=\"ec-productRole__tags\">
  1360.                         {% for Tag in Product.Tags %}
  1361.                             <li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  1362.                         {% endfor %}
  1363.                     </ul>
  1364.                     {# 通常価格 #}
  1365.                     {% if Product.hasProductClass -%}
  1366.                         <div class=\"ec-productRole__priceRegular\">
  1367.                             {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  1368.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
  1369.                                 <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1370.                             {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  1371.                                 <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
  1372.                                 <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1373.                             {% endif %}
  1374.                         </div>
  1375.                     {% else %}
  1376.                         {% if Product.getPrice01Max is not null %}
  1377.                             <span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
  1378.                             <span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
  1379.                         {% endif %}
  1380.                     {% endif %}
  1381.                     {# 販売価格 #}
  1382.                     <div class=\"ec-productRole__price\">
  1383.                         {% if Product.hasProductClass -%}
  1384.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1385.                                 <div class=\"ec-price\">
  1386.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1387.                                     <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1388.                                 </div>
  1389.                             {% else %}
  1390.                                 <div class=\"ec-price\">
  1391.                                     <span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
  1392.                                     <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1393.                                 </div>
  1394.                             {% endif %}
  1395.                         {% else %}
  1396.                             <div class=\"ec-price\">
  1397.                                 <span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
  1398.                                 <span class=\"ec-price__tax\">{{ 'common.tax_include'|trans }}</span>
  1399.                             </div>
  1400.                         {% endif %}
  1401.                     </div>
  1402.                     {# 商品コード #}
  1403.                     {% if Product.code_min is not empty %}
  1404.                         <div class=\"ec-productRole__code\">
  1405.                             {{ 'front.product.code'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
  1406.                         </div>
  1407.                     {% endif %}
  1408.                     
  1409.                     <div class=\"ec-productRole__feature\">{{ Product.description_detail|raw|nl2br }}
  1410.                     </div>
  1411. \t\t\t\t\t{# ↓■期間限定③/⑤ #}
  1412.                     {% if (Product.arrival_date is not empty and Product.arrival_date >= date()) or (Product.endsell_date is not empty and Product.endsell_date < date()) %}
  1413. \t\t\t\t\t\t<div class=\"text-danger\" style=\"margin:10px 0;\">
  1414. \t\t\t\t\t\t\t期間限定商品:現在ご購入いただけません。
  1415. \t\t\t\t\t\t</div>
  1416. \t\t\t\t\t{% else %}
  1417. \t\t\t\t\t{# ↑■期間限定 #}
  1418.                         <form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
  1419.                         {# ▼商品設定[0] and 規格1が存在する場合 #}
  1420.                         {% if Product.option_class == \"0\" and form.classcategory_id1 is defined %}
  1421.                         {# ▼商品設定[1] and 規格1が存在する場合 #}
  1422.                         {% elseif Product.option_class == 1 and form.classcategory_id1 is defined %}
  1423.                             {% include 'Product/option_detailclass1.twig' %}
  1424.                         {# ▼商品設定[2] and 規格1が存在する場合 #}
  1425.                         {% elseif Product.option_class == 2 and form.classcategory_id1 is defined %}
  1426.                             {% include 'Product/option_detailclass2.twig' %}
  1427.                         {# ▼店舗設定[1] and 規格1が存在する場合 #}
  1428.                         {% elseif BaseInfo.option_detailclass == 1 and form.classcategory_id1 is defined %}
  1429.                             {% include 'Product/option_detailclass1.twig' %}
  1430.                         {# ▼店舗設定[2] and 規格1が存在する場合 #}
  1431.                         {% elseif BaseInfo.option_detailclass == 2 and form.classcategory_id1 is defined %}
  1432.                             {% include 'Product/option_detailclass2.twig' %}
  1433.                         {% endif %}
  1434.                         {# ▼規格1が存在する商品設定[1](規格ごとカートボタン)では、通常のカートボタンを表示しない #}
  1435.                         {% if Product.option_class == 1 and form.classcategory_id1 is defined %}
  1436.                         {# ▼商品設定[1]以外 or 店舗設定[1]以外 or 規格1が存在しない場合、通常のカートボタンを表示する #}
  1437.                         {% elseif (Product.option_class == \"0\" and form.classcategory_id1 is defined) or (Product.option_class == 2 and form.classcategory_id1 is defined) or BaseInfo.option_detailclass != 1 or form.classcategory_id1 is not defined %}
  1438.                             {# ▼プルダウン時に表示 #}
  1439.                             {% if BaseInfo.option_detailclass == \"0\" or Product.option_class == \"0\" or form.classcategory_id1 is not defined %}
  1440.                                 {% include 'Product/option_detailclass0.twig' %}
  1441.                             {% endif %}
  1442.                             {% if Product.stock_find %}
  1443.                                 <div class=\"ec-productRole__actions\">
  1444.                                     {% if form.classcategory_id1 is defined %}
  1445.                                         <div class=\"ec-select\">
  1446.                                             {{ form_widget(form.classcategory_id1) }}
  1447.                                             {{ form_errors(form.classcategory_id1) }}
  1448.                                         </div>
  1449.                                         {% if form.classcategory_id2 is defined %}
  1450.                                             <div class=\"ec-select\">
  1451.                                                 {{ form_widget(form.classcategory_id2) }}
  1452.                                                 {{ form_errors(form.classcategory_id2) }}
  1453.                                             </div>
  1454.                                         {% endif %}
  1455.                                     {% endif %}
  1456.                                     <div class=\"ec-numberInput\"><span>{{ 'common.quantity'|trans }}</span>
  1457.                                         {{ form_widget(form.quantity) }}
  1458.                                         {{ form_errors(form.quantity) }}
  1459.                                     </div>
  1460.                                 </div>
  1461.                                 <div class=\"ec-productRole__btn\">
  1462.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
  1463.                                         {{ 'front.product.add_cart'|trans }}
  1464.                                     </button>
  1465.                                 </div>
  1466.                             {% else %}
  1467.                                 <div class=\"ec-productRole__btn\">
  1468.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1469.                                         {{ 'front.product.out_of_stock'|trans }}
  1470.                                     </button>
  1471.                                 </div>
  1472.                             {% endif %}
  1473.                         {% endif %}
  1474.                         
  1475.                         {# ▼設定[0](通常プルダウン)以外は、CSSで非表示 #}
  1476.                         {% if (Product.option_class == 1 and form.classcategory_id1 is defined) or (Product.option_class == 2 and form.classcategory_id1 is defined) %}
  1477.                             <div style=\"display:none;\">
  1478.                         {% elseif (Product.option_class == \"0\" and form.classcategory_id1 is defined) or BaseInfo.option_detailclass != 0 %}
  1479.                             <div style=\"display:none;\">
  1480.                         {% endif %}
  1481.                         
  1482.                             {{ form_rest(form) }}
  1483.                             
  1484.                         {% if (Product.option_class == 1 and form.classcategory_id1 is defined) or (Product.option_class == 2 and form.classcategory_id1 is defined) %}
  1485.                             </div>
  1486.                         {% elseif (Product.option_class == \"0\" and form.classcategory_id1 is defined) or BaseInfo.option_detailclass != 0 %}
  1487.                             </div>
  1488.                         {% endif %}
  1489.                         </form>
  1490.                     {% endif %}{# ←■期間限定④/⑤ #}
  1491.                     
  1492.                     <div class=\"ec-modal\">
  1493.                         <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  1494.                         <div class=\"ec-modal-overlay\">
  1495.                             <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  1496.                             <div class=\"ec-modal-wrap\">
  1497.                                 <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></label>
  1498.                                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'front.product.add_cart_complete'|trans }}</div>
  1499.                                 <div class=\"ec-modal-box\">
  1500.                                     <div class=\"ec-role\">
  1501.                                         <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">{{ 'front.product.continue'|trans }}</label>
  1502.                                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'common.go_to_cart'|trans }}</a>
  1503.                                     </div>
  1504.                                 </div>
  1505.                             </div>
  1506.                         </div>
  1507.                     </div>
  1508.                     {% if BaseInfo.option_favorite_product %}
  1509.                         <form action=\"{{ url('product_add_favorite', {'id':Product.id}) }}\" method=\"post\">
  1510.                             <div class=\"ec-productRole__btn\">
  1511.                                 {% if is_favorite == false %}
  1512.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
  1513.                                         {{ 'front.product.add_favorite'|trans }}
  1514.                                     </button>
  1515.                                 {% else %}
  1516.                                     <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
  1517.                                             disabled=\"disabled\">{{ 'front.product.add_favorite_alrady'|trans }}
  1518.                                     </button>
  1519.                                 {% endif %}
  1520.                             </div>
  1521.                         </form>
  1522.                     {% endif %}
  1523.                     <div class=\"share_products\">
  1524.                     </div>
  1525. \t\t\t\t\t{# YouTube #}
  1526. \t\t\t\t\t{% if Product.youtube is not empty %}
  1527. \t\t\t\t\t\t<div id=\"detail_youtube_area\">
  1528. \t\t\t\t\t\t\t<div class=\"embed-container\">
  1529. \t\t\t\t\t\t\t\t<iframe src=\"https://www.youtube.com/embed/{{ Product.youtube }}?wmode=transparent\" frameborder=\"0\" allowfullscreen></iframe>
  1530. \t\t\t\t\t\t\t</div>
  1531. \t\t\t\t\t\t</div>
  1532. \t\t\t\t\t{% endif %}
  1533.                 </div>
  1534.             </div>
  1535.         </div>
  1536.         
  1537.         {{ eccube_block_plg_product_item() }}
  1538.     
  1539.         {% if Product.freearea %}
  1540.              <div class=\"ec-productRole__description\">
  1541.                  {{ include(template_from_string(Product.freearea)) }}
  1542.             </div>
  1543.         {% endif %}
  1544.     </div>
  1545. {% endblock %}""Product/detail.twig""/home/dzx/dzx.co.jp/public_html/share-wealth.dzx.co.jp/app/template/default/Product/detail.twig");
  1546.     }
  1547. }