<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/lm_floating_banner_right.twig */
class __TwigTemplate_ef7dd300158cdf0f08eebf9deecaf2e8 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/lm_floating_banner_right.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/lm_floating_banner_right.twig"));
// line 1
if ( !$this->extensions['Customize\Twig\Extension\ServiceExtension']->isMobile(true)) {
// line 2
echo "<div class=\"fbnr-wrapper\">
<div class=\"fbnr2\">
";
// line 4
$context["rightFbnrs"] = $this->extensions['Customize\Twig\Extension\CustomExtension']->getRightFbnrs();
// line 5
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["fbnr"]) {
// line 6
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["fbnr"], "fbnr_content2", [], "any", true, true, true, 6) && (twig_get_attribute($this->env, $this->source, $context["fbnr"], "fbnr_content2", [], "any", false, false, true, 6) != ""))) {
// line 7
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["fbnr"], "fbnr_content2", [], "any", false, false, true, 7), 7, $this->source);
echo "
";
}
// line 9
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fbnr'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
echo " </div>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/lm_floating_banner_right.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 73 => 10, 67 => 9, 61 => 7, 58 => 6, 53 => 5, 51 => 4, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if not isMobile(true) %}
<div class=\"fbnr-wrapper\">
<div class=\"fbnr2\">
{% set rightFbnrs = right_fbnrs() %}
{% for fbnr in rightFbnrs %}
{% if (fbnr.fbnr_content2 is defined and fbnr.fbnr_content2 != '') %}
{{ fbnr.fbnr_content2 | raw }}
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
", "Block/lm_floating_banner_right.twig", "/var/www/html/app/template/default/Block/lm_floating_banner_right.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "set" => 4, "for" => 5);
static $filters = array("raw" => 7);
static $functions = array("isMobile" => 1, "right_fbnrs" => 4);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
['raw'],
['isMobile', 'right_fbnrs']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}