<?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;
/* base.html.twig */
class __TwigTemplate_3f09632723626867fb6a7ca3d335e1481038491b1f797111e77e87bf2a6bc300 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'headplus' => [$this, 'block_headplus'],
'meta_description' => [$this, 'block_meta_description'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
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", "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", "base.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
<Meta name=\" robots\" content=\"index, follow\" />
<meta name=\"theme-color\" content=\"#8fbec0\"/>
<link rel=\"apple-touch-icon\" href=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icons/192.png"), "html", null, true);
echo "\">
<!-- Primary Meta Tags -->
<title> ";
// line 12
$this->displayBlock('title', $context, $blocks);
echo " | All the mosque of sharjah !</title>
<link rel=\"manifest\" href=\"/manifest.json\">
<meta name=\"title\" content=\"As salam aleykum! | Find all the masjids of sharjah listed here !\">
";
// line 16
$context["routeParams"] = twig_get_attribute($this->env, $this->source, 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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "attributes", [], "any", false, false, false, 16), "get", [0 => "_route_params"], "method", false, false, false, 16);
// line 17
echo " ";
$context["pageParam"] = twig_get_attribute($this->env, $this->source, 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.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "query", [], "any", false, false, false, 17), "get", [0 => "page"], "method", false, false, false, 17);
// line 18
echo "
";
// line 19
if ( !(null === (isset($context["pageParam"]) || array_key_exists("pageParam", $context) ? $context["pageParam"] : (function () { throw new RuntimeError('Variable "pageParam" does not exist.', 19, $this->source); })()))) {
// line 20
echo " ";
$context["routeParams"] = twig_array_merge((isset($context["routeParams"]) || array_key_exists("routeParams", $context) ? $context["routeParams"] : (function () { throw new RuntimeError('Variable "routeParams" does not exist.', 20, $this->source); })()), ["page" => (isset($context["pageParam"]) || array_key_exists("pageParam", $context) ? $context["pageParam"] : (function () { throw new RuntimeError('Variable "pageParam" does not exist.', 20, $this->source); })())]);
// line 21
echo " ";
}
// line 22
echo "
<link rel=\"canonical\" href=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, 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.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "attributes", [], "any", false, false, false, 23), "get", [0 => "_route"], "method", false, false, false, 23), (isset($context["routeParams"]) || array_key_exists("routeParams", $context) ? $context["routeParams"] : (function () { throw new RuntimeError('Variable "routeParams" does not exist.', 23, $this->source); })())), "html", null, true);
echo "\" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script type=\"text/javascript\" async src=\"https://www.googletagmanager.com/gtag/js?id=G-K36ER9CF16\"></script>
<script type=\"text/javascript\">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-K36ER9CF16');
</script>
<script src=\"https://analytics.ahrefs.com/analytics.js\" data-key=\"5HTfp0J+/1qudztb77oSQw\" async></script>
";
// line 37
$this->displayBlock('headplus', $context, $blocks);
// line 40
echo "
";
// line 41
$this->displayBlock('stylesheets', $context, $blocks);
// line 102
echo " </head>
<body>
<div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
<h4 class=\"modal-title\" id=\"exampleModalLabel\">New message</h4>
</div>
<div class=\"modal-body\">
<form>
<div class=\"form-group\">
<label for=\"recipient-name\" class=\"control-label\">Name: <a class=\"link\"><span class=\"title\"></span></a></label>
<a class=\"link\"> <img id=\"img\" src=\"\"></a>
</div>
</form>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
</div>
</div>
</div>
</div>
<div class=\"wraper\">
";
// line 128
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::header"));
echo "
";
// line 129
$this->loadTemplate("Main/navigation2.html.twig", "base.html.twig", 129)->display($context);
// line 130
echo " </header>
";
// line 132
$this->displayBlock('body', $context, $blocks);
// line 133
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::newsletter"));
echo "
";
// line 134
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::footer"));
echo "
</div>
";
// line 138
$this->displayBlock('javascripts', $context, $blocks);
// line 342
echo "
</body>
</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 12
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 twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Welcome"), "html", null, true);
echo "!";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 37
public function block_headplus($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", "headplus"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headplus"));
// line 38
echo " ";
$this->displayBlock('meta_description', $context, $blocks);
// line 39
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 38
public function block_meta_description($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_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
echo "<meta name=\"description\" content=\"The purpose of this site is to list, as much as possible, the mosques of the emirate of Sharjah and why not subsequently expand the collection of images and information on mosques in other Emirates and or Countries.\">";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 41
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 42
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
echo "
<style type=\"text/css\">
.btn-nearest {
background-color: #5aa3a6;
border-color: #5aa3a6;
color: #fff !important;
}
/*#nearest{display:none}*/
@media (max-width: 767px)
{
.navigation .dl-menuwrapper>ul {
background-color: #000;
display: block;
right: 0%;
}
}
.donate_gateway
{
width: 50%;
margin: auto;
}
.form_errors {
color: red;
float: left;
}
.payment-message{
font-size: 23px;
color: black;
padding: 19px;
}
.payment-message a{
font-size: 23px;
color: #007176;
padding: 5px;
font-weight: bold;
}
.hidden {
display: none !important;
}
#installContainer {
position: relative;
bottom: 1em;
display: flex;
/*justify-content: center;*/
/*width: 100%;*/
}
#installContainer button {
background-color: inherit;
border: 1px solid black;
color: black;
font-size: 1em;
padding: 0.75em;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 132
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 138
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 139
echo " ";
// line 140
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 142
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/slick.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/wow.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.bxslider.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 145
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jQuery-plugin-progressbar.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 146
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/chosen.jquery.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 147
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/modernizr.custom.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.dlmenu.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.prettyphoto.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.downCount.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/waypoints-min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/custom.js"), "html", null, true);
echo "\"></script>
<script src=\"https://polyfill.io/v3/polyfill.min.js?version=3.52.1&features=fetch\"></script>
<!--<script src=\"https://js.stripe.com/v3/\"></script>-->
<script type=\"text/javascript\">
/*\$(document).ready(function(){
\$(\".price-input\").click(function () {
id = \$( this ).attr(\"id\");
\$('.label-price').each(function(i, obj) {
if(obj.id != \"label-\"+id){
console.log(obj.id +\" vs label-\"+id);
\$(\"#\"+obj.id).removeClass('label-selected');
}
else{
console.log(\"ccc \" +obj.id);
\$(\"#\"+obj.id).addClass('label-selected');
}
});
});
// Create an instance of the Stripe object with your publishable API key
var stripe = Stripe(\"pk_live_51DFI2eD7hFI8GRlVmwTRhTJoaPIundae32cpopeCDKoP9thZJMC85RnLxakrLjq6fSM86hGn7C5LWiiW087DW9OG00POegwEDE\");
var checkoutButton = document.getElementById(\"checkout-button\");
checkoutButton.addEventListener(\"click\", function (e) {
e.preventDefault();
//const params = new URLSearchParams([...new FormData(e.target).entries()]);
var form = document.getElementById(\"donate_form\"),
myData = new FormData(form);
fetch(\"";
// line 194
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("donate");
echo "\", {
method: \"POST\",
body:myData
})
.then(function (response) {
//console.log(response);
return response.json();
})
.then(function (session) {
console.log(session);
if(session['code'] == 400){
document.getElementById(\"price\").innerHTML = \"\" ;
document.getElementById(\"other\").innerHTML = \"\" ;
document.getElementById(\"name\").innerHTML = \"\" ;
document.getElementById(\"email\").innerHTML = \"\" ;
// document.getElementById(\"gateway\").innerHTML = \"\" ;
for (const [key, value] of Object.entries(session['errors'])) {
document.getElementById(key).innerHTML = value ;
}
}
else {
return stripe.redirectToCheckout({ sessionId: session.id });
}
})
.then(function (result) {
// If redirectToCheckout fails due to a browser or network
// error, you should display the localized error message to your
// customer using error.message.
if (result.error) {
alert(result.error.message);
}
})
.catch(function (error) {
console.error(\"Error:\", error);
});
});
});*/
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js?v=1').then(function(registration) {
// console.log('ServiceWorker registration successful with scope:', registration.scope);
}).catch(function(error) {
// console.log('ServiceWorker registration failed:', error);
});
}
if (\"geolocation\" in navigator){ //check geolocation available
//try to get user current location using getCurrentPosition() method
function success(position) {
\$(\"#nearest\").show();
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
var elev = \"333\";
var apiUrl =\"https://api.aladhan.com/v1/timings/1398332113?latitude=\"+latitude+\"&longitude=\"+longitude+\"&method=8\"
//var apiUrl = \"https://api.pray.zone/v2/times/today.json?longitude=\"+longitude+\"&latitude=\"+latitude+\"&elevation=\"+elev+\"&timeformat=0\";
callApi(apiUrl);
\$('#exampleModal').on('show.bs.modal', function (event) {
console.log('js triggered');
var button = \$(event.relatedTarget) // Button that triggered the modal
var url_find_nearest = \"";
// line 267
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("findNearestToClientLocation", ["lat" => "lat", "lng" => "lng"]), "html", null, true);
echo "\";
url_find_nearest = url_find_nearest.replace(\"lat\", latitude);
url_find_nearest = url_find_nearest.replace(\"lng\", longitude);
var modal = \$(this)
\$.ajax({
type: \"POST\",
url: url_find_nearest,
crossDomain: true,
cache: false,
success: function(data) {
console.log(data);
var imageSrc = \"https://sharjah-masjids.com/media/cache/list/\"+data[0]['mainPic'];
var link = \"";
// line 281
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("masjid_show", ["slug" => "slug"]);
echo "\"
link = link.replace('slug', data[0]['slug'])
console.log(link);
//window.location.replace(link);
modal.find('.modal-title').text(data[0]['name']['";
// line 286
echo twig_escape_filter($this->env, 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.', 286, $this->source); })()), "request", [], "any", false, false, false, 286), "locale", [], "any", false, false, false, 286), "html", null, true);
echo "']['name'])
modal.find('.title').text(data[0]['name']['";
// line 287
echo twig_escape_filter($this->env, 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.', 287, $this->source); })()), "request", [], "any", false, false, false, 287), "locale", [], "any", false, false, false, 287), "html", null, true);
echo "']['name'])
modal.find('#img').attr('src', imageSrc);
modal.find('.link').attr('href', link);
},
error: function(error){
console.log(\"error ajax\");
}
});
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
})
}
function error() {
var apiUrl =\" http://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&method=8\"
//var apiUrl = \"https://api.pray.zone/v2/times/today.json?city=\"+city+\"\";
callApi(apiUrl);
}
navigator.geolocation.getCurrentPosition(success, error);
}else{
var apiUrl =\" http://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&method=8\"
}
function callApi(url){
\$.ajax({
type: \"GET\",
url: url,
crossDomain: true,
cache: false,
success: function(data) {
\$(\"#fajr\").text(data['data'][\"timings\"][\"Fajr\"])
\$(\"#dhor\").text(data['data'][\"timings\"][\"Dhuhr\"])
\$(\"#asr\").text(data['data'][\"timings\"][\"Asr\"])
\$(\"#maghreb\").text(data['data'][\"timings\"][\"Maghrib\"])
\$(\"#icha\").text(data['data'][\"timings\"][\"Isha\"])
},
error: function(error){
console.log(\"error\");
}
});
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 553 => 287, 549 => 286, 541 => 281, 524 => 267, 448 => 194, 403 => 152, 399 => 151, 395 => 150, 391 => 149, 387 => 148, 383 => 147, 379 => 146, 375 => 145, 371 => 144, 367 => 143, 363 => 142, 359 => 141, 354 => 140, 352 => 139, 342 => 138, 324 => 132, 253 => 42, 243 => 41, 224 => 38, 214 => 39, 211 => 38, 201 => 37, 181 => 12, 169 => 342, 167 => 138, 160 => 134, 155 => 133, 153 => 132, 149 => 130, 147 => 129, 143 => 128, 115 => 102, 113 => 41, 110 => 40, 108 => 37, 91 => 23, 88 => 22, 85 => 21, 82 => 20, 80 => 19, 77 => 18, 74 => 17, 72 => 16, 65 => 12, 60 => 10, 49 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
<Meta name=\" robots\" content=\"index, follow\" />
<meta name=\"theme-color\" content=\"#8fbec0\"/>
<link rel=\"apple-touch-icon\" href=\"{{asset('assets/icons/192.png')}}\">
<!-- Primary Meta Tags -->
<title> {% block title %}{{ 'Welcome'|trans }}!{% endblock %} | All the mosque of sharjah !</title>
<link rel=\"manifest\" href=\"/manifest.json\">
<meta name=\"title\" content=\"As salam aleykum! | Find all the masjids of sharjah listed here !\">
{% set routeParams = app.request.attributes.get('_route_params') %}
{% set pageParam = app.request.query.get('page') %}
{% if pageParam is not null %}
{% set routeParams = routeParams|merge({'page': pageParam}) %}
{% endif %}
<link rel=\"canonical\" href=\"{{ url(app.request.attributes.get('_route'), routeParams) }}\" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script type=\"text/javascript\" async src=\"https://www.googletagmanager.com/gtag/js?id=G-K36ER9CF16\"></script>
<script type=\"text/javascript\">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-K36ER9CF16');
</script>
<script src=\"https://analytics.ahrefs.com/analytics.js\" data-key=\"5HTfp0J+/1qudztb77oSQw\" async></script>
{% block headplus %}
{% block meta_description %}<meta name=\"description\" content=\"The purpose of this site is to list, as much as possible, the mosques of the emirate of Sharjah and why not subsequently expand the collection of images and information on mosques in other Emirates and or Countries.\">{% endblock %}
{% endblock %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
<style type=\"text/css\">
.btn-nearest {
background-color: #5aa3a6;
border-color: #5aa3a6;
color: #fff !important;
}
/*#nearest{display:none}*/
@media (max-width: 767px)
{
.navigation .dl-menuwrapper>ul {
background-color: #000;
display: block;
right: 0%;
}
}
.donate_gateway
{
width: 50%;
margin: auto;
}
.form_errors {
color: red;
float: left;
}
.payment-message{
font-size: 23px;
color: black;
padding: 19px;
}
.payment-message a{
font-size: 23px;
color: #007176;
padding: 5px;
font-weight: bold;
}
.hidden {
display: none !important;
}
#installContainer {
position: relative;
bottom: 1em;
display: flex;
/*justify-content: center;*/
/*width: 100%;*/
}
#installContainer button {
background-color: inherit;
border: 1px solid black;
color: black;
font-size: 1em;
padding: 0.75em;
}
</style>
{% endblock %}
</head>
<body>
<div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
<h4 class=\"modal-title\" id=\"exampleModalLabel\">New message</h4>
</div>
<div class=\"modal-body\">
<form>
<div class=\"form-group\">
<label for=\"recipient-name\" class=\"control-label\">Name: <a class=\"link\"><span class=\"title\"></span></a></label>
<a class=\"link\"> <img id=\"img\" src=\"\"></a>
</div>
</form>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
</div>
</div>
</div>
</div>
<div class=\"wraper\">
{{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::header\") )}}
{% include 'Main/navigation2.html.twig' %}
</header>
{% block body %}{% endblock %}
{{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::newsletter\") )}}
{{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::footer\") )}}
</div>
{% block javascripts %}
{#{{ encore_entry_script_tags('app') }}#}
<script src=\"{{asset('js/jquery.js')}}\"></script>
<script src=\"{{asset('js/bootstrap.min.js')}}\"></script>
<script src=\"{{asset('js/slick.min.js')}}\"></script>
<script src=\"{{asset('js/wow.min.js')}}\"></script>
<script src=\"{{asset('js/jquery.bxslider.min.js')}}\"></script>
<script src=\"{{asset('js/jQuery-plugin-progressbar.js')}}\"></script>
<script src=\"{{asset('js/chosen.jquery.min.js')}}\"></script>
<script src=\"{{asset('js/modernizr.custom.js')}}\"></script>
<script src=\"{{asset('js/jquery.dlmenu.js')}}\"></script>
<script src=\"{{asset('js/jquery.prettyphoto.js')}}\"></script>
<script src=\"{{asset('js/jquery.downCount.js')}}\"></script>
<script src=\"{{asset('js/waypoints-min.js')}}\"></script>
<script src=\"{{asset('js/custom.js')}}\"></script>
<script src=\"https://polyfill.io/v3/polyfill.min.js?version=3.52.1&features=fetch\"></script>
<!--<script src=\"https://js.stripe.com/v3/\"></script>-->
<script type=\"text/javascript\">
/*\$(document).ready(function(){
\$(\".price-input\").click(function () {
id = \$( this ).attr(\"id\");
\$('.label-price').each(function(i, obj) {
if(obj.id != \"label-\"+id){
console.log(obj.id +\" vs label-\"+id);
\$(\"#\"+obj.id).removeClass('label-selected');
}
else{
console.log(\"ccc \" +obj.id);
\$(\"#\"+obj.id).addClass('label-selected');
}
});
});
// Create an instance of the Stripe object with your publishable API key
var stripe = Stripe(\"pk_live_51DFI2eD7hFI8GRlVmwTRhTJoaPIundae32cpopeCDKoP9thZJMC85RnLxakrLjq6fSM86hGn7C5LWiiW087DW9OG00POegwEDE\");
var checkoutButton = document.getElementById(\"checkout-button\");
checkoutButton.addEventListener(\"click\", function (e) {
e.preventDefault();
//const params = new URLSearchParams([...new FormData(e.target).entries()]);
var form = document.getElementById(\"donate_form\"),
myData = new FormData(form);
fetch(\"{{path('donate')}}\", {
method: \"POST\",
body:myData
})
.then(function (response) {
//console.log(response);
return response.json();
})
.then(function (session) {
console.log(session);
if(session['code'] == 400){
document.getElementById(\"price\").innerHTML = \"\" ;
document.getElementById(\"other\").innerHTML = \"\" ;
document.getElementById(\"name\").innerHTML = \"\" ;
document.getElementById(\"email\").innerHTML = \"\" ;
// document.getElementById(\"gateway\").innerHTML = \"\" ;
for (const [key, value] of Object.entries(session['errors'])) {
document.getElementById(key).innerHTML = value ;
}
}
else {
return stripe.redirectToCheckout({ sessionId: session.id });
}
})
.then(function (result) {
// If redirectToCheckout fails due to a browser or network
// error, you should display the localized error message to your
// customer using error.message.
if (result.error) {
alert(result.error.message);
}
})
.catch(function (error) {
console.error(\"Error:\", error);
});
});
});*/
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js?v=1').then(function(registration) {
// console.log('ServiceWorker registration successful with scope:', registration.scope);
}).catch(function(error) {
// console.log('ServiceWorker registration failed:', error);
});
}
if (\"geolocation\" in navigator){ //check geolocation available
//try to get user current location using getCurrentPosition() method
function success(position) {
\$(\"#nearest\").show();
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
var elev = \"333\";
var apiUrl =\"https://api.aladhan.com/v1/timings/1398332113?latitude=\"+latitude+\"&longitude=\"+longitude+\"&method=8\"
//var apiUrl = \"https://api.pray.zone/v2/times/today.json?longitude=\"+longitude+\"&latitude=\"+latitude+\"&elevation=\"+elev+\"&timeformat=0\";
callApi(apiUrl);
\$('#exampleModal').on('show.bs.modal', function (event) {
console.log('js triggered');
var button = \$(event.relatedTarget) // Button that triggered the modal
var url_find_nearest = \"{{path('findNearestToClientLocation',{'lat':'lat','lng':'lng'})}}\";
url_find_nearest = url_find_nearest.replace(\"lat\", latitude);
url_find_nearest = url_find_nearest.replace(\"lng\", longitude);
var modal = \$(this)
\$.ajax({
type: \"POST\",
url: url_find_nearest,
crossDomain: true,
cache: false,
success: function(data) {
console.log(data);
var imageSrc = \"https://sharjah-masjids.com/media/cache/list/\"+data[0]['mainPic'];
var link = \"{{path('masjid_show',{'slug':'slug'})}}\"
link = link.replace('slug', data[0]['slug'])
console.log(link);
//window.location.replace(link);
modal.find('.modal-title').text(data[0]['name']['{{app.request.locale}}']['name'])
modal.find('.title').text(data[0]['name']['{{app.request.locale}}']['name'])
modal.find('#img').attr('src', imageSrc);
modal.find('.link').attr('href', link);
},
error: function(error){
console.log(\"error ajax\");
}
});
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
})
}
function error() {
var apiUrl =\" http://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&method=8\"
//var apiUrl = \"https://api.pray.zone/v2/times/today.json?city=\"+city+\"\";
callApi(apiUrl);
}
navigator.geolocation.getCurrentPosition(success, error);
}else{
var apiUrl =\" http://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&method=8\"
}
function callApi(url){
\$.ajax({
type: \"GET\",
url: url,
crossDomain: true,
cache: false,
success: function(data) {
\$(\"#fajr\").text(data['data'][\"timings\"][\"Fajr\"])
\$(\"#dhor\").text(data['data'][\"timings\"][\"Dhuhr\"])
\$(\"#asr\").text(data['data'][\"timings\"][\"Asr\"])
\$(\"#maghreb\").text(data['data'][\"timings\"][\"Maghrib\"])
\$(\"#icha\").text(data['data'][\"timings\"][\"Isha\"])
},
error: function(error){
console.log(\"error\");
}
});
}
</script>
{% endblock %}
</body>
</html>", "base.html.twig", "/var/www/sharjah/templates/base.html.twig");
}
}