<?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;
/* Frontend/news/new.html.twig */
class __TwigTemplate_22ae82e1d3e4aef40c1d145edcc18cabd2ca5afd694202816028273d5b4a2bbe extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'seo' => [$this, 'block_seo'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Frontend/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Frontend/news/new.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Frontend/news/new.html.twig"));
// line 3
$context["newsAbsPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("new", ["seoSlug" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 3, $this->source); })()), "getTranslations", [], "any", false, false, false, 3), 0, [], "array", false, false, false, 3), "getTitle", [], "method", false, false, false, 3)), "id" => twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 3, $this->source); })()), "getId", [], "method", false, false, false, 3)]);
// line 4
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "images", [], "any", false, true, false, 4), 0, [], "array", true, true, false, 4)) {
// line 5
$context["imgPath"] = ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 5, $this->source); })()) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 5, $this->source); })()), "images", [], "any", false, false, false, 5), 0, [], "array", false, false, false, 5), "section", [], "any", false, false, false, 5)) . "/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 5, $this->source); })()), "images", [], "any", false, false, false, 5), 0, [], "array", false, false, false, 5), "itemId", [], "any", false, false, false, 5)) . "/resized/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 5, $this->source); })()), "images", [], "any", false, false, false, 5), 0, [], "array", false, false, false, 5), "id", [], "any", false, false, false, 5)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 5, $this->source); })()), "images", [], "any", false, false, false, 5), 0, [], "array", false, false, false, 5), "extension", [], "any", false, false, false, 5));
// line 6
$context["imgSocialMediaPath"] = ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 6, $this->source); })()) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 6, $this->source); })()), "images", [], "any", false, false, false, 6), 0, [], "array", false, false, false, 6), "section", [], "any", false, false, false, 6)) . "/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 6, $this->source); })()), "images", [], "any", false, false, false, 6), 0, [], "array", false, false, false, 6), "itemId", [], "any", false, false, false, 6)) . "/resized/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 6, $this->source); })()), "images", [], "any", false, false, false, 6), 0, [], "array", false, false, false, 6), "id", [], "any", false, false, false, 6)) . "_socialmedia.") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 6, $this->source); })()), "images", [], "any", false, false, false, 6), 0, [], "array", false, false, false, 6), "extension", [], "any", false, false, false, 6));
} else {
// line 8
$context["imgPath"] = "";
}
// line 1
$this->parent = $this->loadTemplate("Frontend/layout.html.twig", "Frontend/news/new.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 11
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 12
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/frontend/lightgallery/lightgallery.css"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/frontend/lightgallery/lightgallery-bundle.css"), "html", null, true);
echo "\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_seo($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 17
echo " <meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"";
// line 18
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 18, $this->source); })()), "getTranslations", [], "method", false, false, false, 18), 0, [], "array", false, false, false, 18), "getSeoTitle", [], "method", false, false, false, 18)) ? (print (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 18, $this->source); })()), "getTranslations", [], "method", false, false, false, 18), 0, [], "array", false, false, false, 18), "getSeoTitle", [], "method", false, false, false, 18))) : (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 18, $this->source); })()), "getTranslations", [], "method", false, false, false, 18), 0, [], "array", false, false, false, 18), "getTitle", [], "method", false, false, false, 18), "html", null, true))));
echo "\" />
<title>";
// line 19
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 19, $this->source); })()), "getTranslations", [], "method", false, false, false, 19), 0, [], "array", false, false, false, 19), "getSeoTitle", [], "method", false, false, false, 19)) ? (print (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 19, $this->source); })()), "getTranslations", [], "method", false, false, false, 19), 0, [], "array", false, false, false, 19), "getSeoTitle", [], "method", false, false, false, 19))) : (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 19, $this->source); })()), "getTranslations", [], "method", false, false, false, 19), 0, [], "array", false, false, false, 19), "getTitle", [], "method", false, false, false, 19), "html", null, true))));
echo "</title>
<meta property=\"og:description\" content=\"";
// line 20
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 20, $this->source); })()), "getTranslations", [], "method", false, false, false, 20), 0, [], "array", false, false, false, 20), "getSeoDescription", [], "method", false, false, false, 20)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 20, $this->source); })()), "getTranslations", [], "method", false, false, false, 20), 0, [], "array", false, false, false, 20), "getSeoDescription", [], "method", false, false, false, 20)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 20, $this->source); })()), "getTranslations", [], "method", false, false, false, 20), 0, [], "array", false, false, false, 20), "getSubtitle", [], "method", false, false, false, 20)));
echo "\" />
<meta name=\"description\" content=\"";
// line 22
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 22, $this->source); })()), "getTranslations", [], "method", false, false, false, 22), 0, [], "array", false, false, false, 22), "getSeoDescription", [], "method", false, false, false, 22)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 22, $this->source); })()), "getTranslations", [], "method", false, false, false, 22), 0, [], "array", false, false, false, 22), "getSeoDescription", [], "method", false, false, false, 22)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 22, $this->source); })()), "getTranslations", [], "method", false, false, false, 22), 0, [], "array", false, false, false, 22), "getSubtitle", [], "method", false, false, false, 22)));
echo "\"/>
";
// line 23
if ((isset($context["fileExists"]) || array_key_exists("fileExists", $context) ? $context["fileExists"] : (function () { throw new RuntimeError('Variable "fileExists" does not exist.', 23, $this->source); })())) {
// line 24
echo " <meta property=\"og:image\" itemprop=\"image\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgSocialMediaPath"]) || array_key_exists("imgSocialMediaPath", $context) ? $context["imgSocialMediaPath"] : (function () { throw new RuntimeError('Variable "imgSocialMediaPath" does not exist.', 24, $this->source); })()))), "html", null, true);
echo "\" />
";
} else {
// line 26
echo " <meta property=\"og:image\" itemprop=\"image\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgPath"]) || array_key_exists("imgPath", $context) ? $context["imgPath"] : (function () { throw new RuntimeError('Variable "imgPath" does not exist.', 26, $this->source); })()))), "html", null, true);
echo "\" />
";
}
// line 28
echo " <meta name=\"twitter:site\" content=\"@RCDEspanyol\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 32
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 33
echo "
";
// line 35
echo " ";
// line 36
echo "
";
// line 37
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 37, $this->source); })()), "id", [], "any", false, false, false, 37), (isset($context["news_for_china_only"]) || array_key_exists("news_for_china_only", $context) ? $context["news_for_china_only"] : (function () { throw new RuntimeError('Variable "news_for_china_only" does not exist.', 37, $this->source); })())))) {
// line 38
echo " ";
if ( !twig_test_empty((isset($context["fromChina"]) || array_key_exists("fromChina", $context) ? $context["fromChina"] : (function () { throw new RuntimeError('Variable "fromChina" does not exist.', 38, $this->source); })()))) {
// line 39
echo " <section id=\"new\">
<article>
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<!-- News content -->
<div id=\"content\" class=\"cell small-12 medium-8 large-7\">
<a href=\"";
// line 45
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("news");
echo "\" role=\"button\" tabindex=\"0\" class=\"back\">
<img src=\"";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/chevron.svg"), "html", null, true);
echo "\" alt=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Atrás", [], "messages");
echo "\" title=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Atrás", [], "messages");
echo "\"/>
<span>";
// line 47
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Atrás", [], "messages");
echo "</span>
</a>
<header>
<h1>";
// line 50
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 50, $this->source); })()), "getTranslations", [], "method", false, false, false, 50), 0, [], "array", false, false, false, 50), "getTitle", [], "method", false, false, false, 50), "html", null, true);
echo "</h1>
</header>
<header>
<h2>";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 53, $this->source); })()), "getTranslations", [], "method", false, false, false, 53), 0, [], "array", false, false, false, 53), "getSubtitle", [], "method", false, false, false, 53), "html", null, true);
echo "</h2>
</header>
<div class=\"tools\">
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 56, $this->source); })()), "getCategories", [], "method", false, false, false, 56));
foreach ($context['_seq'] as $context["_key"] => $context["categ"]) {
// line 57
echo " <div class=\"category\">
<a href=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("newsByCateg", ["seoSlugCategory" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 59
$context["categ"], "getTranslations", [], "method", false, false, false, 59), 0, [], "array", false, false, false, 59), "getName", [], "method", false, false, false, 59)), "id" => twig_get_attribute($this->env, $this->source, // line 60
$context["categ"], "getId", [], "method", false, false, false, 60)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 60), 0, [], "array", false, false, false, 60), "getName", [], "method", false, false, false, 60), "html", null, true);
echo "\" class=\"\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 60), 0, [], "array", false, false, false, 60), "getName", [], "method", false, false, false, 60), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categ'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo " <span class=\"dia\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 63, $this->source); })()), "getPublicationDate", [], "method", false, false, false, 63), "d/m/Y"), "html", null, true);
echo "</span>
<span class=\"hora\">";
// line 64
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 64, $this->source); })()), "getPublicationDate", [], "method", false, false, false, 64), "H:i:s"), "html", null, true);
echo "</span>
<span class=\"share\"><a href=\"https://www.facebook.com/sharer/sharer.php?u=";
// line 65
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 65, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fab fa-2x fa-facebook-f\"></i></a></span>
<span class=\"share xtwitter\"><a href=\"https://twitter.com/intent/tweet?url=";
// line 66
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 66, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/x-twitter.svg"), "html", null, true);
echo "\" alt=\"Twitter\" title=\"Twitter\"/></a></span>
<span class=\"hide-for-small-only share\"><a href=\"https://web.whatsapp.com/send?text=";
// line 67
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 67, $this->source); })()), "html", null, true);
echo "\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"";
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 67, $this->source); })()), "html", null, true);
echo "\" data-action=\"share/whatsapp/share\" data-param-description=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 67, $this->source); })()), "getTranslations", [], "method", false, false, false, 67), 0, [], "array", false, false, false, 67), "getSeoDescription", [], "method", false, false, false, 67), "html", null, true);
echo "\" data-param-title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 67, $this->source); })()), "getTranslations", [], "method", false, false, false, 67), 0, [], "array", false, false, false, 67), "getTitle", [], "method", false, false, false, 67), "html", null, true);
echo "\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
<span class=\"show-for-small-only share\"><a href=\"whatsapp://send?text=";
// line 68
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 68, $this->source); })()), "html", null, true);
echo "\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"";
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 68, $this->source); })()), "html", null, true);
echo "\" data-action=\"share/whatsapp/share\" data-param-description=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 68, $this->source); })()), "getTranslations", [], "method", false, false, false, 68), 0, [], "array", false, false, false, 68), "getSeoDescription", [], "method", false, false, false, 68), "html", null, true);
echo "\" data-param-title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 68, $this->source); })()), "getTranslations", [], "method", false, false, false, 68), 0, [], "array", false, false, false, 68), "getTitle", [], "method", false, false, false, 68), "html", null, true);
echo "\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
</div>
";
// line 71
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 71, $this->source); })()), "getKalturaId", [], "method", false, false, false, 71))) {
// line 72
echo " <div class=\"responsive-embed\">
<iframe type=\"text/javascript\" src='https://cdnapisec.kaltura.com/p/4626453/embedPlaykitJs/uiconf_id/50311432?iframeembed=true&entry_id=";
// line 73
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 73, $this->source); })()), "KalturaId", [], "method", false, false, false, 73), "html", null, true);
echo "' style=\"width: 100%; height: 100%;\" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow=\"autoplay *; fullscreen *; encrypted-media *\" frameborder=\"0\"></iframe>
</div>
";
} else {
// line 76
echo " <figure>
<img src=\"";
// line 77
echo twig_escape_filter($this->env, (isset($context["imgPath"]) || array_key_exists("imgPath", $context) ? $context["imgPath"] : (function () { throw new RuntimeError('Variable "imgPath" does not exist.', 77, $this->source); })()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 77, $this->source); })()), "getTranslations", [], "method", false, false, false, 77), 0, [], "array", false, false, false, 77), "getTitle", [], "method", false, false, false, 77), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 77, $this->source); })()), "getTranslations", [], "method", false, false, false, 77), 0, [], "array", false, false, false, 77), "getTitle", [], "method", false, false, false, 77), "html", null, true);
echo "\" />
</figure>
";
}
// line 80
echo "
";
// line 81
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 81, $this->source); })()), "getTranslations", [], "method", false, false, false, 81), 0, [], "array", false, false, false, 81), "getText", [], "method", false, false, false, 81);
echo "
";
// line 82
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 82, $this->source); })()), "getVideo1", [], "method", false, false, false, 82))) {
// line 83
echo " <p><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 83, $this->source); })()), "getVideo1", [], "method", false, false, false, 83), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 83, $this->source); })()), "getVideo1", [], "method", false, false, false, 83), "html", null, true);
echo "</a></p>
";
}
// line 85
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 85, $this->source); })()), "getVideo2", [], "method", false, false, false, 85))) {
// line 86
echo " <p><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 86, $this->source); })()), "getVideo2", [], "method", false, false, false, 86), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 86, $this->source); })()), "getVideo2", [], "method", false, false, false, 86), "html", null, true);
echo "</a></p>
";
}
// line 88
echo " ";
$this->loadTemplate("Frontend/news/match_stats.html.twig", "Frontend/news/new.html.twig", 88)->display($context);
// line 89
echo "
</div>
<!-- Sidebar -->
<aside id=\"sidebar\" class=\"cell small-12 medium-4 large-5\">
";
// line 94
if ((((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", true, true, false, 94)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", false, false, false, 94))) : ("")) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", false, true, false, 94), "getImages", [], "method", false, true, false, 94), 0, [], "array", true, true, false, 94)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", false, true, false, 94), "getImages", [], "method", false, true, false, 94), 0, [], "array", false, false, false, 94))) : ("")))) {
// line 95
echo " ";
$context["bannerImg"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 95, $this->source); })()), "getBanner", [], "method", false, false, false, 95), "getImages", [], "method", false, false, false, 95), 0, [], "array", false, false, false, 95);
// line 96
echo " <div class=\"sponsor\">
<a href=\"";
// line 97
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 97, $this->source); })()), "getBanner", [], "method", false, false, false, 97), "getTranslations", [], "method", false, false, false, 97), 0, [], "array", false, false, false, 97), "getLink", [], "method", false, false, false, 97), "html", null, true);
echo "\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 97, $this->source); })()), "getBanner", [], "method", false, false, false, 97), "getTranslations", [], "method", false, false, false, 97), 0, [], "array", false, false, false, 97), "getTitle", [], "method", false, false, false, 97), "html", null, true);
echo "\">
<img src=\"";
// line 98
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 98, $this->source); })()) . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 98, $this->source); })()), "section", [], "any", false, false, false, 98)) . "/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 98, $this->source); })()), "itemId", [], "any", false, false, false, 98)) . "/resized/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 98, $this->source); })()), "id", [], "any", false, false, false, 98)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 98, $this->source); })()), "extension", [], "any", false, false, false, 98)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 98, $this->source); })()), "getBanner", [], "method", false, false, false, 98), "getTranslations", [], "method", false, false, false, 98), 0, [], "array", false, false, false, 98), "getTitle", [], "method", false, false, false, 98), "html", null, true);
echo "\" />
</a>
</div>
";
}
// line 102
echo " ";
if ((((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", true, true, false, 102)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", false, false, false, 102))) : ("")) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", false, true, false, 102), "getImages", [], "method", false, true, false, 102), 0, [], "array", true, true, false, 102)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", false, true, false, 102), "getImages", [], "method", false, true, false, 102), 0, [], "array", false, false, false, 102))) : ("")))) {
// line 103
echo " ";
$context["bannerImg"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 103, $this->source); })()), "getBanner2", [], "method", false, false, false, 103), "getImages", [], "method", false, false, false, 103), 0, [], "array", false, false, false, 103);
// line 104
echo " <div class=\"sponsor\">
<a href=\"";
// line 105
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 105, $this->source); })()), "getBanner2", [], "method", false, false, false, 105), "getTranslations", [], "method", false, false, false, 105), 0, [], "array", false, false, false, 105), "getLink", [], "method", false, false, false, 105), "html", null, true);
echo "\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 105, $this->source); })()), "getBanner2", [], "method", false, false, false, 105), "getTranslations", [], "method", false, false, false, 105), 0, [], "array", false, false, false, 105), "getTitle", [], "method", false, false, false, 105), "html", null, true);
echo "\">
<img src=\"";
// line 106
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 106, $this->source); })()) . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 106, $this->source); })()), "section", [], "any", false, false, false, 106)) . "/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 106, $this->source); })()), "itemId", [], "any", false, false, false, 106)) . "/resized/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 106, $this->source); })()), "id", [], "any", false, false, false, 106)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 106, $this->source); })()), "extension", [], "any", false, false, false, 106)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 106, $this->source); })()), "getBanner2", [], "method", false, false, false, 106), "getTranslations", [], "method", false, false, false, 106), 0, [], "array", false, false, false, 106), "getTitle", [], "method", false, false, false, 106), "html", null, true);
echo "\" />
</a>
</div>
";
}
// line 110
echo " ";
$this->loadTemplate("Frontend/common/nextmatch.html.twig", "Frontend/news/new.html.twig", 110)->display($context);
// line 111
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["banners"]) || array_key_exists("banners", $context) ? $context["banners"] : (function () { throw new RuntimeError('Variable "banners" does not exist.', 111, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["banner"]) {
// line 112
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", true, true, false, 112) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 112)))) {
// line 113
echo " <div class=\"banner\">
<header>
<h4>";
// line 115
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 115), "title", [], "any", false, false, false, 115), "html", null, true);
echo "</h4>
</header>
<a href=\"";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 117), "link", [], "any", false, false, false, 117), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 117), "title", [], "any", false, false, false, 117), "html", null, true);
echo "\">
<img src=\"";
// line 118
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 118), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 118), "title", [], "any", false, false, false, 118), "html", null, true);
echo "\" />
</a>
</div>
";
}
// line 122
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['banner'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
echo " <div class=\"download\">
<div class=\"\" role=\"main\">
<header>
<h4>";
// line 126
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Descárgate la app", [], "messages");
echo "</h4>
</header>
<p>";
// line 128
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Todos los detalles del partido en tu móvil", [], "messages");
echo "</p>
<div class=\"\" role=\"button\">
<a class=\"\" href=\"https://apps.apple.com/app/rcd-espanyol-de-barcelona/id1482739348?ls=1&l=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"";
// line 131
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/tmp/download-appstore.png"), "html", null, true);
echo "\" alt=\"Download it on the App Store\" title=\"Download it on the App Store\" />
</a>
<a class=\"\" href=\"https://play.google.com/store/apps/details?id=com.rcdespanyol.app&hl=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"";
// line 134
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/tmp/google-play.png"), "html", null, true);
echo "\" alt=\"Get it on Google Play\" title=\"Get it on Google Play\"/>
</a>
</div>
<div class=\"\" role=\"figure\">
<img src=\"";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/static/rcde_banner_app.png"), "html", null, true);
echo "\" alt=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Descárgate la app", [], "messages");
echo "\" title=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Descárgate la app", [], "messages");
echo "\" />
</div>
</div>
</div>
</aside>
<aside id=\"download\">
<div class=\"grid-container\">
";
// line 146
if (((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getDocuments", [], "method", true, true, false, 146)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getDocuments", [], "method", false, false, false, 146))) : (""))) {
// line 147
echo " <header>
<h3>";
// line 148
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Archivos", [], "messages");
echo "</h3>
</header>
<ul>
";
// line 151
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 151, $this->source); })()), "getDocuments", [], "method", false, false, false, 151));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 152
echo " <li class=\"cell\">
<a href=\"";
// line 153
echo twig_escape_filter($this->env, ((((((((isset($context["DOC_PATH"]) || array_key_exists("DOC_PATH", $context) ? $context["DOC_PATH"] : (function () { throw new RuntimeError('Variable "DOC_PATH" does not exist.', 153, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["doc"], "section", [], "any", false, false, false, 153)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "itemId", [], "any", false, false, false, 153)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "id", [], "any", false, false, false, 153)) . ".") . twig_get_attribute($this->env, $this->source, $context["doc"], "extension", [], "any", false, false, false, 153)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 153), "html", null, true);
echo "\" target=\"_blank\">
<figure>
<img src=\"";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/file.svg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "extension", [], "any", false, false, false, 155), "html", null, true);
echo "\" />
</figure>
<span>";
// line 157
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 157), "html", null, true);
echo "</span>
<div>
<span>";
// line 159
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "extension", [], "any", false, false, false, 159), "html", null, true);
echo "</span>
<span><img src=\"";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/download.svg"), "html", null, true);
echo "\"></span>
</div>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['doc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 165
echo " </ul>
";
}
// line 167
echo " </div>
</aside>
</div>
</div>
<aside class=\"fixgallery\">
<header>
<h2>";
// line 173
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Galería", [], "messages");
echo "</h2>
</header>
<div id=\"lightgallery\" class=\"gallery-carousel\">
";
// line 176
if (((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "images", [], "any", true, true, false, 176)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "images", [], "any", false, false, false, 176))) : (""))) {
// line 177
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 177, $this->source); })()), "images", [], "any", false, false, false, 177));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 178
echo " <div class=\"item\" data-src=\"";
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 178, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["image"], "section", [], "any", false, false, false, 178)) . "/") . twig_get_attribute($this->env, $this->source, $context["image"], "itemId", [], "any", false, false, false, 178)) . "/resized/") . twig_get_attribute($this->env, $this->source, $context["image"], "id", [], "any", false, false, false, 178)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, $context["image"], "extension", [], "any", false, false, false, 178)), "html", null, true);
echo "\" title=\"\" data-index=\"0\" />
<figure>
<img src=\"";
// line 180
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 180, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["image"], "section", [], "any", false, false, false, 180)) . "/") . twig_get_attribute($this->env, $this->source, $context["image"], "itemId", [], "any", false, false, false, 180)) . "/resized/") . twig_get_attribute($this->env, $this->source, $context["image"], "id", [], "any", false, false, false, 180)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, $context["image"], "extension", [], "any", false, false, false, 180)), "html", null, true);
echo "\"/>
</figure>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " ";
}
// line 185
echo " </div>
</aside>
";
// line 188
echo " ";
if ( !twig_test_empty((isset($context["relatedNews"]) || array_key_exists("relatedNews", $context) ? $context["relatedNews"] : (function () { throw new RuntimeError('Variable "relatedNews" does not exist.', 188, $this->source); })()))) {
// line 189
echo " <aside id=\"related\">
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<header class=\"cell small-12 medium-11 large-11\">
<h2>";
// line 193
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Noticias relacionadas", [], "messages");
echo "</h2>
</header>
</div>
<div class=\"related\">
";
// line 197
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["relatedNews"]) || array_key_exists("relatedNews", $context) ? $context["relatedNews"] : (function () { throw new RuntimeError('Variable "relatedNews" does not exist.', 197, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["relNew"]) {
// line 198
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "method", false, true, false, 198), 0, [], "array", false, true, false, 198), "getTitle", [], "method", true, true, false, 198)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "method", false, true, false, 198), 0, [], "array", false, true, false, 198), "getTitle", [], "method", false, false, false, 198))) : (""))) {
// line 199
echo " ";
$context["relNewPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("new", ["seoSlug" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 199), 0, [], "array", false, false, false, 199), "getTitle", [], "method", false, false, false, 199)), "id" => twig_get_attribute($this->env, $this->source, $context["relNew"], "getId", [], "method", false, false, false, 199)]);
// line 200
echo " ";
} else {
// line 201
echo " ";
$context["relNewPath"] = "";
// line 202
echo " ";
}
// line 203
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, true, false, 203), 0, [], "array", true, true, false, 203)) {
// line 204
echo " ";
$context["imgPath"] = ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 204, $this->source); })()) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 204), 0, [], "array", false, false, false, 204), "section", [], "any", false, false, false, 204)) . "/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 204), 0, [], "array", false, false, false, 204), "itemId", [], "any", false, false, false, 204)) . "/resized/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 204), 0, [], "array", false, false, false, 204), "id", [], "any", false, false, false, 204)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 204), 0, [], "array", false, false, false, 204), "extension", [], "any", false, false, false, 204));
// line 205
echo " ";
} else {
// line 206
echo " ";
$context["imgPath"] = "";
// line 207
echo " ";
}
// line 208
echo " <div>
<figure>
<a href=\"";
// line 210
echo twig_escape_filter($this->env, (isset($context["relNewPath"]) || array_key_exists("relNewPath", $context) ? $context["relNewPath"] : (function () { throw new RuntimeError('Variable "relNewPath" does not exist.', 210, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 210), 0, [], "array", false, false, false, 210), "getTitle", [], "method", false, false, false, 210), "html", null, true);
echo "\">
<img src=\"";
// line 211
echo twig_escape_filter($this->env, (isset($context["imgPath"]) || array_key_exists("imgPath", $context) ? $context["imgPath"] : (function () { throw new RuntimeError('Variable "imgPath" does not exist.', 211, $this->source); })()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 211), 0, [], "array", false, false, false, 211), "getTitle", [], "method", false, false, false, 211), "html", null, true);
echo "\" />
</a>
</figure>
<div class=\"description\">
<header>
<h3><a href=\"";
// line 216
echo twig_escape_filter($this->env, (isset($context["relNewPath"]) || array_key_exists("relNewPath", $context) ? $context["relNewPath"] : (function () { throw new RuntimeError('Variable "relNewPath" does not exist.', 216, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 216), 0, [], "array", false, false, false, 216), "getTitle", [], "method", false, false, false, 216), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 216), 0, [], "array", false, false, false, 216), "getTitle", [], "method", false, false, false, 216), "html", null, true);
echo "</a></h3>
</header>
<p>
";
// line 219
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["relNew"], "getCategories", [], "method", false, false, false, 219));
foreach ($context['_seq'] as $context["_key"] => $context["categ"]) {
// line 220
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("newsByCateg", ["seoSlugCategory" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 221
$context["categ"], "getTranslations", [], "method", false, false, false, 221), 0, [], "array", false, false, false, 221), "getName", [], "method", false, false, false, 221)), "id" => twig_get_attribute($this->env, $this->source, // line 222
$context["categ"], "getId", [], "method", false, false, false, 222)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 222), 0, [], "array", false, false, false, 222), "getName", [], "method", false, false, false, 222), "html", null, true);
echo "\" class=\"category\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 222), 0, [], "array", false, false, false, 222), "getName", [], "method", false, false, false, 222), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categ'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 224
echo " <span>";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["relNew"], "getPublicationDate", [], "method", false, false, false, 224), "d/m/Y"), "html", null, true);
echo "</span>
</p>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['relNew'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 229
echo " </div>
</div>
</aside>
";
}
// line 233
echo " </article>
</section>
";
}
} else {
// line 237
echo "
<section id=\"new\">
<article>
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<!-- News content -->
<div id=\"content\" class=\"cell small-12 medium-8 large-7\">
<a href=\"";
// line 244
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("news");
echo "\" role=\"button\" tabindex=\"0\" class=\"back\">
<img src=\"";
// line 245
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/chevron.svg"), "html", null, true);
echo "\" alt=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Atrás", [], "messages");
echo "\" title=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Atrás", [], "messages");
echo "\"/>
<span>";
// line 246
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Atrás", [], "messages");
echo "</span>
</a>
<header>
<h1>";
// line 249
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 249, $this->source); })()), "getTranslations", [], "method", false, false, false, 249), 0, [], "array", false, false, false, 249), "getTitle", [], "method", false, false, false, 249), "html", null, true);
echo "</h1>
</header>
<header>
<h2>";
// line 252
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 252, $this->source); })()), "getTranslations", [], "method", false, false, false, 252), 0, [], "array", false, false, false, 252), "getSubtitle", [], "method", false, false, false, 252), "html", null, true);
echo "</h2>
</header>
<div class=\"tools\">
";
// line 255
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 255, $this->source); })()), "getCategories", [], "method", false, false, false, 255));
foreach ($context['_seq'] as $context["_key"] => $context["categ"]) {
// line 256
echo " <div class=\"category\">
<a href=\"";
// line 257
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("newsByCateg", ["seoSlugCategory" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 258
$context["categ"], "getTranslations", [], "method", false, false, false, 258), 0, [], "array", false, false, false, 258), "getName", [], "method", false, false, false, 258)), "id" => twig_get_attribute($this->env, $this->source, // line 259
$context["categ"], "getId", [], "method", false, false, false, 259)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 259), 0, [], "array", false, false, false, 259), "getName", [], "method", false, false, false, 259), "html", null, true);
echo "\" class=\"\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 259), 0, [], "array", false, false, false, 259), "getName", [], "method", false, false, false, 259), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categ'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 262
echo " <span class=\"dia\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 262, $this->source); })()), "getPublicationDate", [], "method", false, false, false, 262), "d/m/Y"), "html", null, true);
echo "</span>
<span class=\"hora\">";
// line 263
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 263, $this->source); })()), "getPublicationDate", [], "method", false, false, false, 263), "H:i:s"), "html", null, true);
echo "</span>
<span class=\"share\"><a href=\"https://www.facebook.com/sharer/sharer.php?u=";
// line 264
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 264, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fab fa-2x fa-facebook-f\"></i></a></span>
<span class=\"share xtwitter\"><a href=\"https://twitter.com/intent/tweet?url=";
// line 265
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 265, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/x-twitter.svg"), "html", null, true);
echo "\" alt=\"Twitter\" title=\"Twitter\"/></a></span>
<span class=\"hide-for-small-only share\"><a href=\"https://web.whatsapp.com/send?text=";
// line 266
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 266, $this->source); })()), "html", null, true);
echo "\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"";
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 266, $this->source); })()), "html", null, true);
echo "\" data-action=\"share/whatsapp/share\" data-param-description=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 266, $this->source); })()), "getTranslations", [], "method", false, false, false, 266), 0, [], "array", false, false, false, 266), "getSeoDescription", [], "method", false, false, false, 266), "html", null, true);
echo "\" data-param-title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 266, $this->source); })()), "getTranslations", [], "method", false, false, false, 266), 0, [], "array", false, false, false, 266), "getTitle", [], "method", false, false, false, 266), "html", null, true);
echo "\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
<span class=\"show-for-small-only share\"><a href=\"whatsapp://send?text=";
// line 267
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 267, $this->source); })()), "html", null, true);
echo "\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"";
echo twig_escape_filter($this->env, (isset($context["newsAbsPath"]) || array_key_exists("newsAbsPath", $context) ? $context["newsAbsPath"] : (function () { throw new RuntimeError('Variable "newsAbsPath" does not exist.', 267, $this->source); })()), "html", null, true);
echo "\" data-action=\"share/whatsapp/share\" data-param-description=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 267, $this->source); })()), "getTranslations", [], "method", false, false, false, 267), 0, [], "array", false, false, false, 267), "getSeoDescription", [], "method", false, false, false, 267), "html", null, true);
echo "\" data-param-title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 267, $this->source); })()), "getTranslations", [], "method", false, false, false, 267), 0, [], "array", false, false, false, 267), "getTitle", [], "method", false, false, false, 267), "html", null, true);
echo "\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
</div>
";
// line 270
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 270, $this->source); })()), "getKalturaId", [], "method", false, false, false, 270))) {
// line 271
echo " <div class=\"responsive-embed\">
<iframe type=\"text/javascript\" src='https://cdnapisec.kaltura.com/p/4626453/embedPlaykitJs/uiconf_id/50311432?iframeembed=true&entry_id=";
// line 272
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 272, $this->source); })()), "KalturaId", [], "method", false, false, false, 272), "html", null, true);
echo "' style=\"width: 100%; height: 100%;\" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow=\"autoplay *; fullscreen *; encrypted-media *\" frameborder=\"0\"></iframe>
</div>
";
} else {
// line 275
echo " <figure>
<img src=\"";
// line 276
echo twig_escape_filter($this->env, (isset($context["imgPath"]) || array_key_exists("imgPath", $context) ? $context["imgPath"] : (function () { throw new RuntimeError('Variable "imgPath" does not exist.', 276, $this->source); })()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 276, $this->source); })()), "getTranslations", [], "method", false, false, false, 276), 0, [], "array", false, false, false, 276), "getTitle", [], "method", false, false, false, 276), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 276, $this->source); })()), "getTranslations", [], "method", false, false, false, 276), 0, [], "array", false, false, false, 276), "getTitle", [], "method", false, false, false, 276), "html", null, true);
echo "\" />
</figure>
";
}
// line 279
echo "
";
// line 280
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 280, $this->source); })()), "getTranslations", [], "method", false, false, false, 280), 0, [], "array", false, false, false, 280), "getText", [], "method", false, false, false, 280);
echo "
";
// line 281
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 281, $this->source); })()), "getVideo1", [], "method", false, false, false, 281))) {
// line 282
echo " <p><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 282, $this->source); })()), "getVideo1", [], "method", false, false, false, 282), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 282, $this->source); })()), "getVideo1", [], "method", false, false, false, 282), "html", null, true);
echo "</a></p>
";
}
// line 284
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 284, $this->source); })()), "getVideo2", [], "method", false, false, false, 284))) {
// line 285
echo " <p><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 285, $this->source); })()), "getVideo2", [], "method", false, false, false, 285), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 285, $this->source); })()), "getVideo2", [], "method", false, false, false, 285), "html", null, true);
echo "</a></p>
";
}
// line 287
echo " ";
$this->loadTemplate("Frontend/news/match_stats.html.twig", "Frontend/news/new.html.twig", 287)->display($context);
// line 288
echo "
</div>
<!-- Sidebar -->
<aside id=\"sidebar\" class=\"cell small-12 medium-4 large-5\">
";
// line 293
if ((((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", true, true, false, 293)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", false, false, false, 293))) : ("")) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", false, true, false, 293), "getImages", [], "method", false, true, false, 293), 0, [], "array", true, true, false, 293)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner", [], "method", false, true, false, 293), "getImages", [], "method", false, true, false, 293), 0, [], "array", false, false, false, 293))) : ("")))) {
// line 294
echo " ";
$context["bannerImg"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 294, $this->source); })()), "getBanner", [], "method", false, false, false, 294), "getImages", [], "method", false, false, false, 294), 0, [], "array", false, false, false, 294);
// line 295
echo " <div class=\"sponsor\">
<a href=\"";
// line 296
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 296, $this->source); })()), "getBanner", [], "method", false, false, false, 296), "getTranslations", [], "method", false, false, false, 296), 0, [], "array", false, false, false, 296), "getLink", [], "method", false, false, false, 296), "html", null, true);
echo "\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 296, $this->source); })()), "getBanner", [], "method", false, false, false, 296), "getTranslations", [], "method", false, false, false, 296), 0, [], "array", false, false, false, 296), "getTitle", [], "method", false, false, false, 296), "html", null, true);
echo "\">
<img src=\"";
// line 297
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 297, $this->source); })()) . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 297, $this->source); })()), "section", [], "any", false, false, false, 297)) . "/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 297, $this->source); })()), "itemId", [], "any", false, false, false, 297)) . "/resized/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 297, $this->source); })()), "id", [], "any", false, false, false, 297)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 297, $this->source); })()), "extension", [], "any", false, false, false, 297)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 297, $this->source); })()), "getBanner", [], "method", false, false, false, 297), "getTranslations", [], "method", false, false, false, 297), 0, [], "array", false, false, false, 297), "getTitle", [], "method", false, false, false, 297), "html", null, true);
echo "\" />
</a>
</div>
";
}
// line 301
echo " ";
if ((((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", true, true, false, 301)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", false, false, false, 301))) : ("")) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", false, true, false, 301), "getImages", [], "method", false, true, false, 301), 0, [], "array", true, true, false, 301)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getBanner2", [], "method", false, true, false, 301), "getImages", [], "method", false, true, false, 301), 0, [], "array", false, false, false, 301))) : ("")))) {
// line 302
echo " ";
$context["bannerImg"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 302, $this->source); })()), "getBanner2", [], "method", false, false, false, 302), "getImages", [], "method", false, false, false, 302), 0, [], "array", false, false, false, 302);
// line 303
echo " <div class=\"sponsor\">
<a href=\"";
// line 304
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 304, $this->source); })()), "getBanner2", [], "method", false, false, false, 304), "getTranslations", [], "method", false, false, false, 304), 0, [], "array", false, false, false, 304), "getLink", [], "method", false, false, false, 304), "html", null, true);
echo "\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 304, $this->source); })()), "getBanner2", [], "method", false, false, false, 304), "getTranslations", [], "method", false, false, false, 304), 0, [], "array", false, false, false, 304), "getTitle", [], "method", false, false, false, 304), "html", null, true);
echo "\">
<img src=\"";
// line 305
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 305, $this->source); })()) . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 305, $this->source); })()), "section", [], "any", false, false, false, 305)) . "/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 305, $this->source); })()), "itemId", [], "any", false, false, false, 305)) . "/resized/") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 305, $this->source); })()), "id", [], "any", false, false, false, 305)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, (isset($context["bannerImg"]) || array_key_exists("bannerImg", $context) ? $context["bannerImg"] : (function () { throw new RuntimeError('Variable "bannerImg" does not exist.', 305, $this->source); })()), "extension", [], "any", false, false, false, 305)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 305, $this->source); })()), "getBanner2", [], "method", false, false, false, 305), "getTranslations", [], "method", false, false, false, 305), 0, [], "array", false, false, false, 305), "getTitle", [], "method", false, false, false, 305), "html", null, true);
echo "\" />
</a>
</div>
";
}
// line 309
echo " ";
$this->loadTemplate("Frontend/common/nextmatch.html.twig", "Frontend/news/new.html.twig", 309)->display($context);
// line 310
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["banners"]) || array_key_exists("banners", $context) ? $context["banners"] : (function () { throw new RuntimeError('Variable "banners" does not exist.', 310, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["banner"]) {
// line 311
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", true, true, false, 311) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 311)))) {
// line 312
echo " <div class=\"banner\">
<header>
<h4>";
// line 314
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 314), "title", [], "any", false, false, false, 314), "html", null, true);
echo "</h4>
</header>
<a href=\"";
// line 316
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 316), "link", [], "any", false, false, false, 316), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 316), "title", [], "any", false, false, false, 316), "html", null, true);
echo "\">
<img src=\"";
// line 317
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 317), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["banner"], "record", [], "any", false, false, false, 317), "title", [], "any", false, false, false, 317), "html", null, true);
echo "\" />
</a>
</div>
";
}
// line 321
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['banner'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 322
echo " <div class=\"download\">
<div class=\"\" role=\"main\">
<header>
<h4>";
// line 325
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Descárgate la app", [], "messages");
echo "</h4>
</header>
<p>";
// line 327
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Todos los detalles del partido en tu móvil", [], "messages");
echo "</p>
<div class=\"\" role=\"button\">
<a class=\"\" href=\"https://apps.apple.com/app/rcd-espanyol-de-barcelona/id1482739348?ls=1&l=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"";
// line 330
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/tmp/download-appstore.png"), "html", null, true);
echo "\" alt=\"Download it on the App Store\" title=\"Download it on the App Store\" />
</a>
<a class=\"\" href=\"https://play.google.com/store/apps/details?id=com.rcdespanyol.app&hl=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"";
// line 333
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/tmp/google-play.png"), "html", null, true);
echo "\" alt=\"Get it on Google Play\" title=\"Get it on Google Play\"/>
</a>
</div>
<div class=\"\" role=\"figure\">
<img src=\"";
// line 337
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/static/rcde_banner_app.png"), "html", null, true);
echo "\" alt=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Descárgate la app", [], "messages");
echo "\" title=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Descárgate la app", [], "messages");
echo "\" />
</div>
</div>
</div>
</aside>
<aside id=\"download\">
<div class=\"grid-container\">
";
// line 345
if (((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getDocuments", [], "method", true, true, false, 345)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "getDocuments", [], "method", false, false, false, 345))) : (""))) {
// line 346
echo " <header>
<h3>";
// line 347
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Archivos", [], "messages");
echo "</h3>
</header>
<ul>
";
// line 350
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 350, $this->source); })()), "getDocuments", [], "method", false, false, false, 350));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 351
echo " <li class=\"cell\">
<a href=\"";
// line 352
echo twig_escape_filter($this->env, ((((((((isset($context["DOC_PATH"]) || array_key_exists("DOC_PATH", $context) ? $context["DOC_PATH"] : (function () { throw new RuntimeError('Variable "DOC_PATH" does not exist.', 352, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["doc"], "section", [], "any", false, false, false, 352)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "itemId", [], "any", false, false, false, 352)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "id", [], "any", false, false, false, 352)) . ".") . twig_get_attribute($this->env, $this->source, $context["doc"], "extension", [], "any", false, false, false, 352)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 352), "html", null, true);
echo "\" target=\"_blank\">
<figure>
<img src=\"";
// line 354
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/file.svg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "extension", [], "any", false, false, false, 354), "html", null, true);
echo "\" />
</figure>
<span>";
// line 356
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 356), "html", null, true);
echo "</span>
<div>
<span>";
// line 358
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "extension", [], "any", false, false, false, 358), "html", null, true);
echo "</span>
<span><img src=\"";
// line 359
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/download.svg"), "html", null, true);
echo "\"></span>
</div>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['doc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 364
echo " </ul>
";
}
// line 366
echo " </div>
</aside>
</div>
</div>
<aside class=\"fixgallery\">
<header>
<h2>";
// line 372
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Galería", [], "messages");
echo "</h2>
</header>
<div id=\"lightgallery\" class=\"gallery-carousel\">
";
// line 375
if (((twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "images", [], "any", true, true, false, 375)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["new"] ?? null), "images", [], "any", false, false, false, 375))) : (""))) {
// line 376
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["new"]) || array_key_exists("new", $context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.', 376, $this->source); })()), "images", [], "any", false, false, false, 376));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 377
echo " <div class=\"item\" data-src=\"";
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 377, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["image"], "section", [], "any", false, false, false, 377)) . "/") . twig_get_attribute($this->env, $this->source, $context["image"], "itemId", [], "any", false, false, false, 377)) . "/resized/") . twig_get_attribute($this->env, $this->source, $context["image"], "id", [], "any", false, false, false, 377)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, $context["image"], "extension", [], "any", false, false, false, 377)), "html", null, true);
echo "\" title=\"\" data-index=\"0\" />
<figure>
<img src=\"";
// line 379
echo twig_escape_filter($this->env, ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 379, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["image"], "section", [], "any", false, false, false, 379)) . "/") . twig_get_attribute($this->env, $this->source, $context["image"], "itemId", [], "any", false, false, false, 379)) . "/resized/") . twig_get_attribute($this->env, $this->source, $context["image"], "id", [], "any", false, false, false, 379)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, $context["image"], "extension", [], "any", false, false, false, 379)), "html", null, true);
echo "\"/>
</figure>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 383
echo " ";
}
// line 384
echo " </div>
</aside>
";
// line 387
echo " ";
if ( !twig_test_empty((isset($context["relatedNews"]) || array_key_exists("relatedNews", $context) ? $context["relatedNews"] : (function () { throw new RuntimeError('Variable "relatedNews" does not exist.', 387, $this->source); })()))) {
// line 388
echo " <aside id=\"related\">
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<header class=\"cell small-12 medium-11 large-11\">
<h2>";
// line 392
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Noticias relacionadas", [], "messages");
echo "</h2>
</header>
</div>
<div class=\"related\">
";
// line 396
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["relatedNews"]) || array_key_exists("relatedNews", $context) ? $context["relatedNews"] : (function () { throw new RuntimeError('Variable "relatedNews" does not exist.', 396, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["relNew"]) {
// line 397
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "method", false, true, false, 397), 0, [], "array", false, true, false, 397), "getTitle", [], "method", true, true, false, 397)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "method", false, true, false, 397), 0, [], "array", false, true, false, 397), "getTitle", [], "method", false, false, false, 397))) : (""))) {
// line 398
echo " ";
$context["relNewPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("new", ["seoSlug" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 398), 0, [], "array", false, false, false, 398), "getTitle", [], "method", false, false, false, 398)), "id" => twig_get_attribute($this->env, $this->source, $context["relNew"], "getId", [], "method", false, false, false, 398)]);
// line 399
echo " ";
} else {
// line 400
echo " ";
$context["relNewPath"] = "";
// line 401
echo " ";
}
// line 402
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, true, false, 402), 0, [], "array", true, true, false, 402)) {
// line 403
echo " ";
$context["imgPath"] = ((((((((isset($context["IMG_PATH"]) || array_key_exists("IMG_PATH", $context) ? $context["IMG_PATH"] : (function () { throw new RuntimeError('Variable "IMG_PATH" does not exist.', 403, $this->source); })()) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 403), 0, [], "array", false, false, false, 403), "section", [], "any", false, false, false, 403)) . "/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 403), 0, [], "array", false, false, false, 403), "itemId", [], "any", false, false, false, 403)) . "/resized/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 403), 0, [], "array", false, false, false, 403), "id", [], "any", false, false, false, 403)) . "_backendGallery.") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "images", [], "any", false, false, false, 403), 0, [], "array", false, false, false, 403), "extension", [], "any", false, false, false, 403));
// line 404
echo " ";
} else {
// line 405
echo " ";
$context["imgPath"] = "";
// line 406
echo " ";
}
// line 407
echo " <div>
<figure>
<a href=\"";
// line 409
echo twig_escape_filter($this->env, (isset($context["relNewPath"]) || array_key_exists("relNewPath", $context) ? $context["relNewPath"] : (function () { throw new RuntimeError('Variable "relNewPath" does not exist.', 409, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 409), 0, [], "array", false, false, false, 409), "getTitle", [], "method", false, false, false, 409), "html", null, true);
echo "\">
<img src=\"";
// line 410
echo twig_escape_filter($this->env, (isset($context["imgPath"]) || array_key_exists("imgPath", $context) ? $context["imgPath"] : (function () { throw new RuntimeError('Variable "imgPath" does not exist.', 410, $this->source); })()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 410), 0, [], "array", false, false, false, 410), "getTitle", [], "method", false, false, false, 410), "html", null, true);
echo "\" />
</a>
</figure>
<div class=\"description\">
<header>
<h3><a href=\"";
// line 415
echo twig_escape_filter($this->env, (isset($context["relNewPath"]) || array_key_exists("relNewPath", $context) ? $context["relNewPath"] : (function () { throw new RuntimeError('Variable "relNewPath" does not exist.', 415, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 415), 0, [], "array", false, false, false, 415), "getTitle", [], "method", false, false, false, 415), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["relNew"], "getTranslations", [], "any", false, false, false, 415), 0, [], "array", false, false, false, 415), "getTitle", [], "method", false, false, false, 415), "html", null, true);
echo "</a></h3>
</header>
<p>
";
// line 418
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["relNew"], "getCategories", [], "method", false, false, false, 418));
foreach ($context['_seq'] as $context["_key"] => $context["categ"]) {
// line 419
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("newsByCateg", ["seoSlugCategory" => $this->extensions['App\Twig\AppExtension']->makeUrlPhrase(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 420
$context["categ"], "getTranslations", [], "method", false, false, false, 420), 0, [], "array", false, false, false, 420), "getName", [], "method", false, false, false, 420)), "id" => twig_get_attribute($this->env, $this->source, // line 421
$context["categ"], "getId", [], "method", false, false, false, 421)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 421), 0, [], "array", false, false, false, 421), "getName", [], "method", false, false, false, 421), "html", null, true);
echo "\" class=\"category\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["categ"], "getTranslations", [], "method", false, false, false, 421), 0, [], "array", false, false, false, 421), "getName", [], "method", false, false, false, 421), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categ'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 423
echo " <span>";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["relNew"], "getPublicationDate", [], "method", false, false, false, 423), "d/m/Y"), "html", null, true);
echo "</span>
</p>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['relNew'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 428
echo " </div>
</div>
</aside>
";
}
// line 432
echo " </article>
</section>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 438
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 439
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/frontend/lightgallery/lightgallery.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
lightGallery(document.getElementById('lightgallery'), {
speed: 500,
animateThumb: false,
zoomFromOrigin: false,
allowMediaOverlap: true,
thumbnail: true,
mobileSettings: {
controls: true,
showCloseIcon: true,
download: true,
}
});
</script>
<script type=\"text/javascript\">
lightGallery(document.getElementById('selector'), {
selector: '.item',
});
</script>
";
// line 459
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Frontend/news/new.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1262 => 459, 1238 => 439, 1228 => 438, 1214 => 432, 1208 => 428, 1196 => 423, 1184 => 421, 1183 => 420, 1181 => 419, 1177 => 418, 1167 => 415, 1157 => 410, 1151 => 409, 1147 => 407, 1144 => 406, 1141 => 405, 1138 => 404, 1135 => 403, 1132 => 402, 1129 => 401, 1126 => 400, 1123 => 399, 1120 => 398, 1117 => 397, 1113 => 396, 1106 => 392, 1100 => 388, 1097 => 387, 1093 => 384, 1090 => 383, 1080 => 379, 1074 => 377, 1069 => 376, 1067 => 375, 1061 => 372, 1053 => 366, 1049 => 364, 1038 => 359, 1034 => 358, 1029 => 356, 1022 => 354, 1015 => 352, 1012 => 351, 1008 => 350, 1002 => 347, 999 => 346, 997 => 345, 982 => 337, 975 => 333, 969 => 330, 963 => 327, 958 => 325, 953 => 322, 947 => 321, 938 => 317, 932 => 316, 927 => 314, 923 => 312, 920 => 311, 915 => 310, 912 => 309, 903 => 305, 897 => 304, 894 => 303, 891 => 302, 888 => 301, 879 => 297, 873 => 296, 870 => 295, 867 => 294, 865 => 293, 858 => 288, 855 => 287, 847 => 285, 844 => 284, 836 => 282, 834 => 281, 830 => 280, 827 => 279, 817 => 276, 814 => 275, 808 => 272, 805 => 271, 803 => 270, 791 => 267, 781 => 266, 775 => 265, 771 => 264, 767 => 263, 762 => 262, 749 => 259, 748 => 258, 747 => 257, 744 => 256, 740 => 255, 734 => 252, 728 => 249, 722 => 246, 714 => 245, 710 => 244, 701 => 237, 695 => 233, 689 => 229, 677 => 224, 665 => 222, 664 => 221, 662 => 220, 658 => 219, 648 => 216, 638 => 211, 632 => 210, 628 => 208, 625 => 207, 622 => 206, 619 => 205, 616 => 204, 613 => 203, 610 => 202, 607 => 201, 604 => 200, 601 => 199, 598 => 198, 594 => 197, 587 => 193, 581 => 189, 578 => 188, 574 => 185, 571 => 184, 561 => 180, 555 => 178, 550 => 177, 548 => 176, 542 => 173, 534 => 167, 530 => 165, 519 => 160, 515 => 159, 510 => 157, 503 => 155, 496 => 153, 493 => 152, 489 => 151, 483 => 148, 480 => 147, 478 => 146, 463 => 138, 456 => 134, 450 => 131, 444 => 128, 439 => 126, 434 => 123, 428 => 122, 419 => 118, 413 => 117, 408 => 115, 404 => 113, 401 => 112, 396 => 111, 393 => 110, 384 => 106, 378 => 105, 375 => 104, 372 => 103, 369 => 102, 360 => 98, 354 => 97, 351 => 96, 348 => 95, 346 => 94, 339 => 89, 336 => 88, 328 => 86, 325 => 85, 317 => 83, 315 => 82, 311 => 81, 308 => 80, 298 => 77, 295 => 76, 289 => 73, 286 => 72, 284 => 71, 272 => 68, 262 => 67, 256 => 66, 252 => 65, 248 => 64, 243 => 63, 230 => 60, 229 => 59, 228 => 58, 225 => 57, 221 => 56, 215 => 53, 209 => 50, 203 => 47, 195 => 46, 191 => 45, 183 => 39, 180 => 38, 178 => 37, 175 => 36, 173 => 35, 170 => 33, 160 => 32, 149 => 28, 143 => 26, 137 => 24, 135 => 23, 131 => 22, 126 => 20, 122 => 19, 118 => 18, 115 => 17, 105 => 16, 93 => 14, 89 => 13, 84 => 12, 74 => 11, 63 => 1, 60 => 8, 57 => 6, 55 => 5, 53 => 4, 51 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Frontend/layout.html.twig' %}
{% set newsAbsPath = url('new', {'seoSlug' : new.getTranslations[0].getTitle() | make_url_phrase, 'id' : new.getId() }) %}
{% if new.images[0] is defined %}
{% set imgPath = IMG_PATH ~ new.images[0].section ~ '/' ~ new.images[0].itemId ~ '/resized/' ~ new.images[0].id ~ '_backendGallery.' ~ new.images[0].extension %}
{% set imgSocialMediaPath = IMG_PATH ~ new.images[0].section ~ '/' ~ new.images[0].itemId ~ '/resized/' ~ new.images[0].id ~ '_socialmedia.' ~ new.images[0].extension %}
{% else %}
{% set imgPath = '' %}
{% endif %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"{{ asset('css/frontend/lightgallery/lightgallery.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('css/frontend/lightgallery/lightgallery-bundle.css') }}\" />
{% endblock %}
{% block seo %}
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"{{ (new.getTranslations()[0].getSeoTitle())?new.getTranslations()[0].getSeoTitle()|raw:new.getTranslations()[0].getTitle() }}\" />
<title>{{ (new.getTranslations()[0].getSeoTitle())?new.getTranslations()[0].getSeoTitle()|raw :new.getTranslations()[0].getTitle() }}</title>
<meta property=\"og:description\" content=\"{{ (new.getTranslations()[0].getSeoDescription())?new.getTranslations()[0].getSeoDescription()|raw:new.getTranslations()[0].getSubtitle()|raw }}\" />
<meta name=\"description\" content=\"{{ (new.getTranslations()[0].getSeoDescription())?new.getTranslations()[0].getSeoDescription()|raw:new.getTranslations()[0].getSubtitle()|raw}}\"/>
{% if fileExists %}
<meta property=\"og:image\" itemprop=\"image\" content=\"{{ absolute_url(asset(imgSocialMediaPath)) }}\" />
{% else %}
<meta property=\"og:image\" itemprop=\"image\" content=\"{{ absolute_url(asset(imgPath)) }}\" />
{% endif %}
<meta name=\"twitter:site\" content=\"@RCDEspanyol\" />
{# {{ dump( absolute_url(asset(imgPath) )) }}#}
{% endblock %}
{% block content %}
{# dump(new) #}
{# aa {% set newsAbsPath = PATH_ABS|trim('/', 'right') ~ path('new', {'seoSlug' : new.getTranslations()[0].getTitle() | make_url_phrase, 'id' : new.getId() }) %}#}
{% if new.id == news_for_china_only %}
{% if fromChina is not empty %}
<section id=\"new\">
<article>
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<!-- News content -->
<div id=\"content\" class=\"cell small-12 medium-8 large-7\">
<a href=\"{{ path('news') }}\" role=\"button\" tabindex=\"0\" class=\"back\">
<img src=\"{{ asset('assets/images/icon/chevron.svg') }}\" alt=\"{% trans %}Atrás{% endtrans %}\" title=\"{% trans %}Atrás{% endtrans %}\"/>
<span>{% trans %}Atrás{% endtrans %}</span>
</a>
<header>
<h1>{{ new.getTranslations()[0].getTitle() }}</h1>
</header>
<header>
<h2>{{ new.getTranslations()[0].getSubtitle() }}</h2>
</header>
<div class=\"tools\">
{% for categ in new.getCategories() %}
<div class=\"category\">
<a href=\"{{ path('newsByCateg', {
'seoSlugCategory' : categ.getTranslations()[0].getName() | make_url_phrase,
'id' : categ.getId() }) }}\" title=\"{{ categ.getTranslations()[0].getName() }}\" class=\"\">{{ categ.getTranslations()[0].getName() }}</a>
</div>
{% endfor %}
<span class=\"dia\">{{ new.getPublicationDate() | date('d/m/Y') }}</span>
<span class=\"hora\">{{ new.getPublicationDate() | date('H:i:s') }}</span>
<span class=\"share\"><a href=\"https://www.facebook.com/sharer/sharer.php?u={{ newsAbsPath }}\" target=\"_blank\"><i class=\"fab fa-2x fa-facebook-f\"></i></a></span>
<span class=\"share xtwitter\"><a href=\"https://twitter.com/intent/tweet?url={{ newsAbsPath }}\" target=\"_blank\"><img src=\"{{ asset('assets/images/icon/x-twitter.svg') }}\" alt=\"Twitter\" title=\"Twitter\"/></a></span>
<span class=\"hide-for-small-only share\"><a href=\"https://web.whatsapp.com/send?text={{ newsAbsPath }}\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"{{ newsAbsPath }}\" data-action=\"share/whatsapp/share\" data-param-description=\"{{ new.getTranslations()[0].getSeoDescription() }}\" data-param-title=\"{{ new.getTranslations()[0].getTitle() }}\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
<span class=\"show-for-small-only share\"><a href=\"whatsapp://send?text={{ newsAbsPath }}\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"{{ newsAbsPath }}\" data-action=\"share/whatsapp/share\" data-param-description=\"{{ new.getTranslations()[0].getSeoDescription() }}\" data-param-title=\"{{ new.getTranslations()[0].getTitle() }}\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
</div>
{% if new.getKalturaId() is not empty %}
<div class=\"responsive-embed\">
<iframe type=\"text/javascript\" src='https://cdnapisec.kaltura.com/p/4626453/embedPlaykitJs/uiconf_id/50311432?iframeembed=true&entry_id={{ new.KalturaId() }}' style=\"width: 100%; height: 100%;\" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow=\"autoplay *; fullscreen *; encrypted-media *\" frameborder=\"0\"></iframe>
</div>
{% else %}
<figure>
<img src=\"{{ imgPath }}\" alt=\"{{ new.getTranslations()[0].getTitle() }}\" title=\"{{ new.getTranslations()[0].getTitle() }}\" />
</figure>
{% endif %}
{{ new.getTranslations()[0].getText() | raw }}
{% if new.getVideo1() is not empty %}
<p><a href=\"{{ new.getVideo1() }}\">{{ new.getVideo1() }}</a></p>
{% endif %}
{% if new.getVideo2() is not empty %}
<p><a href=\"{{ new.getVideo2() }}\">{{ new.getVideo2() }}</a></p>
{% endif %}
{% include 'Frontend/news/match_stats.html.twig' %}
</div>
<!-- Sidebar -->
<aside id=\"sidebar\" class=\"cell small-12 medium-4 large-5\">
{% if new.getBanner() | default and new.getBanner().getImages()[0] | default %}
{% set bannerImg = new.getBanner().getImages()[0] %}
<div class=\"sponsor\">
<a href=\"{{ new.getBanner().getTranslations()[0].getLink() }}\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"{{ new.getBanner().getTranslations()[0].getTitle() }}\">
<img src=\"{{ IMG_PATH ~ bannerImg.section ~ '/' ~ bannerImg.itemId ~ '/resized/' ~ bannerImg.id ~ '_backendGallery.' ~ bannerImg.extension }}\" alt=\"{{ new.getBanner().getTranslations()[0].getTitle() }}\" />
</a>
</div>
{% endif %}
{% if new.getBanner2() | default and new.getBanner2().getImages()[0] | default %}
{% set bannerImg = new.getBanner2().getImages()[0] %}
<div class=\"sponsor\">
<a href=\"{{ new.getBanner2().getTranslations()[0].getLink() }}\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"{{ new.getBanner2().getTranslations()[0].getTitle() }}\">
<img src=\"{{ IMG_PATH ~ bannerImg.section ~ '/' ~ bannerImg.itemId ~ '/resized/' ~ bannerImg.id ~ '_backendGallery.' ~ bannerImg.extension }}\" alt=\"{{ new.getBanner2().getTranslations()[0].getTitle() }}\" />
</a>
</div>
{% endif %}
{% include 'Frontend/common/nextmatch.html.twig' %}
{% for banner in banners %}
{% if banner.image is defined and banner.image is not empty %}
<div class=\"banner\">
<header>
<h4>{{ banner.record.title }}</h4>
</header>
<a href=\"{{ banner.record.link }}\" target=\"_blank\" title=\"{{ banner.record.title }}\">
<img src=\"{{banner.image }}\" alt=\"{{ banner.record.title }}\" />
</a>
</div>
{% endif %}
{% endfor %}
<div class=\"download\">
<div class=\"\" role=\"main\">
<header>
<h4>{% trans %}Descárgate la app{% endtrans %}</h4>
</header>
<p>{% trans %}Todos los detalles del partido en tu móvil{% endtrans %}</p>
<div class=\"\" role=\"button\">
<a class=\"\" href=\"https://apps.apple.com/app/rcd-espanyol-de-barcelona/id1482739348?ls=1&l=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"{{ asset('assets/images/tmp/download-appstore.png') }}\" alt=\"Download it on the App Store\" title=\"Download it on the App Store\" />
</a>
<a class=\"\" href=\"https://play.google.com/store/apps/details?id=com.rcdespanyol.app&hl=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"{{ asset('assets/images/tmp/google-play.png') }}\" alt=\"Get it on Google Play\" title=\"Get it on Google Play\"/>
</a>
</div>
<div class=\"\" role=\"figure\">
<img src=\"{{ asset('assets/images/static/rcde_banner_app.png') }}\" alt=\"{% trans %}Descárgate la app{% endtrans %}\" title=\"{% trans %}Descárgate la app{% endtrans %}\" />
</div>
</div>
</div>
</aside>
<aside id=\"download\">
<div class=\"grid-container\">
{% if new.getDocuments()|default %}
<header>
<h3>{% trans %}Archivos{% endtrans %}</h3>
</header>
<ul>
{% for doc in new.getDocuments() %}
<li class=\"cell\">
<a href=\"{{ DOC_PATH ~ doc.section ~ '/' ~ doc.itemId ~ '/' ~ doc.id ~ '.' ~ doc.extension }}\" title=\"{{ doc.fileName }}\" target=\"_blank\">
<figure>
<img src=\"{{ asset('assets/images/icon/file.svg') }}\" alt=\"{{ doc.extension }}\" />
</figure>
<span>{{ doc.fileName }}</span>
<div>
<span>{{ doc.extension }}</span>
<span><img src=\"{{ asset('assets/images/icon/download.svg') }}\"></span>
</div>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</aside>
</div>
</div>
<aside class=\"fixgallery\">
<header>
<h2>{% trans %}Galería{% endtrans %}</h2>
</header>
<div id=\"lightgallery\" class=\"gallery-carousel\">
{% if new.images|default %}
{% for image in new.images %}
<div class=\"item\" data-src=\"{{ IMG_PATH ~ image.section ~ '/' ~ image.itemId ~ '/resized/' ~ image.id ~ '_backendGallery.' ~ image.extension }}\" title=\"\" data-index=\"0\" />
<figure>
<img src=\"{{ IMG_PATH ~ image.section ~ '/' ~ image.itemId ~ '/resized/' ~ image.id ~ '_backendGallery.' ~ image.extension }}\"/>
</figure>
</div>
{% endfor %}
{% endif %}
</div>
</aside>
{# dump(relatedNews) #}
{% if relatedNews is not empty %}
<aside id=\"related\">
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<header class=\"cell small-12 medium-11 large-11\">
<h2>{% trans %}Noticias relacionadas{% endtrans %}</h2>
</header>
</div>
<div class=\"related\">
{% for relNew in relatedNews %}
{% if relNew.getTranslations()[0].getTitle() | default %}
{% set relNewPath = path('new', {'seoSlug' : relNew.getTranslations[0].getTitle() | make_url_phrase, 'id' : relNew.getId() }) %}
{% else %}
{% set relNewPath = '' %}
{% endif %}
{% if relNew.images[0] is defined %}
{% set imgPath = IMG_PATH ~ relNew.images[0].section ~ '/' ~ relNew.images[0].itemId ~ '/resized/' ~ relNew.images[0].id ~ '_backendGallery.' ~ relNew.images[0].extension %}
{% else %}
{% set imgPath = '' %}
{% endif %}
<div>
<figure>
<a href=\"{{ relNewPath }}\" title=\"{{ relNew.getTranslations[0].getTitle() }}\">
<img src=\"{{ imgPath }}\" alt=\"{{ relNew.getTranslations[0].getTitle() }}\" />
</a>
</figure>
<div class=\"description\">
<header>
<h3><a href=\"{{ relNewPath }}\" title=\"{{ relNew.getTranslations[0].getTitle() }}\">{{ relNew.getTranslations[0].getTitle() }}</a></h3>
</header>
<p>
{% for categ in relNew.getCategories() %}
<a href=\"{{ path('newsByCateg', {
'seoSlugCategory' : categ.getTranslations()[0].getName() | make_url_phrase,
'id' : categ.getId() }) }}\" title=\"{{ categ.getTranslations()[0].getName() }}\" class=\"category\">{{ categ.getTranslations()[0].getName() }}</a>
{% endfor %}
<span>{{ relNew.getPublicationDate() | date('d/m/Y') }}</span>
</p>
</div>
</div>
{% endfor %}
</div>
</div>
</aside>
{% endif %}
</article>
</section>
{% endif %}
{% else %}
<section id=\"new\">
<article>
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<!-- News content -->
<div id=\"content\" class=\"cell small-12 medium-8 large-7\">
<a href=\"{{ path('news') }}\" role=\"button\" tabindex=\"0\" class=\"back\">
<img src=\"{{ asset('assets/images/icon/chevron.svg') }}\" alt=\"{% trans %}Atrás{% endtrans %}\" title=\"{% trans %}Atrás{% endtrans %}\"/>
<span>{% trans %}Atrás{% endtrans %}</span>
</a>
<header>
<h1>{{ new.getTranslations()[0].getTitle() }}</h1>
</header>
<header>
<h2>{{ new.getTranslations()[0].getSubtitle() }}</h2>
</header>
<div class=\"tools\">
{% for categ in new.getCategories() %}
<div class=\"category\">
<a href=\"{{ path('newsByCateg', {
'seoSlugCategory' : categ.getTranslations()[0].getName() | make_url_phrase,
'id' : categ.getId() }) }}\" title=\"{{ categ.getTranslations()[0].getName() }}\" class=\"\">{{ categ.getTranslations()[0].getName() }}</a>
</div>
{% endfor %}
<span class=\"dia\">{{ new.getPublicationDate() | date('d/m/Y') }}</span>
<span class=\"hora\">{{ new.getPublicationDate() | date('H:i:s') }}</span>
<span class=\"share\"><a href=\"https://www.facebook.com/sharer/sharer.php?u={{ newsAbsPath }}\" target=\"_blank\"><i class=\"fab fa-2x fa-facebook-f\"></i></a></span>
<span class=\"share xtwitter\"><a href=\"https://twitter.com/intent/tweet?url={{ newsAbsPath }}\" target=\"_blank\"><img src=\"{{ asset('assets/images/icon/x-twitter.svg') }}\" alt=\"Twitter\" title=\"Twitter\"/></a></span>
<span class=\"hide-for-small-only share\"><a href=\"https://web.whatsapp.com/send?text={{ newsAbsPath }}\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"{{ newsAbsPath }}\" data-action=\"share/whatsapp/share\" data-param-description=\"{{ new.getTranslations()[0].getSeoDescription() }}\" data-param-title=\"{{ new.getTranslations()[0].getTitle() }}\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
<span class=\"show-for-small-only share\"><a href=\"whatsapp://send?text={{ newsAbsPath }}\" title=\"WhatsApp\" target=\"_blank\" data-param-url=\"{{ newsAbsPath }}\" data-action=\"share/whatsapp/share\" data-param-description=\"{{ new.getTranslations()[0].getSeoDescription() }}\" data-param-title=\"{{ new.getTranslations()[0].getTitle() }}\"><i class=\"fab fa-2x fa-whatsapp\" aria-hidden=\"true\"></i></a></span>
</div>
{% if new.getKalturaId() is not empty %}
<div class=\"responsive-embed\">
<iframe type=\"text/javascript\" src='https://cdnapisec.kaltura.com/p/4626453/embedPlaykitJs/uiconf_id/50311432?iframeembed=true&entry_id={{ new.KalturaId() }}' style=\"width: 100%; height: 100%;\" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow=\"autoplay *; fullscreen *; encrypted-media *\" frameborder=\"0\"></iframe>
</div>
{% else %}
<figure>
<img src=\"{{ imgPath }}\" alt=\"{{ new.getTranslations()[0].getTitle() }}\" title=\"{{ new.getTranslations()[0].getTitle() }}\" />
</figure>
{% endif %}
{{ new.getTranslations()[0].getText() | raw }}
{% if new.getVideo1() is not empty %}
<p><a href=\"{{ new.getVideo1() }}\">{{ new.getVideo1() }}</a></p>
{% endif %}
{% if new.getVideo2() is not empty %}
<p><a href=\"{{ new.getVideo2() }}\">{{ new.getVideo2() }}</a></p>
{% endif %}
{% include 'Frontend/news/match_stats.html.twig' %}
</div>
<!-- Sidebar -->
<aside id=\"sidebar\" class=\"cell small-12 medium-4 large-5\">
{% if new.getBanner() | default and new.getBanner().getImages()[0] | default %}
{% set bannerImg = new.getBanner().getImages()[0] %}
<div class=\"sponsor\">
<a href=\"{{ new.getBanner().getTranslations()[0].getLink() }}\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"{{ new.getBanner().getTranslations()[0].getTitle() }}\">
<img src=\"{{ IMG_PATH ~ bannerImg.section ~ '/' ~ bannerImg.itemId ~ '/resized/' ~ bannerImg.id ~ '_backendGallery.' ~ bannerImg.extension }}\" alt=\"{{ new.getBanner().getTranslations()[0].getTitle() }}\" />
</a>
</div>
{% endif %}
{% if new.getBanner2() | default and new.getBanner2().getImages()[0] | default %}
{% set bannerImg = new.getBanner2().getImages()[0] %}
<div class=\"sponsor\">
<a href=\"{{ new.getBanner2().getTranslations()[0].getLink() }}\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"{{ new.getBanner2().getTranslations()[0].getTitle() }}\">
<img src=\"{{ IMG_PATH ~ bannerImg.section ~ '/' ~ bannerImg.itemId ~ '/resized/' ~ bannerImg.id ~ '_backendGallery.' ~ bannerImg.extension }}\" alt=\"{{ new.getBanner2().getTranslations()[0].getTitle() }}\" />
</a>
</div>
{% endif %}
{% include 'Frontend/common/nextmatch.html.twig' %}
{% for banner in banners %}
{% if banner.image is defined and banner.image is not empty %}
<div class=\"banner\">
<header>
<h4>{{ banner.record.title }}</h4>
</header>
<a href=\"{{ banner.record.link }}\" target=\"_blank\" title=\"{{ banner.record.title }}\">
<img src=\"{{banner.image }}\" alt=\"{{ banner.record.title }}\" />
</a>
</div>
{% endif %}
{% endfor %}
<div class=\"download\">
<div class=\"\" role=\"main\">
<header>
<h4>{% trans %}Descárgate la app{% endtrans %}</h4>
</header>
<p>{% trans %}Todos los detalles del partido en tu móvil{% endtrans %}</p>
<div class=\"\" role=\"button\">
<a class=\"\" href=\"https://apps.apple.com/app/rcd-espanyol-de-barcelona/id1482739348?ls=1&l=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"{{ asset('assets/images/tmp/download-appstore.png') }}\" alt=\"Download it on the App Store\" title=\"Download it on the App Store\" />
</a>
<a class=\"\" href=\"https://play.google.com/store/apps/details?id=com.rcdespanyol.app&hl=\" target=\"_blank\" rel=\"noopener noreferrer\">
<img src=\"{{ asset('assets/images/tmp/google-play.png') }}\" alt=\"Get it on Google Play\" title=\"Get it on Google Play\"/>
</a>
</div>
<div class=\"\" role=\"figure\">
<img src=\"{{ asset('assets/images/static/rcde_banner_app.png') }}\" alt=\"{% trans %}Descárgate la app{% endtrans %}\" title=\"{% trans %}Descárgate la app{% endtrans %}\" />
</div>
</div>
</div>
</aside>
<aside id=\"download\">
<div class=\"grid-container\">
{% if new.getDocuments()|default %}
<header>
<h3>{% trans %}Archivos{% endtrans %}</h3>
</header>
<ul>
{% for doc in new.getDocuments() %}
<li class=\"cell\">
<a href=\"{{ DOC_PATH ~ doc.section ~ '/' ~ doc.itemId ~ '/' ~ doc.id ~ '.' ~ doc.extension }}\" title=\"{{ doc.fileName }}\" target=\"_blank\">
<figure>
<img src=\"{{ asset('assets/images/icon/file.svg') }}\" alt=\"{{ doc.extension }}\" />
</figure>
<span>{{ doc.fileName }}</span>
<div>
<span>{{ doc.extension }}</span>
<span><img src=\"{{ asset('assets/images/icon/download.svg') }}\"></span>
</div>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</aside>
</div>
</div>
<aside class=\"fixgallery\">
<header>
<h2>{% trans %}Galería{% endtrans %}</h2>
</header>
<div id=\"lightgallery\" class=\"gallery-carousel\">
{% if new.images|default %}
{% for image in new.images %}
<div class=\"item\" data-src=\"{{ IMG_PATH ~ image.section ~ '/' ~ image.itemId ~ '/resized/' ~ image.id ~ '_backendGallery.' ~ image.extension }}\" title=\"\" data-index=\"0\" />
<figure>
<img src=\"{{ IMG_PATH ~ image.section ~ '/' ~ image.itemId ~ '/resized/' ~ image.id ~ '_backendGallery.' ~ image.extension }}\"/>
</figure>
</div>
{% endfor %}
{% endif %}
</div>
</aside>
{# dump(relatedNews) #}
{% if relatedNews is not empty %}
<aside id=\"related\">
<div class=\"grid-container\">
<div class=\"grid-x grid-margin-x\">
<header class=\"cell small-12 medium-11 large-11\">
<h2>{% trans %}Noticias relacionadas{% endtrans %}</h2>
</header>
</div>
<div class=\"related\">
{% for relNew in relatedNews %}
{% if relNew.getTranslations()[0].getTitle() | default %}
{% set relNewPath = path('new', {'seoSlug' : relNew.getTranslations[0].getTitle() | make_url_phrase, 'id' : relNew.getId() }) %}
{% else %}
{% set relNewPath = '' %}
{% endif %}
{% if relNew.images[0] is defined %}
{% set imgPath = IMG_PATH ~ relNew.images[0].section ~ '/' ~ relNew.images[0].itemId ~ '/resized/' ~ relNew.images[0].id ~ '_backendGallery.' ~ relNew.images[0].extension %}
{% else %}
{% set imgPath = '' %}
{% endif %}
<div>
<figure>
<a href=\"{{ relNewPath }}\" title=\"{{ relNew.getTranslations[0].getTitle() }}\">
<img src=\"{{ imgPath }}\" alt=\"{{ relNew.getTranslations[0].getTitle() }}\" />
</a>
</figure>
<div class=\"description\">
<header>
<h3><a href=\"{{ relNewPath }}\" title=\"{{ relNew.getTranslations[0].getTitle() }}\">{{ relNew.getTranslations[0].getTitle() }}</a></h3>
</header>
<p>
{% for categ in relNew.getCategories() %}
<a href=\"{{ path('newsByCateg', {
'seoSlugCategory' : categ.getTranslations()[0].getName() | make_url_phrase,
'id' : categ.getId() }) }}\" title=\"{{ categ.getTranslations()[0].getName() }}\" class=\"category\">{{ categ.getTranslations()[0].getName() }}</a>
{% endfor %}
<span>{{ relNew.getPublicationDate() | date('d/m/Y') }}</span>
</p>
</div>
</div>
{% endfor %}
</div>
</div>
</aside>
{% endif %}
</article>
</section>
{% endif %}
{% endblock %}
{% block javascripts %}
<script src=\"{{ asset('js/frontend/lightgallery/lightgallery.min.js') }}\"></script>
<script type=\"text/javascript\">
lightGallery(document.getElementById('lightgallery'), {
speed: 500,
animateThumb: false,
zoomFromOrigin: false,
allowMediaOverlap: true,
thumbnail: true,
mobileSettings: {
controls: true,
showCloseIcon: true,
download: true,
}
});
</script>
<script type=\"text/javascript\">
lightGallery(document.getElementById('selector'), {
selector: '.item',
});
</script>
{{ parent() }}
{% endblock %}
", "Frontend/news/new.html.twig", "/var/www/espanyol/templates/Frontend/news/new.html.twig");
}
}