var/cache/dev/twig/2f/2fef5990fea62bc126915120d48fd296.php line 292

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/detail.twig */
  14. class __TwigTemplate_a2c2c699bdad4eb9593e5a31bd3eacbc 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Recipe/Resource/template/default/detail.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Recipe/Resource/template/default/detail.twig"));
  42.         $this->parent $this->loadTemplate("default_frame.twig""Recipe/Resource/template/default/detail.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_stylesheet($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  57.         // line 4
  58.         echo "    <link rel=\"stylesheet\" href=\"";
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("Recipe/assets/default/css/recipe.css""plugin"), "html"nulltrue);
  60.         echo "\">
  61. ";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 6
  68.     public function block_javascript($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  75.         // line 7
  76.         echo "    <script type=\"text/javascript\" src=\"";
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("Recipe/assets/default/js/detail.js""plugin"), "html"nulltrue);
  78.         echo "\"></script>
  79. ";
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.     }
  85.     // line 10
  86.     public function block_main($context, array $blocks = [])
  87.     {
  88.         $macros $this->macros;
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  93.         // line 11
  94.         echo "<section class=\"p-lower-mv\">
  95.   <div class=\"inner\">
  96.     <div class=\"under bread_wrap\">
  97.       <ol itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  98.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  99.           <a itemprop=\"item\" href=\"";
  100.         // line 16
  101.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  102.         echo "\">
  103.             <span class=\"freight-neo-pro\" itemprop=\"name\">TOP</span>
  104.           </a>
  105.           <meta itemprop=\"position\" content=\"1\" />
  106.         </li>
  107.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  108.           <a itemprop=\"item\" href=\"";
  109.         // line 22
  110.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe");
  111.         echo "\">
  112.             <span class=\"freight-neo-pro\" itemprop=\"name\">レシピ一覧</span>
  113.           </a>
  114.           <meta itemprop=\"position\" content=\"2\" />
  115.         </li>
  116.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  117.           <a itemprop=\"item\" href=\"";
  118.         // line 28
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'28$this->source); })()), "id", [], "any"falsefalsetrue28)]), "html"nulltrue);
  120.         echo "\">
  121.             <span class=\"freight-neo-pro\" itemprop=\"name\">";
  122.         // line 29
  123.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'29$this->source); })()), "name", [], "any"falsefalsetrue29), 29$this->source), "html"nulltrue);
  124.         echo "</span>
  125.           </a>
  126.           <meta itemprop=\"position\" content=\"3\" />
  127.         </li>
  128.       </ol>
  129.     </div>
  130.     <!-- /.bread_wrap -->
  131.   </div>
  132. </section>
  133. <section class=\"recipe-detail\">
  134.   <div class=\"inner\">
  135.     <article class=\"recipe-detail-article\">
  136.       <h2 class=\"recipe-title\">";
  137.         // line 41
  138.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'41$this->source); })()), "name", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  139.         echo "</h2>
  140.       <div class=\"recipe-detail-article-head\">
  141.         <div>
  142.           <div class=\"swiper recipe-detail-swiper recipe-image\">
  143.             <div class=\"swiper-wrapper\">
  144.               ";
  145.         // line 46
  146.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'46$this->source); })()), "RecipeImage", [], "any"falsefalsetrue46)) == 0)) {
  147.             // line 47
  148.             echo "                <div class=\"swiper-slide recipe-detail-slide\">
  149.                   <img src=\"";
  150.             // line 48
  151.             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, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'48$this->source); })()), "mainListImage", [], "any"falsefalsetrue48), 48$this->source)), "save_image"), "html"nulltrue);
  152.             echo "\" alt=\"";
  153.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'48$this->source); })()), "name", [], "any"falsefalsetrue48), 48$this->source), "html"nulltrue);
  154.             echo "\">
  155.                 </div>
  156.               ";
  157.         } else {
  158.             // line 51
  159.             echo "                ";
  160.             $context['_parent'] = $context;
  161.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'51$this->source); })()), "RecipeImage", [], "any"falsefalsetrue51));
  162.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  163.                 // line 52
  164.                 echo "                <div class=\"swiper-slide recipe-detail-slide\">
  165.                   ";
  166.                 // line 53
  167.                 if (((twig_last($this->envtwig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "filename", [], "any"falsefalsetrue53), ".")) == "mp4") || (twig_last($this->envtwig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "filename", [], "any"falsefalsetrue53), ".")) == "mov"))) {
  168.                     // line 54
  169.                     echo "                    <div class=\"recipe-detail-slide-video\">
  170.                       <video src=\"";
  171.                     // line 55
  172.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "filename", [], "any"falsefalsetrue55), 55$this->source), "save_image"), "html"nulltrue);
  173.                     echo "\" controls></video>
  174.                     </div>
  175.                   ";
  176.                 } else {
  177.                     // line 58
  178.                     echo "                    <img src=\"";
  179.                     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["image"], "filename", [], "any"falsefalsetrue58), 58$this->source)), "save_image"), "html"nulltrue);
  180.                     echo "\" alt=\"";
  181.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'58$this->source); })()), "name", [], "any"falsefalsetrue58), 58$this->source), "html"nulltrue);
  182.                     echo "\">
  183.                   ";
  184.                 }
  185.                 // line 60
  186.                 echo "                </div>
  187.                 ";
  188.             }
  189.             $_parent $context['_parent'];
  190.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  191.             $context array_intersect_key($context$_parent) + $_parent;
  192.             // line 62
  193.             echo "              ";
  194.         }
  195.         // line 63
  196.         echo "            </div>
  197.           </div>
  198.           <div class=\"recipe-detail-swiper-pagination\">
  199.             <div class=\"swiper-pagination\"></div>
  200.           </div>
  201.         </div>
  202.         <div class=\"recipe-info\">
  203.           <div class=\"recipe-time\">
  204.             <div class=\"recipe-info-head\">
  205.               <div class=\"recipe-icon\">調理時間</div>
  206.             </div>
  207.             <p class=\"recipe-info-body\"><span class=\"number\">";
  208.         // line 74
  209.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'74$this->source); })()), "minute", [], "any"falsefalsetrue74), 74$this->source), "html"nulltrue);
  210.         echo "</span>分</p>
  211.           </div>
  212.           <div class=\"recipe-calorie\">
  213.             <div class=\"recipe-info-head\">
  214.               <div class=\"recipe-icon\">エネルギー</div>
  215.             </div>
  216.             <p class=\"recipe-info-body\"><span class=\"number\">";
  217.         // line 80
  218.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'80$this->source); })()), "energy", [], "any"falsefalsetrue80), 80$this->source), "html"nulltrue);
  219.         echo "</span>kcal</p>
  220.           </div>
  221.           <div class=\"recipe-label\">
  222.             <ul class=\"recipe-label-list\">
  223.               ";
  224.         // line 84
  225.         $context['_parent'] = $context;
  226.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'84$this->source); })()), "categorys", [], "any"falsefalsetrue84));
  227.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  228.             // line 85
  229.             echo "                <li class=\"recipe-label-item\">
  230.                   <a href=\"";
  231.             // line 86
  232.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe");
  233.             echo "?category_id=";
  234.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  235.             echo "\">";
  236.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  237.             echo "</a>
  238.                 </li>
  239.               ";
  240.         }
  241.         $_parent $context['_parent'];
  242.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  243.         $context array_intersect_key($context$_parent) + $_parent;
  244.         // line 89
  245.         echo "              ";
  246.         $context['_parent'] = $context;
  247.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'89$this->source); })()), "materials", [], "any"falsefalsetrue89));
  248.         foreach ($context['_seq'] as $context["_key"] => $context["material"]) {
  249.             // line 90
  250.             echo "                <li class=\"recipe-label-item\">
  251.                   <a href=\"";
  252.             // line 91
  253.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe");
  254.             echo "?material_id=";
  255.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["material"], "id", [], "any"falsefalsetrue91), 91$this->source), "html"nulltrue);
  256.             echo "\">";
  257.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["material"], "name", [], "any"falsefalsetrue91), 91$this->source), "html"nulltrue);
  258.             echo "</a>
  259.                 </li>
  260.               ";
  261.         }
  262.         $_parent $context['_parent'];
  263.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['material'], $context['_parent'], $context['loop']);
  264.         $context array_intersect_key($context$_parent) + $_parent;
  265.         // line 94
  266.         echo "              ";
  267.         $context['_parent'] = $context;
  268.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'94$this->source); })()), "tags", [], "any"falsefalsetrue94));
  269.         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  270.             // line 95
  271.             echo "                <li class=\"recipe-label-item\">
  272.                   <a href=\"";
  273.             // line 96
  274.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("recipe");
  275.             echo "?tag_id=";
  276.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsetrue96), 96$this->source), "html"nulltrue);
  277.             echo "\">";
  278.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsetrue96), 96$this->source), "html"nulltrue);
  279.             echo "</a>
  280.                 </li>
  281.               ";
  282.         }
  283.         $_parent $context['_parent'];
  284.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  285.         $context array_intersect_key($context$_parent) + $_parent;
  286.         // line 99
  287.         echo "            </ul>
  288.           </div>
  289.         </div>
  290.       </div>
  291.       ";
  292.         // line 103
  293.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'103$this->source); })()), "RecipeMaterialInfos", [], "any"falsefalsetrue103)) > 0)) {
  294.             // line 104
  295.             echo "      <div class=\"recipe-detail-article-body\">
  296.         <div class=\"recipe-material\">
  297.           <h3 class=\"recipe-box-title\">材料
  298.             ";
  299.             // line 107
  300.             if (twig_get_attribute($this->env$this->source, ($context["Recipe"] ?? null), "people", [], "any"truetruetrue107)) {
  301.                 // line 108
  302.                 echo "              <span>(";
  303.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'108$this->source); })()), "people", [], "any"falsefalsetrue108), 108$this->source), "html"nulltrue);
  304.                 echo "人分)</span>
  305.             ";
  306.             }
  307.             // line 110
  308.             echo "          </h3>
  309.           ";
  310.             // line 111
  311.             $context['_parent'] = $context;
  312.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'111$this->source); })()), "RecipeMaterialInfos", [], "any"falsefalsetrue111));
  313.             foreach ($context['_seq'] as $context["_key"] => $context["info"]) {
  314.                 // line 112
  315.                 echo "            <dl class=\"recipe-material-list\">
  316.               <dt class=\"recipe-material-title\">";
  317.                 // line 113
  318.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["info"], "title", [], "any"falsefalsetrue113), 113$this->source), "html"nulltrue);
  319.                 echo "</dt>
  320.               <dd class=\"recipe-material-desc\">";
  321.                 // line 114
  322.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["info"], "content", [], "any"falsefalsetrue114), 114$this->source), "html"nulltrue);
  323.                 echo "</dd>
  324.             </dl>
  325.           ";
  326.             }
  327.             $_parent $context['_parent'];
  328.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['info'], $context['_parent'], $context['loop']);
  329.             $context array_intersect_key($context$_parent) + $_parent;
  330.             // line 117
  331.             echo "        </div>
  332.         ";
  333.         }
  334.         // line 119
  335.         echo "        ";
  336.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'119$this->source); })()), "RecipeSteps", [], "any"falsefalsetrue119)) > 0)) {
  337.             // line 120
  338.             echo "        <div class=\"recipe-howto\">
  339.           <h3 class=\"recipe-box-title\">作り方</h3>
  340.           <ol class=\"recipe-howto-list\">
  341.             ";
  342.             // line 123
  343.             $context['_parent'] = $context;
  344.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'123$this->source); })()), "RecipeSteps", [], "any"falsefalsetrue123));
  345.             $context['loop'] = [
  346.               'parent' => $context['_parent'],
  347.               'index0' => 0,
  348.               'index'  => 1,
  349.               'first'  => true,
  350.             ];
  351.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  352.                 $length count($context['_seq']);
  353.                 $context['loop']['revindex0'] = $length 1;
  354.                 $context['loop']['revindex'] = $length;
  355.                 $context['loop']['length'] = $length;
  356.                 $context['loop']['last'] = === $length;
  357.             }
  358.             foreach ($context['_seq'] as $context["_key"] => $context["info"]) {
  359.                 // line 124
  360.                 echo "              <li class=\"recipe-howto-item\">
  361.                 <span>";
  362.                 // line 125
  363.                 echo twig_escape_filter($this->envtwig_sprintf("%02d"$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue125), 125$this->source)), "html"nulltrue);
  364.                 echo "</span>
  365.                 <div class=\"recipe-howto-list__content\">
  366.                     ";
  367.                 // line 127
  368.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["info"], "content", [], "any"falsefalsetrue127), 127$this->source);
  369.                 echo "
  370.                 </div>
  371.               </li>
  372.             ";
  373.                 ++$context['loop']['index0'];
  374.                 ++$context['loop']['index'];
  375.                 $context['loop']['first'] = false;
  376.                 if (isset($context['loop']['length'])) {
  377.                     --$context['loop']['revindex0'];
  378.                     --$context['loop']['revindex'];
  379.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  380.                 }
  381.             }
  382.             $_parent $context['_parent'];
  383.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['info'], $context['_parent'], $context['loop']);
  384.             $context array_intersect_key($context$_parent) + $_parent;
  385.             // line 131
  386.             echo "          </ol>
  387.         </div>
  388.       </div>
  389.       ";
  390.         }
  391.         // line 135
  392.         echo "      ";
  393.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'135$this->source); })()), "RecipeNutritions", [], "any"falsefalsetrue135)) > 0)) {
  394.             // line 136
  395.             echo "      <div class=\"recipe-component\">
  396.         <h3 class=\"recipe-box-title\">1食あたりの栄養成分</h3>
  397.         <ul class=\"recipe-component-list\">
  398.           ";
  399.             // line 139
  400.             $context['_parent'] = $context;
  401.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'139$this->source); })()), "RecipeNutritions", [], "any"falsefalsetrue139));
  402.             foreach ($context['_seq'] as $context["_key"] => $context["info"]) {
  403.                 // line 140
  404.                 echo "            <li class=\"recipe-component-item\">
  405.               <p class=\"recipe-component-title\">";
  406.                 // line 141
  407.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["info"], "title", [], "any"falsefalsetrue141), 141$this->source), "html"nulltrue);
  408.                 echo "</p>
  409.               <p class=\"recipe-component-number\"><span>";
  410.                 // line 142
  411.                 echo twig_escape_filter($this->envtwig_sprintf("%.1f"$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["info"], "amount", [], "any"falsefalsetrue142), 142$this->source)), "html"nulltrue);
  412.                 echo "</span>";
  413.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["info"], "unit", [], "any"falsefalsetrue142), 142$this->source), "html"nulltrue);
  414.                 echo "</p>
  415.             </li>
  416.           ";
  417.             }
  418.             $_parent $context['_parent'];
  419.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['info'], $context['_parent'], $context['loop']);
  420.             $context array_intersect_key($context$_parent) + $_parent;
  421.             // line 145
  422.             echo "        </ul>
  423.       </div>
  424.       ";
  425.         }
  426.         // line 148
  427.         echo "      ";
  428.         if ((((((twig_get_attribute($this->env$this->source, ($context["Recipe"] ?? null), "RecipeCreator", [], "any"truetruetrue148) &&  !(null === twig_get_attribute($this->env$this->source,         // line 149
  429. (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'149$this->source); })()), "RecipeCreator", [], "any"falsefalsetrue149))) && twig_get_attribute($this->env$this->source,         // line 150
  430. ($context["Recipe"] ?? null), "CreatorHeading", [], "any"truetruetrue150)) &&  !(null === twig_get_attribute($this->env$this->source,         // line 151
  431. (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'151$this->source); })()), "CreatorHeading", [], "any"falsefalsetrue151))) && twig_get_attribute($this->env$this->source,         // line 152
  432. ($context["Recipe"] ?? null), "CreatorComment", [], "any"truetruetrue152)) &&  !(null === twig_get_attribute($this->env$this->source,         // line 153
  433. (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'153$this->source); })()), "CreatorComment", [], "any"falsefalsetrue153)))) {
  434.             // line 155
  435.             echo "      <div class=\"recipe-comment\">
  436.         <div class=\"recipe-comment-sticky\"><img src=\"";
  437.             // line 156
  438.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/recipe/img-sticky.png""user_data"), "html"nulltrue);
  439.             echo "\" alt=\"\"></div>
  440.         <div class=\"recipe-comment-head\">
  441.           <figure class=\"recipe-comment-picture\">
  442.             <img src=\"";
  443.             // line 159
  444.             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, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'159$this->source); })()), "RecipeCreator", [], "any"falsefalsetrue159), "filename", [], "any"falsefalsetrue159), 159$this->source)), "save_image"), "html"nulltrue);
  445.             echo "\" alt=\"";
  446.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'159$this->source); })()), "RecipeCreator", [], "any"falsefalsetrue159), "name", [], "any"falsefalsetrue159), 159$this->source), "html"nulltrue);
  447.             echo "\">
  448.             <figcaption>";
  449.             // line 160
  450.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'160$this->source); })()), "RecipeCreator", [], "any"falsefalsetrue160), "title", [], "any"falsefalsetrue160), 160$this->source), "html"nulltrue);
  451.             echo "<span class=\"name\">";
  452.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'160$this->source); })()), "RecipeCreator", [], "any"falsefalsetrue160), "name", [], "any"falsefalsetrue160), 160$this->source), "html"nulltrue);
  453.             echo "</span></figcaption>
  454.           </figure>
  455.         </div>
  456.         <div class=\"recipe-comment-body\">
  457.           <p class=\"recipe-comment-title\">";
  458.             // line 164
  459.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'164$this->source); })()), "CreatorHeading", [], "any"falsefalsetrue164), 164$this->source), "html"nulltrue);
  460.             echo "</p>
  461.           <p class=\"recipe-comment-text\">";
  462.             // line 165
  463.             echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'165$this->source); })()), "CreatorComment", [], "any"falsefalsetrue165), 165$this->source));
  464.             echo "</p>
  465.         </div>
  466.       </div>
  467.       ";
  468.         }
  469.         // line 169
  470.         echo "    </article>
  471.   </div>
  472. </section>
  473. ";
  474.         // line 173
  475.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'173$this->source); })()), "getEnableRelatedProducts", [], "any"falsefalsetrue173)) > 0)) {
  476.             // line 174
  477.             echo "<section class=\"p-section bg-gray recipe-product\">
  478.   <div class=\"inner\">
  479.     <h2 class=\"p-title icon-top\"><span>このレシピに<br class=\"sp\">使われている商品</span></h2>
  480.     <div class=\"recipe-product-wrap\">
  481.       <div class=\"swiper recipe-product-swiper\">
  482.         <div class=\"swiper-wrapper\">
  483.           ";
  484.             // line 180
  485.             $context['_parent'] = $context;
  486.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Recipe"]) || array_key_exists("Recipe"$context) ? $context["Recipe"] : (function () { throw new RuntimeError('Variable "Recipe" does not exist.'180$this->source); })()), "RelatedProducts", [], "any"falsefalsetrue180));
  487.             foreach ($context['_seq'] as $context["_key"] => $context["RelatedProduct"]) {
  488.                 // line 181
  489.                 echo "          <div class=\"swiper-slide recipe-product-slide\">
  490.             <a href=\"";
  491.                 // line 182
  492.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsetrue182), "id", [], "any"falsefalsetrue182)]), "html"nulltrue);
  493.                 echo "\">
  494.               <div class=\"recipe-product-item-head\">
  495.                 <img src=\"";
  496.                 // line 184
  497.                 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["RelatedProduct"], "ChildProduct", [], "any"falsefalsetrue184), "main_list_image", [], "any"falsefalsetrue184), 184$this->source)), "save_image"), "html"nulltrue);
  498.                 echo "\" alt=\"\">
  499.               </div>
  500.               <div class=\"recipe-product-item-body\">
  501.                 <h3 class=\"recipe-product-item-name\">";
  502.                 // line 187
  503.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsetrue187), "name", [], "any"falsefalsetrue187), 187$this->source), "html"nulltrue);
  504.                 echo "</h3>
  505.                 <p class=\"recipe-product-item-desc\">";
  506.                 // line 188
  507.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsetrue188), "description_detail", [], "any"falsefalsetrue188), 188$this->source), "html"nulltrue);
  508.                 echo "</p>
  509.                 <p class=\"recipe-product-item-price\">";
  510.                 // line 189
  511.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsetrue189), "getPrice02Min", [], "any"falsefalsetrue189), 189$this->source)), "html"nulltrue);
  512.                 echo "<span>円(税抜)</span></p>
  513.               </div>
  514.             </a>
  515.           </div>
  516.           ";
  517.             }
  518.             $_parent $context['_parent'];
  519.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelatedProduct'], $context['_parent'], $context['loop']);
  520.             $context array_intersect_key($context$_parent) + $_parent;
  521.             // line 194
  522.             echo "        </div>
  523.       </div>
  524.       <div class=\"swiper-button-prev\"></div>
  525.       <div class=\"swiper-button-next\"></div>
  526.     </div>
  527.   </div>
  528. </section>
  529. ";
  530.         }
  531.         // line 202
  532.         echo "
  533. ";
  534.         // line 203
  535.         $this->loadTemplate("@Recipe/default/recipe_search.twig""Recipe/Resource/template/default/detail.twig"203)->display($context);
  536.         // line 204
  537.         echo "
  538. ";
  539.         
  540.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  541.         
  542.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  543.     }
  544.     public function getTemplateName()
  545.     {
  546.         return "Recipe/Resource/template/default/detail.twig";
  547.     }
  548.     public function isTraitable()
  549.     {
  550.         return false;
  551.     }
  552.     public function getDebugInfo()
  553.     {
  554.         return array (  562 => 204,  560 => 203,  557 => 202,  547 => 194,  536 => 189,  532 => 188,  528 => 187,  522 => 184,  517 => 182,  514 => 181,  510 => 180,  502 => 174,  500 => 173,  494 => 169,  487 => 165,  483 => 164,  474 => 160,  468 => 159,  462 => 156,  459 => 155,  457 => 153,  456 => 152,  455 => 151,  454 => 150,  453 => 149,  451 => 148,  446 => 145,  435 => 142,  431 => 141,  428 => 140,  424 => 139,  419 => 136,  416 => 135,  410 => 131,  392 => 127,  387 => 125,  384 => 124,  367 => 123,  362 => 120,  359 => 119,  355 => 117,  346 => 114,  342 => 113,  339 => 112,  335 => 111,  332 => 110,  326 => 108,  324 => 107,  319 => 104,  317 => 103,  311 => 99,  298 => 96,  295 => 95,  290 => 94,  277 => 91,  274 => 90,  269 => 89,  256 => 86,  253 => 85,  249 => 84,  242 => 80,  233 => 74,  220 => 63,  217 => 62,  210 => 60,  202 => 58,  196 => 55,  193 => 54,  191 => 53,  188 => 52,  183 => 51,  175 => 48,  172 => 47,  170 => 46,  162 => 41,  147 => 29,  143 => 28,  134 => 22,  125 => 16,  118 => 11,  108 => 10,  95 => 7,  85 => 6,  72 => 4,  62 => 3,  39 => 1,);
  555.     }
  556.     public function getSourceContext()
  557.     {
  558.         return new Source("{% extends 'default_frame.twig' %}
  559. {% block stylesheet %}
  560.     <link rel=\"stylesheet\" href=\"{{ asset('Recipe/assets/default/css/recipe.css' , 'plugin') }}\">
  561. {% endblock stylesheet %}
  562. {% block javascript %}
  563.     <script type=\"text/javascript\" src=\"{{ asset('Recipe/assets/default/js/detail.js', 'plugin') }}\"></script>
  564. {% endblock javascript %}
  565. {% block main %}
  566. <section class=\"p-lower-mv\">
  567.   <div class=\"inner\">
  568.     <div class=\"under bread_wrap\">
  569.       <ol itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  570.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  571.           <a itemprop=\"item\" href=\"{{ url('homepage') }}\">
  572.             <span class=\"freight-neo-pro\" itemprop=\"name\">TOP</span>
  573.           </a>
  574.           <meta itemprop=\"position\" content=\"1\" />
  575.         </li>
  576.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  577.           <a itemprop=\"item\" href=\"{{ url('recipe') }}\">
  578.             <span class=\"freight-neo-pro\" itemprop=\"name\">レシピ一覧</span>
  579.           </a>
  580.           <meta itemprop=\"position\" content=\"2\" />
  581.         </li>
  582.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  583.           <a itemprop=\"item\" href=\"{{ url('recipe_detail', { 'id': Recipe.id }) }}\">
  584.             <span class=\"freight-neo-pro\" itemprop=\"name\">{{ Recipe.name }}</span>
  585.           </a>
  586.           <meta itemprop=\"position\" content=\"3\" />
  587.         </li>
  588.       </ol>
  589.     </div>
  590.     <!-- /.bread_wrap -->
  591.   </div>
  592. </section>
  593. <section class=\"recipe-detail\">
  594.   <div class=\"inner\">
  595.     <article class=\"recipe-detail-article\">
  596.       <h2 class=\"recipe-title\">{{ Recipe.name }}</h2>
  597.       <div class=\"recipe-detail-article-head\">
  598.         <div>
  599.           <div class=\"swiper recipe-detail-swiper recipe-image\">
  600.             <div class=\"swiper-wrapper\">
  601.               {% if Recipe.RecipeImage|length == 0 %}
  602.                 <div class=\"swiper-slide recipe-detail-slide\">
  603.                   <img src=\"{{ asset(Recipe.mainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Recipe.name }}\">
  604.                 </div>
  605.               {% else %}
  606.                 {% for image in Recipe.RecipeImage %}
  607.                 <div class=\"swiper-slide recipe-detail-slide\">
  608.                   {% if image.filename|split('.')|last == 'mp4' or image.filename|split('.')|last == 'mov' %}
  609.                     <div class=\"recipe-detail-slide-video\">
  610.                       <video src=\"{{ asset(image.filename, 'save_image') }}\" controls></video>
  611.                     </div>
  612.                   {% else %}
  613.                     <img src=\"{{ asset(image.filename|no_image_product, 'save_image') }}\" alt=\"{{ Recipe.name }}\">
  614.                   {% endif %}
  615.                 </div>
  616.                 {% endfor %}
  617.               {% endif %}
  618.             </div>
  619.           </div>
  620.           <div class=\"recipe-detail-swiper-pagination\">
  621.             <div class=\"swiper-pagination\"></div>
  622.           </div>
  623.         </div>
  624.         <div class=\"recipe-info\">
  625.           <div class=\"recipe-time\">
  626.             <div class=\"recipe-info-head\">
  627.               <div class=\"recipe-icon\">調理時間</div>
  628.             </div>
  629.             <p class=\"recipe-info-body\"><span class=\"number\">{{ Recipe.minute }}</span>分</p>
  630.           </div>
  631.           <div class=\"recipe-calorie\">
  632.             <div class=\"recipe-info-head\">
  633.               <div class=\"recipe-icon\">エネルギー</div>
  634.             </div>
  635.             <p class=\"recipe-info-body\"><span class=\"number\">{{ Recipe.energy }}</span>kcal</p>
  636.           </div>
  637.           <div class=\"recipe-label\">
  638.             <ul class=\"recipe-label-list\">
  639.               {% for category in Recipe.categorys %}
  640.                 <li class=\"recipe-label-item\">
  641.                   <a href=\"{{ url('recipe') }}?category_id={{ category.id }}\">{{ category.name }}</a>
  642.                 </li>
  643.               {% endfor %}
  644.               {% for material in Recipe.materials %}
  645.                 <li class=\"recipe-label-item\">
  646.                   <a href=\"{{ url('recipe') }}?material_id={{ material.id }}\">{{ material.name }}</a>
  647.                 </li>
  648.               {% endfor %}
  649.               {% for tag in Recipe.tags %}
  650.                 <li class=\"recipe-label-item\">
  651.                   <a href=\"{{ url('recipe') }}?tag_id={{ tag.id }}\">{{ tag.name }}</a>
  652.                 </li>
  653.               {% endfor %}
  654.             </ul>
  655.           </div>
  656.         </div>
  657.       </div>
  658.       {% if Recipe.RecipeMaterialInfos|length > 0 %}
  659.       <div class=\"recipe-detail-article-body\">
  660.         <div class=\"recipe-material\">
  661.           <h3 class=\"recipe-box-title\">材料
  662.             {% if Recipe.people is defined %}
  663.               <span>({{ Recipe.people }}人分)</span>
  664.             {% endif %}
  665.           </h3>
  666.           {% for info in Recipe.RecipeMaterialInfos %}
  667.             <dl class=\"recipe-material-list\">
  668.               <dt class=\"recipe-material-title\">{{ info.title }}</dt>
  669.               <dd class=\"recipe-material-desc\">{{ info.content }}</dd>
  670.             </dl>
  671.           {% endfor %}
  672.         </div>
  673.         {% endif %}
  674.         {% if Recipe.RecipeSteps|length > 0 %}
  675.         <div class=\"recipe-howto\">
  676.           <h3 class=\"recipe-box-title\">作り方</h3>
  677.           <ol class=\"recipe-howto-list\">
  678.             {% for info in Recipe.RecipeSteps %}
  679.               <li class=\"recipe-howto-item\">
  680.                 <span>{{ '%02d'|format(loop.index) }}</span>
  681.                 <div class=\"recipe-howto-list__content\">
  682.                     {{ info.content|raw }}
  683.                 </div>
  684.               </li>
  685.             {% endfor %}
  686.           </ol>
  687.         </div>
  688.       </div>
  689.       {% endif %}
  690.       {% if Recipe.RecipeNutritions|length > 0 %}
  691.       <div class=\"recipe-component\">
  692.         <h3 class=\"recipe-box-title\">1食あたりの栄養成分</h3>
  693.         <ul class=\"recipe-component-list\">
  694.           {% for info in Recipe.RecipeNutritions %}
  695.             <li class=\"recipe-component-item\">
  696.               <p class=\"recipe-component-title\">{{ info.title }}</p>
  697.               <p class=\"recipe-component-number\"><span>{{ '%.1f'|format(info.amount) }}</span>{{ info.unit }}</p>
  698.             </li>
  699.           {% endfor %}
  700.         </ul>
  701.       </div>
  702.       {% endif %}
  703.       {% if Recipe.RecipeCreator is defined and
  704.             Recipe.RecipeCreator is not null and
  705.             Recipe.CreatorHeading is defined and
  706.             Recipe.CreatorHeading is not null and
  707.             Recipe.CreatorComment is defined and
  708.             Recipe.CreatorComment is not null
  709.       %}
  710.       <div class=\"recipe-comment\">
  711.         <div class=\"recipe-comment-sticky\"><img src=\"{{ asset('assets/img/recipe/img-sticky.png', 'user_data') }}\" alt=\"\"></div>
  712.         <div class=\"recipe-comment-head\">
  713.           <figure class=\"recipe-comment-picture\">
  714.             <img src=\"{{ asset(Recipe.RecipeCreator.filename|no_image_product, 'save_image') }}\" alt=\"{{ Recipe.RecipeCreator.name }}\">
  715.             <figcaption>{{ Recipe.RecipeCreator.title }}<span class=\"name\">{{ Recipe.RecipeCreator.name }}</span></figcaption>
  716.           </figure>
  717.         </div>
  718.         <div class=\"recipe-comment-body\">
  719.           <p class=\"recipe-comment-title\">{{ Recipe.CreatorHeading }}</p>
  720.           <p class=\"recipe-comment-text\">{{ Recipe.CreatorComment|raw|nl2br }}</p>
  721.         </div>
  722.       </div>
  723.       {% endif %}
  724.     </article>
  725.   </div>
  726. </section>
  727. {% if Recipe.getEnableRelatedProducts|length > 0 %}
  728. <section class=\"p-section bg-gray recipe-product\">
  729.   <div class=\"inner\">
  730.     <h2 class=\"p-title icon-top\"><span>このレシピに<br class=\"sp\">使われている商品</span></h2>
  731.     <div class=\"recipe-product-wrap\">
  732.       <div class=\"swiper recipe-product-swiper\">
  733.         <div class=\"swiper-wrapper\">
  734.           {% for RelatedProduct in Recipe.RelatedProducts %}
  735.           <div class=\"swiper-slide recipe-product-slide\">
  736.             <a href=\"{{ url('product_detail', { 'id': RelatedProduct.ChildProduct.id })}}\">
  737.               <div class=\"recipe-product-item-head\">
  738.                 <img src=\"{{ asset(RelatedProduct.ChildProduct.main_list_image|no_image_product, 'save_image') }}\" alt=\"\">
  739.               </div>
  740.               <div class=\"recipe-product-item-body\">
  741.                 <h3 class=\"recipe-product-item-name\">{{ RelatedProduct.ChildProduct.name }}</h3>
  742.                 <p class=\"recipe-product-item-desc\">{{ RelatedProduct.ChildProduct.description_detail }}</p>
  743.                 <p class=\"recipe-product-item-price\">{{ RelatedProduct.ChildProduct.getPrice02Min|price }}<span>円(税抜)</span></p>
  744.               </div>
  745.             </a>
  746.           </div>
  747.           {% endfor %}
  748.         </div>
  749.       </div>
  750.       <div class=\"swiper-button-prev\"></div>
  751.       <div class=\"swiper-button-next\"></div>
  752.     </div>
  753.   </div>
  754. </section>
  755. {% endif %}
  756. {% include \"@Recipe/default/recipe_search.twig\" %}
  757. {% endblock %}
  758. ""Recipe/Resource/template/default/detail.twig""/home/hirota-s.com/public_html/app/template/default/Recipe/Resource/template/default/detail.twig");
  759.     }
  760.     
  761.     public function checkSecurity()
  762.     {
  763.         static $tags = array("if" => 46"for" => 51"include" => 203);
  764.         static $filters = array("escape" => 4"length" => 46"no_image_product" => 48"last" => 53"split" => 53"format" => 125"raw" => 127"nl2br" => 165"price" => 189);
  765.         static $functions = array("asset" => 4"url" => 16);
  766.         try {
  767.             $this->sandbox->checkSecurity(
  768.                 ['if''for''include'],
  769.                 ['escape''length''no_image_product''last''split''format''raw''nl2br''price'],
  770.                 ['asset''url']
  771.             );
  772.         } catch (SecurityError $e) {
  773.             $e->setSourceContext($this->source);
  774.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  775.                 $e->setTemplateLine($tags[$e->getTagName()]);
  776.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  777.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  778.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  779.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  780.             }
  781.             throw $e;
  782.         }
  783.     }
  784. }