var/cache/dev/twig/30/3090ef404346918a656f7faeb6db0db8283ca4c0a03bd351a59dae6ef36df137.php line 55

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. /* category_detail.twig */
  14. class __TwigTemplate_bbad01e4004e9a0456a0826f87234d2998f08479988c2727f605aa6bbdb67b16 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  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""category_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""category_detail.twig"));
  40.         // line 13
  41.         $context["body_class"] = "category_detail";
  42.         // line 14
  43.         $context["childCategories"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\Category"]), "find", [=> twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'14$this->source); })()), "id", [], "any"falsefalsefalse14)], "method"falsefalsefalse14), "getDescendants", [], "method"falsefalsefalse14);
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""category_detail.twig"11);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 16
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 17
  61.         echo "<script type=\"text/javascript\">
  62. \$(function(){
  63.   \$('.mod_movie-btn-favorite').on('click', function(){
  64.     let loginStatus = ";
  65.         // line 20
  66.         echo (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) ? ("true") : ("false"));
  67.         echo ";
  68.     if(loginStatus){
  69.       let pid = \$(this).data('pid');
  70.       let tmpbtn = \$(this);
  71.       // tmpbtn.children(\"input\").prop('disabled', true);
  72.       tmpbtn.children(\"input\").attr('disabled', true);
  73.       if(tmpbtn.hasClass('favorite__del')){
  74.         \$.ajax({
  75.           url: \"";
  76.         // line 30
  77.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  78.         echo "refine_delete_favorite\",
  79.           type: 'GET',
  80.           dataType: 'text',
  81.           data: {id: pid}
  82.         })
  83.         .then(
  84.           function (data) {
  85.               tmpbtn.removeClass('favorite__del');
  86.               tmpbtn.addClass('favorite__add');
  87.           },
  88.           function () {
  89.               alert(\"処理に失敗しました。お手数ですが再度実行してください\");
  90.         });
  91.       } else {
  92.           \$.ajax({
  93.             url: \"";
  94.         // line 47
  95.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  96.         echo "products/add_favorite/\"+pid,
  97.             type: 'POST',
  98.           })
  99.           .then(
  100.             function (data) {
  101.                 tmpbtn.removeClass('favorite__add');
  102.                 tmpbtn.addClass('favorite__del');
  103.             },
  104.             function () {
  105.               alert(\"処理に失敗しました。お手数ですが再度実行してください\");
  106.           });
  107.       }
  108.       // tmpbtn.children(\"input\").prop('disabled', false);
  109.       tmpbtn.children(\"input\").attr('disabled', false);
  110.     } else {
  111.        location.href= \"";
  112.         // line 64
  113.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_delivery");
  114.         echo "\";
  115.     }
  116.   });
  117.   // 表示件数を変更
  118.   \$('.disp-number').change(function() {
  119.       var dispNumber = \$(this).val();
  120.       \$('#disp_number').val(dispNumber);
  121.       \$('#pageno').val(1);
  122.       \$(\"#form1\").submit();
  123.   });
  124.   // 並び順を変更
  125.   \$('.order-by').change(function() {
  126.       var orderBy = \$(this).val();
  127.       \$('#orderby').val(orderBy);
  128.       \$('#pageno').val(1);
  129.       \$(\"#form1\").submit();
  130.   });
  131. });
  132. </script>
  133. ";
  134.         
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  136.         
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  138.     }
  139.     // line 88
  140.     public function block_stylesheet($context, array $blocks = [])
  141.     {
  142.         $macros $this->macros;
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  145.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  147.         // line 89
  148.         echo "<style>
  149.   .ec-searchnavRole {
  150.     margin-top: 30px;
  151.   }
  152. </style>
  153. ";
  154.         
  155.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  156.         
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  158.     }
  159.     // line 96
  160.     public function block_main($context, array $blocks = [])
  161.     {
  162.         $macros $this->macros;
  163.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  165.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  167.         // line 97
  168.         echo "<div class=\"content__inner\">
  169.   <div class=\"mod_breadcrumb\">
  170.     <ul>
  171.       <li>
  172.         <a href=\"";
  173.         // line 101
  174.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  175.         echo "\">";
  176.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ホーム"), "html"nulltrue);
  177.         echo "</a>
  178.       </li>
  179.       <li>
  180.         <a href=\"";
  181.         // line 104
  182.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("category_list");
  183.         echo "\">";
  184.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カテゴリ一覧"), "html"nulltrue);
  185.         echo "</a>
  186.       </li>
  187.       ";
  188.         // line 107
  189.         echo "      ";
  190.         $context["parentCategory"] = twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'107$this->source); })()), "getParent", [], "any"falsefalsefalse107);
  191.         // line 108
  192.         echo "      ";
  193.         if ( !twig_test_empty((isset($context["parentCategory"]) || array_key_exists("parentCategory"$context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.'108$this->source); })()))) {
  194.             // line 109
  195.             echo "        <li><a href=\"";
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("categories/{category_id}", ["category_id" => twig_get_attribute($this->env$this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory"$context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.'109$this->source); })()), "id", [], "any"falsefalsefalse109)]), "html"nulltrue);
  197.             echo "\">";
  198.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory"$context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.'109$this->source); })()), "name", [], "any"falsefalsefalse109)), "html"nulltrue);
  199.             echo "</a></li>
  200.       ";
  201.         }
  202.         // line 111
  203.         echo "      <li>
  204.         <span>";
  205.         // line 112
  206.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'112$this->source); })()), "name", [], "any"falsefalsefalse112)), "html"nulltrue);
  207.         echo "</span>
  208.       </li>
  209.     </ul>
  210.   </div>
  211.   <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  212.     ";
  213.         // line 117
  214.         $context['_parent'] = $context;
  215.         $context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'117$this->source); })()));
  216.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  217.             // line 118
  218.             echo "      <input type=\"hidden\" id=\"";
  219.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse118), "id", [], "any"falsefalsefalse118), "html"nulltrue);
  220.             echo "\"
  221.         name=\"";
  222.             // line 119
  223.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse119), "full_name", [], "any"falsefalsefalse119), "html"nulltrue);
  224.             echo "\"
  225.         ";
  226.             // line 120
  227.             if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse120), "value", [], "any"falsefalsefalse120))) {
  228.                 echo "value=\"";
  229.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse120), "value", [], "any"falsefalsefalse120), "html"nulltrue);
  230.                 echo "\" ";
  231.             }
  232.             echo "/>
  233.     ";
  234.         }
  235.         $_parent $context['_parent'];
  236.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  237.         $context array_intersect_key($context$_parent) + $_parent;
  238.         // line 122
  239.         echo "  </form>
  240.   <div class=\"page__content\">
  241.     <h1>";
  242.         // line 124
  243.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'124$this->source); })()), "name", [], "any"falsefalsefalse124)), "html"nulltrue);
  244.         echo "</h1>
  245.     <div class=\"page__inner\">
  246.       <div class=\"ec-searchnavRole\" style=\"padding: 0;margin-top:0;\">
  247.         <div class=\"ec-searchnavRole__infos\" style=\"border: none;padding-top:0;\">
  248.           <div class=\"ec-searchnavRole__counter\">
  249.             ";
  250.         // line 130
  251.         if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'130$this->source); })()), "totalItemCount", [], "any"falsefalsefalse130) > 0)) {
  252.             // line 131
  253.             echo "            ";
  254.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の動画が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'131$this->source); })()), "totalItemCount", [], "any"falsefalsefalse131)]);
  255.             echo "
  256.             ";
  257.         } else {
  258.             // line 133
  259.             echo "            <span>";
  260.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの動画は見つかりませんでした"), "html"nulltrue);
  261.             echo "</span>
  262.             ";
  263.         }
  264.         // line 135
  265.         echo "          </div>
  266.           ";
  267.         // line 136
  268.         if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'136$this->source); })()), "totalItemCount", [], "any"falsefalsefalse136) > 0)) {
  269.             // line 137
  270.             echo "          <div class=\"ec-searchnavRole__actions\">
  271.             <div class=\"ec-select\">
  272.               ";
  273.             // line 139
  274.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["disp_number_form"]) || array_key_exists("disp_number_form"$context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.'139$this->source); })()), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  275.             echo "
  276.               ";
  277.             // line 140
  278.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["order_by_form"]) || array_key_exists("order_by_form"$context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.'140$this->source); })()), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  279.             echo "
  280.             </div>
  281.           </div>
  282.           ";
  283.         }
  284.         // line 144
  285.         echo "        </div>
  286.       </div>
  287.       ";
  288.         // line 147
  289.         if ((array_key_exists("childCategories"$context) && (twig_length_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'147$this->source); })())) > 0))) {
  290.             // line 148
  291.             echo "
  292.       ";
  293.             // line 150
  294.             echo "      ";
  295.             $context["cntTotalPublished"] = 0;
  296.             // line 151
  297.             echo "      ";
  298.             $context['_parent'] = $context;
  299.             $context['_seq'] = twig_ensure_traversable((isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'151$this->source); })()));
  300.             foreach ($context['_seq'] as $context["_key"] => $context["childCategory"]) {
  301.                 // line 152
  302.                 echo "        ";
  303.                 // line 153
  304.                 echo "        ";
  305.                 if ((((twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse153) != 7) && (twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse153) != 2)) && (twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse153) != 64))) {
  306.                     // line 154
  307.                     echo "          ";
  308.                     // line 155
  309.                     echo "          ";
  310.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["childCategory"], "ProductCategories", [], "any"falsefalsefalse155))) {
  311.                         // line 156
  312.                         echo "            ";
  313.                         $context['_parent'] = $context;
  314.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["childCategory"], "ProductCategories", [], "any"falsefalsefalse156));
  315.                         foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  316.                             // line 157
  317.                             echo "              ";
  318.                             $context["cntTotalPublished"] = ((isset($context["cntTotalPublished"]) || array_key_exists("cntTotalPublished"$context) ? $context["cntTotalPublished"] : (function () { throw new RuntimeError('Variable "cntTotalPublished" does not exist.'157$this->source); })()) + ((( !twig_test_empty(twig_get_attribute($this->env$this->source$context["ProductCategory"], "Product", [], "any"falsefalsefalse157)) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Product", [], "any"falsefalsefalse157), "Status", [], "any"falsefalsefalse157), "id", [], "any"falsefalsefalse157) == 1))) ? (1) : (0)));
  319.                             // line 158
  320.                             echo "            ";
  321.                         }
  322.                         $_parent $context['_parent'];
  323.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  324.                         $context array_intersect_key($context$_parent) + $_parent;
  325.                         // line 159
  326.                         echo "          ";
  327.                     }
  328.                     // line 160
  329.                     echo "        ";
  330.                 }
  331.                 // line 161
  332.                 echo "      ";
  333.             }
  334.             $_parent $context['_parent'];
  335.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childCategory'], $context['_parent'], $context['loop']);
  336.             $context array_intersect_key($context$_parent) + $_parent;
  337.             // line 162
  338.             echo "
  339.       ";
  340.             // line 164
  341.             echo "      ";
  342.             if (((isset($context["cntTotalPublished"]) || array_key_exists("cntTotalPublished"$context) ? $context["cntTotalPublished"] : (function () { throw new RuntimeError('Variable "cntTotalPublished" does not exist.'164$this->source); })()) > 0)) {
  343.                 // line 165
  344.                 echo "      <div class=\"mod_inpage-link\">
  345.         <h5>";
  346.                 // line 166
  347.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("さらに絞り込んで表示する"), "html"nulltrue);
  348.                 echo "</h5>
  349.         <ul>
  350.           ";
  351.                 // line 168
  352.                 $context['_parent'] = $context;
  353.                 $context['_seq'] = twig_ensure_traversable((isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'168$this->source); })()));
  354.                 foreach ($context['_seq'] as $context["_key"] => $context["childCategory"]) {
  355.                     // line 169
  356.                     echo "
  357.               ";
  358.                     // line 171
  359.                     echo "              ";
  360.                     if ((((twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse171) != 7) && (twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse171) != 2)) && (twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse171) != 64))) {
  361.                         // line 172
  362.                         echo "                ";
  363.                         $context["cntPublished"] = 0;
  364.                         // line 173
  365.                         echo "                ";
  366.                         // line 174
  367.                         echo "                ";
  368.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["childCategory"], "ProductCategories", [], "any"falsefalsefalse174))) {
  369.                             // line 175
  370.                             echo "                  ";
  371.                             $context['_parent'] = $context;
  372.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["childCategory"], "ProductCategories", [], "any"falsefalsefalse175));
  373.                             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  374.                                 // line 176
  375.                                 echo "                    ";
  376.                                 $context["cntPublished"] = ((isset($context["cntPublished"]) || array_key_exists("cntPublished"$context) ? $context["cntPublished"] : (function () { throw new RuntimeError('Variable "cntPublished" does not exist.'176$this->source); })()) + ((( !twig_test_empty(twig_get_attribute($this->env$this->source$context["ProductCategory"], "Product", [], "any"falsefalsefalse176)) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Product", [], "any"falsefalsefalse176), "Status", [], "any"falsefalsefalse176), "id", [], "any"falsefalsefalse176) == 1))) ? (1) : (0)));
  377.                                 // line 177
  378.                                 echo "                  ";
  379.                             }
  380.                             $_parent $context['_parent'];
  381.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  382.                             $context array_intersect_key($context$_parent) + $_parent;
  383.                             // line 178
  384.                             echo "                ";
  385.                         }
  386.                         // line 179
  387.                         echo "
  388.                 ";
  389.                         // line 180
  390.                         if (((isset($context["cntPublished"]) || array_key_exists("cntPublished"$context) ? $context["cntPublished"] : (function () { throw new RuntimeError('Variable "cntPublished" does not exist.'180$this->source); })()) > 0)) {
  391.                             // line 181
  392.                             echo "          <li>
  393.             <a href=\"";
  394.                             // line 182
  395.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("categories/{category_id}", ["category_id" => twig_get_attribute($this->env$this->source$context["childCategory"], "id", [], "any"falsefalsefalse182)]), "html"nulltrue);
  396.                             echo "\">";
  397.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["childCategory"], "name", [], "any"falsefalsefalse182)), "html"nulltrue);
  398.                             echo "</a>
  399.           </li>
  400.                 ";
  401.                         }
  402.                         // line 185
  403.                         echo "              ";
  404.                     }
  405.                     // line 186
  406.                     echo "          ";
  407.                 }
  408.                 $_parent $context['_parent'];
  409.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childCategory'], $context['_parent'], $context['loop']);
  410.                 $context array_intersect_key($context$_parent) + $_parent;
  411.                 // line 187
  412.                 echo "        </ul>
  413.       </div>
  414.       ";
  415.             }
  416.             // line 190
  417.             echo "
  418.       ";
  419.         }
  420.         // line 192
  421.         echo "      ";
  422.         if ((array_key_exists("pagination"$context) && (twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'192$this->source); })()), "totalItemCount", [], "any"falsefalsefalse192) > 0))) {
  423.             // line 193
  424.             echo "      <ul class=\"mod_movie-list\">
  425.         ";
  426.             // line 194
  427.             $context['_parent'] = $context;
  428.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'194$this->source); })()));
  429.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  430.                 // line 195
  431.                 echo "          ";
  432.                 $context["productClass"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "ProductClasses", [], "any"falsefalsefalse195), "get", [=> 0], "method"falsefalsefalse195);
  433.                 // line 196
  434.                 echo "          ";
  435.                 $context["videoContent"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["productClass"]) || array_key_exists("productClass"$context) ? $context["productClass"] : (function () { throw new RuntimeError('Variable "productClass" does not exist.'196$this->source); })()), "ProductClassContent", [], "any"falsefalsefalse196), "get", [=> 0], "method"falsefalsefalse196);
  436.                 // line 197
  437.                 echo "          ";
  438.                 // line 198
  439.                 echo "          ";
  440.                 if ( !twig_test_empty((isset($context["videoContent"]) || array_key_exists("videoContent"$context) ? $context["videoContent"] : (function () { throw new RuntimeError('Variable "videoContent" does not exist.'198$this->source); })()))) {
  441.                     // line 199
  442.                     echo "            ";
  443.                     $context["anker"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("video/{product_id}/content/{content_id}", ["product_id" => twig_get_attribute($this->env$this->source$context["item"], "id", [], "any"falsefalsefalse199), "content_id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoContent"]) || array_key_exists("videoContent"$context) ? $context["videoContent"] : (function () { throw new RuntimeError('Variable "videoContent" does not exist.'199$this->source); })()), "Content", [], "any"falsefalsefalse199), "id", [], "any"falsefalsefalse199)]);
  444.                     // line 200
  445.                     echo "          ";
  446.                 } else {
  447.                     // line 201
  448.                     echo "            ";
  449.                     $context["anker"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["item"], "id", [], "any"falsefalsefalse201)]);
  450.                     // line 202
  451.                     echo "          ";
  452.                 }
  453.                 // line 203
  454.                 echo "          ";
  455.                 $context["isFavorite"] = ( !twig_test_empty((isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'203$this->source); })())) && twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\CustomerFavoriteProduct"]), "isFavorite", [=> (isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'203$this->source); })()), => $context["item"]], "method"falsefalsefalse203));
  456.                 // line 204
  457.                 echo "
  458.           <li class=\"mod_movie-item\">
  459.             <div class=\"mod_movie-item-inner\">
  460.               <div class=\"mod_movie-img-wrapper\">
  461.                 <a href=\"";
  462.                 // line 208
  463.                 echo twig_escape_filter($this->env, (isset($context["anker"]) || array_key_exists("anker"$context) ? $context["anker"] : (function () { throw new RuntimeError('Variable "anker" does not exist.'208$this->source); })()), "html"nulltrue);
  464.                 echo "\">
  465.                   ";
  466.                 // line 209
  467.                 if ((twig_get_attribute($this->env$this->source$context["item"], "ProductImage", [], "any"truetruefalse209) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "ProductImage", [], "any"falsefalsefalse209)))) {
  468.                     // line 210
  469.                     echo "                    <img src=\"";
  470.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "ProductImage", [], "any"falsefalsefalse210), "get", [=> 0], "method"falsefalsefalse210), "save_image"), "html"nulltrue);
  471.                     echo "\" alt=\"Product.name\" />
  472.                   ";
  473.                 } else {
  474.                     // line 212
  475.                     echo "                    <img src=\"";
  476.                     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);
  477.                     echo "\" alt=\"\" />
  478.                   ";
  479.                 }
  480.                 // line 214
  481.                 echo "                </a>
  482.               </div>
  483.               <div class=\"mod_movie-text-wrapper\">
  484.                 <a href=\"";
  485.                 // line 217
  486.                 echo twig_escape_filter($this->env, (isset($context["anker"]) || array_key_exists("anker"$context) ? $context["anker"] : (function () { throw new RuntimeError('Variable "anker" does not exist.'217$this->source); })()), "html"nulltrue);
  487.                 echo "\" class=\"mod_movie-title\">";
  488.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse217)), "html"nulltrue);
  489.                 echo "</a>
  490.                 ";
  491.                 // line 218
  492.                 $context["searchWords"] = twig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "search_word", [], "any"falsefalsefalse218), ",");
  493.                 // line 219
  494.                 echo "                <ul class=\"mod_movie-keyword-list\">
  495.                   ";
  496.                 // line 220
  497.                 $context['_parent'] = $context;
  498.                 $context['_seq'] = twig_ensure_traversable((isset($context["searchWords"]) || array_key_exists("searchWords"$context) ? $context["searchWords"] : (function () { throw new RuntimeError('Variable "searchWords" does not exist.'220$this->source); })()));
  499.                 foreach ($context['_seq'] as $context["_key"] => $context["word"]) {
  500.                     // line 221
  501.                     echo "                    ";
  502.                     if ( !twig_test_empty($context["word"])) {
  503.                         // line 222
  504.                         echo "                    <li class=\"mod_movie-keyword-item\">
  505.                       <span>";
  506.                         // line 223
  507.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["word"]), "html"nulltrue);
  508.                         echo "</span>
  509.                     </li>
  510.                     ";
  511.                     }
  512.                     // line 226
  513.                     echo "                  ";
  514.                 }
  515.                 $_parent $context['_parent'];
  516.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['word'], $context['_parent'], $context['loop']);
  517.                 $context array_intersect_key($context$_parent) + $_parent;
  518.                 // line 227
  519.                 echo "                </ul>
  520.                 <div class=\"mod_movie-btn-wrapper\">
  521.                   <div class=\"mod_movie-btn-favorite ";
  522.                 // line 229
  523.                 echo ((((isset($context["isFavorite"]) || array_key_exists("isFavorite"$context) ? $context["isFavorite"] : (function () { throw new RuntimeError('Variable "isFavorite" does not exist.'229$this->source); })()) == 1)) ? ("favorite__del") : ("favorite__add"));
  524.                 echo "\" data-pid=\"";
  525.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "id", [], "any"falsefalsefalse229), "html"nulltrue);
  526.                 echo "\">
  527.                   ";
  528.                 // line 231
  529.                 echo "                    ";
  530.                 // line 240
  531.                 echo "
  532.                     ";
  533.                 // line 242
  534.                 echo "                        <input type=\"button\" class=\"favorite-btn\" value=\"";
  535.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("見たい授業"), "html"nulltrue);
  536.                 echo "\" />
  537.                     ";
  538.                 // line 246
  539.                 echo "                  </div>
  540.                   <a href=\"";
  541.                 // line 247
  542.                 echo twig_escape_filter($this->env, (isset($context["anker"]) || array_key_exists("anker"$context) ? $context["anker"] : (function () { throw new RuntimeError('Variable "anker" does not exist.'247$this->source); })()), "html"nulltrue);
  543.                 echo "\" class=\"mod_movie-btn-watch\">
  544.                     <span>";
  545.                 // line 248
  546.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("見る"), "html"nulltrue);
  547.                 echo "</span>
  548.                   </a>
  549.                 </div>
  550.               </div>
  551.             </div>
  552.           </li>
  553.         ";
  554.             }
  555.             $_parent $context['_parent'];
  556.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  557.             $context array_intersect_key($context$_parent) + $_parent;
  558.             // line 255
  559.             echo "      </ul>
  560.       ";
  561.         }
  562.         // line 257
  563.         echo "    </div>
  564.     ";
  565.         // line 259
  566.         $this->loadTemplate("category_pager.twig""category_detail.twig"259)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'259$this->source); })()), "paginationData", [], "any"falsefalsefalse259)]));
  567.         // line 260
  568.         echo "
  569.     <div class=\"page__inner\">
  570.       <h2 class=\"mod_movie-h2\">
  571.         ";
  572.         // line 263
  573.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カテゴリ一覧"), "html"nulltrue);
  574.         echo "
  575.       </h2>
  576.       <div class=\"mod_movie-btn-more\">
  577.         <a href=\"";
  578.         // line 266
  579.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("category_list");
  580.         echo "\">";
  581.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カテゴリ一覧に戻る"), "html"nulltrue);
  582.         echo "</a>
  583.       </div>
  584.     </div>
  585.   </div>
  586. </div>
  587. ";
  588.         
  589.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  590.         
  591.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  592.     }
  593.     public function getTemplateName()
  594.     {
  595.         return "category_detail.twig";
  596.     }
  597.     public function isTraitable()
  598.     {
  599.         return false;
  600.     }
  601.     public function getDebugInfo()
  602.     {
  603.         return array (  615 => 266,  609 => 263,  604 => 260,  602 => 259,  598 => 257,  594 => 255,  581 => 248,  577 => 247,  574 => 246,  569 => 242,  566 => 240,  564 => 231,  558 => 229,  554 => 227,  548 => 226,  542 => 223,  539 => 222,  536 => 221,  532 => 220,  529 => 219,  527 => 218,  521 => 217,  516 => 214,  510 => 212,  504 => 210,  502 => 209,  498 => 208,  492 => 204,  489 => 203,  486 => 202,  483 => 201,  480 => 200,  477 => 199,  474 => 198,  472 => 197,  469 => 196,  466 => 195,  462 => 194,  459 => 193,  456 => 192,  452 => 190,  447 => 187,  441 => 186,  438 => 185,  430 => 182,  427 => 181,  425 => 180,  422 => 179,  419 => 178,  413 => 177,  410 => 176,  405 => 175,  402 => 174,  400 => 173,  397 => 172,  394 => 171,  391 => 169,  387 => 168,  382 => 166,  379 => 165,  376 => 164,  373 => 162,  367 => 161,  364 => 160,  361 => 159,  355 => 158,  352 => 157,  347 => 156,  344 => 155,  342 => 154,  339 => 153,  337 => 152,  332 => 151,  329 => 150,  326 => 148,  324 => 147,  319 => 144,  312 => 140,  308 => 139,  304 => 137,  302 => 136,  299 => 135,  293 => 133,  287 => 131,  285 => 130,  276 => 124,  272 => 122,  260 => 120,  256 => 119,  251 => 118,  247 => 117,  239 => 112,  236 => 111,  228 => 109,  225 => 108,  222 => 107,  215 => 104,  207 => 101,  201 => 97,  191 => 96,  176 => 89,  166 => 88,  133 => 64,  113 => 47,  93 => 30,  80 => 20,  75 => 17,  65 => 16,  54 => 11,  52 => 14,  50 => 13,  37 => 11,);
  604.     }
  605.     public function getSourceContext()
  606.     {
  607.         return new Source("{#
  608. This file is part of EC-CUBE
  609. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  610. http://www.ec-cube.co.jp/
  611. For the full copyright and license information, please view the LICENSE
  612. file that was distributed with this source code.
  613. #}
  614. {% extends 'default_frame.twig' %}
  615. {% set body_class = 'category_detail' %}
  616. {% set childCategories = repository('Eccube\\\\Entity\\\\Category').find(category.id).getDescendants() %}
  617. {% block javascript %}
  618. <script type=\"text/javascript\">
  619. \$(function(){
  620.   \$('.mod_movie-btn-favorite').on('click', function(){
  621.     let loginStatus = {{ is_granted('ROLE_USER') ? 'true' : 'false' }};
  622.     if(loginStatus){
  623.       let pid = \$(this).data('pid');
  624.       let tmpbtn = \$(this);
  625.       // tmpbtn.children(\"input\").prop('disabled', true);
  626.       tmpbtn.children(\"input\").attr('disabled', true);
  627.       if(tmpbtn.hasClass('favorite__del')){
  628.         \$.ajax({
  629.           url: \"{{ url('homepage') }}refine_delete_favorite\",
  630.           type: 'GET',
  631.           dataType: 'text',
  632.           data: {id: pid}
  633.         })
  634.         .then(
  635.           function (data) {
  636.               tmpbtn.removeClass('favorite__del');
  637.               tmpbtn.addClass('favorite__add');
  638.           },
  639.           function () {
  640.               alert(\"処理に失敗しました。お手数ですが再度実行してください\");
  641.         });
  642.       } else {
  643.           \$.ajax({
  644.             url: \"{{ url('homepage') }}products/add_favorite/\"+pid,
  645.             type: 'POST',
  646.           })
  647.           .then(
  648.             function (data) {
  649.                 tmpbtn.removeClass('favorite__add');
  650.                 tmpbtn.addClass('favorite__del');
  651.             },
  652.             function () {
  653.               alert(\"処理に失敗しました。お手数ですが再度実行してください\");
  654.           });
  655.       }
  656.       // tmpbtn.children(\"input\").prop('disabled', false);
  657.       tmpbtn.children(\"input\").attr('disabled', false);
  658.     } else {
  659.        location.href= \"{{ url('mypage_delivery') }}\";
  660.     }
  661.   });
  662.   // 表示件数を変更
  663.   \$('.disp-number').change(function() {
  664.       var dispNumber = \$(this).val();
  665.       \$('#disp_number').val(dispNumber);
  666.       \$('#pageno').val(1);
  667.       \$(\"#form1\").submit();
  668.   });
  669.   // 並び順を変更
  670.   \$('.order-by').change(function() {
  671.       var orderBy = \$(this).val();
  672.       \$('#orderby').val(orderBy);
  673.       \$('#pageno').val(1);
  674.       \$(\"#form1\").submit();
  675.   });
  676. });
  677. </script>
  678. {% endblock %}
  679. {% block stylesheet %}
  680. <style>
  681.   .ec-searchnavRole {
  682.     margin-top: 30px;
  683.   }
  684. </style>
  685. {% endblock %}
  686. {% block main %}
  687. <div class=\"content__inner\">
  688.   <div class=\"mod_breadcrumb\">
  689.     <ul>
  690.       <li>
  691.         <a href=\"{{ url('homepage') }}\">{{ 'ホーム'|trans }}</a>
  692.       </li>
  693.       <li>
  694.         <a href=\"{{ url('category_list') }}\">{{ 'カテゴリ一覧'|trans }}</a>
  695.       </li>
  696.       {# 親カテゴリの設定 #}
  697.       {% set parentCategory = category.getParent %}
  698.       {% if parentCategory is not empty %}
  699.         <li><a href=\"{{ url('categories/{category_id}', { 'category_id': parentCategory.id }) }}\">{{ parentCategory.name|trans }}</a></li>
  700.       {% endif %}
  701.       <li>
  702.         <span>{{ category.name|trans }}</span>
  703.       </li>
  704.     </ul>
  705.   </div>
  706.   <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  707.     {% for item in search_form %}
  708.       <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  709.         name=\"{{ item.vars.full_name }}\"
  710.         {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  711.     {% endfor %}
  712.   </form>
  713.   <div class=\"page__content\">
  714.     <h1>{{ category.name|trans }}</h1>
  715.     <div class=\"page__inner\">
  716.       <div class=\"ec-searchnavRole\" style=\"padding: 0;margin-top:0;\">
  717.         <div class=\"ec-searchnavRole__infos\" style=\"border: none;padding-top:0;\">
  718.           <div class=\"ec-searchnavRole__counter\">
  719.             {% if pagination.totalItemCount > 0 %}
  720.             {{ '<span class=\"ec-font-bold\">%count%件</span><span>の動画が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  721.             {% else %}
  722.             <span>{{ 'お探しの動画は見つかりませんでした'|trans }}</span>
  723.             {% endif %}
  724.           </div>
  725.           {% if pagination.totalItemCount > 0 %}
  726.           <div class=\"ec-searchnavRole__actions\">
  727.             <div class=\"ec-select\">
  728.               {{ form_widget(disp_number_form, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  729.               {{ form_widget(order_by_form, {'id': '', 'attr': {'class': 'order-by'}}) }}
  730.             </div>
  731.           </div>
  732.           {% endif %}
  733.         </div>
  734.       </div>
  735.       {% if childCategories is defined and childCategories|length > 0 %}
  736.       {# 表示用計算 #}
  737.       {% set cntTotalPublished = 0 %}
  738.       {% for childCategory in childCategories %}
  739.         {# サブスクリプション, 新入荷, 講師は除く #}
  740.         {% if childCategory.id != 7 and childCategory.id != 2 and childCategory.id != 64 %}
  741.           {# 公開のみカウント #}
  742.           {% if childCategory.ProductCategories is not empty %}
  743.             {% for ProductCategory in childCategory.ProductCategories %}
  744.               {% set cntTotalPublished = cntTotalPublished + (ProductCategory.Product is not empty and ProductCategory.Product.Status.id == 1 ? 1 : 0) %}
  745.             {% endfor %}
  746.           {% endif %}
  747.         {% endif %}
  748.       {% endfor %}
  749.       {# カテゴリに紐付いた記事があれば表示 #}
  750.       {% if (cntTotalPublished > 0) %}
  751.       <div class=\"mod_inpage-link\">
  752.         <h5>{{ 'さらに絞り込んで表示する'|trans }}</h5>
  753.         <ul>
  754.           {% for childCategory in childCategories %}
  755.               {# サブスクリプション, 新入荷, 講師は除く #}
  756.               {% if childCategory.id != 7 and childCategory.id != 2 and childCategory.id != 64 %}
  757.                 {% set cntPublished = 0 %}
  758.                 {# 公開のみカウント #}
  759.                 {% if childCategory.ProductCategories is not empty %}
  760.                   {% for ProductCategory in childCategory.ProductCategories %}
  761.                     {% set cntPublished = cntPublished + (ProductCategory.Product is not empty and ProductCategory.Product.Status.id == 1 ? 1 : 0) %}
  762.                   {% endfor %}
  763.                 {% endif %}
  764.                 {% if (cntPublished > 0) %}
  765.           <li>
  766.             <a href=\"{{ url('categories/{category_id}', { 'category_id': childCategory.id }) }}\">{{ childCategory.name|trans }}</a>
  767.           </li>
  768.                 {% endif %}
  769.               {% endif %}
  770.           {% endfor %}
  771.         </ul>
  772.       </div>
  773.       {% endif %}
  774.       {% endif %}
  775.       {% if pagination is defined and pagination.totalItemCount > 0 %}
  776.       <ul class=\"mod_movie-list\">
  777.         {% for item in pagination %}
  778.           {% set productClass = item.ProductClasses.get(0) %}
  779.           {% set videoContent = productClass.ProductClassContent.get(0) %}
  780.           {# 通常は動画閲覧画面、コンテンツがない場合は商品詳細へ #}
  781.           {% if videoContent is not empty %}
  782.             {% set anker = url('video/{product_id}/content/{content_id}', {'product_id': item.id, 'content_id': videoContent.Content.id}) %}
  783.           {% else %}
  784.             {% set anker = url('product_detail', {id: item.id}) %}
  785.           {% endif %}
  786.           {% set isFavorite = customer is not empty and repository('Eccube\\\\Entity\\\\CustomerFavoriteProduct').isFavorite(customer, item) %}
  787.           <li class=\"mod_movie-item\">
  788.             <div class=\"mod_movie-item-inner\">
  789.               <div class=\"mod_movie-img-wrapper\">
  790.                 <a href=\"{{ anker }}\">
  791.                   {% if item.ProductImage is defined and item.ProductImage is not empty %}
  792.                     <img src=\"{{ asset(item.ProductImage.get(0), 'save_image') }}\" alt=\"Product.name\" />
  793.                   {% else %}
  794.                     <img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"\" />
  795.                   {% endif %}
  796.                 </a>
  797.               </div>
  798.               <div class=\"mod_movie-text-wrapper\">
  799.                 <a href=\"{{ anker }}\" class=\"mod_movie-title\">{{ item.name|trans }}</a>
  800.                 {% set searchWords = item.search_word|split(',') %}
  801.                 <ul class=\"mod_movie-keyword-list\">
  802.                   {% for word in searchWords %}
  803.                     {% if word is not empty %}
  804.                     <li class=\"mod_movie-keyword-item\">
  805.                       <span>{{ word|trans }}</span>
  806.                     </li>
  807.                     {% endif %}
  808.                   {% endfor %}
  809.                 </ul>
  810.                 <div class=\"mod_movie-btn-wrapper\">
  811.                   <div class=\"mod_movie-btn-favorite {{ (isFavorite == 1) ? 'favorite__del': 'favorite__add' }}\" data-pid=\"{{ item.id }}\">
  812.                   {# 一旦全部見たい授業とする #}
  813.                     {# {% if isFavorite and false %}
  814.                     <form action=\"{{ url('refine_delete_favorite', {id:item.id}) }}\" method=\"post\">
  815.                       <input type=\"submit\" value=\"{{ '見たい授業'|trans }}\" />
  816.                     </form>
  817.                     {% else %}
  818.                     <form action=\"{{ url('product_add_favorite', {id:item.id}) }}\" method=\"post\">
  819.                       <input type=\"submit\" value=\"{{ '見たい授業'|trans }}\" />
  820.                     </form>
  821.                     {% endif %} #}
  822.                     {# {% if isFavorite == 1 %} #}
  823.                         <input type=\"button\" class=\"favorite-btn\" value=\"{{ '見たい授業'|trans }}\" />
  824.                     {# {% else %}
  825.                         <input type=\"button\" class=\"favorite-btn\" value=\"{{ '見たい授業'|trans }}\" />
  826.                     {% endif %} #}
  827.                   </div>
  828.                   <a href=\"{{ anker }}\" class=\"mod_movie-btn-watch\">
  829.                     <span>{{ '見る'|trans }}</span>
  830.                   </a>
  831.                 </div>
  832.               </div>
  833.             </div>
  834.           </li>
  835.         {% endfor %}
  836.       </ul>
  837.       {% endif %}
  838.     </div>
  839.     {% include \"category_pager.twig\" with {'pages': pagination.paginationData} %}
  840.     <div class=\"page__inner\">
  841.       <h2 class=\"mod_movie-h2\">
  842.         {{ 'カテゴリ一覧'|trans }}
  843.       </h2>
  844.       <div class=\"mod_movie-btn-more\">
  845.         <a href=\"{{ url('category_list') }}\">{{ 'カテゴリ一覧に戻る'|trans }}</a>
  846.       </div>
  847.     </div>
  848.   </div>
  849. </div>
  850. {% endblock %}
  851. ""category_detail.twig""/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/template/default/category_detail.twig");
  852.     }
  853. }