var/cache/dev/twig/3b/3b7dc56bb7813f50fb59af09a9d85759c30feaf546a9691b7a247ee13ab68112.php line 16

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/refine_check_item.twig */
  14. class __TwigTemplate_dfd56c677a650e14f4187eaf4d86e69329a9beace8428fd65233c1b8f5b3588a 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/refine_check_item.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/refine_check_item.twig"));
  35.         // line 11
  36.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  37.             // line 12
  38.             if ((isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'12$this->source); })())) {
  39.                 // line 13
  40.                 echo "    <div class=\"ec-shelfRole\">
  41.         <h2 class=\"ec-headingTitle\">";
  42.                 // line 14
  43.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("refine_check_item.check_item"), "html"nulltrue);
  44.                 echo "</h2>
  45.         <ul class=\"ec-shelfGrid\">
  46.             ";
  47.                 // line 16
  48.                 $context['_parent'] = $context;
  49.                 $context['_seq'] = twig_ensure_traversable((isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'16$this->source); })()));
  50.                 foreach ($context['_seq'] as $context["_key"] => $context["ProductArray"]) {
  51.                     // line 17
  52.                     echo "                ";
  53.                     $context["Product"] = twig_get_attribute($this->env$this->source$context["ProductArray"], "Product", [], "any"falsefalsetrue17);
  54.                     // line 18
  55.                     echo "                ";
  56.                     $context["hasStock"] = twig_get_attribute($this->env$this->source$context["ProductArray"], "hasStock", [], "any"falsefalsetrue18);
  57.                     // line 19
  58.                     echo "                <li class=\"ec-shelfGrid__item\">
  59.                     <a href=\"";
  60.                     // line 20
  61.                     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["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'20$this->source); })()), "id", [], "any"falsefalsetrue20)]), "html"nulltrue);
  62.                     echo "\">
  63.                         <div><img src=\"";
  64.                     // line 21
  65.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(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.'21$this->source); })()), "main_list_image", [], "any"falsefalsetrue21), 21$this->source)), "save_image"), "html"nulltrue);
  66.                     echo "\" alt=\"";
  67.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'21$this->source); })()), "name", [], "any"falsefalsetrue21), 21$this->source), "html"nulltrue);
  68.                     echo "\"></div>
  69.                         <dl>
  70.                             <dt class=\"item_name\">";
  71.                     // line 23
  72.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'23$this->source); })()), "name", [], "any"falsefalsetrue23), 23$this->source), "html"nulltrue);
  73.                     echo "</dt>
  74.                             <dd class=\"item_price\">
  75.                                 ";
  76.                     // line 25
  77.                     if (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.'25$this->source); })()), "hasProductClass", [], "any"falsefalsetrue25)) {
  78.                         // line 26
  79.                         echo "                                    ";
  80.                         if ((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.'26$this->source); })()), "getPrice02Min", [], "any"falsefalsetrue26) == 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.'26$this->source); })()), "getPrice02Max", [], "any"falsefalsetrue26))) {
  81.                             // line 27
  82.                             echo "                                        ";
  83.                             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.'27$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsetrue27), 27$this->source)), "html"nulltrue);
  84.                             echo "
  85.                                     ";
  86.                         } else {
  87.                             // line 29
  88.                             echo "                                        ";
  89.                             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.'29$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsetrue29), 29$this->source)), "html"nulltrue);
  90.                             echo " ~ ";
  91.                             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.'29$this->source); })()), "getPrice02IncTaxMax", [], "any"falsefalsetrue29), 29$this->source)), "html"nulltrue);
  92.                             echo "
  93.                                     ";
  94.                         }
  95.                         // line 31
  96.                         echo "                                ";
  97.                     } else {
  98.                         // line 32
  99.                         echo "                                    ";
  100.                         echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.'32$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsetrue32), 32$this->source)), "html"nulltrue);
  101.                         echo "
  102.                                 ";
  103.                     }
  104.                     // line 34
  105.                     echo "                            </dd>
  106.                             <dd>
  107.                                 ";
  108.                     // line 36
  109.                     if ((isset($context["hasStock"]) || array_key_exists("hasStock"$context) ? $context["hasStock"] : (function () { throw new RuntimeError('Variable "hasStock" does not exist.'36$this->source); })())) {
  110.                         // line 37
  111.                         echo "                                    ";
  112.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("refine_check_item.has_stock"), "html"nulltrue);
  113.                         echo "
  114.                                 ";
  115.                     } else {
  116.                         // line 39
  117.                         echo "                                    ";
  118.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("refine_check_item.no_stock"), "html"nulltrue);
  119.                         echo "
  120.                                 ";
  121.                     }
  122.                     // line 41
  123.                     echo "                            </dd>
  124.                         </dl>
  125.                     </a>
  126.                 </li>
  127.             ";
  128.                 }
  129.                 $_parent $context['_parent'];
  130.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductArray'], $context['_parent'], $context['loop']);
  131.                 $context array_intersect_key($context$_parent) + $_parent;
  132.                 // line 46
  133.                 echo "        </ul>
  134.     </div>
  135. ";
  136.             }
  137.         }
  138.         
  139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  140.         
  141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  142.     }
  143.     public function getTemplateName()
  144.     {
  145.         return "Block/refine_check_item.twig";
  146.     }
  147.     public function isTraitable()
  148.     {
  149.         return false;
  150.     }
  151.     public function getDebugInfo()
  152.     {
  153.         return array (  142 => 46,  132 => 41,  126 => 39,  120 => 37,  118 => 36,  114 => 34,  108 => 32,  105 => 31,  97 => 29,  91 => 27,  88 => 26,  86 => 25,  81 => 23,  74 => 21,  70 => 20,  67 => 19,  64 => 18,  61 => 17,  57 => 16,  52 => 14,  49 => 13,  47 => 12,  45 => 11,);
  154.     }
  155.     public function getSourceContext()
  156.     {
  157.         return new Source("{#
  158. This file is part of Refine
  159. Copyright(c) 2021 Refine Co.,Ltd. All Rights Reserved.
  160. https://www.re-fine.jp/
  161. For the full copyright and license information, please view the LICENSE
  162. file that was distributed with this source code.
  163. #}
  164. {% if is_granted('ROLE_USER') %}
  165. {% if Products %}
  166.     <div class=\"ec-shelfRole\">
  167.         <h2 class=\"ec-headingTitle\">{{ 'refine_check_item.check_item'|trans }}</h2>
  168.         <ul class=\"ec-shelfGrid\">
  169.             {% for ProductArray in Products  %}
  170.                 {% set Product = ProductArray.Product %}
  171.                 {% set hasStock = ProductArray.hasStock %}
  172.                 <li class=\"ec-shelfGrid__item\">
  173.                     <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  174.                         <div><img src=\"{{ asset(Product.main_list_image|no_image_product, \"save_image\") }}\" alt=\"{{ Product.name }}\"></div>
  175.                         <dl>
  176.                             <dt class=\"item_name\">{{ Product.name }}</dt>
  177.                             <dd class=\"item_price\">
  178.                                 {% if Product.hasProductClass %}
  179.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  180.                                         {{ Product.getPrice02IncTaxMin|price }}
  181.                                     {% else %}
  182.                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  183.                                     {% endif %}
  184.                                 {% else %}
  185.                                     {{ Product.getPrice02IncTaxMin|price }}
  186.                                 {% endif %}
  187.                             </dd>
  188.                             <dd>
  189.                                 {% if hasStock %}
  190.                                     {{ 'refine_check_item.has_stock'|trans }}
  191.                                 {% else %}
  192.                                     {{ 'refine_check_item.no_stock'|trans }}
  193.                                 {% endif %}
  194.                             </dd>
  195.                         </dl>
  196.                     </a>
  197.                 </li>
  198.             {% endfor %}
  199.         </ul>
  200.     </div>
  201. {% endif %}
  202. {% endif %}""Block/refine_check_item.twig""/home/nmtokyolad01/tokyoladies-onlinestore.com/public_html/app/template/unishop/Block/refine_check_item.twig");
  203.     }
  204.     
  205.     public function checkSecurity()
  206.     {
  207.         static $tags = array("if" => 11"for" => 16"set" => 17);
  208.         static $filters = array("escape" => 14"trans" => 14"no_image_product" => 21"price" => 27);
  209.         static $functions = array("is_granted" => 11"url" => 20"asset" => 21);
  210.         try {
  211.             $this->sandbox->checkSecurity(
  212.                 ['if''for''set'],
  213.                 ['escape''trans''no_image_product''price'],
  214.                 ['is_granted''url''asset']
  215.             );
  216.         } catch (SecurityError $e) {
  217.             $e->setSourceContext($this->source);
  218.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  219.                 $e->setTemplateLine($tags[$e->getTagName()]);
  220.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  221.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  222.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  223.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  224.             }
  225.             throw $e;
  226.         }
  227.     }
  228. }