var/cache/dev/twig/42/425fbdb7b68a4b3a3963d66dadf9c253.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* frontend/talk_about_us/index.html.twig */
  14. class __TwigTemplate_ce1b1cacce99826b1a6648b1c8c6096c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'metaTitle' => [$this'block_metaTitle'],
  24.             'metaDescription' => [$this'block_metaDescription'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "frontend/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/talk_about_us/index.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/talk_about_us/index.html.twig"));
  40.         $this->parent $this->loadTemplate("frontend/base.html.twig""frontend/talk_about_us/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_metaTitle($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTitle"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTitle"));
  55.         echo "Dicono di Noi: Chi Parla di Astralpool?";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 4
  62.     public function block_metaDescription($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  69.         echo "Le varie testate online e cartacee che parlano di Astralpool. Dalla Gazzetta dello Sport a Piscineoggi.com";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 6
  76.     public function block_body($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         // line 7
  84.         echo "    <section class=\"space-top-2\">
  85.         <div class=\"container\">
  86.             <h1 class=\"display-5 fw-bold text-primary\">Dicono di noi</h1>
  87.         </div>
  88.     </section>
  89.     <section class=\"space-2 space-lg-bottom-3\">
  90.         <div class=\"container event-container\">
  91.             <div class=\"row\">
  92.                 ";
  93.         // line 16
  94.         $context['_parent'] = $context;
  95.         $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); })()));
  96.         foreach ($context['_seq'] as $context["_key"] => $context["talkAboutUs"]) {
  97.             // line 17
  98.             echo "                    <div class=\"col-lg-4 col-sm-6 space-bottom-1 mb-5\">
  99.                         <figure class=\"media equal-3-4 mb-3\">
  100.                             <span style=\"background-image: url('";
  101.             // line 19
  102.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["talkAboutUs"], "cover", [], "any"falsefalsefalse19), "publicUrl", [], "any"falsefalsefalse19), "html"nulltrue);
  103.             echo "')\"></span>
  104.                         </figure>
  105.                         <h3 class=\"fw-bold\">";
  106.             // line 21
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["talkAboutUs"], "title", [], "any"falsefalsefalse21), "html"nulltrue);
  108.             echo "</h3>
  109.                         <div class=\"d-flex w-100 justify-content-between align-items-center\">
  110.                             <p class=\"mb-0 fw-medium text-primary\">
  111.                                 <span class=\"align-bottom pr-2\">";
  112.             // line 24
  113.             echo $this->extensions['App\Twig\SvgInject']->inject("calendar");
  114.             echo "</span>
  115.                                 ";
  116.             // line 25
  117.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["talkAboutUs"], "date", [], "any"falsefalsefalse25), "F")), "html"nulltrue);
  118.             echo "
  119.                                 ";
  120.             // line 26
  121.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["talkAboutUs"], "date", [], "any"falsefalsefalse26), "m/Y"), "html"nulltrue);
  122.             echo "
  123.                             </p>
  124.                             <div>
  125.                                 ";
  126.             // line 29
  127.             if (twig_get_attribute($this->env$this->source$context["talkAboutUs"], "link", [], "any"falsefalsefalse29)) {
  128.                 // line 30
  129.                 echo "                                <a class=\"bg-light-primary text-primary fw-bold btn btn-sm\" href=\"";
  130.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["talkAboutUs"], "link", [], "any"falsefalsefalse30), "html"nulltrue);
  131.                 echo "\" target=\"_blank\">Vai al sito</a>
  132.                                 ";
  133.             }
  134.             // line 32
  135.             echo "                                ";
  136.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["talkAboutUs"], "document", [], "any"falsefalsefalse32), "path", [], "any"falsefalsefalse32)) {
  137.                 // line 33
  138.                 echo "                                <a href=\"";
  139.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["talkAboutUs"], "document", [], "any"falsefalsefalse33), "publicUrl", [], "any"falsefalsefalse33), "html"nulltrue);
  140.                 echo "\" target=\"_blank\" class=\"btn btn-primary btn-sm ms-2\">Scarica</a>
  141.                                 ";
  142.             }
  143.             // line 35
  144.             echo "                            </div>
  145.                         </div>
  146.                     </div>
  147.                 ";
  148.         }
  149.         $_parent $context['_parent'];
  150.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['talkAboutUs'], $context['_parent'], $context['loop']);
  151.         $context array_intersect_key($context$_parent) + $_parent;
  152.         // line 39
  153.         echo "            </div>
  154.             ";
  155.         // line 40
  156.         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"falsefalsefalse40) == 0)) {
  157.             // line 41
  158.             echo "                <div class=\"col-12 space-2\">
  159.                     <p class=\"font-italic text-muted font-size-lg text-center\">
  160.                         Non è presente nessun articolo
  161.                     </p>
  162.                 </div>
  163.             ";
  164.         }
  165.         // line 47
  166.         echo "            <div class=\"mt-3 d-flex w-100 justify-content-center\">
  167.                 ";
  168.         // line 48
  169.         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); })()));
  170.         echo "
  171.             </div>
  172.         </div>
  173.     </section>
  174. ";
  175.         
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.     }
  180.     public function getTemplateName()
  181.     {
  182.         return "frontend/talk_about_us/index.html.twig";
  183.     }
  184.     public function isTraitable()
  185.     {
  186.         return false;
  187.     }
  188.     public function getDebugInfo()
  189.     {
  190.         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,);
  191.     }
  192.     public function getSourceContext()
  193.     {
  194.         return new Source("{% extends 'frontend/base.html.twig' %}
  195. {% block metaTitle %}Dicono di Noi: Chi Parla di Astralpool?{% endblock %}
  196. {% block metaDescription %}Le varie testate online e cartacee che parlano di Astralpool. Dalla Gazzetta dello Sport a Piscineoggi.com{% endblock %}
  197. {% block body %}
  198.     <section class=\"space-top-2\">
  199.         <div class=\"container\">
  200.             <h1 class=\"display-5 fw-bold text-primary\">Dicono di noi</h1>
  201.         </div>
  202.     </section>
  203.     <section class=\"space-2 space-lg-bottom-3\">
  204.         <div class=\"container event-container\">
  205.             <div class=\"row\">
  206.                 {% for talkAboutUs in pagination %}
  207.                     <div class=\"col-lg-4 col-sm-6 space-bottom-1 mb-5\">
  208.                         <figure class=\"media equal-3-4 mb-3\">
  209.                             <span style=\"background-image: url('{{ talkAboutUs.cover.publicUrl }}')\"></span>
  210.                         </figure>
  211.                         <h3 class=\"fw-bold\">{{ talkAboutUs.title }}</h3>
  212.                         <div class=\"d-flex w-100 justify-content-between align-items-center\">
  213.                             <p class=\"mb-0 fw-medium text-primary\">
  214.                                 <span class=\"align-bottom pr-2\">{{ svg_inject('calendar') }}</span>
  215.                                 {{ talkAboutUs.date|date('F')|trans }}
  216.                                 {{ talkAboutUs.date|date('m/Y') }}
  217.                             </p>
  218.                             <div>
  219.                                 {% if talkAboutUs.link %}
  220.                                 <a class=\"bg-light-primary text-primary fw-bold btn btn-sm\" href=\"{{ talkAboutUs.link }}\" target=\"_blank\">Vai al sito</a>
  221.                                 {% endif %}
  222.                                 {% if talkAboutUs.document.path %}
  223.                                 <a href=\"{{ talkAboutUs.document.publicUrl }}\" target=\"_blank\" class=\"btn btn-primary btn-sm ms-2\">Scarica</a>
  224.                                 {% endif %}
  225.                             </div>
  226.                         </div>
  227.                     </div>
  228.                 {% endfor %}
  229.             </div>
  230.             {% if pagination.count == 0 %}
  231.                 <div class=\"col-12 space-2\">
  232.                     <p class=\"font-italic text-muted font-size-lg text-center\">
  233.                         Non è presente nessun articolo
  234.                     </p>
  235.                 </div>
  236.             {% endif %}
  237.             <div class=\"mt-3 d-flex w-100 justify-content-center\">
  238.                 {{ knp_pagination_render(pagination) }}
  239.             </div>
  240.         </div>
  241.     </section>
  242. {% endblock %}
  243. ""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");
  244.     }
  245. }