var/cache/dev/twig/80/80804eccadb841370b65d00cc52af83af720b8d077b8bd9c34e56286015bea0c.php line 113

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. /* @RelatedProduct42/front/related_product.twig */
  14. class __TwigTemplate_f19145dc857f4b5c967f9524826b16c2d4b7e5283a19a48b742c4fed4e61c65f 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@RelatedProduct42/front/related_product.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@RelatedProduct42/front/related_product.twig"));
  33.         // line 1
  34.         echo "<script>
  35.     \$(function () {
  36.         \$('#RelatedProduct-product_area').appendTo(\$('.ec-layoutRole__main, .ec-layoutRole__mainWithColumn, .ec-layoutRole__mainBetweenColumn'));
  37.     });
  38. </script>
  39. <div id=\"RelatedProduct-product_area\" class=\"ec-shelfRole\">
  40.     <ul class=\"ec-shelfGrid\">
  41.         ";
  42.         // line 9
  43.         $context['_parent'] = $context;
  44.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'9$this->source); })()), "RelatedProducts", [], "any"falsefalsefalse9));
  45.         foreach ($context['_seq'] as $context["_key"] => $context["RelatedProduct"]) {
  46.             // line 10
  47.             echo "            ";
  48.             $context["ChildProduct"] = twig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse10);
  49.             // line 11
  50.             echo "            ";
  51.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ChildProduct"]) || array_key_exists("ChildProduct"$context) ? $context["ChildProduct"] : (function () { throw new RuntimeError('Variable "ChildProduct" does not exist.'11$this->source); })()), "Status", [], "any"falsefalsefalse11), "id", [], "any"falsefalsefalse11) == twig_constant("Eccube\\Entity\\Master\\ProductStatus::DISPLAY_SHOW"))) {
  52.                 // line 12
  53.                 echo "                <li class=\"ec-shelfGrid__item\">
  54.                     <a href=\"";
  55.                 // line 13
  56.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["ChildProduct"]) || array_key_exists("ChildProduct"$context) ? $context["ChildProduct"] : (function () { throw new RuntimeError('Variable "ChildProduct" does not exist.'13$this->source); })()), "id", [], "any"falsefalsefalse13)]), "html"nulltrue);
  57.                 echo "\">
  58.                         <p class=\"ec-shelfGrid__item-image\">
  59.                             <img src=\"";
  60.                 // line 15
  61.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse15), "main_list_image", [], "any"falsefalsefalse15)), "save_image"), "html"nulltrue);
  62.                 echo "\">
  63.                         </p>
  64.                         <p>";
  65.                 // line 17
  66.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse17), "name", [], "any"falsefalsefalse17), "html"nulltrue);
  67.                 echo "</p>
  68.                         <p>
  69.                             ";
  70.                 // line 19
  71.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse19), "hasProductClass", [], "any"falsefalsefalse19)) {
  72.                     // line 20
  73.                     echo "                                ";
  74.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse20), "getPrice02Min", [], "any"falsefalsefalse20) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse20), "getPrice02Max", [], "any"falsefalsefalse20))) {
  75.                         // line 21
  76.                         echo "                                    ";
  77.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse21), "getPrice02IncTaxMin", [], "any"falsefalsefalse21)), "html"nulltrue);
  78.                         echo "
  79.                                 ";
  80.                     } else {
  81.                         // line 23
  82.                         echo "                                    ";
  83.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse23), "getPrice02IncTaxMin", [], "any"falsefalsefalse23)), "html"nulltrue);
  84.                         echo " ~ ";
  85.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse23), "getPrice02IncTaxMax", [], "any"falsefalsefalse23)), "html"nulltrue);
  86.                         echo "
  87.                                 ";
  88.                     }
  89.                     // line 25
  90.                     echo "                            ";
  91.                 } else {
  92.                     // line 26
  93.                     echo "                                ";
  94.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RelatedProduct"], "ChildProduct", [], "any"falsefalsefalse26), "getPrice02IncTaxMin", [], "any"falsefalsefalse26)), "html"nulltrue);
  95.                     echo "
  96.                             ";
  97.                 }
  98.                 // line 28
  99.                 echo "                        </p>
  100.                     </a>
  101.                     <span>";
  102.                 // line 30
  103.                 echo $this->env->getRuntime('Exercise\HTMLPurifierBundle\Twig\HTMLPurifierRuntime')->purify(twig_get_attribute($this->env$this->source$context["RelatedProduct"], "content", [], "any"falsefalsefalse30));
  104.                 echo "</span>
  105.                 </li>
  106.             ";
  107.             }
  108.             // line 33
  109.             echo "        ";
  110.         }
  111.         $_parent $context['_parent'];
  112.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelatedProduct'], $context['_parent'], $context['loop']);
  113.         $context array_intersect_key($context$_parent) + $_parent;
  114.         // line 34
  115.         echo "    </ul>
  116. </div>
  117. ";
  118.         
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  120.         
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  122.     }
  123.     public function getTemplateName()
  124.     {
  125.         return "@RelatedProduct42/front/related_product.twig";
  126.     }
  127.     public function isTraitable()
  128.     {
  129.         return false;
  130.     }
  131.     public function getDebugInfo()
  132.     {
  133.         return array (  125 => 34,  119 => 33,  113 => 30,  109 => 28,  103 => 26,  100 => 25,  92 => 23,  86 => 21,  83 => 20,  81 => 19,  76 => 17,  71 => 15,  66 => 13,  63 => 12,  60 => 11,  57 => 10,  53 => 9,  43 => 1,);
  134.     }
  135.     public function getSourceContext()
  136.     {
  137.         return new Source("<script>
  138.     \$(function () {
  139.         \$('#RelatedProduct-product_area').appendTo(\$('.ec-layoutRole__main, .ec-layoutRole__mainWithColumn, .ec-layoutRole__mainBetweenColumn'));
  140.     });
  141. </script>
  142. <div id=\"RelatedProduct-product_area\" class=\"ec-shelfRole\">
  143.     <ul class=\"ec-shelfGrid\">
  144.         {% for RelatedProduct in Product.RelatedProducts %}
  145.             {% set ChildProduct = RelatedProduct.ChildProduct %}
  146.             {% if ChildProduct.Status.id == constant(\"Eccube\\\\Entity\\\\Master\\\\ProductStatus::DISPLAY_SHOW\") %}
  147.                 <li class=\"ec-shelfGrid__item\">
  148.                     <a href=\"{{ url('product_detail', {id : ChildProduct.id}) }}\">
  149.                         <p class=\"ec-shelfGrid__item-image\">
  150.                             <img src=\"{{ asset(RelatedProduct.ChildProduct.main_list_image|no_image_product, 'save_image') }}\">
  151.                         </p>
  152.                         <p>{{ RelatedProduct.ChildProduct.name }}</p>
  153.                         <p>
  154.                             {% if RelatedProduct.ChildProduct.hasProductClass %}
  155.                                 {% if RelatedProduct.ChildProduct.getPrice02Min == RelatedProduct.ChildProduct.getPrice02Max %}
  156.                                     {{ RelatedProduct.ChildProduct.getPrice02IncTaxMin|price }}
  157.                                 {% else %}
  158.                                     {{ RelatedProduct.ChildProduct.getPrice02IncTaxMin|price }} ~ {{ RelatedProduct.ChildProduct.getPrice02IncTaxMax|price }}
  159.                                 {% endif %}
  160.                             {% else %}
  161.                                 {{ RelatedProduct.ChildProduct.getPrice02IncTaxMin|price }}
  162.                             {% endif %}
  163.                         </p>
  164.                     </a>
  165.                     <span>{{ RelatedProduct.content|raw|purify }}</span>
  166.                 </li>
  167.             {% endif %}
  168.         {% endfor %}
  169.     </ul>
  170. </div>
  171. ""@RelatedProduct42/front/related_product.twig""/home/users/0/ciao.jp-ootaka-gift/web/ipanda-toride/ec-cube/app/Plugin/RelatedProduct42/Resource/template/front/related_product.twig");
  172.     }
  173. }