var/cache/dev/twig/31/310a2754cf0318296d6c43f218f5c7ff19c8352f828f8180d145a15ab9410199.php line 390

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. /* public/base.html.twig */
  14. class __TwigTemplate_0116c4fdb0d0c4518082ceb72c2e8d8faa7c0f8e490063fcbe7f31c110f32922 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->parent false;
  23.         // line 1
  24.         $_trait_0 $this->loadTemplate("public/component/_auth_modal.html.twig""public/base.html.twig"1);
  25.         if (!$_trait_0->isTraitable()) {
  26.             throw new RuntimeError('Template "'."public/component/_auth_modal.html.twig".'" cannot be used as a trait.'1$this->source);
  27.         }
  28.         $_trait_0_blocks $_trait_0->getBlocks();
  29.         $this->traits $_trait_0_blocks;
  30.         $this->blocks array_merge(
  31.             $this->traits,
  32.             [
  33.                 'title' => [$this'block_title'],
  34.                 'meta' => [$this'block_meta'],
  35.                 'pageCSS' => [$this'block_pageCSS'],
  36.                 'mainId' => [$this'block_mainId'],
  37.                 'mainHeader' => [$this'block_mainHeader'],
  38.                 'wrapperId' => [$this'block_wrapperId'],
  39.                 'wrapper' => [$this'block_wrapper'],
  40.                 'contentClass' => [$this'block_contentClass'],
  41.                 'content' => [$this'block_content'],
  42.                 'footer' => [$this'block_footer'],
  43.                 'modal' => [$this'block_modal'],
  44.                 'customJS' => [$this'block_customJS'],
  45.                 'pageJS' => [$this'block_pageJS'],
  46.             ]
  47.         );
  48.     }
  49.     protected function doDisplay(array $context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""public/base.html.twig"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""public/base.html.twig"));
  56.         // line 2
  57.         echo "
  58. ";
  59.         // line 3
  60.         $context["currentRoute"] = twig_get_attribute($this->env$this->sourcetwig_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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "get", [=> "_route"], "method"falsefalsefalse3);
  61.         // line 4
  62.         echo "
  63. <!DOCTYPE HTML>
  64. <html lang=\"fr\">
  65. <head>
  66.     <!--=============== basic  ===============-->
  67.     <meta charset=\"UTF-8\">
  68.     <title>";
  69.         // line 10
  70.         $this->displayBlock('title'$context$blocks);
  71.         echo "</title>
  72.     <meta name=\"viewport\"
  73.           content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
  74.     <meta name=\"robots\" content=\"index, follow\"/>
  75.     <meta name=\"keywords\" content=\"\"/>
  76.     <meta name=\"description\" content=\"\"/>
  77.     ";
  78.         // line 17
  79.         $this->displayBlock('meta'$context$blocks);
  80.         // line 18
  81.         echo "
  82.     <!--=============== css  ===============-->
  83.     ";
  84.         // line 20
  85.         echo twig_include($this->env$context"public/component/_vendor_css.html.twig");
  86.         echo "
  87.     ";
  88.         // line 21
  89.         $this->displayBlock('pageCSS'$context$blocks);
  90.         // line 23
  91.         echo "    <!--=============== favicons ===============-->
  92.     <link rel=\"shortcut icon\" href=\"";
  93.         // line 24
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/icon.png"), "html"nulltrue);
  95.         echo "\">
  96. </head>
  97. <body>
  98. <div id=\"google_translate_element\"></div>
  99. <!--loader-->
  100. ";
  101.         // line 29
  102.         echo twig_include($this->env$context"public/component/_loader.html.twig");
  103.         echo "
  104. <!--loader end-->
  105. <!-- main start  -->
  106. <div id=\"";
  107.         // line 32
  108.         $this->displayBlock('mainId'$context$blocks);
  109.         echo "\">
  110.     <!-- header -->
  111.     ";
  112.         // line 34
  113.         $this->displayBlock('mainHeader'$context$blocks);
  114.         // line 37
  115.         echo "    <!-- header end-->
  116.     <!-- wrapper-->
  117.     <div id=\"";
  118.         // line 39
  119.         $this->displayBlock('wrapperId'$context$blocks);
  120.         echo "\">
  121.         ";
  122.         // line 40
  123.         $this->displayBlock('wrapper'$context$blocks);
  124.         // line 48
  125.         echo "
  126.     </div>
  127.     <!-- wrapper end-->
  128.     <!--footer -->
  129.     ";
  130.         // line 52
  131.         $this->displayBlock('footer'$context$blocks);
  132.         // line 56
  133.         echo "
  134.     <!--footer end -->
  135.     ";
  136.         // line 58
  137.         $this->displayBlock('modal'$context$blocks);
  138.         // line 62
  139.         echo "
  140.     <!--modal end -->
  141.     <a class=\"to-top\"><i class=\"fas fa-caret-up\"></i></a>
  142. </div>
  143. <!-- Main end -->
  144. <!--=============== scripts  ===============-->
  145. <script>
  146.     window.functions = {};
  147. </script>
  148. <script src=\"";
  149.         // line 71
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/js/jquery.min.js"), "html"nulltrue);
  151.         echo "\"></script>
  152. <script src=\"";
  153.         // line 72
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/js/plugins.js"), "html"nulltrue);
  155.         echo "\"></script>
  156. <script src=\"";
  157.         // line 73
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/js/scripts.js"), "html"nulltrue);
  159.         echo "\"></script>
  160. <script src=\"";
  161.         // line 74
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("app-assets/vendors/js/extensions/sweetalert2.all.min.js"), "html"nulltrue);
  163.         echo " \"></script>
  164. <script>
  165.     window.functions.sendPraying = sendPraying = (args) => {
  166.         let \$element = \$(args.element);
  167.         let url = args.url ? args.url : null;
  168.         let dataMethod = args.method ? args.method : 'POST';
  169.         if (url) {
  170.             Swal.fire({
  171.                 text: \"Veuillez confirmer votre engagement!\",
  172.                 //icon: 'warning',
  173.                 imageUrl: \"../../../assets/images/logo.png\",
  174.                 imageSize: '50x50',
  175.                 showCancelButton: true,
  176.                 confirmButtonColor: '#76d9a0',
  177.                 confirmButtonText: 'Confirmer',
  178.                 cancelButtonText: 'Annuler',
  179.             }).then(function (result) {
  180.                 if (result.isConfirmed) {
  181.                     \$.ajax({
  182.                         url: url,
  183.                         type: dataMethod,
  184.                         success: function (result) {
  185.                             // Si la requete a ete executer avec success
  186.                             if (result.statut) { // Si la suppression a ete effectuer avec success
  187.                                 // Get requested calendars as Array
  188.                                 Swal.fire({
  189.                                     icon: 'success',
  190.                                 }).then(function (confirm) {  // Si swal confirmer
  191.                                     let prayingLengthElement = \$element.parent('.geodir-category-img').find('.prayings-length');
  192.                                     let prayingLength = parseInt(prayingLengthElement.html());
  193.                                     prayingLengthElement.html(prayingLength + 1)
  194.                                     \$element.remove();
  195.                                     location.reload();
  196.                                 });
  197.                             } else {
  198.                             }
  199.                         },
  200.                         error: function (error) {
  201.                         }
  202.                     });
  203.                 }
  204.             });
  205.         }
  206.     }
  207. </script>
  208. <script>
  209.     function callbackForGoogleMaps() {
  210.         autoCompleteInputCity();
  211.     }
  212.     function autoCompleteInputCity() {
  213.         \$('.search-form-autocomplete-input-city').each(function (index, element) {
  214.             const autocomplete = new google.maps.places.Autocomplete(element);
  215.             google.maps.event.addListener(autocomplete, 'place_changed', function () {
  216.                 const place = this.getPlace();
  217.                 let administrative_area_level_2, locality, name = place.name;
  218.                 for (let i in place.address_components) {
  219.                     let component = place.address_components[i];
  220.                     for (let j in component.types) {  // Some types are [\"country\", \"political\"]
  221.                         if (component.types[j] === \"administrative_area_level_2\") {
  222.                             administrative_area_level_2 = component.long_name;
  223.                         } else if (component.types[j] === \"locality\") {
  224.                             locality = component.long_name;
  225.                         }
  226.                     }
  227.                 }
  228.                 element.value = administrative_area_level_2 ? administrative_area_level_2 : (locality ? locality : name);
  229.             });
  230.         });
  231.     }
  232. </script>
  233. <script src=\"https://maps.googleapis.com/maps/api/js?key=";
  234.         // line 148
  235.         echo twig_escape_filter($this->env, (isset($context["googlemap_apikey"]) || array_key_exists("googlemap_apikey"$context) ? $context["googlemap_apikey"] : (function () { throw new RuntimeError('Variable "googlemap_apikey" does not exist.'148$this->source); })()), "html"nulltrue);
  236.         echo "&libraries=places&language=en&callback=callbackForGoogleMaps\"></script>
  237. <script type=\"text/javascript\" src=\"";
  238.         // line 149
  239.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/plugins/jquery-validation/jquery.validate.js"), "html"nulltrue);
  240.         echo "\"></script>
  241. <script type=\"text/javascript\"
  242.         src=\"";
  243.         // line 151
  244.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/plugins/jquery-validation/localization/messages_fr.js"), "html"nulltrue);
  245.         echo "\"></script>
  246. <script>
  247.     \$.validator.setDefaults({
  248.         errorElement: \"span\",
  249.         errorPlacement: function (error, element) {
  250.             // Add the `invalid-feedback` class to the error element
  251.             error.addClass(\"invalid-feedback\");
  252.             if (element.prop(\"type\") === \"checkbox\") {
  253.                 error.insertAfter(element.next(\"label\"));
  254.             } else {
  255.                 error.insertAfter(element);
  256.             }
  257.         },
  258.         highlight: function (element, errorClass, validClass) {
  259.             \$(element).addClass(\"error\").removeClass(\"valid\");
  260.         },
  261.         unhighlight: function (element, errorClass, validClass) {
  262.             \$(element).addClass(\"valid\").removeClass(\"error\");
  263.         }
  264.     });
  265. </script>
  266. ";
  267.         // line 173
  268.         $this->displayBlock('customJS'$context$blocks);
  269.         // line 176
  270.         echo "
  271. ";
  272.         // line 177
  273.         $this->displayBlock('pageJS'$context$blocks);
  274.         // line 185
  275.         echo "</body>
  276. </html>";
  277.         
  278.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  279.         
  280.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  281.     }
  282.     // line 10
  283.     public function block_title($context, array $blocks = [])
  284.     {
  285.         $macros $this->macros;
  286.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  287.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  288.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  289.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  290.         echo "Je prie pour Madagascar";
  291.         
  292.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  293.         
  294.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  295.     }
  296.     // line 17
  297.     public function block_meta($context, array $blocks = [])
  298.     {
  299.         $macros $this->macros;
  300.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  301.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  302.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  303.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  304.         
  305.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  306.         
  307.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  308.     }
  309.     // line 21
  310.     public function block_pageCSS($context, array $blocks = [])
  311.     {
  312.         $macros $this->macros;
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  314.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageCSS"));
  315.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  316.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageCSS"));
  317.         // line 22
  318.         echo "    ";
  319.         
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  321.         
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  323.     }
  324.     // line 32
  325.     public function block_mainId($context, array $blocks = [])
  326.     {
  327.         $macros $this->macros;
  328.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  329.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainId"));
  330.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  331.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainId"));
  332.         echo twig_escape_filter($this->env, ((array_key_exists("mainId"$context)) ? (_twig_default_filter((isset($context["mainId"]) || array_key_exists("mainId"$context) ? $context["mainId"] : (function () { throw new RuntimeError('Variable "mainId" does not exist.'32$this->source); })()), "main")) : ("main")), "html"nulltrue);
  333.         
  334.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  335.         
  336.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  337.     }
  338.     // line 34
  339.     public function block_mainHeader($context, array $blocks = [])
  340.     {
  341.         $macros $this->macros;
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  343.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainHeader"));
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainHeader"));
  346.         // line 35
  347.         echo "        ";
  348.         echo twig_include($this->env$context"public/component/_main_header_content.html.twig");
  349.         echo "
  350.     ";
  351.         
  352.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  353.         
  354.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  355.     }
  356.     // line 39
  357.     public function block_wrapperId($context, array $blocks = [])
  358.     {
  359.         $macros $this->macros;
  360.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  361.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""wrapperId"));
  362.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  363.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""wrapperId"));
  364.         echo twig_escape_filter($this->env, ((array_key_exists("wrapperId"$context)) ? (_twig_default_filter((isset($context["wrapperId"]) || array_key_exists("wrapperId"$context) ? $context["wrapperId"] : (function () { throw new RuntimeError('Variable "wrapperId" does not exist.'39$this->source); })()), "wrapper")) : ("wrapper")), "html"nulltrue);
  365.         
  366.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  367.         
  368.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  369.     }
  370.     // line 40
  371.     public function block_wrapper($context, array $blocks = [])
  372.     {
  373.         $macros $this->macros;
  374.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  375.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""wrapper"));
  376.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  377.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""wrapper"));
  378.         // line 41
  379.         echo "            <!-- content-->
  380.             <div class=\"";
  381.         // line 42
  382.         $this->displayBlock('contentClass'$context$blocks);
  383.         echo "\">
  384.                 ";
  385.         // line 43
  386.         $this->displayBlock('content'$context$blocks);
  387.         // line 45
  388.         echo "            </div>
  389.             <!--content end-->
  390.         ";
  391.         
  392.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  393.         
  394.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  395.     }
  396.     // line 42
  397.     public function block_contentClass($context, array $blocks = [])
  398.     {
  399.         $macros $this->macros;
  400.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  401.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentClass"));
  402.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  403.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentClass"));
  404.         echo twig_escape_filter($this->env, ((array_key_exists("contentClass"$context)) ? (_twig_default_filter((isset($context["contentClass"]) || array_key_exists("contentClass"$context) ? $context["contentClass"] : (function () { throw new RuntimeError('Variable "contentClass" does not exist.'42$this->source); })()), "content")) : ("content")), "html"nulltrue);
  405.         
  406.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  407.         
  408.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  409.     }
  410.     // line 43
  411.     public function block_content($context, array $blocks = [])
  412.     {
  413.         $macros $this->macros;
  414.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  415.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  416.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  417.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  418.         // line 44
  419.         echo "                ";
  420.         
  421.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  422.         
  423.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  424.     }
  425.     // line 52
  426.     public function block_footer($context, array $blocks = [])
  427.     {
  428.         $macros $this->macros;
  429.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  430.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  431.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  432.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  433.         // line 53
  434.         echo "        ";
  435.         echo twig_include($this->env$context"public/component/_sub_footer.html.twig");
  436.         echo "
  437.         ";
  438.         // line 54
  439.         echo twig_include($this->env$context"public/component/_footer.html.twig");
  440.         echo "
  441.     ";
  442.         
  443.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  444.         
  445.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  446.     }
  447.     // line 58
  448.     public function block_modal($context, array $blocks = [])
  449.     {
  450.         $macros $this->macros;
  451.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  452.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modal"));
  453.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  454.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modal"));
  455.         // line 59
  456.         echo "        ";
  457.         $this->displayParentBlock("modal"$context$blocks);
  458.         echo "
  459.         ";
  460.         // line 60
  461.         echo twig_include($this->env$context"public/component/_map_modal.html.twig");
  462.         echo "
  463.     ";
  464.         
  465.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  466.         
  467.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  468.     }
  469.     // line 173
  470.     public function block_customJS($context, array $blocks = [])
  471.     {
  472.         $macros $this->macros;
  473.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  474.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""customJS"));
  475.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  476.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""customJS"));
  477.         // line 174
  478.         echo "    ";
  479.         $this->displayParentBlock("customJS"$context$blocks);
  480.         echo "
  481. ";
  482.         
  483.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  484.         
  485.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  486.     }
  487.     // line 177
  488.     public function block_pageJS($context, array $blocks = [])
  489.     {
  490.         $macros $this->macros;
  491.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  492.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageJS"));
  493.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  494.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageJS"));
  495.         // line 178
  496.         echo "    <script type=\"text/javascript\">
  497.         function googleTranslateElementInit() {
  498.              new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
  499.         }
  500.     </script>
  501.     <script type=\"text/javascript\" src=\"https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>
  502. ";
  503.         
  504.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  505.         
  506.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  507.     }
  508.     public function getTemplateName()
  509.     {
  510.         return "public/base.html.twig";
  511.     }
  512.     public function isTraitable()
  513.     {
  514.         return false;
  515.     }
  516.     public function getDebugInfo()
  517.     {
  518.         return array (  578 => 178,  568 => 177,  555 => 174,  545 => 173,  533 => 60,  528 => 59,  518 => 58,  506 => 54,  501 => 53,  491 => 52,  481 => 44,  471 => 43,  452 => 42,  440 => 45,  438 => 43,  434 => 42,  431 => 41,  421 => 40,  402 => 39,  389 => 35,  379 => 34,  360 => 32,  350 => 22,  340 => 21,  322 => 17,  303 => 10,  292 => 185,  290 => 177,  287 => 176,  285 => 173,  260 => 151,  255 => 149,  251 => 148,  174 => 74,  170 => 73,  166 => 72,  162 => 71,  151 => 62,  149 => 58,  145 => 56,  143 => 52,  137 => 48,  135 => 40,  131 => 39,  127 => 37,  125 => 34,  120 => 32,  114 => 29,  106 => 24,  103 => 23,  101 => 21,  97 => 20,  93 => 18,  91 => 17,  81 => 10,  73 => 4,  71 => 3,  68 => 2,  30 => 1,);
  519.     }
  520.     public function getSourceContext()
  521.     {
  522.         return new Source("{% use \"public/component/_auth_modal.html.twig\" %}
  523. {% set currentRoute  = app.request.get('_route') %}
  524. <!DOCTYPE HTML>
  525. <html lang=\"fr\">
  526. <head>
  527.     <!--=============== basic  ===============-->
  528.     <meta charset=\"UTF-8\">
  529.     <title>{% block title %}Je prie pour Madagascar{% endblock %}</title>
  530.     <meta name=\"viewport\"
  531.           content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
  532.     <meta name=\"robots\" content=\"index, follow\"/>
  533.     <meta name=\"keywords\" content=\"\"/>
  534.     <meta name=\"description\" content=\"\"/>
  535.     {% block meta %}{% endblock %}
  536.     <!--=============== css  ===============-->
  537.     {{ include('public/component/_vendor_css.html.twig') }}
  538.     {% block pageCSS %}
  539.     {% endblock %}
  540.     <!--=============== favicons ===============-->
  541.     <link rel=\"shortcut icon\" href=\"{{ asset('images/icon.png') }}\">
  542. </head>
  543. <body>
  544. <div id=\"google_translate_element\"></div>
  545. <!--loader-->
  546. {{ include('public/component/_loader.html.twig') }}
  547. <!--loader end-->
  548. <!-- main start  -->
  549. <div id=\"{% block mainId %}{{ mainId | default('main') }}{% endblock %}\">
  550.     <!-- header -->
  551.     {% block mainHeader %}
  552.         {{ include('public/component/_main_header_content.html.twig') }}
  553.     {% endblock %}
  554.     <!-- header end-->
  555.     <!-- wrapper-->
  556.     <div id=\"{% block wrapperId %}{{ wrapperId | default('wrapper') }}{% endblock %}\">
  557.         {% block wrapper %}
  558.             <!-- content-->
  559.             <div class=\"{% block contentClass %}{{ contentClass | default('content') }}{% endblock %}\">
  560.                 {% block content %}
  561.                 {% endblock %}
  562.             </div>
  563.             <!--content end-->
  564.         {% endblock %}
  565.     </div>
  566.     <!-- wrapper end-->
  567.     <!--footer -->
  568.     {% block footer %}
  569.         {{ include('public/component/_sub_footer.html.twig') }}
  570.         {{ include('public/component/_footer.html.twig') }}
  571.     {% endblock %}
  572.     <!--footer end -->
  573.     {% block modal %}
  574.         {{ parent() }}
  575.         {{ include('public/component/_map_modal.html.twig') }}
  576.     {% endblock %}
  577.     <!--modal end -->
  578.     <a class=\"to-top\"><i class=\"fas fa-caret-up\"></i></a>
  579. </div>
  580. <!-- Main end -->
  581. <!--=============== scripts  ===============-->
  582. <script>
  583.     window.functions = {};
  584. </script>
  585. <script src=\"{{ asset('townhub/js/jquery.min.js') }}\"></script>
  586. <script src=\"{{ asset('townhub/js/plugins.js') }}\"></script>
  587. <script src=\"{{ asset('townhub/js/scripts.js') }}\"></script>
  588. <script src=\"{{ asset('app-assets/vendors/js/extensions/sweetalert2.all.min.js') }} \"></script>
  589. <script>
  590.     window.functions.sendPraying = sendPraying = (args) => {
  591.         let \$element = \$(args.element);
  592.         let url = args.url ? args.url : null;
  593.         let dataMethod = args.method ? args.method : 'POST';
  594.         if (url) {
  595.             Swal.fire({
  596.                 text: \"Veuillez confirmer votre engagement!\",
  597.                 //icon: 'warning',
  598.                 imageUrl: \"../../../assets/images/logo.png\",
  599.                 imageSize: '50x50',
  600.                 showCancelButton: true,
  601.                 confirmButtonColor: '#76d9a0',
  602.                 confirmButtonText: 'Confirmer',
  603.                 cancelButtonText: 'Annuler',
  604.             }).then(function (result) {
  605.                 if (result.isConfirmed) {
  606.                     \$.ajax({
  607.                         url: url,
  608.                         type: dataMethod,
  609.                         success: function (result) {
  610.                             // Si la requete a ete executer avec success
  611.                             if (result.statut) { // Si la suppression a ete effectuer avec success
  612.                                 // Get requested calendars as Array
  613.                                 Swal.fire({
  614.                                     icon: 'success',
  615.                                 }).then(function (confirm) {  // Si swal confirmer
  616.                                     let prayingLengthElement = \$element.parent('.geodir-category-img').find('.prayings-length');
  617.                                     let prayingLength = parseInt(prayingLengthElement.html());
  618.                                     prayingLengthElement.html(prayingLength + 1)
  619.                                     \$element.remove();
  620.                                     location.reload();
  621.                                 });
  622.                             } else {
  623.                             }
  624.                         },
  625.                         error: function (error) {
  626.                         }
  627.                     });
  628.                 }
  629.             });
  630.         }
  631.     }
  632. </script>
  633. <script>
  634.     function callbackForGoogleMaps() {
  635.         autoCompleteInputCity();
  636.     }
  637.     function autoCompleteInputCity() {
  638.         \$('.search-form-autocomplete-input-city').each(function (index, element) {
  639.             const autocomplete = new google.maps.places.Autocomplete(element);
  640.             google.maps.event.addListener(autocomplete, 'place_changed', function () {
  641.                 const place = this.getPlace();
  642.                 let administrative_area_level_2, locality, name = place.name;
  643.                 for (let i in place.address_components) {
  644.                     let component = place.address_components[i];
  645.                     for (let j in component.types) {  // Some types are [\"country\", \"political\"]
  646.                         if (component.types[j] === \"administrative_area_level_2\") {
  647.                             administrative_area_level_2 = component.long_name;
  648.                         } else if (component.types[j] === \"locality\") {
  649.                             locality = component.long_name;
  650.                         }
  651.                     }
  652.                 }
  653.                 element.value = administrative_area_level_2 ? administrative_area_level_2 : (locality ? locality : name);
  654.             });
  655.         });
  656.     }
  657. </script>
  658. <script src=\"https://maps.googleapis.com/maps/api/js?key={{ googlemap_apikey }}&libraries=places&language=en&callback=callbackForGoogleMaps\"></script>
  659. <script type=\"text/javascript\" src=\"{{ asset('townhub/plugins/jquery-validation/jquery.validate.js') }}\"></script>
  660. <script type=\"text/javascript\"
  661.         src=\"{{ asset('townhub/plugins/jquery-validation/localization/messages_fr.js') }}\"></script>
  662. <script>
  663.     \$.validator.setDefaults({
  664.         errorElement: \"span\",
  665.         errorPlacement: function (error, element) {
  666.             // Add the `invalid-feedback` class to the error element
  667.             error.addClass(\"invalid-feedback\");
  668.             if (element.prop(\"type\") === \"checkbox\") {
  669.                 error.insertAfter(element.next(\"label\"));
  670.             } else {
  671.                 error.insertAfter(element);
  672.             }
  673.         },
  674.         highlight: function (element, errorClass, validClass) {
  675.             \$(element).addClass(\"error\").removeClass(\"valid\");
  676.         },
  677.         unhighlight: function (element, errorClass, validClass) {
  678.             \$(element).addClass(\"valid\").removeClass(\"error\");
  679.         }
  680.     });
  681. </script>
  682. {% block customJS %}
  683.     {{ parent() }}
  684. {% endblock %}
  685. {% block pageJS %}
  686.     <script type=\"text/javascript\">
  687.         function googleTranslateElementInit() {
  688.              new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
  689.         }
  690.     </script>
  691.     <script type=\"text/javascript\" src=\"https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>
  692. {% endblock %}
  693. </body>
  694. </html>""public/base.html.twig""/var/www/my-preprod/php74/jppmada/srcs/templates/public/base.html.twig");
  695.     }
  696. }