<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* theme/default/partials/bloc_render.html.twig */
class __TwigTemplate_0a8310db4797e36c3beec3ee706a4a0d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "theme/default/partials/bloc_render.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/partials/bloc_render.html.twig"));
// line 1
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 1, $this->source); })()), "block", [], "any", false, false, false, 1));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 2
yield " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (CoreExtension::getAttribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 2) == true))) {
// line 3
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "server", [], "any", false, false, false, 3), "get", ["APP_THEME"], "method", false, false, false, 3)) . "/component-blocks/generic-block.html.twig"), ["bloc" => // line 4
$context["bloc"]], false);
// line 5
yield "
";
}
// line 7
yield "
";
// line 8
if ((($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isFullView() && ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() == false)) && (CoreExtension::getAttribute($this->env, $this->source, $context["bloc"], "desktop", [], "any", false, false, false, 8) == true))) {
// line 9
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "server", [], "any", false, false, false, 9), "get", ["APP_THEME"], "method", false, false, false, 9)) . "/component-blocks/generic-block.html.twig"), ["bloc" => // line 10
$context["bloc"]], false);
// line 11
yield "
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "theme/default/partials/bloc_render.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 68 => 11, 66 => 10, 64 => 9, 62 => 8, 59 => 7, 55 => 5, 53 => 4, 51 => 3, 48 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% for bloc in blocs.block %}
{% if is_mobile() and bloc.mobile == true %}
{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/component-blocks/generic-block.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/component-blocks/generic-block.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endfor %}", "theme/default/partials/bloc_render.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/partials/bloc_render.html.twig");
}
}