var/cache/dev/twig/4b/4b9ffc69ea263d00a84cd7aedb9f770e.php line 60

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. /* Block/recommend_product_block.twig */
  14. class __TwigTemplate_d1275093f942047b6e7df41e6bf115a2 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/recommend_product_block.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/recommend_product_block.twig"));
  33.         // line 9
  34.         $context["recommend_products"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\Recommend42\\Entity\\RecommendProduct"), "getRecommendProduct", [], "any"falsefalsefalse9);
  35.         // line 10
  36.         echo "
  37. <!-- ▼item_list▼ -->
  38. <div class=\"ec-shelfRole\">
  39.     お勧め商品情報!
  40.     <ul class=\"ec-shelfGrid\">
  41.         ";
  42.         // line 16
  43.         $context['_parent'] = $context;
  44.         $context['_seq'] = twig_ensure_traversable((isset($context["recommend_products"]) || array_key_exists("recommend_products"$context) ? $context["recommend_products"] : (function () { throw new RuntimeError('Variable "recommend_products" does not exist.'16$this->source); })()));
  45.         foreach ($context['_seq'] as $context["_key"] => $context["RecommendProduct"]) {
  46.             // line 17
  47.             echo "            <li class=\"ec-shelfGrid__item\">
  48.                 <a href=\"";
  49.             // line 18
  50.             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["RecommendProduct"], "Product", [], "any"falsefalsefalse18), "id", [], "any"falsefalsefalse18)]), "html"nulltrue);
  51.             echo "\">
  52.                     <img src=\"";
  53.             // line 19
  54.             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["RecommendProduct"], "Product", [], "any"falsefalsefalse19), "mainFileName", [], "any"falsefalsefalse19)), "save_image"), "html"nulltrue);
  55.             echo "\">
  56.                     <p>";
  57.             // line 20
  58.             echo twig_nl2br($this->env->getRuntime('Exercise\HTMLPurifierBundle\Twig\HTMLPurifierRuntime')->purify(twig_get_attribute($this->env$this->source$context["RecommendProduct"], "comment", [], "any"falsefalsefalse20)));
  59.             echo "</p>
  60.                     <dl>
  61.                         <dt class=\"item_name\">";
  62.             // line 22
  63.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse22), "name", [], "any"falsefalsefalse22), "html"nulltrue);
  64.             echo "</dt>
  65.                         <dd class=\"item_price\">
  66.                             ";
  67.             // line 24
  68.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse24), "hasProductClass", [], "any"falsefalsefalse24)) {
  69.                 // line 25
  70.                 echo "                                ";
  71.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse25), "getPrice02Min", [], "any"falsefalsefalse25) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse25), "getPrice02Max", [], "any"falsefalsefalse25))) {
  72.                     // line 26
  73.                     echo "                                    ";
  74.                     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["RecommendProduct"], "Product", [], "any"falsefalsefalse26), "getPrice02IncTaxMin", [], "any"falsefalsefalse26)), "html"nulltrue);
  75.                     echo "
  76.                                 ";
  77.                 } else {
  78.                     // line 28
  79.                     echo "                                    ";
  80.                     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["RecommendProduct"], "Product", [], "any"falsefalsefalse28), "getPrice02IncTaxMin", [], "any"falsefalsefalse28)), "html"nulltrue);
  81.                     echo " ~ ";
  82.                     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["RecommendProduct"], "Product", [], "any"falsefalsefalse28), "getPrice02IncTaxMax", [], "any"falsefalsefalse28)), "html"nulltrue);
  83.                     echo "
  84.                                 ";
  85.                 }
  86.                 // line 30
  87.                 echo "                            ";
  88.             } else {
  89.                 // line 31
  90.                 echo "                                ";
  91.                 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["RecommendProduct"], "Product", [], "any"falsefalsefalse31), "getPrice02IncTaxMin", [], "any"falsefalsefalse31)), "html"nulltrue);
  92.                 echo "
  93.                             ";
  94.             }
  95.             // line 33
  96.             echo "                        </dd>
  97.                     </dl>
  98.                 </a>
  99.             </li>
  100.         ";
  101.         }
  102.         $_parent $context['_parent'];
  103.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RecommendProduct'], $context['_parent'], $context['loop']);
  104.         $context array_intersect_key($context$_parent) + $_parent;
  105.         // line 38
  106.         echo "    </ul>
  107. </div>
  108. <!-- ▲item_list▲ -->";
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.     }
  114.     public function getTemplateName()
  115.     {
  116.         return "Block/recommend_product_block.twig";
  117.     }
  118.     public function isTraitable()
  119.     {
  120.         return false;
  121.     }
  122.     public function getDebugInfo()
  123.     {
  124.         return array (  116 => 38,  106 => 33,  100 => 31,  97 => 30,  89 => 28,  83 => 26,  80 => 25,  78 => 24,  73 => 22,  68 => 20,  64 => 19,  60 => 18,  57 => 17,  53 => 16,  45 => 10,  43 => 9,);
  125.     }
  126.     public function getSourceContext()
  127.     {
  128.         return new Source("{#
  129.  * This file is part of the Recommend Product plugin
  130.  *
  131.  * Copyright (C) EC-CUBE CO.,LTD. All Rights Reserved.
  132.  *
  133.  * For the full copyright and license information, please view the LICENSE
  134.  * file that was distributed with this source code.
  135. #}
  136. {% set recommend_products = repository('Plugin\\\\Recommend42\\\\Entity\\\\RecommendProduct').getRecommendProduct %}
  137. <!-- ▼item_list▼ -->
  138. <div class=\"ec-shelfRole\">
  139.     お勧め商品情報!
  140.     <ul class=\"ec-shelfGrid\">
  141.         {% for RecommendProduct in recommend_products %}
  142.             <li class=\"ec-shelfGrid__item\">
  143.                 <a href=\"{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}\">
  144.                     <img src=\"{{ asset(RecommendProduct.Product.mainFileName|no_image_product, \"save_image\") }}\">
  145.                     <p>{{ RecommendProduct.comment|raw|purify|nl2br }}</p>
  146.                     <dl>
  147.                         <dt class=\"item_name\">{{ RecommendProduct.Product.name }}</dt>
  148.                         <dd class=\"item_price\">
  149.                             {% if RecommendProduct.Product.hasProductClass %}
  150.                                 {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  151.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  152.                                 {% else %}
  153.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
  154.                                 {% endif %}
  155.                             {% else %}
  156.                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  157.                             {% endif %}
  158.                         </dd>
  159.                     </dl>
  160.                 </a>
  161.             </li>
  162.         {% endfor %}
  163.     </ul>
  164. </div>
  165. <!-- ▲item_list▲ -->""Block/recommend_product_block.twig""/home/xs262729/sandrea.net/public_html/display.sandrea.net/app/template/default/Block/recommend_product_block.twig");
  166.     }
  167. }