var/cache/dev/twig/18/186d29c7687b87f987e734407a1613d932c1a7dcfe841748256796545792d83b.php line 39

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. /* backend/inscription/new.html.twig */
  14. class __TwigTemplate_ec02d5db261416c6c7e4d6faac6359a9d07c551c3c58dbcaf31060097be21d38 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.             'title' => [$this, 'block_title'],
  24.             'body' => [$this, 'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "frontend/frontindex/add.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", "backend/inscription/new.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", "backend/inscription/new.html.twig"));
  39.         $this->parent = $this->loadTemplate("frontend/frontindex/add.html.twig", "backend/inscription/new.html.twig", 1);
  40.         $this->parent->display($context, array_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_title($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", "title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  54.         echo "Inscription";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros = $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  68.         // line 6
  69.         echo "    
  70.     <section class=\"contact-area pt-3\">
  71.          <h1 class=\"text-center pt-5 pb-5\">Registration: « ";
  72.         // line 8
  73.         if (((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 8, $this->source); })()), "event")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8), "fr")))) {
  74.             echo twig_escape_filter($this->env, 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.', 8, $this->source); })()), "titre", [], "any", false, false, false, 8), "html", null, true);
  75.         } elseif (((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 8, $this->source); })()), "event")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8), "en")))) {
  76.             echo twig_escape_filter($this->env, 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.', 8, $this->source); })()), "title", [], "any", false, false, false, 8), "html", null, true);
  77.         } elseif (((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 8, $this->source); })()), "congres")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8), "fr")))) {
  78.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["congres"]) || array_key_exists("congres", $context) ? $context["congres"] : (function () { throw new RuntimeError('Variable "congres" does not exist.', 8, $this->source); })()), "label", [], "any", false, false, false, 8), "html", null, true);
  79.         } elseif (((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 8, $this->source); })()), "congres")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8), "en")))) {
  80.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["congres"]) || array_key_exists("congres", $context) ? $context["congres"] : (function () { throw new RuntimeError('Variable "congres" does not exist.', 8, $this->source); })()), "labelEn", [], "any", false, false, false, 8), "html", null, true);
  81.         }
  82.         echo " »</h1>
  83.         <div class=\"container\">
  84.             <div class=\"row\">
  85.                 <div class=\"col-12 wow fadeInUp\" data-wow-delay=\"0.2s\">
  86.                     <div class=\"contact-inner\">
  87.                         <div class=\"row\">
  88.                             <div class=\"col-lg-8 col-12\">
  89.                             ";
  90.         // line 15
  91.         $context["currentDate"] = twig_date_converter($this->env);
  92.         // line 16
  93.         echo "                                ";
  94.         if ((0 <= twig_compare(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.', 16, $this->source); })()), "endDate", [], "any", false, false, false, 16), (isset($context["currentDate"]) || array_key_exists("currentDate", $context) ? $context["currentDate"] : (function () { throw new RuntimeError('Variable "currentDate" does not exist.', 16, $this->source); })())))) {
  95.             // line 17
  96.             echo "                                    ";
  97.             echo twig_include($this->env, $context, "backend/inscription/_form.html.twig");
  98.             echo "
  99.                                 ";
  100.         } else {
  101.             // line 19
  102.             echo "
  103.                                     <h6 class=\"text-center\">";
  104.             // line 20
  105.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%soumissionsInscriptionOntExpiré%"), "html", null, true);
  106.             echo "</h6>
  107.                                 ";
  108.         }
  109.         // line 22
  110.         echo "                            </div>
  111.                             <div class=\"col-lg-4 col-12\">
  112.                             
  113.                                 <div class=\"contact-details\" ";
  114.         // line 25
  115.         if ((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 25, $this->source); })()), "event"))) {
  116.             echo "style=\"background-image:url('../../../uploads/imagesEvents/";
  117.             echo twig_escape_filter($this->env, 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.', 25, $this->source); })()), "image", [], "any", false, false, false, 25), "html", null, true);
  118.             echo "');height:500px\"";
  119.         } elseif ((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 25, $this->source); })()), "congres"))) {
  120.             echo "style=\"background-image:url('../../../uploads/imagesCongres/";
  121.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["congres"]) || array_key_exists("congres", $context) ? $context["congres"] : (function () { throw new RuntimeError('Variable "congres" does not exist.', 25, $this->source); })()), "image", [], "any", false, false, false, 25), "html", null, true);
  122.             echo "');;height:500px\"";
  123.         }
  124.         echo ">
  125.                                    
  126.                                 </div>
  127.                             </div>
  128.                         </div>
  129.                     </div>
  130.                 </div>
  131.             </div>
  132.         </div>
  133.     </section>
  134.     
  135. ";
  136.         
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  138.         
  139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  140.     }
  141.     public function getTemplateName()
  142.     {
  143.         return "backend/inscription/new.html.twig";
  144.     }
  145.     public function isTraitable()
  146.     {
  147.         return false;
  148.     }
  149.     public function getDebugInfo()
  150.     {
  151.         return array (  134 => 25,  129 => 22,  124 => 20,  121 => 19,  115 => 17,  112 => 16,  110 => 15,  92 => 8,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  152.     }
  153.     public function getSourceContext()
  154.     {
  155.         return new Source("{% extends 'frontend/frontindex/add.html.twig' %}
  156. {% block title %}Inscription{% endblock %}
  157. {% block body %}
  158.     
  159.     <section class=\"contact-area pt-3\">
  160.          <h1 class=\"text-center pt-5 pb-5\">Registration: « {% if type=='event' and app.request.locale=='fr' %}{{event.titre}}{% elseif type=='event' and app.request.locale=='en' %}{{event.title}}{% elseif type=='congres' and app.request.locale=='fr' %}{{congres.label}}{% elseif type=='congres' and app.request.locale=='en' %}{{congres.labelEn}}{% endif %} »</h1>
  161.         <div class=\"container\">
  162.             <div class=\"row\">
  163.                 <div class=\"col-12 wow fadeInUp\" data-wow-delay=\"0.2s\">
  164.                     <div class=\"contact-inner\">
  165.                         <div class=\"row\">
  166.                             <div class=\"col-lg-8 col-12\">
  167.                             {% set currentDate = date() %}
  168.                                 {% if event.endDate >= currentDate %}
  169.                                     {{ include('backend/inscription/_form.html.twig') }}
  170.                                 {% else %}
  171.                                     <h6 class=\"text-center\">{{'%soumissionsInscriptionOntExpiré%'|trans}}</h6>
  172.                                 {% endif %}
  173.                             </div>
  174.                             <div class=\"col-lg-4 col-12\">
  175.                             
  176.                                 <div class=\"contact-details\" {% if type=='event' %}style=\"background-image:url('../../../uploads/imagesEvents/{{event.image}}');height:500px\"{% elseif type=='congres' %}style=\"background-image:url('../../../uploads/imagesCongres/{{congres.image}}');;height:500px\"{% endif %}>
  177.                                    
  178.                                 </div>
  179.                             </div>
  180.                         </div>
  181.                     </div>
  182.                 </div>
  183.             </div>
  184.         </div>
  185.     </section>
  186.     
  187. {% endblock %}
  188. ", "backend/inscription/new.html.twig", "/home/urotunisuz/www/templates/backend/inscription/new.html.twig");
  189.     }
  190. }