var/cache/dev/twig/9d/9d4fae51855c01699e3c0ad89a572871b502ed4074bd8e4ad1de69a1b545d36a.php line 164

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. /* Frontend/layout.html.twig */
  14. class __TwigTemplate_16db6792f3a1d1b8cb35634183b2cba761d36661ba8815fb2c7d2eafc5925ff5 extends 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->blocks = [
  23.             'seo' => [$this'block_seo'],
  24.             'body' => [$this'block_body'],
  25.             'appcheck' => [$this'block_appcheck'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "Frontend/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/layout.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/layout.html.twig"));
  41.         // line 3
  42.         $context["aTeams"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'3$this->source); })()), "getTeams", [], "method"falsefalsefalse3);
  43.         // line 5
  44.         $context["aNewsCategs"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'5$this->source); })()), "getNewsCategories", [], "method"falsefalsefalse5);
  45.         // line 6
  46.         $context["aSponsors"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'6$this->source); })()), "getSponsors", [], "method"falsefalsefalse6);
  47.         // line 7
  48.         $context["aHeaderSponsors"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'7$this->source); })()), "getHeaderSponsors", [], "method"falsefalsefalse7);
  49.         // line 8
  50.         $context["audio"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'8$this->source); })()), "getAudio", [], "method"falsefalsefalse8);
  51.         // line 9
  52.         $context["fromChina"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'9$this->source); })()), "clientInChina", [], "method"falsefalsefalse9);
  53.         // line 12
  54.         $context["currentYear"] = twig_date_format_filter($this->env"now""Y");
  55.         // line 13
  56.         $context["aLangsUrls"] = twig_get_attribute($this->env$this->source, (isset($context["navHelper"]) || array_key_exists("navHelper"$context) ? $context["navHelper"] : (function () { throw new RuntimeError('Variable "navHelper" does not exist.'13$this->source); })()), "getUrlsForLanguageSelector", [], "method"falsefalsefalse13);
  57.         // line 15
  58.         $context["ticketsUrl"] = "https://tickets.rcdespanyol.com/index.php/en/entradas-en";
  59.         // line 16
  60.         $context["becomeMember"] = "https://tickets.rcdespanyol.com/index.php/en/";
  61.         // line 17
  62.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "locale", [], "any"falsefalsefalse17), "es"))) {
  63.             // line 18
  64.             $context["ticketsUrl"] = "https://tickets.rcdespanyol.com/index.php/es/entradas-es";
  65.             // line 19
  66.             $context["becomeMember"] = "https://tickets.rcdespanyol.com/index.php/es/";
  67.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 20
  68. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'20$this->source); })()), "request", [], "any"falsefalsefalse20), "locale", [], "any"falsefalsefalse20), "ca"))) {
  69.             // line 21
  70.             $context["ticketsUrl"] = "https://tickets.rcdespanyol.com/index.php/ca/entrades";
  71.             // line 22
  72.             $context["becomeMember"] = "https://tickets.rcdespanyol.com/index.php/ca/";
  73.         }
  74.         // line 25
  75.         $context["langArrayIndex"] = 0;
  76.         // line 26
  77.         $context['_parent'] = $context;
  78.         $context['_seq'] = twig_ensure_traversable((isset($context["langs"]) || array_key_exists("langs"$context) ? $context["langs"] : (function () { throw new RuntimeError('Variable "langs" does not exist.'26$this->source); })()));
  79.         $context['loop'] = [
  80.           'parent' => $context['_parent'],
  81.           'index0' => 0,
  82.           'index'  => 1,
  83.           'first'  => true,
  84.         ];
  85.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  86.             $length count($context['_seq']);
  87.             $context['loop']['revindex0'] = $length 1;
  88.             $context['loop']['revindex'] = $length;
  89.             $context['loop']['length'] = $length;
  90.             $context['loop']['last'] = === $length;
  91.         }
  92.         foreach ($context['_seq'] as $context["langCode"] => $context["la"]) {
  93.             // line 27
  94.             if ((=== twig_compare($context["langCode"], twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "locale", [], "any"falsefalsefalse27)))) {
  95.                 // line 28
  96.                 $context["langArrayIndex"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse28);
  97.             }
  98.             ++$context['loop']['index0'];
  99.             ++$context['loop']['index'];
  100.             $context['loop']['first'] = false;
  101.             if (isset($context['loop']['length'])) {
  102.                 --$context['loop']['revindex0'];
  103.                 --$context['loop']['revindex'];
  104.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  105.             }
  106.         }
  107.         $_parent $context['_parent'];
  108.         unset($context['_seq'], $context['_iterated'], $context['langCode'], $context['la'], $context['_parent'], $context['loop']);
  109.         $context array_intersect_key($context$_parent) + $_parent;
  110.         // line 1
  111.         $this->parent $this->loadTemplate("Frontend/base.html.twig""Frontend/layout.html.twig"1);
  112.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  113.         
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  115.         
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  117.     }
  118.     // line 32
  119.     public function block_seo($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  126.         // line 33
  127.         echo "  ";
  128.         if ((array_key_exists("currentSection"$context) &&  !twig_test_empty((isset($context["currentSection"]) || array_key_exists("currentSection"$context) ? $context["currentSection"] : (function () { throw new RuntimeError('Variable "currentSection" does not exist.'33$this->source); })())))) {
  129.             // line 34
  130.             echo "    ";
  131.             echo twig_include($this->env$context"Frontend/common/seoTags.html.twig");
  132.             echo "
  133.   ";
  134.         } else {
  135.             // line 36
  136.             echo "    ";
  137.             $this->displayParentBlock("seo"$context$blocks);
  138.             echo "
  139.   ";
  140.         }
  141.         
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  143.         
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  145.     }
  146.     // line 40
  147.     public function block_body($context, array $blocks = [])
  148.     {
  149.         $macros $this->macros;
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  154.         // line 41
  155.         echo "  ";
  156.         // line 42
  157.         echo "  ";
  158.         $this->displayBlock('appcheck'$context$blocks);
  159.         // line 53
  160.         echo "
  161.   ";
  162.         // line 54
  163.         $this->displayBlock('content'$context$blocks);
  164.         
  165.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  166.         
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  168.     }
  169.     // line 42
  170.     public function block_appcheck($context, array $blocks = [])
  171.     {
  172.         $macros $this->macros;
  173.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""appcheck"));
  175.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  176.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""appcheck"));
  177.         // line 43
  178.         echo "    ";
  179.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse43), "server", [], "any"falsetruefalse43), "get", [=> "HTTP_X_REQUESTED_WITH"], "method"truetruefalse43) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'43$this->source); })()), "request", [], "any"falsefalsefalse43), "server", [], "any"falsefalsefalse43), "get", [=> "HTTP_X_REQUESTED_WITH"], "method"falsefalsefalse43), "com.rcdespanyol.app")))) {
  180.             // line 44
  181.             echo "      ";
  182.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'44$this->source); })()), "session", [], "any"falsefalsefalse44), "set", [=> "foo"=> 0], "method"falsefalsefalse44), "html"nulltrue);
  183.             echo "
  184.     ";
  185.         } else {
  186.             // line 46
  187.             echo "      ";
  188.             if ((((!twig_in_filter("Windows"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'46$this->source); })()), "request", [], "any"falsefalsefalse46), "server", [], "any"falsefalsefalse46), "get", [=> "HTTP_USER_AGENT"], "method"falsefalsefalse46)) && !twig_in_filter("Safari"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'46$this->source); })()), "request", [], "any"falsefalsefalse46), "server", [], "any"falsefalsefalse46), "get", [=> "HTTP_USER_AGENT"], "method"falsefalsefalse46))) && !twig_in_filter("Chrome"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'46$this->source); })()), "request", [], "any"falsefalsefalse46), "server", [], "any"falsefalsefalse46), "get", [=> "HTTP_USER_AGENT"], "method"falsefalsefalse46))) && !twig_in_filter("Firefox"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'46$this->source); })()), "request", [], "any"falsefalsefalse46), "server", [], "any"falsefalsefalse46), "get", [=> "HTTP_USER_AGENT"], "method"falsefalsefalse46)))) {
  189.                 // line 47
  190.                 echo "        ";
  191.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'47$this->source); })()), "session", [], "any"falsefalsefalse47), "set", [=> "foo"=> 0], "method"falsefalsefalse47), "html"nulltrue);
  192.                 echo "
  193.       ";
  194.             } else {
  195.                 // line 49
  196.                 echo "        ";
  197.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'49$this->source); })()), "session", [], "any"falsefalsefalse49), "set", [=> "foo"=> 1], "method"falsefalsefalse49), "html"nulltrue);
  198.                 echo "
  199.       ";
  200.             }
  201.             // line 51
  202.             echo "    ";
  203.         }
  204.         // line 52
  205.         echo "  ";
  206.         
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  208.         
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  210.     }
  211.     // line 54
  212.     public function block_content($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  219.         // line 55
  220.         echo "
  221.   ";
  222.         
  223.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  224.         
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  226.     }
  227.     public function getTemplateName()
  228.     {
  229.         return "Frontend/layout.html.twig";
  230.     }
  231.     public function isTraitable()
  232.     {
  233.         return false;
  234.     }
  235.     public function getDebugInfo()
  236.     {
  237.         return array (  249 => 55,  239 => 54,  229 => 52,  226 => 51,  220 => 49,  214 => 47,  211 => 46,  205 => 44,  202 => 43,  192 => 42,  182 => 54,  179 => 53,  176 => 42,  174 => 41,  164 => 40,  150 => 36,  144 => 34,  141 => 33,  131 => 32,  120 => 1,  105 => 28,  103 => 27,  86 => 26,  84 => 25,  81 => 22,  79 => 21,  77 => 20,  75 => 19,  73 => 18,  71 => 17,  69 => 16,  67 => 15,  65 => 13,  63 => 12,  61 => 9,  59 => 8,  57 => 7,  55 => 6,  53 => 5,  51 => 3,  38 => 1,);
  238.     }
  239.     public function getSourceContext()
  240.     {
  241.         return new Source("{% extends 'Frontend/base.html.twig' %}
  242. {% set aTeams = navHelper.getTeams() %}
  243. {% set aNewsCategs = navHelper.getNewsCategories() %}
  244. {% set aSponsors = navHelper.getSponsors() %}
  245. {% set aHeaderSponsors = navHelper.getHeaderSponsors() %}
  246. {% set audio = navHelper.getAudio() %}
  247. {% set fromChina = navHelper.clientInChina() %}
  248. {# {% set fromChina = true %} #}
  249. {% set currentYear = 'now'|date('Y') %}
  250. {% set aLangsUrls = navHelper.getUrlsForLanguageSelector() %}
  251. {% set ticketsUrl = 'https://tickets.rcdespanyol.com/index.php/en/entradas-en' %}
  252. {% set becomeMember = 'https://tickets.rcdespanyol.com/index.php/en/' %}
  253. {% if app.request.locale == 'es' %}
  254.   {% set ticketsUrl = 'https://tickets.rcdespanyol.com/index.php/es/entradas-es' %}
  255.   {% set becomeMember = 'https://tickets.rcdespanyol.com/index.php/es/' %}
  256. {% elseif app.request.locale == 'ca' %}
  257.   {% set ticketsUrl = 'https://tickets.rcdespanyol.com/index.php/ca/entrades' %}
  258.   {% set becomeMember = 'https://tickets.rcdespanyol.com/index.php/ca/' %}
  259. {% endif %}
  260. {% set langArrayIndex = 0 %}
  261. {% for langCode, la in langs %}
  262.   {% if langCode == app.request.locale %}
  263.     {% set langArrayIndex = loop.index0 %}
  264.   {% endif %}
  265. {% endfor %}
  266. {% block seo %}
  267.   {% if currentSection is defined and currentSection is not empty %}
  268.     {{ include('Frontend/common/seoTags.html.twig') }}
  269.   {% else %}
  270.     {{ parent() }}
  271.   {% endif %}
  272. {% endblock %}
  273. {% block body %}
  274.   {# dump(fromChina) #}
  275.   {% block appcheck %}
  276.     {% if app.request.server.get('HTTP_X_REQUESTED_WITH') is defined and app.request.server.get('HTTP_X_REQUESTED_WITH') == 'com.rcdespanyol.app' %}
  277.       {{ app.session.set('foo', 0) }}
  278.     {% else %}
  279.       {% if 'Windows' not in app.request.server.get('HTTP_USER_AGENT') and 'Safari' not in app.request.server.get('HTTP_USER_AGENT') and 'Chrome' not in app.request.server.get('HTTP_USER_AGENT') and 'Firefox' not in app.request.server.get('HTTP_USER_AGENT') %}
  280.         {{ app.session.set('foo', 0) }}
  281.       {% else %}
  282.         {{ app.session.set('foo', 1) }}
  283.       {% endif %}
  284.     {% endif %}
  285.   {% endblock %}
  286.   {% block content %}
  287.   {% endblock %}
  288. {% endblock %}
  289. ""Frontend/layout.html.twig""/var/www/espanyol/templates/Frontend/layout.html.twig");
  290.     }
  291. }