var/cache/dev/twig/78/78f80dea61da657808d34c90d132e3e4.php line 58

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_3e0e0b79a316e539cb272fdb7cf284fe 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.     <ul class=\"ec-shelfGrid\">
  40.         ";
  41.         // line 14
  42.         $context['_parent'] = $context;
  43.         $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.'14$this->source); })()));
  44.         foreach ($context['_seq'] as $context["_key"] => $context["RecommendProduct"]) {
  45.             // line 15
  46.             echo "            <li class=\"ec-shelfGrid__item\">
  47.                 <a href=\"";
  48.             // line 16
  49.             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"falsefalsefalse16), "id", [], "any"falsefalsefalse16)]), "html"nulltrue);
  50.             echo "\">
  51.                     <img src=\"";
  52.             // line 17
  53.             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"falsefalsefalse17), "mainFileName", [], "any"falsefalsefalse17)), "save_image"), "html"nulltrue);
  54.             echo "\">
  55.                     <p>";
  56.             // line 18
  57.             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["RecommendProduct"], "comment", [], "any"falsefalsefalse18));
  58.             echo "</p>
  59.                     <dl>
  60.                         <dt class=\"item_name\">";
  61.             // line 20
  62.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse20), "name", [], "any"falsefalsefalse20), "html"nulltrue);
  63.             echo "</dt>
  64.                         <dd class=\"item_price\">
  65.                             ";
  66.             // line 22
  67.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse22), "hasProductClass", [], "any"falsefalsefalse22)) {
  68.                 // line 23
  69.                 echo "                                ";
  70.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse23), "getPrice02Min", [], "any"falsefalsefalse23) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse23), "getPrice02Max", [], "any"falsefalsefalse23))) {
  71.                     // line 24
  72.                     echo "                                    ";
  73.                     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"falsefalsefalse24), "getPrice02IncTaxMin", [], "any"falsefalsefalse24)), "html"nulltrue);
  74.                     echo "
  75.                                 ";
  76.                 } else {
  77.                     // line 26
  78.                     echo "                                    ";
  79.                     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);
  80.                     echo " ~ ";
  81.                     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), "getPrice02IncTaxMax", [], "any"falsefalsefalse26)), "html"nulltrue);
  82.                     echo "
  83.                                 ";
  84.                 }
  85.                 // line 28
  86.                 echo "                            ";
  87.             } else {
  88.                 // line 29
  89.                 echo "                                ";
  90.                 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"falsefalsefalse29), "getPrice02IncTaxMin", [], "any"falsefalsefalse29)), "html"nulltrue);
  91.                 echo "
  92.                             ";
  93.             }
  94.             // line 31
  95.             echo "                        </dd>
  96.                     </dl>
  97.                 </a>
  98.             </li>
  99.         ";
  100.         }
  101.         $_parent $context['_parent'];
  102.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RecommendProduct'], $context['_parent'], $context['loop']);
  103.         $context array_intersect_key($context$_parent) + $_parent;
  104.         // line 36
  105.         echo "    </ul>
  106. </div>
  107. <!-- ▲item_list▲ -->
  108. ";
  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 (  114 => 36,  104 => 31,  98 => 29,  95 => 28,  87 => 26,  81 => 24,  78 => 23,  76 => 22,  71 => 20,  66 => 18,  62 => 17,  58 => 16,  55 => 15,  51 => 14,  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.     <ul class=\"ec-shelfGrid\">
  140.         {% for RecommendProduct in recommend_products %}
  141.             <li class=\"ec-shelfGrid__item\">
  142.                 <a href=\"{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}\">
  143.                     <img src=\"{{ asset(RecommendProduct.Product.mainFileName|no_image_product, \"save_image\") }}\">
  144.                     <p>{{ RecommendProduct.comment|raw|nl2br }}</p>
  145.                     <dl>
  146.                         <dt class=\"item_name\">{{ RecommendProduct.Product.name }}</dt>
  147.                         <dd class=\"item_price\">
  148.                             {% if RecommendProduct.Product.hasProductClass %}
  149.                                 {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  150.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  151.                                 {% else %}
  152.                                     {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
  153.                                 {% endif %}
  154.                             {% else %}
  155.                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  156.                             {% endif %}
  157.                         </dd>
  158.                     </dl>
  159.                 </a>
  160.             </li>
  161.         {% endfor %}
  162.     </ul>
  163. </div>
  164. <!-- ▲item_list▲ -->
  165. ""Block/recommend_product_block.twig""/home/breathfield/breathdev.com/public_html/altair.breathdev.com/app/template/default/Block/recommend_product_block.twig");
  166.     }
  167. }