var/cache/dev/twig/ef/ef4442fad4b88720d0df943dc33dc33b.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* theme/default/partials/bloc_render.html.twig */
  15. class __TwigTemplate_0a8310db4797e36c3beec3ee706a4a0d extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->parent = false;
  24. $this->blocks = [
  25. ];
  26. }
  27. protected function doDisplay(array $context, array $blocks = [])
  28. {
  29. $macros = $this->macros;
  30. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/partials/bloc_render.html.twig"));
  32. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/partials/bloc_render.html.twig"));
  34. // line 1
  35. $context['_parent'] = $context;
  36. $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));
  37. foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
  38. // line 2
  39. yield " ";
  40. if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (CoreExtension::getAttribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 2) == true))) {
  41. // line 3
  42. yield " ";
  43. 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
  44. $context["bloc"]], false);
  45. // line 5
  46. yield "
  47. ";
  48. }
  49. // line 7
  50. yield "
  51. ";
  52. // line 8
  53. 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))) {
  54. // line 9
  55. yield " ";
  56. 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
  57. $context["bloc"]], false);
  58. // line 11
  59. yield "
  60. ";
  61. }
  62. }
  63. $_parent = $context['_parent'];
  64. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
  65. $context = array_intersect_key($context, $_parent) + $_parent;
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68. return; yield '';
  69. }
  70. /**
  71. * @codeCoverageIgnore
  72. */
  73. public function getTemplateName()
  74. {
  75. return "theme/default/partials/bloc_render.html.twig";
  76. }
  77. /**
  78. * @codeCoverageIgnore
  79. */
  80. public function isTraitable()
  81. {
  82. return false;
  83. }
  84. /**
  85. * @codeCoverageIgnore
  86. */
  87. public function getDebugInfo()
  88. {
  89. return array ( 68 => 11, 66 => 10, 64 => 9, 62 => 8, 59 => 7, 55 => 5, 53 => 4, 51 => 3, 48 => 2, 44 => 1,);
  90. }
  91. public function getSourceContext()
  92. {
  93. return new Source("{% for bloc in blocs.block %}
  94. {% if is_mobile() and bloc.mobile == true %}
  95. {{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/component-blocks/generic-block.html.twig',{
  96. bloc: bloc,
  97. }, with_context = false)}}
  98. {% endif %}
  99. {% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
  100. {{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/component-blocks/generic-block.html.twig',{
  101. bloc: bloc,
  102. }, with_context = false)}}
  103. {% endif %}
  104. {% endfor %}", "theme/default/partials/bloc_render.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/partials/bloc_render.html.twig");
  105. }
  106. }