<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* public/base.html.twig */
class __TwigTemplate_0116c4fdb0d0c4518082ceb72c2e8d8faa7c0f8e490063fcbe7f31c110f32922 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
// line 1
$_trait_0 = $this->loadTemplate("public/component/_auth_modal.html.twig", "public/base.html.twig", 1);
if (!$_trait_0->isTraitable()) {
throw new RuntimeError('Template "'."public/component/_auth_modal.html.twig".'" cannot be used as a trait.', 1, $this->source);
}
$_trait_0_blocks = $_trait_0->getBlocks();
$this->traits = $_trait_0_blocks;
$this->blocks = array_merge(
$this->traits,
[
'title' => [$this, 'block_title'],
'meta' => [$this, 'block_meta'],
'pageCSS' => [$this, 'block_pageCSS'],
'mainId' => [$this, 'block_mainId'],
'mainHeader' => [$this, 'block_mainHeader'],
'wrapperId' => [$this, 'block_wrapperId'],
'wrapper' => [$this, 'block_wrapper'],
'contentClass' => [$this, 'block_contentClass'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'modal' => [$this, 'block_modal'],
'customJS' => [$this, 'block_customJS'],
'pageJS' => [$this, 'block_pageJS'],
]
);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "public/base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "public/base.html.twig"));
// line 2
echo "
";
// line 3
$context["currentRoute"] = 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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", [0 => "_route"], "method", false, false, false, 3);
// line 4
echo "
<!DOCTYPE HTML>
<html lang=\"fr\">
<head>
<!--=============== basic ===============-->
<meta charset=\"UTF-8\">
<title>";
// line 10
$this->displayBlock('title', $context, $blocks);
echo "</title>
<meta name=\"viewport\"
content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
<meta name=\"robots\" content=\"index, follow\"/>
<meta name=\"keywords\" content=\"\"/>
<meta name=\"description\" content=\"\"/>
";
// line 17
$this->displayBlock('meta', $context, $blocks);
// line 18
echo "
<!--=============== css ===============-->
";
// line 20
echo twig_include($this->env, $context, "public/component/_vendor_css.html.twig");
echo "
";
// line 21
$this->displayBlock('pageCSS', $context, $blocks);
// line 23
echo " <!--=============== favicons ===============-->
<link rel=\"shortcut icon\" href=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/icon.png"), "html", null, true);
echo "\">
</head>
<body>
<div id=\"google_translate_element\"></div>
<!--loader-->
";
// line 29
echo twig_include($this->env, $context, "public/component/_loader.html.twig");
echo "
<!--loader end-->
<!-- main start -->
<div id=\"";
// line 32
$this->displayBlock('mainId', $context, $blocks);
echo "\">
<!-- header -->
";
// line 34
$this->displayBlock('mainHeader', $context, $blocks);
// line 37
echo " <!-- header end-->
<!-- wrapper-->
<div id=\"";
// line 39
$this->displayBlock('wrapperId', $context, $blocks);
echo "\">
";
// line 40
$this->displayBlock('wrapper', $context, $blocks);
// line 48
echo "
</div>
<!-- wrapper end-->
<!--footer -->
";
// line 52
$this->displayBlock('footer', $context, $blocks);
// line 56
echo "
<!--footer end -->
";
// line 58
$this->displayBlock('modal', $context, $blocks);
// line 62
echo "
<!--modal end -->
<a class=\"to-top\"><i class=\"fas fa-caret-up\"></i></a>
</div>
<!-- Main end -->
<!--=============== scripts ===============-->
<script>
window.functions = {};
</script>
<script src=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/js/jquery.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/js/plugins.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/js/scripts.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("app-assets/vendors/js/extensions/sweetalert2.all.min.js"), "html", null, true);
echo " \"></script>
<script>
window.functions.sendPraying = sendPraying = (args) => {
let \$element = \$(args.element);
let url = args.url ? args.url : null;
let dataMethod = args.method ? args.method : 'POST';
if (url) {
Swal.fire({
text: \"Veuillez confirmer votre engagement!\",
//icon: 'warning',
imageUrl: \"../../../assets/images/logo.png\",
imageSize: '50x50',
showCancelButton: true,
confirmButtonColor: '#76d9a0',
confirmButtonText: 'Confirmer',
cancelButtonText: 'Annuler',
}).then(function (result) {
if (result.isConfirmed) {
\$.ajax({
url: url,
type: dataMethod,
success: function (result) {
// Si la requete a ete executer avec success
if (result.statut) { // Si la suppression a ete effectuer avec success
// Get requested calendars as Array
Swal.fire({
icon: 'success',
}).then(function (confirm) { // Si swal confirmer
let prayingLengthElement = \$element.parent('.geodir-category-img').find('.prayings-length');
let prayingLength = parseInt(prayingLengthElement.html());
prayingLengthElement.html(prayingLength + 1)
\$element.remove();
location.reload();
});
} else {
}
},
error: function (error) {
}
});
}
});
}
}
</script>
<script>
function callbackForGoogleMaps() {
autoCompleteInputCity();
}
function autoCompleteInputCity() {
\$('.search-form-autocomplete-input-city').each(function (index, element) {
const autocomplete = new google.maps.places.Autocomplete(element);
google.maps.event.addListener(autocomplete, 'place_changed', function () {
const place = this.getPlace();
let administrative_area_level_2, locality, name = place.name;
for (let i in place.address_components) {
let component = place.address_components[i];
for (let j in component.types) { // Some types are [\"country\", \"political\"]
if (component.types[j] === \"administrative_area_level_2\") {
administrative_area_level_2 = component.long_name;
} else if (component.types[j] === \"locality\") {
locality = component.long_name;
}
}
}
element.value = administrative_area_level_2 ? administrative_area_level_2 : (locality ? locality : name);
});
});
}
</script>
<script src=\"https://maps.googleapis.com/maps/api/js?key=";
// line 148
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", null, true);
echo "&libraries=places&language=en&callback=callbackForGoogleMaps\"></script>
<script type=\"text/javascript\" src=\"";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/plugins/jquery-validation/jquery.validate.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\"
src=\"";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/plugins/jquery-validation/localization/messages_fr.js"), "html", null, true);
echo "\"></script>
<script>
\$.validator.setDefaults({
errorElement: \"span\",
errorPlacement: function (error, element) {
// Add the `invalid-feedback` class to the error element
error.addClass(\"invalid-feedback\");
if (element.prop(\"type\") === \"checkbox\") {
error.insertAfter(element.next(\"label\"));
} else {
error.insertAfter(element);
}
},
highlight: function (element, errorClass, validClass) {
\$(element).addClass(\"error\").removeClass(\"valid\");
},
unhighlight: function (element, errorClass, validClass) {
\$(element).addClass(\"valid\").removeClass(\"error\");
}
});
</script>
";
// line 173
$this->displayBlock('customJS', $context, $blocks);
// line 176
echo "
";
// line 177
$this->displayBlock('pageJS', $context, $blocks);
// line 185
echo "</body>
</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 10
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Je prie pour Madagascar";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_pageCSS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageCSS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageCSS"));
// line 22
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 32
public function block_mainId($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainId"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainId"));
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", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_mainHeader($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainHeader"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainHeader"));
// line 35
echo " ";
echo twig_include($this->env, $context, "public/component/_main_header_content.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 39
public function block_wrapperId($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "wrapperId"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "wrapperId"));
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", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 40
public function block_wrapper($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "wrapper"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "wrapper"));
// line 41
echo " <!-- content-->
<div class=\"";
// line 42
$this->displayBlock('contentClass', $context, $blocks);
echo "\">
";
// line 43
$this->displayBlock('content', $context, $blocks);
// line 45
echo " </div>
<!--content end-->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 42
public function block_contentClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentClass"));
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", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 43
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 44
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 52
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 53
echo " ";
echo twig_include($this->env, $context, "public/component/_sub_footer.html.twig");
echo "
";
// line 54
echo twig_include($this->env, $context, "public/component/_footer.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 58
public function block_modal($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modal"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modal"));
// line 59
echo " ";
$this->displayParentBlock("modal", $context, $blocks);
echo "
";
// line 60
echo twig_include($this->env, $context, "public/component/_map_modal.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 173
public function block_customJS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "customJS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "customJS"));
// line 174
echo " ";
$this->displayParentBlock("customJS", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 177
public function block_pageJS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageJS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageJS"));
// line 178
echo " <script type=\"text/javascript\">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type=\"text/javascript\" src=\"https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "public/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% use \"public/component/_auth_modal.html.twig\" %}
{% set currentRoute = app.request.get('_route') %}
<!DOCTYPE HTML>
<html lang=\"fr\">
<head>
<!--=============== basic ===============-->
<meta charset=\"UTF-8\">
<title>{% block title %}Je prie pour Madagascar{% endblock %}</title>
<meta name=\"viewport\"
content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
<meta name=\"robots\" content=\"index, follow\"/>
<meta name=\"keywords\" content=\"\"/>
<meta name=\"description\" content=\"\"/>
{% block meta %}{% endblock %}
<!--=============== css ===============-->
{{ include('public/component/_vendor_css.html.twig') }}
{% block pageCSS %}
{% endblock %}
<!--=============== favicons ===============-->
<link rel=\"shortcut icon\" href=\"{{ asset('images/icon.png') }}\">
</head>
<body>
<div id=\"google_translate_element\"></div>
<!--loader-->
{{ include('public/component/_loader.html.twig') }}
<!--loader end-->
<!-- main start -->
<div id=\"{% block mainId %}{{ mainId | default('main') }}{% endblock %}\">
<!-- header -->
{% block mainHeader %}
{{ include('public/component/_main_header_content.html.twig') }}
{% endblock %}
<!-- header end-->
<!-- wrapper-->
<div id=\"{% block wrapperId %}{{ wrapperId | default('wrapper') }}{% endblock %}\">
{% block wrapper %}
<!-- content-->
<div class=\"{% block contentClass %}{{ contentClass | default('content') }}{% endblock %}\">
{% block content %}
{% endblock %}
</div>
<!--content end-->
{% endblock %}
</div>
<!-- wrapper end-->
<!--footer -->
{% block footer %}
{{ include('public/component/_sub_footer.html.twig') }}
{{ include('public/component/_footer.html.twig') }}
{% endblock %}
<!--footer end -->
{% block modal %}
{{ parent() }}
{{ include('public/component/_map_modal.html.twig') }}
{% endblock %}
<!--modal end -->
<a class=\"to-top\"><i class=\"fas fa-caret-up\"></i></a>
</div>
<!-- Main end -->
<!--=============== scripts ===============-->
<script>
window.functions = {};
</script>
<script src=\"{{ asset('townhub/js/jquery.min.js') }}\"></script>
<script src=\"{{ asset('townhub/js/plugins.js') }}\"></script>
<script src=\"{{ asset('townhub/js/scripts.js') }}\"></script>
<script src=\"{{ asset('app-assets/vendors/js/extensions/sweetalert2.all.min.js') }} \"></script>
<script>
window.functions.sendPraying = sendPraying = (args) => {
let \$element = \$(args.element);
let url = args.url ? args.url : null;
let dataMethod = args.method ? args.method : 'POST';
if (url) {
Swal.fire({
text: \"Veuillez confirmer votre engagement!\",
//icon: 'warning',
imageUrl: \"../../../assets/images/logo.png\",
imageSize: '50x50',
showCancelButton: true,
confirmButtonColor: '#76d9a0',
confirmButtonText: 'Confirmer',
cancelButtonText: 'Annuler',
}).then(function (result) {
if (result.isConfirmed) {
\$.ajax({
url: url,
type: dataMethod,
success: function (result) {
// Si la requete a ete executer avec success
if (result.statut) { // Si la suppression a ete effectuer avec success
// Get requested calendars as Array
Swal.fire({
icon: 'success',
}).then(function (confirm) { // Si swal confirmer
let prayingLengthElement = \$element.parent('.geodir-category-img').find('.prayings-length');
let prayingLength = parseInt(prayingLengthElement.html());
prayingLengthElement.html(prayingLength + 1)
\$element.remove();
location.reload();
});
} else {
}
},
error: function (error) {
}
});
}
});
}
}
</script>
<script>
function callbackForGoogleMaps() {
autoCompleteInputCity();
}
function autoCompleteInputCity() {
\$('.search-form-autocomplete-input-city').each(function (index, element) {
const autocomplete = new google.maps.places.Autocomplete(element);
google.maps.event.addListener(autocomplete, 'place_changed', function () {
const place = this.getPlace();
let administrative_area_level_2, locality, name = place.name;
for (let i in place.address_components) {
let component = place.address_components[i];
for (let j in component.types) { // Some types are [\"country\", \"political\"]
if (component.types[j] === \"administrative_area_level_2\") {
administrative_area_level_2 = component.long_name;
} else if (component.types[j] === \"locality\") {
locality = component.long_name;
}
}
}
element.value = administrative_area_level_2 ? administrative_area_level_2 : (locality ? locality : name);
});
});
}
</script>
<script src=\"https://maps.googleapis.com/maps/api/js?key={{ googlemap_apikey }}&libraries=places&language=en&callback=callbackForGoogleMaps\"></script>
<script type=\"text/javascript\" src=\"{{ asset('townhub/plugins/jquery-validation/jquery.validate.js') }}\"></script>
<script type=\"text/javascript\"
src=\"{{ asset('townhub/plugins/jquery-validation/localization/messages_fr.js') }}\"></script>
<script>
\$.validator.setDefaults({
errorElement: \"span\",
errorPlacement: function (error, element) {
// Add the `invalid-feedback` class to the error element
error.addClass(\"invalid-feedback\");
if (element.prop(\"type\") === \"checkbox\") {
error.insertAfter(element.next(\"label\"));
} else {
error.insertAfter(element);
}
},
highlight: function (element, errorClass, validClass) {
\$(element).addClass(\"error\").removeClass(\"valid\");
},
unhighlight: function (element, errorClass, validClass) {
\$(element).addClass(\"valid\").removeClass(\"error\");
}
});
</script>
{% block customJS %}
{{ parent() }}
{% endblock %}
{% block pageJS %}
<script type=\"text/javascript\">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type=\"text/javascript\" src=\"https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>
{% endblock %}
</body>
</html>", "public/base.html.twig", "/var/www/my-preprod/php74/jppmada/srcs/templates/public/base.html.twig");
}
}