var/cache/dev/twig/f0/f0e1974e1230ce0f8bdb6a3f7d317a071e36e5cffdbacce076f4195cfd00abbd.php line 49

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. /* events/event-tickets.html.twig */
  14. class __TwigTemplate_4f85be0544ae8a6d7e25f4d74e682c789e6d4728c26dcd71a91dc54c73a33cb3 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.             'head' => [$this'block_head'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""events/event-tickets.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""events/event-tickets.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""events/event-tickets.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_head($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  54.         // line 4
  55.         echo "
  56. ";
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 7
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 8
  71.         echo "
  72.     <!-- HEADING -->
  73.     <div class=\"container-fluid d-flex align-items-end bg-blue sctn-heading\">
  74.         <div class=\"row px-5\">
  75.             <div class=\"col-xl-8 col-12\">
  76.                 <p class=\"text-white text-uppercase sttl\">";
  77.         // line 13
  78.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'13$this->source); })()), "name", [], "any"falsefalsefalse13), "html"nulltrue);
  79.         echo "</p>
  80.             </div>
  81.             <div class=\"col-xl-6 col-md-8 col-12 mb-5 mt-2\">
  82.                 <span class=\"text-white me-4\"><i class=\"bi bi-geo-alt-fill me-2\"></i>";
  83.         // line 16
  84.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'16$this->source); })()), "location", [], "any"falsefalsefalse16), "html"nulltrue);
  85.         echo "</span>
  86.                 <br>
  87.                 <br>
  88.                 <span class=\"text-white\"><i class=\"bi bi-calendar-event-fill me-2\"></i> ";
  89.         // line 19
  90.         echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'19$this->source); })()), "dateEvent", [], "any"falsefalsefalse19), "none""d MMMM Y"null"gregorian""es"), "html"nulltrue);
  91.         echo "</span>
  92.             </div>
  93.         </div>
  94.     </div>
  95.     <!-- SUBTITLE - DESCRIPTION -->
  96.     <div class=\"container-fluid\">
  97.         <div class=\"row pt-5 px-4\">
  98.             <div class=\"col-12\">
  99.                 <div class=\"accordion accordion-flush\" id=\"accordionFlushExample\">
  100.                     <div class=\"accordion-item\">
  101.                         <button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapseOne\" aria-expanded=\"false\" aria-controls=\"flush-collapseOne\">
  102.                             <p class=\"sttl\">Ver descripciĆ³n</p>
  103.                         </button>
  104.                         <div id=\"flush-collapseOne\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-headingOne\" data-bs-parent=\"#accordionFlushExample\">
  105.                             <div class=\"accordion-body\">";
  106.         // line 36
  107.         echo twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'36$this->source); })()), "description", [], "any"falsefalsefalse36);
  108.         echo "</div>
  109.                         </div>
  110.                         
  111.                     </div>
  112.                 </div>
  113.             </div>
  114.         </div>
  115.     </div>
  116.     <!-- SUBTITLE - TICKETS -->
  117.     <div class=\"container-fluid\">
  118.         <div class=\"row pt-3 px-5\">
  119.             <div class=\"col-12\">
  120.                 <p class=\"sttl\">Tickets</p>
  121.             </div>
  122.         </div>
  123.     </div>
  124.     <!-- EVENTS TICKETS CARDS -->
  125.     <div class=\"conatiner-fluid px-4\">
  126.         <div class=\"row d-flex justify-content-center pt-4 pb-5 px-5\">
  127.             ";
  128.         // line 59
  129.         if (( !array_key_exists("format"$context) || (=== twig_compare((isset($context["format"]) || array_key_exists("format"$context) ? $context["format"] : (function () { throw new RuntimeError('Variable "format" does not exist.'59$this->source); })()), 1)))) {
  130.             // line 60
  131.             echo "                ";
  132.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\TicketController::includeTickets", ["request" => twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'60$this->source); })()), "request", [], "any"falsefalsefalse60)]));
  133.             echo 
  134.             ";
  135.         } else {
  136.             // line 62
  137.             echo "                ";
  138.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PackController::includePacks", ["request" => twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'62$this->source); })()), "request", [], "any"falsefalsefalse62)]));
  139.             echo 
  140.             ";
  141.         }
  142.         // line 64
  143.         echo "        </div>
  144.     </div>
  145.     <script>
  146.         var acc = document.getElementsByClassName(\"accordion\");
  147.         var i;
  148.         for (i = 0; i < acc.length; i++) {
  149.             acc[i].addEventListener(\"click\", function() {
  150.                 this.classList.toggle(\"active\");
  151.                 var panel = this.nextElementSibling;
  152.                 if (panel.style.display === \"block\") {
  153.                     panel.style.display = \"none\";
  154.                 } else {
  155.                     panel.style.display = \"block\";
  156.                 }
  157.             });
  158.         }
  159.     </script>
  160. ";
  161.         
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  163.         
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "events/event-tickets.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         return array (  169 => 64,  163 => 62,  157 => 60,  155 => 59,  129 => 36,  109 => 19,  103 => 16,  97 => 13,  90 => 8,  80 => 7,  69 => 4,  59 => 3,  36 => 1,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{% extends 'base.html.twig' %}
  181. {% block head %}
  182. {% endblock %}
  183. {% block body %}
  184.     <!-- HEADING -->
  185.     <div class=\"container-fluid d-flex align-items-end bg-blue sctn-heading\">
  186.         <div class=\"row px-5\">
  187.             <div class=\"col-xl-8 col-12\">
  188.                 <p class=\"text-white text-uppercase sttl\">{{ event.name }}</p>
  189.             </div>
  190.             <div class=\"col-xl-6 col-md-8 col-12 mb-5 mt-2\">
  191.                 <span class=\"text-white me-4\"><i class=\"bi bi-geo-alt-fill me-2\"></i>{{ event.location }}</span>
  192.                 <br>
  193.                 <br>
  194.                 <span class=\"text-white\"><i class=\"bi bi-calendar-event-fill me-2\"></i> {{ event.dateEvent|format_date('none', 'd MMMM Y', null, 'gregorian', 'es') }}</span>
  195.             </div>
  196.         </div>
  197.     </div>
  198.     <!-- SUBTITLE - DESCRIPTION -->
  199.     <div class=\"container-fluid\">
  200.         <div class=\"row pt-5 px-4\">
  201.             <div class=\"col-12\">
  202.                 <div class=\"accordion accordion-flush\" id=\"accordionFlushExample\">
  203.                     <div class=\"accordion-item\">
  204.                         <button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapseOne\" aria-expanded=\"false\" aria-controls=\"flush-collapseOne\">
  205.                             <p class=\"sttl\">Ver descripciĆ³n</p>
  206.                         </button>
  207.                         <div id=\"flush-collapseOne\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-headingOne\" data-bs-parent=\"#accordionFlushExample\">
  208.                             <div class=\"accordion-body\">{{ event.description|raw }}</div>
  209.                         </div>
  210.                         
  211.                     </div>
  212.                 </div>
  213.             </div>
  214.         </div>
  215.     </div>
  216.     <!-- SUBTITLE - TICKETS -->
  217.     <div class=\"container-fluid\">
  218.         <div class=\"row pt-3 px-5\">
  219.             <div class=\"col-12\">
  220.                 <p class=\"sttl\">Tickets</p>
  221.             </div>
  222.         </div>
  223.     </div>
  224.     <!-- EVENTS TICKETS CARDS -->
  225.     <div class=\"conatiner-fluid px-4\">
  226.         <div class=\"row d-flex justify-content-center pt-4 pb-5 px-5\">
  227.             {% if format is not defined or format == 1 %}
  228.                 {{ render(controller('App\\\\Controller\\\\TicketController::includeTickets',{request: app.request})) }} 
  229.             {% else %}
  230.                 {{ render(controller('App\\\\Controller\\\\PackController::includePacks',{request: app.request})) }} 
  231.             {% endif %}
  232.         </div>
  233.     </div>
  234.     <script>
  235.         var acc = document.getElementsByClassName(\"accordion\");
  236.         var i;
  237.         for (i = 0; i < acc.length; i++) {
  238.             acc[i].addEventListener(\"click\", function() {
  239.                 this.classList.toggle(\"active\");
  240.                 var panel = this.nextElementSibling;
  241.                 if (panel.style.display === \"block\") {
  242.                     panel.style.display = \"none\";
  243.                 } else {
  244.                     panel.style.display = \"block\";
  245.                 }
  246.             });
  247.         }
  248.     </script>
  249. {% endblock %}""events/event-tickets.html.twig""/var/www/congreso_dbt/templates/events/event-tickets.html.twig");
  250.     }
  251. }