var/cache/dev/twig/80/8006f51f65251c3bfa18c051d10a4a92.php line 35

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/lm_item_also_buy.twig */
  14. class __TwigTemplate_e499d8ffcb50d58ff00b04fa5656a27d 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/lm_item_also_buy.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/lm_item_also_buy.twig"));
  35.         // line 1
  36.         echo "<!-- こんな商品も買っています -->
  37. ";
  38.         // line 2
  39.         $context["isAlsoProduct"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getYouMayAlsoLike($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["goods"]) || array_key_exists("goods"$context) ? $context["goods"] : (function () { throw new RuntimeError('Variable "goods" does not exist.'2$this->source); })()), "goodsId", [], "any"falsefalsetrue2), 2$this->source));
  40.         // line 3
  41.         if ((array_key_exists("isAlsoProduct"$context) &&  !(null === (isset($context["isAlsoProduct"]) || array_key_exists("isAlsoProduct"$context) ? $context["isAlsoProduct"] : (function () { throw new RuntimeError('Variable "isAlsoProduct" does not exist.'3$this->source); })())))) {
  42.             // line 4
  43.             echo "  <div id=\"recentviews\" class=\"recentviews-style\">
  44.     <div class=\"recentviews-ttl\">
  45.       <p>この商品を買った人はこんな商品も買っています</p>
  46.     </div>
  47.     ";
  48.             // line 8
  49.             echo $this->sandbox->ensureToStringAllowed((isset($context["isAlsoProduct"]) || array_key_exists("isAlsoProduct"$context) ? $context["isAlsoProduct"] : (function () { throw new RuntimeError('Variable "isAlsoProduct" does not exist.'8$this->source); })()), 8$this->source);
  50.             echo "
  51.   </div>
  52. ";
  53.         }
  54.         // line 11
  55.         echo "
  56. <!-- こんな商品も買っています -->
  57. ";
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.     }
  63.     public function getTemplateName()
  64.     {
  65.         return "Block/lm_item_also_buy.twig";
  66.     }
  67.     public function isTraitable()
  68.     {
  69.         return false;
  70.     }
  71.     public function getDebugInfo()
  72.     {
  73.         return array (  64 => 11,  58 => 8,  52 => 4,  50 => 3,  48 => 2,  45 => 1,);
  74.     }
  75.     public function getSourceContext()
  76.     {
  77.         return new Source("<!-- こんな商品も買っています -->
  78. {% set isAlsoProduct = you_may_also_like(goods.goodsId) %}
  79. {% if isAlsoProduct is defined and isAlsoProduct is not null %}
  80.   <div id=\"recentviews\" class=\"recentviews-style\">
  81.     <div class=\"recentviews-ttl\">
  82.       <p>この商品を買った人はこんな商品も買っています</p>
  83.     </div>
  84.     {{ isAlsoProduct|raw }}
  85.   </div>
  86. {% endif %}
  87. <!-- こんな商品も買っています -->
  88. ""Block/lm_item_also_buy.twig""/var/www/html/app/template/default/Block/lm_item_also_buy.twig");
  89.     }
  90.     
  91.     public function checkSecurity()
  92.     {
  93.         static $tags = array("set" => 2"if" => 3);
  94.         static $filters = array("raw" => 8);
  95.         static $functions = array("you_may_also_like" => 2);
  96.         try {
  97.             $this->sandbox->checkSecurity(
  98.                 ['set''if'],
  99.                 ['raw'],
  100.                 ['you_may_also_like']
  101.             );
  102.         } catch (SecurityError $e) {
  103.             $e->setSourceContext($this->source);
  104.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  105.                 $e->setTemplateLine($tags[$e->getTagName()]);
  106.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  107.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  108.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  109.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  110.             }
  111.             throw $e;
  112.         }
  113.     }
  114. }