var/cache/dev/twig/e9/e9311fd5f78997ddbfa349a4ce3b2dc0.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_floating_banner_right.twig */
  14. class __TwigTemplate_ef7dd300158cdf0f08eebf9deecaf2e8 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_floating_banner_right.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_floating_banner_right.twig"));
  35.         // line 1
  36.         if ( !$this->extensions['Customize\Twig\Extension\ServiceExtension']->isMobile(true)) {
  37.             // line 2
  38.             echo "<div class=\"fbnr-wrapper\">
  39.   <div class=\"fbnr2\">
  40.     ";
  41.             // line 4
  42.             $context["rightFbnrs"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getRightFbnrs();
  43.             // line 5
  44.             echo "    ";
  45.             $context['_parent'] = $context;
  46.             $context['_seq'] = twig_ensure_traversable((isset($context["rightFbnrs"]) || array_key_exists("rightFbnrs"$context) ? $context["rightFbnrs"] : (function () { throw new RuntimeError('Variable "rightFbnrs" does not exist.'5$this->source); })()));
  47.             foreach ($context['_seq'] as $context["_key"] => $context["fbnr"]) {
  48.                 // line 6
  49.                 echo "      ";
  50.                 if ((twig_get_attribute($this->env$this->source$context["fbnr"], "fbnr_content2", [], "any"truetruetrue6) && (twig_get_attribute($this->env$this->source$context["fbnr"], "fbnr_content2", [], "any"falsefalsetrue6) != ""))) {
  51.                     // line 7
  52.                     echo "        ";
  53.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["fbnr"], "fbnr_content2", [], "any"falsefalsetrue7), 7$this->source);
  54.                     echo "
  55.       ";
  56.                 }
  57.                 // line 9
  58.                 echo "    ";
  59.             }
  60.             $_parent $context['_parent'];
  61.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fbnr'], $context['_parent'], $context['loop']);
  62.             $context array_intersect_key($context$_parent) + $_parent;
  63.             // line 10
  64.             echo "  </div>
  65. </div>
  66. ";
  67.         }
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.     }
  73.     public function getTemplateName()
  74.     {
  75.         return "Block/lm_floating_banner_right.twig";
  76.     }
  77.     public function isTraitable()
  78.     {
  79.         return false;
  80.     }
  81.     public function getDebugInfo()
  82.     {
  83.         return array (  73 => 10,  67 => 9,  61 => 7,  58 => 6,  53 => 5,  51 => 4,  47 => 2,  45 => 1,);
  84.     }
  85.     public function getSourceContext()
  86.     {
  87.         return new Source("{% if not isMobile(true) %}
  88. <div class=\"fbnr-wrapper\">
  89.   <div class=\"fbnr2\">
  90.     {% set rightFbnrs = right_fbnrs() %}
  91.     {% for fbnr in rightFbnrs %}
  92.       {% if (fbnr.fbnr_content2 is defined and fbnr.fbnr_content2 != '') %}
  93.         {{ fbnr.fbnr_content2 | raw }}
  94.       {% endif %}
  95.     {% endfor %}
  96.   </div>
  97. </div>
  98. {% endif %}
  99. ""Block/lm_floating_banner_right.twig""/var/www/html/app/template/default/Block/lm_floating_banner_right.twig");
  100.     }
  101.     
  102.     public function checkSecurity()
  103.     {
  104.         static $tags = array("if" => 1"set" => 4"for" => 5);
  105.         static $filters = array("raw" => 7);
  106.         static $functions = array("isMobile" => 1"right_fbnrs" => 4);
  107.         try {
  108.             $this->sandbox->checkSecurity(
  109.                 ['if''set''for'],
  110.                 ['raw'],
  111.                 ['isMobile''right_fbnrs']
  112.             );
  113.         } catch (SecurityError $e) {
  114.             $e->setSourceContext($this->source);
  115.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  116.                 $e->setTemplateLine($tags[$e->getTagName()]);
  117.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  118.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  119.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  120.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  121.             }
  122.             throw $e;
  123.         }
  124.     }
  125. }