var/cache/dev/twig/30/30dd993e2c44122a8a8cf51101c2265b37a9b42fd12a9248364a156c2ec769cc.php line 51

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. /* Recipe/Resource/template/default/index.twig */
  14. class __TwigTemplate_dac34a8da39b2733c000ace70057c179fed2b7b018ac41c5e44d23b7ab02e5aa 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.             'main' => [$this'block_main'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Recipe/Resource/template/default/index.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Recipe/Resource/template/default/index.twig"));
  41.         $this->parent $this->loadTemplate("default_frame.twig""Recipe/Resource/template/default/index.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_stylesheet($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         // line 4
  57.         echo "    <link rel=\"stylesheet\" href=\"";
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("Recipe/assets/default/css/recipe.css""plugin"), "html"nulltrue);
  59.         echo "\">
  60. ";
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  65.     }
  66.     // line 7
  67.     public function block_main($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  74.         // line 8
  75.         echo "<section class=\"p-lower-mv\">
  76.   <div class=\"inner\">
  77.     <h2 class=\"p-lower-mv-title\"><span>レシピ一覧</span></h2>
  78.     <div class=\"under bread_wrap\">
  79.       <ol itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  80.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  81.           <a itemprop=\"item\" href=\"";
  82.         // line 14
  83.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  84.         echo "\">
  85.             <span class=\"freight-neo-pro\" itemprop=\"name\">TOP</span>
  86.           </a>
  87.           <meta itemprop=\"position\" content=\"1\" />
  88.         </li>
  89.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  90.           <a itemprop=\"item\" href=\"";
  91.         // line 20
  92.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe");
  93.         echo "\">
  94.             <span class=\"freight-neo-pro\" itemprop=\"name\">レシピ一覧</span>
  95.           </a>
  96.           <meta itemprop=\"position\" content=\"2\" />
  97.         </li>
  98.       </ol>
  99.     </div>
  100.     <!-- /.bread_wrap -->
  101.   </div>
  102. </section>
  103. ";
  104.         // line 31
  105.         $this->loadTemplate("@Recipe/default/recipe_search.twig""Recipe/Resource/template/default/index.twig"31)->display(twig_array_merge($context, ["search_form" => (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'31$this->source); })())]));
  106.         // line 32
  107.         echo "
  108. <section class=\"recipe\">
  109.   <div class=\"inner\">
  110.     <!-- <p class=\"preparation\">ただいま準備中です。</p> -->
  111.     <article class=\"recipe-article\">
  112.       <div class=\"recipe-article-head\">
  113.         <h3 class=\"recipe-article-title\">";
  114.         // line 38
  115.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'38$this->source); })()), 38$this->source), "html"nulltrue);
  116.         echo "</h3>
  117.         <div class=\"recipe-search-result\"><span class=\"number\">";
  118.         // line 39
  119.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'39$this->source); })()), "totalItemCount", [], "any"falsefalsetrue39), 39$this->source), "html"nulltrue);
  120.         echo "</span>件</div>
  121.         <div class=\"recipe-switch\">
  122.           ";
  123.         // line 41
  124.         if ((isset($context["filterFlg"]) || array_key_exists("filterFlg"$context) ? $context["filterFlg"] : (function () { throw new RuntimeError('Variable "filterFlg" does not exist.'41$this->source); })())) {
  125.             // line 42
  126.             echo "            <a href=\"";
  127.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe");
  128.             echo "\" class=\"is-active\">絞り込み解除</a>
  129.           ";
  130.         }
  131.         // line 44
  132.         echo "        </div>
  133.       </div>
  134.       <div class=\"recipe-article-body\">
  135.         <ul class=\"recipe-list\">
  136.           ";
  137.         // line 48
  138.         $context['_parent'] = $context;
  139.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'48$this->source); })()));
  140.         foreach ($context['_seq'] as $context["_key"] => $context["Recipe"]) {
  141.             // line 49
  142.             echo "          <li class=\"recipe-item p-recipe-box\">
  143.             <a href=\"";
  144.             // line 50
  145.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe_detail", ["id" => twig_get_attribute($this->env$this->source$context["Recipe"], "id", [], "any"falsefalsetrue50)]), "html"nulltrue);
  146.             echo "\">
  147.               <div class=\"recipe-head\">
  148.                 ";
  149.             // line 52
  150.             if (((((twig_get_attribute($this->env$this->source$context["Recipe"], "RecipeBadge", [], "any"truetruetrue52) &&  !(null === twig_get_attribute($this->env$this->source,             // line 53
  151. $context["Recipe"], "RecipeBadge", [], "any"falsefalsetrue53))) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 54
  152. $context["Recipe"], "RecipeBadge", [], "any"falsetruetrue54), "name", [], "any"truetruetrue54)) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 55
  153. $context["Recipe"], "RecipeBadge", [], "any"falsefalsetrue55), "name", [], "any"falsefalsetrue55))) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 56
  154. $context["Recipe"], "RecipeBadge", [], "any"falsefalsetrue56), "filename", [], "any"falsefalsetrue56) != ""))) {
  155.                 // line 57
  156.                 echo "                  <div class=\"recipe-badge\">
  157.                     <img
  158.                         src=\"";
  159.                 // line 59
  160.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Recipe"], "RecipeBadge", [], "any"falsefalsetrue59), "filename", [], "any"falsefalsetrue59), 59$this->source)), "save_image"), "html"nulltrue);
  161.                 echo "\"
  162.                         alt=\"";
  163.                 // line 60
  164.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Recipe"], "RecipeBadge", [], "any"falsefalsetrue60), "name", [], "any"falsefalsetrue60), 60$this->source), "html"nulltrue);
  165.                 echo "\">
  166.                   </div>
  167.                 ";
  168.             }
  169.             // line 63
  170.             echo "                <img
  171.                     src=\"";
  172.             // line 64
  173.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Recipe"], "mainListImage", [], "any"falsefalsetrue64), 64$this->source)), "save_image"), "html"nulltrue);
  174.             echo "\"
  175.                     alt=\"";
  176.             // line 65
  177.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Recipe"], "name", [], "any"falsefalsetrue65), 65$this->source), "html"nulltrue);
  178.             echo "\">
  179.               </div>
  180.               <div class=\"recipe-body\">
  181.                 <h3 class=\"recipe-name\">";
  182.             // line 68
  183.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Recipe"], "name", [], "any"falsefalsetrue68), 68$this->source), "html"nulltrue);
  184.             echo "</h3>
  185.                 ";
  186.             // line 69
  187.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["Recipe"], "RelatedProducts", [], "any"falsefalsetrue69)) > 0)) {
  188.                 // line 70
  189.                 echo "                <p class=\"recipe-product\">使用した商品:";
  190.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Recipe"], "RelatedProducts", [], "any"falsefalsetrue70), 0, [], "array"falsefalsetrue70), "ChildProduct", [], "any"falsefalsetrue70), "name", [], "any"falsefalsetrue70), 70$this->source), "html"nulltrue);
  191.                 echo "</p>
  192.                 ";
  193.             }
  194.             // line 72
  195.             echo "                <div class=\"recipe-wrap\">
  196.                   <p class=\"recipe-time\"><span>";
  197.             // line 73
  198.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Recipe"], "minute", [], "any"falsefalsetrue73), 73$this->source), "html"nulltrue);
  199.             echo "</span>分</p>
  200.                   <p class=\"recipe-calorie\"><span>";
  201.             // line 74
  202.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Recipe"], "energy", [], "any"falsefalsetrue74), 74$this->source), "html"nulltrue);
  203.             echo "</span>kcal</p>
  204.                 </div>
  205.                 <ul class=\"recipe-tag-list\">
  206.                   ";
  207.             // line 77
  208.             $context['_parent'] = $context;
  209.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Recipe"], "tags", [], "any"falsefalsetrue77));
  210.             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  211.                 // line 78
  212.                 echo "                    <li class=\"recipe-tag-item\">♯";
  213.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsetrue78), 78$this->source), "html"nulltrue);
  214.                 echo "</li>
  215.                   ";
  216.             }
  217.             $_parent $context['_parent'];
  218.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  219.             $context array_intersect_key($context$_parent) + $_parent;
  220.             // line 80
  221.             echo "                </ul>
  222.                 <ul class=\"material-list\">
  223.                   ";
  224.             // line 82
  225.             $context['_parent'] = $context;
  226.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Recipe"], "categorys", [], "any"falsefalsetrue82));
  227.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  228.                 // line 83
  229.                 echo "                    <li class=\"material-item\">";
  230.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue83), 83$this->source), "html"nulltrue);
  231.                 echo "</li>
  232.                   ";
  233.             }
  234.             $_parent $context['_parent'];
  235.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  236.             $context array_intersect_key($context$_parent) + $_parent;
  237.             // line 85
  238.             echo "                  ";
  239.             $context['_parent'] = $context;
  240.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Recipe"], "materials", [], "any"falsefalsetrue85));
  241.             foreach ($context['_seq'] as $context["_key"] => $context["material"]) {
  242.                 // line 86
  243.                 echo "                    <li class=\"material-item\">";
  244.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["material"], "name", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  245.                 echo "</li>
  246.                   ";
  247.             }
  248.             $_parent $context['_parent'];
  249.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['material'], $context['_parent'], $context['loop']);
  250.             $context array_intersect_key($context$_parent) + $_parent;
  251.             // line 88
  252.             echo "                </ul>
  253.               </div>
  254.             </a>
  255.           </li>
  256.           ";
  257.         }
  258.         $_parent $context['_parent'];
  259.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Recipe'], $context['_parent'], $context['loop']);
  260.         $context array_intersect_key($context$_parent) + $_parent;
  261.         // line 93
  262.         echo "        </ul>
  263.       </div>
  264.       <div class=\"p-pagination\">
  265.         ";
  266.         // line 96
  267.         $this->loadTemplate("@Recipe/default/pager.twig""Recipe/Resource/template/default/index.twig"96)->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.'96$this->source); })()), "paginationData", [], "any"falsefalsetrue96)]));
  268.         // line 97
  269.         echo "      </div>
  270.     </article>
  271.   </div>
  272. </section>
  273. ";
  274.         
  275.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  276.         
  277.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  278.     }
  279.     public function getTemplateName()
  280.     {
  281.         return "Recipe/Resource/template/default/index.twig";
  282.     }
  283.     public function isTraitable()
  284.     {
  285.         return false;
  286.     }
  287.     public function getDebugInfo()
  288.     {
  289.         return array (  289 => 97,  287 => 96,  282 => 93,  272 => 88,  263 => 86,  258 => 85,  249 => 83,  245 => 82,  241 => 80,  232 => 78,  228 => 77,  222 => 74,  218 => 73,  215 => 72,  209 => 70,  207 => 69,  203 => 68,  197 => 65,  193 => 64,  190 => 63,  184 => 60,  180 => 59,  176 => 57,  174 => 56,  173 => 55,  172 => 54,  171 => 53,  170 => 52,  165 => 50,  162 => 49,  158 => 48,  152 => 44,  146 => 42,  144 => 41,  139 => 39,  135 => 38,  127 => 32,  125 => 31,  111 => 20,  102 => 14,  94 => 8,  84 => 7,  71 => 4,  61 => 3,  38 => 1,);
  290.     }
  291.     public function getSourceContext()
  292.     {
  293.         return new Source("{% extends 'default_frame.twig' %}
  294. {% block stylesheet %}
  295.     <link rel=\"stylesheet\" href=\"{{ asset('Recipe/assets/default/css/recipe.css' , 'plugin') }}\">
  296. {% endblock stylesheet %}
  297. {% block main %}
  298. <section class=\"p-lower-mv\">
  299.   <div class=\"inner\">
  300.     <h2 class=\"p-lower-mv-title\"><span>レシピ一覧</span></h2>
  301.     <div class=\"under bread_wrap\">
  302.       <ol itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  303.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  304.           <a itemprop=\"item\" href=\"{{ url('homepage') }}\">
  305.             <span class=\"freight-neo-pro\" itemprop=\"name\">TOP</span>
  306.           </a>
  307.           <meta itemprop=\"position\" content=\"1\" />
  308.         </li>
  309.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  310.           <a itemprop=\"item\" href=\"{{ url('recipe') }}\">
  311.             <span class=\"freight-neo-pro\" itemprop=\"name\">レシピ一覧</span>
  312.           </a>
  313.           <meta itemprop=\"position\" content=\"2\" />
  314.         </li>
  315.       </ol>
  316.     </div>
  317.     <!-- /.bread_wrap -->
  318.   </div>
  319. </section>
  320. {% include \"@Recipe/default/recipe_search.twig\" with {'search_form': search_form} %}
  321. <section class=\"recipe\">
  322.   <div class=\"inner\">
  323.     <!-- <p class=\"preparation\">ただいま準備中です。</p> -->
  324.     <article class=\"recipe-article\">
  325.       <div class=\"recipe-article-head\">
  326.         <h3 class=\"recipe-article-title\">{{ subtitle }}</h3>
  327.         <div class=\"recipe-search-result\"><span class=\"number\">{{ pagination.totalItemCount }}</span>件</div>
  328.         <div class=\"recipe-switch\">
  329.           {% if filterFlg %}
  330.             <a href=\"{{ url('recipe') }}\" class=\"is-active\">絞り込み解除</a>
  331.           {% endif %}
  332.         </div>
  333.       </div>
  334.       <div class=\"recipe-article-body\">
  335.         <ul class=\"recipe-list\">
  336.           {% for Recipe in pagination %}
  337.           <li class=\"recipe-item p-recipe-box\">
  338.             <a href=\"{{ url('recipe_detail', {'id': Recipe.id}) }}\">
  339.               <div class=\"recipe-head\">
  340.                 {% if Recipe.RecipeBadge is defined and
  341.                       Recipe.RecipeBadge is not null and
  342.                       Recipe.RecipeBadge.name is defined and
  343.                       Recipe.RecipeBadge.name is not null and
  344.                       Recipe.RecipeBadge.filename != '' %}
  345.                   <div class=\"recipe-badge\">
  346.                     <img
  347.                         src=\"{{ asset(Recipe.RecipeBadge.filename|no_image_product, 'save_image') }}\"
  348.                         alt=\"{{ Recipe.RecipeBadge.name }}\">
  349.                   </div>
  350.                 {% endif %}
  351.                 <img
  352.                     src=\"{{ asset(Recipe.mainListImage|no_image_product, 'save_image') }}\"
  353.                     alt=\"{{ Recipe.name }}\">
  354.               </div>
  355.               <div class=\"recipe-body\">
  356.                 <h3 class=\"recipe-name\">{{ Recipe.name }}</h3>
  357.                 {% if Recipe.RelatedProducts|length > 0 %}
  358.                 <p class=\"recipe-product\">使用した商品:{{ Recipe.RelatedProducts[0].ChildProduct.name }}</p>
  359.                 {% endif %}
  360.                 <div class=\"recipe-wrap\">
  361.                   <p class=\"recipe-time\"><span>{{ Recipe.minute }}</span>分</p>
  362.                   <p class=\"recipe-calorie\"><span>{{ Recipe.energy }}</span>kcal</p>
  363.                 </div>
  364.                 <ul class=\"recipe-tag-list\">
  365.                   {% for tag in Recipe.tags %}
  366.                     <li class=\"recipe-tag-item\">♯{{ tag.name }}</li>
  367.                   {% endfor %}
  368.                 </ul>
  369.                 <ul class=\"material-list\">
  370.                   {% for category in Recipe.categorys %}
  371.                     <li class=\"material-item\">{{ category.name }}</li>
  372.                   {% endfor %}
  373.                   {% for material in Recipe.materials %}
  374.                     <li class=\"material-item\">{{ material.name }}</li>
  375.                   {% endfor %}
  376.                 </ul>
  377.               </div>
  378.             </a>
  379.           </li>
  380.           {% endfor %}
  381.         </ul>
  382.       </div>
  383.       <div class=\"p-pagination\">
  384.         {% include \"@Recipe/default/pager.twig\" with {'pages': pagination.paginationData} %}
  385.       </div>
  386.     </article>
  387.   </div>
  388. </section>
  389. {% endblock %}
  390. ""Recipe/Resource/template/default/index.twig""/var/www/html/app/template/default/Recipe/Resource/template/default/index.twig");
  391.     }
  392.     
  393.     public function checkSecurity()
  394.     {
  395.         static $tags = array("include" => 31"if" => 41"for" => 48);
  396.         static $filters = array("escape" => 4"no_image_product" => 59"length" => 69);
  397.         static $functions = array("asset" => 4"url" => 14);
  398.         try {
  399.             $this->sandbox->checkSecurity(
  400.                 ['include''if''for'],
  401.                 ['escape''no_image_product''length'],
  402.                 ['asset''url']
  403.             );
  404.         } catch (SecurityError $e) {
  405.             $e->setSourceContext($this->source);
  406.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  407.                 $e->setTemplateLine($tags[$e->getTagName()]);
  408.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  409.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  410.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  411.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  412.             }
  413.             throw $e;
  414.         }
  415.     }
  416. }