var/cache/dev/twig/dc/dcbd567f225ff727516d724a7ce66fd6ef9a365eda677ebd5555719dd54a894c.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Blog/detail.twig */
  14. class __TwigTemplate_081a8b69724d5d20d0ed26406aba2b167dad624a3a7c89bff56b9729090bcdf4 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 1
  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""Blog/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""Blog/detail.twig"));
  40.         // line 3
  41.         $context["body_class"] = "blog_page";
  42.         // line 4
  43.         $context["wrap_class"] = "blogDwrap";
  44.         // line 5
  45.         $context["footerBrandListFlg"] = true;
  46.         // line 1
  47.         $this->parent $this->loadTemplate("default_frame.twig""Blog/detail.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 7
  55.     public function block_stylesheet($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  62.         // line 8
  63.         echo "<link rel=\"stylesheet\" href=\"";
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/contents.css"), "html"nulltrue);
  65.         echo "\">
  66. ";
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 11
  73.     public function block_javascript($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  80.         // line 12
  81.         echo "  <script>
  82.     eccube.productsClassCategories = {
  83.         ";
  84.         // line 14
  85.         $context['_parent'] = $context;
  86.         $context['_seq'] = twig_ensure_traversable((isset($context["Pickup"]) || array_key_exists("Pickup"$context) ? $context["Pickup"] : (function () { throw new RuntimeError('Variable "Pickup" does not exist.'14$this->source); })()));
  87.         $context['loop'] = [
  88.           'parent' => $context['_parent'],
  89.           'index0' => 0,
  90.           'index'  => 1,
  91.           'first'  => true,
  92.         ];
  93.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  94.             $length count($context['_seq']);
  95.             $context['loop']['revindex0'] = $length 1;
  96.             $context['loop']['revindex'] = $length;
  97.             $context['loop']['length'] = $length;
  98.             $context['loop']['last'] = === $length;
  99.         }
  100.         foreach ($context['_seq'] as $context["_key"] => $context["CategoryRecommendProduct"]) {
  101.             // line 15
  102.             echo "        ";
  103.             $context["Product"] = $context["CategoryRecommendProduct"];
  104.             // line 16
  105.             echo "        \"";
  106.             echo twig_escape_filter($this->envtwig_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.'16$this->source); })()), "id", [], "any"falsefalsefalse16), "js"), "html"nulltrue);
  107.             echo "\": ";
  108.             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.'16$this->source); })()));
  109.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse16) == false)) {
  110.                 echo ", ";
  111.             }
  112.             // line 17
  113.             echo "        ";
  114.             ++$context['loop']['index0'];
  115.             ++$context['loop']['index'];
  116.             $context['loop']['first'] = false;
  117.             if (isset($context['loop']['length'])) {
  118.                 --$context['loop']['revindex0'];
  119.                 --$context['loop']['revindex'];
  120.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  121.             }
  122.         }
  123.         $_parent $context['_parent'];
  124.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryRecommendProduct'], $context['_parent'], $context['loop']);
  125.         $context array_intersect_key($context$_parent) + $_parent;
  126.         // line 18
  127.         echo "    };
  128.     \$(function() {
  129.       \$('.add-cart').on('click', function(event) {
  130.           // 規格1フォームの必須チェック
  131.           var \$classcategory = \$(this).parents('form').find('select[name=\"classcategory_id1\"]');
  132.           if (\$classcategory.length) {
  133.             if (\$classcategory.val() == '__unselected' || \$classcategory.val() == '') {
  134.                 \$classcategory[0].setCustomValidity('";
  135.         // line 26
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  137.         echo "');
  138.                 return true;
  139.             } else {
  140.                 \$classcategory[0].setCustomValidity('');
  141.             }
  142.           }
  143.           // 規格2フォームの必須チェック
  144.           var \$classcategory2 = \$(this).parents('form').find('select[name=\"classcategory_id2\"]');
  145.           if (\$classcategory2.length) {
  146.             if (\$classcategory2.val() == '__unselected' || \$classcategory2.val() == '') {
  147.                 \$classcategory2[0].setCustomValidity('";
  148.         // line 37
  149.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html"nulltrue);
  150.         echo "');
  151.                 return true;
  152.             } else {
  153.                 \$classcategory2[0].setCustomValidity('');
  154.             }
  155.           }
  156.           // 個数フォームのチェック
  157.           var \$quantity = \$(this).parents('form').find('[name=\"quantity\"]');
  158.           if (\$quantity.val() < 1) {
  159.               \$quantity[0].setCustomValidity('";
  160.         // line 47
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  162.         echo "');
  163.               return true;
  164.           } else {
  165.               \$quantity[0].setCustomValidity('');
  166.           }
  167.           event.preventDefault();
  168.           \$form = \$(this).parents('form');
  169.           \$.ajax({
  170.               url: \$form.attr('action'),
  171.               type: \$form.attr('method'),
  172.               data: \$form.serialize(),
  173.               dataType: 'json',
  174.               beforeSend: function(xhr, settings) {
  175.                   // Buttonを無効にする
  176.                   \$('.add-cart').prop('disabled', true);
  177.               }
  178.           }).done(function(data) {
  179.               // レスポンス内のメッセージをalertで表示
  180.               \$.each(data.messages, function() {
  181.                   \$('#ec-modal-header').html(this);
  182.               });
  183.               \$('#ec-modal-checkbox').prop('checked', true);
  184.               // カートブロックを更新する
  185.               \$.ajax({
  186.                 url: \"";
  187.         // line 74
  188.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  189.         echo "\",
  190.                 type: 'GET',
  191.                 dataType: 'html'
  192.               }).done(function(response) {
  193.                 let res = JSON.parse(response);
  194.                 \$('.cart_number').text(res.totalQuantity);
  195.               });
  196.           }).fail(function(data) {
  197.               alert('";
  198.         // line 82
  199.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  200.         echo "');
  201.           }).always(function(data) {
  202.               // Buttonを有効にする
  203.               \$('.add-cart').prop('disabled', false);
  204.           });
  205.       });
  206.         \$('.slider').slick({
  207.             autoplay: true,
  208.             autoplaySpeed: 2000,
  209.             dots: false,
  210.             loop: true,
  211.             slidesToShow: 3,
  212.             prevArrow: false,
  213.             nextArrow: false,
  214.             variableWidth: true,
  215.             responsive: [
  216.             {
  217.               breakpoint: 1179,
  218.               settings: {
  219.                 slidesToShow: 2,
  220.               }
  221.             },
  222.             {
  223.               breakpoint: 768,
  224.               settings: {
  225.                 slidesToShow: 1,
  226.               }
  227.             }]
  228.         });
  229.     });
  230.   </script>
  231. ";
  232.         
  233.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  234.         
  235.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  236.     }
  237.     // line 116
  238.     public function block_main($context, array $blocks = [])
  239.     {
  240.         $macros $this->macros;
  241.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  242.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  243.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  244.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  245.         // line 117
  246.         echo twig_include($this->env$context"Block/header_shop.twig");
  247.         echo "
  248. <div class=\"conts\">
  249.     <h2 class=\"h2Normal\">BLOG</h2>
  250.     <p class=\"txt14 ls6 tarS mt25P\">ブログ</p>
  251. </div>
  252. <!-- MAINVISUAL -->
  253. ";
  254.         // line 123
  255.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'123$this->source); })()), "thumbnail", [], "any"falsefalsefalse123))) {
  256.             // line 124
  257.             echo "<div class=\"mainVisualBlogD pcShow\">
  258.   <div class=\"c-blog-thumbnail--wrapper\">
  259.     <div class=\"c-blog-thumbnail\" style=\"background-image: url('";
  260.             // line 126
  261.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'126$this->source); })()), "thumbnail", [], "any"falsefalsefalse126), "html"nulltrue);
  262.             echo "')\"></div>
  263.   </div>
  264. </div>
  265. <div class=\"mainVisual spShow\">
  266.     <img src=\"";
  267.             // line 130
  268.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'130$this->source); })()), "thumbnail", [], "any"falsefalsefalse130), "html"nulltrue);
  269.             echo "\" alt=\"\">
  270. </div>
  271. ";
  272.         }
  273.         // line 133
  274.         echo "<!-- BLOG -->
  275. <section class=\"blogD\">
  276.   <div class=\"conts2\">
  277.     <p class=\"txt13 ls10\">";
  278.         // line 136
  279.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'136$this->source); })()), "date", [], "any"falsefalsefalse136), "html"nulltrue);
  280.         echo "</p>
  281.     <p class=\"txtBig mt40P mb40P\">";
  282.         // line 137
  283.         echo twig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'137$this->source); })()), "title", [], "any"falsefalsefalse137);
  284.         echo "</p>
  285.     <div class=\"txtWrap mb40P blog-content\">
  286.       ";
  287.         // line 139
  288.         echo nl2br(twig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'139$this->source); })()), "content", [], "any"falsefalsefalse139));
  289.         echo "
  290.     </div>
  291.   </div>
  292. </section>
  293. <div class=\"bgColor\">
  294.   <!-- PICKUP ITEMS -->
  295.   <section class=\"pickupItems\">
  296.       <h2 class=\"h2Normal mt60P mb40\">PICKUP ITEMS</h2>
  297.       <div class=\"flexWrap slider\">
  298.         ";
  299.         // line 149
  300.         $context['_parent'] = $context;
  301.         $context['_seq'] = twig_ensure_traversable((isset($context["Pickup"]) || array_key_exists("Pickup"$context) ? $context["Pickup"] : (function () { throw new RuntimeError('Variable "Pickup" does not exist.'149$this->source); })()));
  302.         foreach ($context['_seq'] as $context["_key"] => $context["CategoryRecommendProduct"]) {
  303.             if ((isset($context["Pickup"]) || array_key_exists("Pickup"$context) ? $context["Pickup"] : (function () { throw new RuntimeError('Variable "Pickup" does not exist.'149$this->source); })())) {
  304.                 // line 150
  305.                 echo "        ";
  306.                 $context["Product"] = $context["CategoryRecommendProduct"];
  307.                 // line 151
  308.                 echo "        <div class=\"flex\">
  309.           ";
  310.                 // line 152
  311.                 $context["pickup_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(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.'152$this->source); })()), "mainFileName", [], "any"falsefalsefalse152)), "save_image");
  312.                 // line 153
  313.                 echo "          <a href=\"";
  314.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["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.'153$this->source); })()), "id", [], "any"falsefalsefalse153)]), "html"nulltrue);
  315.                 echo "\" class=\"pickup-image\" style=\"background-image:url('";
  316.                 echo twig_escape_filter($this->env, (isset($context["pickup_url"]) || array_key_exists("pickup_url"$context) ? $context["pickup_url"] : (function () { throw new RuntimeError('Variable "pickup_url" does not exist.'153$this->source); })()), "html"nulltrue);
  317.                 echo "')\"></a>
  318.           ";
  319.                 // line 154
  320.                 $context["brand"] = "";
  321.                 // line 155
  322.                 echo "          ";
  323.                 $context['_parent'] = $context;
  324.                 $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.'155$this->source); })()), "ProductCategories", [], "any"falsefalsefalse155));
  325.                 foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  326.                     // line 156
  327.                     echo "            ";
  328.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse156), "Parent", [], "any"falsefalsefalse156) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse156), "Parent", [], "any"falsefalsefalse156), "id", [], "any"falsefalsefalse156) == "3"))) {
  329.                         // line 157
  330.                         echo "              ";
  331.                         $context["brand"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse157), "name", [], "any"falsefalsefalse157);
  332.                         // line 158
  333.                         echo "            ";
  334.                     }
  335.                     // line 159
  336.                     echo "          ";
  337.                 }
  338.                 $_parent $context['_parent'];
  339.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  340.                 $context array_intersect_key($context$_parent) + $_parent;
  341.                 // line 160
  342.                 echo "          <div class=\"flexTxt\">
  343.             <p class=\"txt12 ls6\">";
  344.                 // line 161
  345.                 echo twig_escape_filter($this->env, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'161$this->source); })()), "html"nulltrue);
  346.                 echo "</p>
  347.             <p class=\"txt18 ls6 mt15 mb20\">";
  348.                 // line 162
  349.                 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.'162$this->source); })()), "name", [], "any"falsefalsefalse162), "html"nulltrue);
  350.                 echo "</p>
  351.             <p class=\"txt14 ls6\">Price: ";
  352.                 // line 163
  353.                 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.'163$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse163)), "html"nulltrue);
  354.                 echo "</p>
  355.             <a href=\"";
  356.                 // line 164
  357.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["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.'164$this->source); })()), "id", [], "any"falsefalsefalse164)]), "html"nulltrue);
  358.                 echo "\" class=\"buttonC mt-20\">DETAIL</a>
  359.           </div>
  360.         </div>
  361.         ";
  362.             }
  363.         }
  364.         $_parent $context['_parent'];
  365.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryRecommendProduct'], $context['_parent'], $context['loop']);
  366.         $context array_intersect_key($context$_parent) + $_parent;
  367.         // line 168
  368.         echo "      </div>
  369.       <div class=\"ec-modal\">
  370.         <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  371.         <div class=\"ec-modal-overlay\">
  372.             <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  373.             <div class=\"ec-modal-wrap\">
  374.                 <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  375.         // line 174
  376.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  377.         echo "\" alt=\"\"/></span></label>
  378.                 <div id=\"ec-modal-header\" class=\"text-center\">";
  379.         // line 175
  380.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  381.         echo "</div>
  382.                 <div class=\"ec-modal-box\">
  383.                     <div class=\"ec-role\">
  384.                         <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
  385.         // line 178
  386.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  387.         echo "</label>
  388.                         <a href=\"";
  389.         // line 179
  390.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  391.         echo "\" class=\"ec-inlineBtn--action\">";
  392.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  393.         echo "</a>
  394.                     </div>
  395.                 </div>
  396.             </div>
  397.         </div>
  398.       </div>
  399.   </section>
  400. </div>
  401. <!-- NAVIGATION -->
  402. <div class=\"flex nav blog-navigation\">
  403.     ";
  404.         // line 190
  405.         if (twig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'190$this->source); })()), "prev_link", [], "any"falsefalsefalse190)) {
  406.             // line 191
  407.             echo "    <a href=\"";
  408.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'191$this->source); })()), "prev_link", [], "any"falsefalsefalse191), "html"nulltrue);
  409.             echo "\">
  410.         <div class=\"flex button2\">
  411.             <div>
  412.                 <i class=\"fas fa-chevron-left\"></i>
  413.             </div>
  414.             <div>
  415.                 <p>前へ</p>
  416.             </div>
  417.         </div>
  418.     </a>
  419.     ";
  420.         }
  421.         // line 202
  422.         echo "    <div>
  423.       <a href=\"";
  424.         // line 203
  425.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["shop" => (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'203$this->source); })())]), "html"nulltrue);
  426.         echo "\" class=\"button2 buttonCustom\">一覧へ戻る</a>
  427.     </div>
  428.     ";
  429.         // line 205
  430.         if (twig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'205$this->source); })()), "next_link", [], "any"falsefalsefalse205)) {
  431.             // line 206
  432.             echo "    <a href=\"";
  433.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Blog"]) || array_key_exists("Blog"$context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.'206$this->source); })()), "next_link", [], "any"falsefalsefalse206), "html"nulltrue);
  434.             echo "\">
  435.         <div class=\"flex button2\">
  436.             <div>
  437.                 <p>次へ</p>
  438.             </div>
  439.             <div>
  440.                 <i class=\"fas fa-chevron-right\"></i>
  441.             </div>
  442.         </div>
  443.     </a>
  444.     ";
  445.         }
  446.         // line 217
  447.         echo "</div>
  448. ";
  449.         
  450.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  451.         
  452.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  453.     }
  454.     public function getTemplateName()
  455.     {
  456.         return "Blog/detail.twig";
  457.     }
  458.     public function isTraitable()
  459.     {
  460.         return false;
  461.     }
  462.     public function getDebugInfo()
  463.     {
  464.         return array (  480 => 217,  465 => 206,  463 => 205,  458 => 203,  455 => 202,  440 => 191,  438 => 190,  422 => 179,  418 => 178,  412 => 175,  408 => 174,  400 => 168,  389 => 164,  385 => 163,  381 => 162,  377 => 161,  374 => 160,  368 => 159,  365 => 158,  362 => 157,  359 => 156,  354 => 155,  352 => 154,  345 => 153,  343 => 152,  340 => 151,  337 => 150,  332 => 149,  319 => 139,  314 => 137,  310 => 136,  305 => 133,  299 => 130,  292 => 126,  288 => 124,  286 => 123,  277 => 117,  267 => 116,  224 => 82,  213 => 74,  183 => 47,  170 => 37,  156 => 26,  146 => 18,  132 => 17,  124 => 16,  121 => 15,  104 => 14,  100 => 12,  90 => 11,  77 => 8,  67 => 7,  56 => 1,  54 => 5,  52 => 4,  50 => 3,  37 => 1,);
  465.     }
  466.     public function getSourceContext()
  467.     {
  468.         return new Source("{% extends 'default_frame.twig' %}
  469. {% set body_class = 'blog_page' %}
  470. {% set wrap_class = 'blogDwrap' %}
  471. {% set footerBrandListFlg = true %}
  472. {% block stylesheet %}
  473. <link rel=\"stylesheet\" href=\"{{ asset('assets/css/contents.css') }}\">
  474. {% endblock stylesheet %}
  475. {% block javascript %}
  476.   <script>
  477.     eccube.productsClassCategories = {
  478.         {% for CategoryRecommendProduct in Pickup %}
  479.         {% set Product = CategoryRecommendProduct %}
  480.         \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  481.         {% endfor %}
  482.     };
  483.     \$(function() {
  484.       \$('.add-cart').on('click', function(event) {
  485.           // 規格1フォームの必須チェック
  486.           var \$classcategory = \$(this).parents('form').find('select[name=\"classcategory_id1\"]');
  487.           if (\$classcategory.length) {
  488.             if (\$classcategory.val() == '__unselected' || \$classcategory.val() == '') {
  489.                 \$classcategory[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  490.                 return true;
  491.             } else {
  492.                 \$classcategory[0].setCustomValidity('');
  493.             }
  494.           }
  495.           // 規格2フォームの必須チェック
  496.           var \$classcategory2 = \$(this).parents('form').find('select[name=\"classcategory_id2\"]');
  497.           if (\$classcategory2.length) {
  498.             if (\$classcategory2.val() == '__unselected' || \$classcategory2.val() == '') {
  499.                 \$classcategory2[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  500.                 return true;
  501.             } else {
  502.                 \$classcategory2[0].setCustomValidity('');
  503.             }
  504.           }
  505.           // 個数フォームのチェック
  506.           var \$quantity = \$(this).parents('form').find('[name=\"quantity\"]');
  507.           if (\$quantity.val() < 1) {
  508.               \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  509.               return true;
  510.           } else {
  511.               \$quantity[0].setCustomValidity('');
  512.           }
  513.           event.preventDefault();
  514.           \$form = \$(this).parents('form');
  515.           \$.ajax({
  516.               url: \$form.attr('action'),
  517.               type: \$form.attr('method'),
  518.               data: \$form.serialize(),
  519.               dataType: 'json',
  520.               beforeSend: function(xhr, settings) {
  521.                   // Buttonを無効にする
  522.                   \$('.add-cart').prop('disabled', true);
  523.               }
  524.           }).done(function(data) {
  525.               // レスポンス内のメッセージをalertで表示
  526.               \$.each(data.messages, function() {
  527.                   \$('#ec-modal-header').html(this);
  528.               });
  529.               \$('#ec-modal-checkbox').prop('checked', true);
  530.               // カートブロックを更新する
  531.               \$.ajax({
  532.                 url: \"{{ url('block_cart') }}\",
  533.                 type: 'GET',
  534.                 dataType: 'html'
  535.               }).done(function(response) {
  536.                 let res = JSON.parse(response);
  537.                 \$('.cart_number').text(res.totalQuantity);
  538.               });
  539.           }).fail(function(data) {
  540.               alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  541.           }).always(function(data) {
  542.               // Buttonを有効にする
  543.               \$('.add-cart').prop('disabled', false);
  544.           });
  545.       });
  546.         \$('.slider').slick({
  547.             autoplay: true,
  548.             autoplaySpeed: 2000,
  549.             dots: false,
  550.             loop: true,
  551.             slidesToShow: 3,
  552.             prevArrow: false,
  553.             nextArrow: false,
  554.             variableWidth: true,
  555.             responsive: [
  556.             {
  557.               breakpoint: 1179,
  558.               settings: {
  559.                 slidesToShow: 2,
  560.               }
  561.             },
  562.             {
  563.               breakpoint: 768,
  564.               settings: {
  565.                 slidesToShow: 1,
  566.               }
  567.             }]
  568.         });
  569.     });
  570.   </script>
  571. {% endblock %}
  572. {% block main %}
  573. {{ include('Block/header_shop.twig') }}
  574. <div class=\"conts\">
  575.     <h2 class=\"h2Normal\">BLOG</h2>
  576.     <p class=\"txt14 ls6 tarS mt25P\">ブログ</p>
  577. </div>
  578. <!-- MAINVISUAL -->
  579. {% if Blog.thumbnail is not empty %}
  580. <div class=\"mainVisualBlogD pcShow\">
  581.   <div class=\"c-blog-thumbnail--wrapper\">
  582.     <div class=\"c-blog-thumbnail\" style=\"background-image: url('{{ Blog.thumbnail }}')\"></div>
  583.   </div>
  584. </div>
  585. <div class=\"mainVisual spShow\">
  586.     <img src=\"{{ Blog.thumbnail }}\" alt=\"\">
  587. </div>
  588. {% endif %}
  589. <!-- BLOG -->
  590. <section class=\"blogD\">
  591.   <div class=\"conts2\">
  592.     <p class=\"txt13 ls10\">{{ Blog.date }}</p>
  593.     <p class=\"txtBig mt40P mb40P\">{{ Blog.title|raw }}</p>
  594.     <div class=\"txtWrap mb40P blog-content\">
  595.       {{ Blog.content|raw|nl2br }}
  596.     </div>
  597.   </div>
  598. </section>
  599. <div class=\"bgColor\">
  600.   <!-- PICKUP ITEMS -->
  601.   <section class=\"pickupItems\">
  602.       <h2 class=\"h2Normal mt60P mb40\">PICKUP ITEMS</h2>
  603.       <div class=\"flexWrap slider\">
  604.         {% for CategoryRecommendProduct in Pickup if Pickup %}
  605.         {% set Product = CategoryRecommendProduct %}
  606.         <div class=\"flex\">
  607.           {% set pickup_url = asset(Product.mainFileName|no_image_product, \"save_image\") %}
  608.           <a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"pickup-image\" style=\"background-image:url('{{ pickup_url }}')\"></a>
  609.           {% set brand = '' %}
  610.           {% for ProductCategory in Product.ProductCategories %}
  611.             {% if ProductCategory.Category.Parent and ProductCategory.Category.Parent.id == '3' %}
  612.               {% set brand = ProductCategory.Category.name %}
  613.             {% endif %}
  614.           {% endfor %}
  615.           <div class=\"flexTxt\">
  616.             <p class=\"txt12 ls6\">{{ brand }}</p>
  617.             <p class=\"txt18 ls6 mt15 mb20\">{{ Product.name }}</p>
  618.             <p class=\"txt14 ls6\">Price: {{ Product.getPrice02IncTaxMin|price }}</p>
  619.             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"buttonC mt-20\">DETAIL</a>
  620.           </div>
  621.         </div>
  622.         {% endfor %}
  623.       </div>
  624.       <div class=\"ec-modal\">
  625.         <input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
  626.         <div class=\"ec-modal-overlay\">
  627.             <label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
  628.             <div class=\"ec-modal-wrap\">
  629.                 <label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></label>
  630.                 <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  631.                 <div class=\"ec-modal-box\">
  632.                     <div class=\"ec-role\">
  633.                         <label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</label>
  634.                         <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  635.                     </div>
  636.                 </div>
  637.             </div>
  638.         </div>
  639.       </div>
  640.   </section>
  641. </div>
  642. <!-- NAVIGATION -->
  643. <div class=\"flex nav blog-navigation\">
  644.     {% if Blog.prev_link %}
  645.     <a href=\"{{ Blog.prev_link }}\">
  646.         <div class=\"flex button2\">
  647.             <div>
  648.                 <i class=\"fas fa-chevron-left\"></i>
  649.             </div>
  650.             <div>
  651.                 <p>前へ</p>
  652.             </div>
  653.         </div>
  654.     </a>
  655.     {% endif %}
  656.     <div>
  657.       <a href=\"{{ url('blog_list', {'shop': shop}) }}\" class=\"button2 buttonCustom\">一覧へ戻る</a>
  658.     </div>
  659.     {% if Blog.next_link %}
  660.     <a href=\"{{ Blog.next_link }}\">
  661.         <div class=\"flex button2\">
  662.             <div>
  663.                 <p>次へ</p>
  664.             </div>
  665.             <div>
  666.                 <i class=\"fas fa-chevron-right\"></i>
  667.             </div>
  668.         </div>
  669.     </a>
  670.     {% endif %}
  671. </div>
  672. {% endblock %}
  673. ""Blog/detail.twig""/home/idealinc/idealinc.xsrv.jp/public_html/online/app/template/idealinc/Blog/detail.twig");
  674.     }
  675. }