<?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/talk_about_us/index.html.twig */
class __TwigTemplate_ce1b1cacce99826b1a6648b1c8c6096c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metaTitle' => [$this, 'block_metaTitle'],
'metaDescription' => [$this, 'block_metaDescription'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "frontend/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/talk_about_us/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/talk_about_us/index.html.twig"));
$this->parent = $this->loadTemplate("frontend/base.html.twig", "frontend/talk_about_us/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_metaTitle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTitle"));
echo "Dicono di Noi: Chi Parla di Astralpool?";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
echo "Le varie testate online e cartacee che parlano di Astralpool. Dalla Gazzetta dello Sport a Piscineoggi.com";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 7
echo " <section class=\"space-top-2\">
<div class=\"container\">
<h1 class=\"display-5 fw-bold text-primary\">Dicono di noi</h1>
</div>
</section>
<section class=\"space-2 space-lg-bottom-3\">
<div class=\"container event-container\">
<div class=\"row\">
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 16, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["talkAboutUs"]) {
// line 17
echo " <div class=\"col-lg-4 col-sm-6 space-bottom-1 mb-5\">
<figure class=\"media equal-3-4 mb-3\">
<span style=\"background-image: url('";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "cover", [], "any", false, false, false, 19), "publicUrl", [], "any", false, false, false, 19), "html", null, true);
echo "')\"></span>
</figure>
<h3 class=\"fw-bold\">";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "title", [], "any", false, false, false, 21), "html", null, true);
echo "</h3>
<div class=\"d-flex w-100 justify-content-between align-items-center\">
<p class=\"mb-0 fw-medium text-primary\">
<span class=\"align-bottom pr-2\">";
// line 24
echo $this->extensions['App\Twig\SvgInject']->inject("calendar");
echo "</span>
";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "date", [], "any", false, false, false, 25), "F")), "html", null, true);
echo "
";
// line 26
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "date", [], "any", false, false, false, 26), "m/Y"), "html", null, true);
echo "
</p>
<div>
";
// line 29
if (twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "link", [], "any", false, false, false, 29)) {
// line 30
echo " <a class=\"bg-light-primary text-primary fw-bold btn btn-sm\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "link", [], "any", false, false, false, 30), "html", null, true);
echo "\" target=\"_blank\">Vai al sito</a>
";
}
// line 32
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "document", [], "any", false, false, false, 32), "path", [], "any", false, false, false, 32)) {
// line 33
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["talkAboutUs"], "document", [], "any", false, false, false, 33), "publicUrl", [], "any", false, false, false, 33), "html", null, true);
echo "\" target=\"_blank\" class=\"btn btn-primary btn-sm ms-2\">Scarica</a>
";
}
// line 35
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['talkAboutUs'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo " </div>
";
// line 40
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 40, $this->source); })()), "count", [], "any", false, false, false, 40) == 0)) {
// line 41
echo " <div class=\"col-12 space-2\">
<p class=\"font-italic text-muted font-size-lg text-center\">
Non è presente nessun articolo
</p>
</div>
";
}
// line 47
echo " <div class=\"mt-3 d-flex w-100 justify-content-center\">
";
// line 48
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 48, $this->source); })()));
echo "
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "frontend/talk_about_us/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 194 => 48, 191 => 47, 183 => 41, 181 => 40, 178 => 39, 169 => 35, 163 => 33, 160 => 32, 154 => 30, 152 => 29, 146 => 26, 142 => 25, 138 => 24, 132 => 21, 127 => 19, 123 => 17, 119 => 16, 108 => 7, 98 => 6, 79 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend/base.html.twig' %}
{% block metaTitle %}Dicono di Noi: Chi Parla di Astralpool?{% endblock %}
{% block metaDescription %}Le varie testate online e cartacee che parlano di Astralpool. Dalla Gazzetta dello Sport a Piscineoggi.com{% endblock %}
{% block body %}
<section class=\"space-top-2\">
<div class=\"container\">
<h1 class=\"display-5 fw-bold text-primary\">Dicono di noi</h1>
</div>
</section>
<section class=\"space-2 space-lg-bottom-3\">
<div class=\"container event-container\">
<div class=\"row\">
{% for talkAboutUs in pagination %}
<div class=\"col-lg-4 col-sm-6 space-bottom-1 mb-5\">
<figure class=\"media equal-3-4 mb-3\">
<span style=\"background-image: url('{{ talkAboutUs.cover.publicUrl }}')\"></span>
</figure>
<h3 class=\"fw-bold\">{{ talkAboutUs.title }}</h3>
<div class=\"d-flex w-100 justify-content-between align-items-center\">
<p class=\"mb-0 fw-medium text-primary\">
<span class=\"align-bottom pr-2\">{{ svg_inject('calendar') }}</span>
{{ talkAboutUs.date|date('F')|trans }}
{{ talkAboutUs.date|date('m/Y') }}
</p>
<div>
{% if talkAboutUs.link %}
<a class=\"bg-light-primary text-primary fw-bold btn btn-sm\" href=\"{{ talkAboutUs.link }}\" target=\"_blank\">Vai al sito</a>
{% endif %}
{% if talkAboutUs.document.path %}
<a href=\"{{ talkAboutUs.document.publicUrl }}\" target=\"_blank\" class=\"btn btn-primary btn-sm ms-2\">Scarica</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
{% if pagination.count == 0 %}
<div class=\"col-12 space-2\">
<p class=\"font-italic text-muted font-size-lg text-center\">
Non è presente nessun articolo
</p>
</div>
{% endif %}
<div class=\"mt-3 d-flex w-100 justify-content-center\">
{{ knp_pagination_render(pagination) }}
</div>
</div>
</section>
{% endblock %}
", "frontend/talk_about_us/index.html.twig", "/var/www/vhosts/dev.oneam.it/astralpool.dev.oneam.it/templates/frontend/talk_about_us/index.html.twig");
}
}