var/cache/dev/twig/22/221bd46a940acb9b43e643eb3d9dc182a06c5b897a4a55de8e0e5f5073b381cf.php line 151

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. /* base.html.twig */
  14. class __TwigTemplate_3f09632723626867fb6a7ca3d335e1481038491b1f797111e77e87bf2a6bc300 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.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'headplus' => [$this'block_headplus'],
  26.             'meta_description' => [$this'block_meta_description'],
  27.             'stylesheets' => [$this'block_stylesheets'],
  28.             'body' => [$this'block_body'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  39.         // line 1
  40.         echo "<!DOCTYPE html>
  41.     <html lang=\"en\">
  42.         <head>
  43.             <meta charset=\"utf-8\">
  44.             <meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">
  45.             <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  46.             <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
  47.             <Meta name=\" robots\" content=\"index, follow\" />
  48.             <meta name=\"theme-color\" content=\"#8fbec0\"/>
  49.             <link rel=\"apple-touch-icon\" href=\"";
  50.         // line 10
  51.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icons/192.png"), "html"nulltrue);
  52.         echo "\">
  53.             <!-- Primary Meta Tags -->
  54.             <title> ";
  55.         // line 12
  56.         $this->displayBlock('title'$context$blocks);
  57.         echo " | All the mosque of sharjah  !</title>
  58.             <link rel=\"manifest\" href=\"/manifest.json\">
  59.             <meta name=\"title\" content=\"As salam aleykum! | Find all the masjids of sharjah listed here !\">
  60.             ";
  61.         // line 16
  62.         $context["routeParams"] = twig_get_attribute($this->env$this->sourcetwig_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.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "attributes", [], "any"falsefalsefalse16), "get", [=> "_route_params"], "method"falsefalsefalse16);
  63.         // line 17
  64.         echo "            ";
  65.         $context["pageParam"] = twig_get_attribute($this->env$this->sourcetwig_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.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "query", [], "any"falsefalsefalse17), "get", [=> "page"], "method"falsefalsefalse17);
  66.         // line 18
  67.         echo "
  68.             ";
  69.         // line 19
  70.         if ( !(null === (isset($context["pageParam"]) || array_key_exists("pageParam"$context) ? $context["pageParam"] : (function () { throw new RuntimeError('Variable "pageParam" does not exist.'19$this->source); })()))) {
  71.             // line 20
  72.             echo "                ";
  73.             $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); })())]);
  74.             // line 21
  75.             echo "            ";
  76.         }
  77.         // line 22
  78.         echo "
  79.             <link rel=\"canonical\" href=\"";
  80.         // line 23
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->sourcetwig_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.'23$this->source); })()), "request", [], "any"falsefalsefalse23), "attributes", [], "any"falsefalsefalse23), "get", [=> "_route"], "method"falsefalsefalse23), (isset($context["routeParams"]) || array_key_exists("routeParams"$context) ? $context["routeParams"] : (function () { throw new RuntimeError('Variable "routeParams" does not exist.'23$this->source); })())), "html"nulltrue);
  82.         echo "\" />
  83.            <!-- Global site tag (gtag.js) - Google Analytics -->
  84.             <script type=\"text/javascript\" async src=\"https://www.googletagmanager.com/gtag/js?id=G-K36ER9CF16\"></script>
  85.             <script type=\"text/javascript\">
  86.               window.dataLayer = window.dataLayer || [];
  87.               function gtag(){dataLayer.push(arguments);}
  88.               gtag('js', new Date());
  89.               gtag('config', 'G-K36ER9CF16');
  90.             </script>
  91.         
  92.             ";
  93.         // line 36
  94.         $this->displayBlock('headplus'$context$blocks);
  95.         // line 39
  96.         echo "
  97.             ";
  98.         // line 40
  99.         $this->displayBlock('stylesheets'$context$blocks);
  100.         // line 101
  101.         echo "        </head>
  102.         <body>
  103.             <div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\">
  104.               <div class=\"modal-dialog\" role=\"document\">
  105.                 <div class=\"modal-content\">
  106.                   <div class=\"modal-header\">
  107.                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  108.                     <h4 class=\"modal-title\" id=\"exampleModalLabel\">";
  109.         // line 108
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal.new.message"), "html"nulltrue);
  111.         echo "</h4>
  112.                   </div>
  113.                   <div class=\"modal-body\">
  114.                     <form>
  115.                       <div class=\"form-group\">
  116.                         <label for=\"recipient-name\" class=\"control-label\">";
  117.         // line 113
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal.Name"), "html"nulltrue);
  119.         echo " <a class=\"link\"><span class=\"title\"></span></a></label>
  120.                         <a class=\"link\"> <img id=\"img\" src=\"\"></a>
  121.                       </div>
  122.                       
  123.                     </form>
  124.                   </div>
  125.                   <div class=\"modal-footer\">
  126.                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">";
  127.         // line 120
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal.Close"), "html"nulltrue);
  129.         echo "</button>
  130.                   </div>
  131.                 </div>
  132.               </div>
  133.             </div>
  134.             <div class=\"wraper\">
  135.                     
  136.             ";
  137.         // line 127
  138.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::header"));
  139.         echo "
  140.             ";
  141.         // line 128
  142.         $this->loadTemplate("Main/navigation2.html.twig""base.html.twig"128)->display($context);
  143.         // line 129
  144.         echo "            </header>
  145.         
  146.             ";
  147.         // line 131
  148.         $this->displayBlock('body'$context$blocks);
  149.         // line 132
  150.         echo "            ";
  151.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::newsletter"));
  152.         echo "
  153.             ";
  154.         // line 133
  155.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::footer"));
  156.         echo "
  157.             </div>
  158.             ";
  159.         // line 137
  160.         $this->displayBlock('javascripts'$context$blocks);
  161.         // line 346
  162.         echo "       
  163.     </body>
  164. </html>";
  165.         
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  167.         
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  169.     }
  170.     // line 12
  171.     public function block_title($context, array $blocks = [])
  172.     {
  173.         $macros $this->macros;
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  176.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  178.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Welcome"), "html"nulltrue);
  179.         echo "!";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     // line 36
  186.     public function block_headplus($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headplus"));
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headplus"));
  193.         // line 37
  194.         echo "                    ";
  195.         $this->displayBlock('meta_description'$context$blocks);
  196.         // line 38
  197.         echo "            ";
  198.         
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  200.         
  201.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  202.     }
  203.     // line 37
  204.     public function block_meta_description($context, array $blocks = [])
  205.     {
  206.         $macros $this->macros;
  207.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  208.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  209.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  210.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  211.         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.\">";
  212.         
  213.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  214.         
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  216.     }
  217.     // line 40
  218.     public function block_stylesheets($context, array $blocks = [])
  219.     {
  220.         $macros $this->macros;
  221.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  222.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  223.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  224.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  225.         // line 41
  226.         echo "                ";
  227.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  228.         echo "
  229.                 <style type=\"text/css\">
  230.                     .btn-nearest {
  231.                         background-color: #5aa3a6;
  232.                         border-color: #5aa3a6;
  233.                         color: #fff !important;
  234.                     }
  235.                     /*#nearest{display:none}*/
  236.                     @media (max-width: 767px)
  237.                     {
  238.                         .navigation .dl-menuwrapper>ul {
  239.                             background-color: #000;
  240.                             display: block;
  241.                             right: 0%;
  242.                         }
  243.                     }
  244.                     .donate_gateway
  245.                     {
  246.                         width: 50%;
  247.                         margin: auto;
  248.                     }
  249.                     .form_errors {
  250.                         color: red;
  251.                         float: left;
  252.                     }
  253.                     .payment-message{
  254.                         font-size: 23px;
  255.                         color: black;
  256.                         padding: 19px;
  257.                     }
  258.                     .payment-message a{
  259.                         font-size: 23px;
  260.                         color: #007176;
  261.                         padding: 5px;
  262.                         font-weight: bold;
  263.                     }
  264.                     .hidden {
  265.                       display: none !important;
  266.                     }
  267.                     #installContainer {
  268.                       position: relative;
  269.                       bottom: 1em;
  270.                       display: flex;
  271.                       /*justify-content: center;*/
  272.                       /*width: 100%;*/
  273.                     }
  274.                     #installContainer button {
  275.                       background-color: inherit;
  276.                       border: 1px solid black;
  277.                       color: black;
  278.                       font-size: 1em;
  279.                       padding: 0.75em;
  280.                     }
  281.                 </style>
  282.             ";
  283.         
  284.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  285.         
  286.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  287.     }
  288.     // line 131
  289.     public function block_body($context, array $blocks = [])
  290.     {
  291.         $macros $this->macros;
  292.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  293.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  294.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  295.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  296.         
  297.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  298.         
  299.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  300.     }
  301.     // line 137
  302.     public function block_javascripts($context, array $blocks = [])
  303.     {
  304.         $macros $this->macros;
  305.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  306.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  307.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  308.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  309.         // line 138
  310.         echo "            ";
  311.         // line 139
  312.         echo "            <script src=\"";
  313.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.js"), "html"nulltrue);
  314.         echo "\"></script>
  315.             <script src=\"";
  316.         // line 140
  317.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/bootstrap.min.js"), "html"nulltrue);
  318.         echo "\"></script>
  319.             <script src=\"";
  320.         // line 141
  321.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/slick.min.js"), "html"nulltrue);
  322.         echo "\"></script>
  323.             <script src=\"";
  324.         // line 142
  325.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/wow.min.js"), "html"nulltrue);
  326.         echo "\"></script>
  327.             <script src=\"";
  328.         // line 143
  329.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.bxslider.min.js"), "html"nulltrue);
  330.         echo "\"></script>
  331.             <script src=\"";
  332.         // line 144
  333.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jQuery-plugin-progressbar.js"), "html"nulltrue);
  334.         echo "\"></script>
  335.             <script src=\"";
  336.         // line 145
  337.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/chosen.jquery.min.js"), "html"nulltrue);
  338.         echo "\"></script>
  339.             <script src=\"";
  340.         // line 146
  341.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/modernizr.custom.js"), "html"nulltrue);
  342.         echo "\"></script>
  343.             <script src=\"";
  344.         // line 147
  345.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.dlmenu.js"), "html"nulltrue);
  346.         echo "\"></script>
  347.             <script src=\"";
  348.         // line 148
  349.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.prettyphoto.js"), "html"nulltrue);
  350.         echo "\"></script>
  351.             <script src=\"";
  352.         // line 149
  353.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery.downCount.js"), "html"nulltrue);
  354.         echo "\"></script>
  355.             <script src=\"";
  356.         // line 150
  357.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/waypoints-min.js"), "html"nulltrue);
  358.         echo "\"></script>
  359.             <script src=\"";
  360.         // line 151
  361.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/custom.js"), "html"nulltrue);
  362.         echo "\"></script>
  363.             <!--<script src=\"https://js.stripe.com/v3/\"></script>-->
  364.             <script type=\"text/javascript\">
  365.             /*\$(document).ready(function(){
  366.                 \$(\".price-input\").click(function () {
  367.                     id = \$( this ).attr(\"id\");
  368.                     \$('.label-price').each(function(i, obj) {
  369.                         if(obj.id != \"label-\"+id){
  370.                             console.log(obj.id +\" vs label-\"+id);
  371.                             \$(\"#\"+obj.id).removeClass('label-selected');
  372.                         }
  373.                         else{
  374.                             console.log(\"ccc   \" +obj.id);
  375.                             \$(\"#\"+obj.id).addClass('label-selected');
  376.                         }
  377.                     });   
  378.               
  379.                });
  380.                 // Create an instance of the Stripe object with your publishable API key
  381.                 var stripe = Stripe(\"pk_live_51DFI2eD7hFI8GRlVmwTRhTJoaPIundae32cpopeCDKoP9thZJMC85RnLxakrLjq6fSM86hGn7C5LWiiW087DW9OG00POegwEDE\");
  382.                 var checkoutButton = document.getElementById(\"checkout-button\");
  383.                 checkoutButton.addEventListener(\"click\", function (e) {
  384.                    e.preventDefault();
  385.                     //const params = new URLSearchParams([...new FormData(e.target).entries()]);
  386.                     var form = document.getElementById(\"donate_form\"),
  387.                     myData = new FormData(form);
  388.                   fetch(\"";
  389.         // line 192
  390.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("donate");
  391.         echo "\", {
  392.                     method: \"POST\",
  393.                     body:myData
  394.                   })
  395.                     .then(function (response) {
  396.                       //console.log(response);
  397.                       return response.json();
  398.                     })
  399.                     .then(function (session) {
  400.                         console.log(session);
  401.                         if(session['code'] == 400){
  402.                             document.getElementById(\"price\").innerHTML =  \"\" ;
  403.                             document.getElementById(\"other\").innerHTML =  \"\" ;
  404.                             document.getElementById(\"name\").innerHTML =  \"\" ;
  405.                             document.getElementById(\"email\").innerHTML =  \"\" ;
  406.                            // document.getElementById(\"gateway\").innerHTML =  \"\" ;
  407.                             for (const [key, value] of Object.entries(session['errors'])) {
  408.                                 document.getElementById(key).innerHTML =  value ;
  409.                             }
  410.                       }
  411.                       else {
  412.                         return stripe.redirectToCheckout({ sessionId: session.id });
  413.                       }
  414.                       
  415.                     })
  416.                     .then(function (result) {
  417.                       // If redirectToCheckout fails due to a browser or network
  418.                       // error, you should display the localized error message to your
  419.                       // customer using error.message.
  420.                       if (result.error) {
  421.                         alert(result.error.message);
  422.                       }
  423.                     })
  424.                     .catch(function (error) {
  425.                       console.error(\"Error:\", error);
  426.                     });
  427.                 });
  428.             });*/
  429.             if ('serviceWorker' in navigator) {
  430.                     navigator.serviceWorker.register('/service-worker.js?v=1').then(function(registration) {
  431.                         console.log('ServiceWorker registration successful with scope:',  registration.scope);
  432.                     }).catch(function(error) {
  433.                         console.warn('ServiceWorker registration failed:', error);
  434.                     });
  435.                 }
  436.             if (\"geolocation\" in navigator){ //check geolocation available 
  437.                     //try to get user current location using getCurrentPosition() method
  438.                 console.log('user accepted geolocation')
  439.                 function success(position) {
  440.                     console.log('geolocation succeed')
  441.                     \$(\"#nearest\").show();
  442.                     var latitude  = position.coords.latitude;
  443.                     var longitude = position.coords.longitude;
  444.                     var elev = \"333\";
  445.                     var apiUrl =\"https://api.aladhan.com/v1/timings/1398332113?latitude=\"+latitude+\"&longitude=\"+longitude+\"&method=8\"
  446.                     //var apiUrl = \"https://api.pray.zone/v2/times/today.json?longitude=\"+longitude+\"&latitude=\"+latitude+\"&elevation=\"+elev+\"&timeformat=0\";
  447.                     callApi(apiUrl);
  448.                     \$('#exampleModal').on('show.bs.modal', function (event) {
  449.                         console.log('js triggered');
  450.                         var button = \$(event.relatedTarget) // Button that triggered the modal
  451.                         var url_find_nearest = \"";
  452.         // line 265
  453.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("findNearestToClientLocation", ["lat" => "lat""lng" => "lng"]), "html"nulltrue);
  454.         echo "\";
  455.                         url_find_nearest = url_find_nearest.replace(\"lat\", latitude);
  456.                         url_find_nearest = url_find_nearest.replace(\"lng\", longitude);
  457.                         var modal = \$(this)
  458.                       \$.ajax({
  459.                             type: \"POST\",
  460.                             url: url_find_nearest,  
  461.                             crossDomain: true,
  462.                             cache: false,
  463.                             success: function(data) {  
  464.                                 console.log('ajax geolocation succeed')
  465.                                 var imageSrc = \"https://sharjah-masjids.com/media/cache/list/\"+data[0]['mainPic'];
  466.                                 var link = \"";
  467.         // line 279
  468.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("masjid_show", ["slug" => "slug"]);
  469.         echo "\"
  470.                                 link = link.replace('slug', data[0]['slug'])
  471.                                                                 console.log(link);
  472.                                 //window.location.replace(link);
  473.                                 
  474.                                 modal.find('.modal-title').text(data[0]['name']['";
  475.         // line 284
  476.         echo twig_escape_filter($this->envtwig_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.'284$this->source); })()), "request", [], "any"falsefalsefalse284), "locale", [], "any"falsefalsefalse284), "html"nulltrue);
  477.         echo "']['name'])
  478.                                 modal.find('.title').text(data[0]['name']['";
  479.         // line 285
  480.         echo twig_escape_filter($this->envtwig_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.'285$this->source); })()), "request", [], "any"falsefalsefalse285), "locale", [], "any"falsefalsefalse285), "html"nulltrue);
  481.         echo "']['name'])
  482.                                 modal.find('#img').attr('src', imageSrc);
  483.                                 modal.find('.link').attr('href', link);
  484.                             },
  485.                             error: function(error){
  486.                                 console.log(\"error ajax geolocation\");
  487.                             }
  488.                         });
  489.                       // If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
  490.                       // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
  491.                      
  492.                     })
  493.                 }
  494.                 function error(err) {
  495.                     \$(\"#nearest\").hide();
  496.                     console.log('geolocation failed depiste user allow geolocation', err.code, err.message);
  497.                     var apiUrl =\"https://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&country=\"+country+\"&method=8\"
  498.                     //var apiUrl = \"https://api.pray.zone/v2/times/today.json?city=\"+city+\"\";
  499.                     callApi(apiUrl);
  500.                 }
  501.                 navigator.geolocation.getCurrentPosition(success, error, {
  502.                     enableHighAccuracy: true,
  503.                     timeout: 10000, // 10 secondes
  504.                     maximumAge: 0
  505.                 });
  506.                                             
  507.             }else{
  508.                 console.log('geolocation refused')
  509.                 var apiUrl =\" https://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&country=\"+country+\"&method=8\"
  510.             }
  511.             function callApi(url){
  512.                 \$.ajax({
  513.                     type: \"GET\",
  514.                     url: url,  
  515.                     crossDomain: true,
  516.                     cache: false,
  517.                     success: function(data) {  
  518.                         \$(\"#fajr\").text(data['data'][\"timings\"][\"Fajr\"])
  519.                         \$(\"#dhor\").text(data['data'][\"timings\"][\"Dhuhr\"])
  520.                         \$(\"#asr\").text(data['data'][\"timings\"][\"Asr\"])
  521.                         \$(\"#maghreb\").text(data['data'][\"timings\"][\"Maghrib\"])
  522.                         \$(\"#icha\").text(data['data'][\"timings\"][\"Isha\"])
  523.                     },
  524.                     error: function(error){
  525.                         console.log(\"error\");
  526.                     }
  527.                 });
  528.             }
  529.             
  530.         </script>
  531.         ";
  532.         
  533.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  534.         
  535.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  536.     }
  537.     public function getTemplateName()
  538.     {
  539.         return "base.html.twig";
  540.     }
  541.     public function isTraitable()
  542.     {
  543.         return false;
  544.     }
  545.     public function getDebugInfo()
  546.     {
  547.         return array (  560 => 285,  556 => 284,  548 => 279,  531 => 265,  455 => 192,  411 => 151,  407 => 150,  403 => 149,  399 => 148,  395 => 147,  391 => 146,  387 => 145,  383 => 144,  379 => 143,  375 => 142,  371 => 141,  367 => 140,  362 => 139,  360 => 138,  350 => 137,  332 => 131,  261 => 41,  251 => 40,  232 => 37,  222 => 38,  219 => 37,  209 => 36,  189 => 12,  177 => 346,  175 => 137,  168 => 133,  163 => 132,  161 => 131,  157 => 129,  155 => 128,  151 => 127,  141 => 120,  131 => 113,  123 => 108,  114 => 101,  112 => 40,  109 => 39,  107 => 36,  91 => 23,  88 => 22,  85 => 21,  82 => 20,  80 => 19,  77 => 18,  74 => 17,  72 => 16,  65 => 12,  60 => 10,  49 => 1,);
  548.     }
  549.     public function getSourceContext()
  550.     {
  551.         return new Source("<!DOCTYPE html>
  552.     <html lang=\"en\">
  553.         <head>
  554.             <meta charset=\"utf-8\">
  555.             <meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">
  556.             <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  557.             <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
  558.             <Meta name=\" robots\" content=\"index, follow\" />
  559.             <meta name=\"theme-color\" content=\"#8fbec0\"/>
  560.             <link rel=\"apple-touch-icon\" href=\"{{asset('assets/icons/192.png')}}\">
  561.             <!-- Primary Meta Tags -->
  562.             <title> {% block title %}{{ 'Welcome'|trans }}!{% endblock %} | All the mosque of sharjah  !</title>
  563.             <link rel=\"manifest\" href=\"/manifest.json\">
  564.             <meta name=\"title\" content=\"As salam aleykum! | Find all the masjids of sharjah listed here !\">
  565.             {% set routeParams = app.request.attributes.get('_route_params') %}
  566.             {% set pageParam = app.request.query.get('page') %}
  567.             {% if pageParam is not null %}
  568.                 {% set routeParams = routeParams|merge({'page': pageParam}) %}
  569.             {% endif %}
  570.             <link rel=\"canonical\" href=\"{{ url(app.request.attributes.get('_route'), routeParams) }}\" />
  571.            <!-- Global site tag (gtag.js) - Google Analytics -->
  572.             <script type=\"text/javascript\" async src=\"https://www.googletagmanager.com/gtag/js?id=G-K36ER9CF16\"></script>
  573.             <script type=\"text/javascript\">
  574.               window.dataLayer = window.dataLayer || [];
  575.               function gtag(){dataLayer.push(arguments);}
  576.               gtag('js', new Date());
  577.               gtag('config', 'G-K36ER9CF16');
  578.             </script>
  579.         
  580.             {% block headplus %}
  581.                     {% 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 %}
  582.             {% endblock %}
  583.             {% block stylesheets %}
  584.                 {{ encore_entry_link_tags('app') }}
  585.                 <style type=\"text/css\">
  586.                     .btn-nearest {
  587.                         background-color: #5aa3a6;
  588.                         border-color: #5aa3a6;
  589.                         color: #fff !important;
  590.                     }
  591.                     /*#nearest{display:none}*/
  592.                     @media (max-width: 767px)
  593.                     {
  594.                         .navigation .dl-menuwrapper>ul {
  595.                             background-color: #000;
  596.                             display: block;
  597.                             right: 0%;
  598.                         }
  599.                     }
  600.                     .donate_gateway
  601.                     {
  602.                         width: 50%;
  603.                         margin: auto;
  604.                     }
  605.                     .form_errors {
  606.                         color: red;
  607.                         float: left;
  608.                     }
  609.                     .payment-message{
  610.                         font-size: 23px;
  611.                         color: black;
  612.                         padding: 19px;
  613.                     }
  614.                     .payment-message a{
  615.                         font-size: 23px;
  616.                         color: #007176;
  617.                         padding: 5px;
  618.                         font-weight: bold;
  619.                     }
  620.                     .hidden {
  621.                       display: none !important;
  622.                     }
  623.                     #installContainer {
  624.                       position: relative;
  625.                       bottom: 1em;
  626.                       display: flex;
  627.                       /*justify-content: center;*/
  628.                       /*width: 100%;*/
  629.                     }
  630.                     #installContainer button {
  631.                       background-color: inherit;
  632.                       border: 1px solid black;
  633.                       color: black;
  634.                       font-size: 1em;
  635.                       padding: 0.75em;
  636.                     }
  637.                 </style>
  638.             {% endblock %}
  639.         </head>
  640.         <body>
  641.             <div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\">
  642.               <div class=\"modal-dialog\" role=\"document\">
  643.                 <div class=\"modal-content\">
  644.                   <div class=\"modal-header\">
  645.                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  646.                     <h4 class=\"modal-title\" id=\"exampleModalLabel\">{{'modal.new.message'|trans}}</h4>
  647.                   </div>
  648.                   <div class=\"modal-body\">
  649.                     <form>
  650.                       <div class=\"form-group\">
  651.                         <label for=\"recipient-name\" class=\"control-label\">{{'modal.Name'|trans}} <a class=\"link\"><span class=\"title\"></span></a></label>
  652.                         <a class=\"link\"> <img id=\"img\" src=\"\"></a>
  653.                       </div>
  654.                       
  655.                     </form>
  656.                   </div>
  657.                   <div class=\"modal-footer\">
  658.                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{\"modal.Close\"|trans}}</button>
  659.                   </div>
  660.                 </div>
  661.               </div>
  662.             </div>
  663.             <div class=\"wraper\">
  664.                     
  665.             {{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::header\") )}}
  666.             {% include 'Main/navigation2.html.twig' %}
  667.             </header>
  668.         
  669.             {% block body %}{% endblock %}
  670.             {{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::newsletter\") )}}
  671.             {{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::footer\") )}}
  672.             </div>
  673.             {% block javascripts %}
  674.             {#{{ encore_entry_script_tags('app') }}#}
  675.             <script src=\"{{asset('js/jquery.js')}}\"></script>
  676.             <script src=\"{{asset('js/bootstrap.min.js')}}\"></script>
  677.             <script src=\"{{asset('js/slick.min.js')}}\"></script>
  678.             <script src=\"{{asset('js/wow.min.js')}}\"></script>
  679.             <script src=\"{{asset('js/jquery.bxslider.min.js')}}\"></script>
  680.             <script src=\"{{asset('js/jQuery-plugin-progressbar.js')}}\"></script>
  681.             <script src=\"{{asset('js/chosen.jquery.min.js')}}\"></script>
  682.             <script src=\"{{asset('js/modernizr.custom.js')}}\"></script>
  683.             <script src=\"{{asset('js/jquery.dlmenu.js')}}\"></script>
  684.             <script src=\"{{asset('js/jquery.prettyphoto.js')}}\"></script>
  685.             <script src=\"{{asset('js/jquery.downCount.js')}}\"></script>
  686.             <script src=\"{{asset('js/waypoints-min.js')}}\"></script>
  687.             <script src=\"{{asset('js/custom.js')}}\"></script>
  688.             <!--<script src=\"https://js.stripe.com/v3/\"></script>-->
  689.             <script type=\"text/javascript\">
  690.             /*\$(document).ready(function(){
  691.                 \$(\".price-input\").click(function () {
  692.                     id = \$( this ).attr(\"id\");
  693.                     \$('.label-price').each(function(i, obj) {
  694.                         if(obj.id != \"label-\"+id){
  695.                             console.log(obj.id +\" vs label-\"+id);
  696.                             \$(\"#\"+obj.id).removeClass('label-selected');
  697.                         }
  698.                         else{
  699.                             console.log(\"ccc   \" +obj.id);
  700.                             \$(\"#\"+obj.id).addClass('label-selected');
  701.                         }
  702.                     });   
  703.               
  704.                });
  705.                 // Create an instance of the Stripe object with your publishable API key
  706.                 var stripe = Stripe(\"pk_live_51DFI2eD7hFI8GRlVmwTRhTJoaPIundae32cpopeCDKoP9thZJMC85RnLxakrLjq6fSM86hGn7C5LWiiW087DW9OG00POegwEDE\");
  707.                 var checkoutButton = document.getElementById(\"checkout-button\");
  708.                 checkoutButton.addEventListener(\"click\", function (e) {
  709.                    e.preventDefault();
  710.                     //const params = new URLSearchParams([...new FormData(e.target).entries()]);
  711.                     var form = document.getElementById(\"donate_form\"),
  712.                     myData = new FormData(form);
  713.                   fetch(\"{{path('donate')}}\", {
  714.                     method: \"POST\",
  715.                     body:myData
  716.                   })
  717.                     .then(function (response) {
  718.                       //console.log(response);
  719.                       return response.json();
  720.                     })
  721.                     .then(function (session) {
  722.                         console.log(session);
  723.                         if(session['code'] == 400){
  724.                             document.getElementById(\"price\").innerHTML =  \"\" ;
  725.                             document.getElementById(\"other\").innerHTML =  \"\" ;
  726.                             document.getElementById(\"name\").innerHTML =  \"\" ;
  727.                             document.getElementById(\"email\").innerHTML =  \"\" ;
  728.                            // document.getElementById(\"gateway\").innerHTML =  \"\" ;
  729.                             for (const [key, value] of Object.entries(session['errors'])) {
  730.                                 document.getElementById(key).innerHTML =  value ;
  731.                             }
  732.                       }
  733.                       else {
  734.                         return stripe.redirectToCheckout({ sessionId: session.id });
  735.                       }
  736.                       
  737.                     })
  738.                     .then(function (result) {
  739.                       // If redirectToCheckout fails due to a browser or network
  740.                       // error, you should display the localized error message to your
  741.                       // customer using error.message.
  742.                       if (result.error) {
  743.                         alert(result.error.message);
  744.                       }
  745.                     })
  746.                     .catch(function (error) {
  747.                       console.error(\"Error:\", error);
  748.                     });
  749.                 });
  750.             });*/
  751.             if ('serviceWorker' in navigator) {
  752.                     navigator.serviceWorker.register('/service-worker.js?v=1').then(function(registration) {
  753.                         console.log('ServiceWorker registration successful with scope:',  registration.scope);
  754.                     }).catch(function(error) {
  755.                         console.warn('ServiceWorker registration failed:', error);
  756.                     });
  757.                 }
  758.             if (\"geolocation\" in navigator){ //check geolocation available 
  759.                     //try to get user current location using getCurrentPosition() method
  760.                 console.log('user accepted geolocation')
  761.                 function success(position) {
  762.                     console.log('geolocation succeed')
  763.                     \$(\"#nearest\").show();
  764.                     var latitude  = position.coords.latitude;
  765.                     var longitude = position.coords.longitude;
  766.                     var elev = \"333\";
  767.                     var apiUrl =\"https://api.aladhan.com/v1/timings/1398332113?latitude=\"+latitude+\"&longitude=\"+longitude+\"&method=8\"
  768.                     //var apiUrl = \"https://api.pray.zone/v2/times/today.json?longitude=\"+longitude+\"&latitude=\"+latitude+\"&elevation=\"+elev+\"&timeformat=0\";
  769.                     callApi(apiUrl);
  770.                     \$('#exampleModal').on('show.bs.modal', function (event) {
  771.                         console.log('js triggered');
  772.                         var button = \$(event.relatedTarget) // Button that triggered the modal
  773.                         var url_find_nearest = \"{{path('findNearestToClientLocation',{'lat':'lat','lng':'lng'})}}\";
  774.                         url_find_nearest = url_find_nearest.replace(\"lat\", latitude);
  775.                         url_find_nearest = url_find_nearest.replace(\"lng\", longitude);
  776.                         var modal = \$(this)
  777.                       \$.ajax({
  778.                             type: \"POST\",
  779.                             url: url_find_nearest,  
  780.                             crossDomain: true,
  781.                             cache: false,
  782.                             success: function(data) {  
  783.                                 console.log('ajax geolocation succeed')
  784.                                 var imageSrc = \"https://sharjah-masjids.com/media/cache/list/\"+data[0]['mainPic'];
  785.                                 var link = \"{{path('masjid_show',{'slug':'slug'})}}\"
  786.                                 link = link.replace('slug', data[0]['slug'])
  787.                                                                 console.log(link);
  788.                                 //window.location.replace(link);
  789.                                 
  790.                                 modal.find('.modal-title').text(data[0]['name']['{{app.request.locale}}']['name'])
  791.                                 modal.find('.title').text(data[0]['name']['{{app.request.locale}}']['name'])
  792.                                 modal.find('#img').attr('src', imageSrc);
  793.                                 modal.find('.link').attr('href', link);
  794.                             },
  795.                             error: function(error){
  796.                                 console.log(\"error ajax geolocation\");
  797.                             }
  798.                         });
  799.                       // If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
  800.                       // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
  801.                      
  802.                     })
  803.                 }
  804.                 function error(err) {
  805.                     \$(\"#nearest\").hide();
  806.                     console.log('geolocation failed depiste user allow geolocation', err.code, err.message);
  807.                     var apiUrl =\"https://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&country=\"+country+\"&method=8\"
  808.                     //var apiUrl = \"https://api.pray.zone/v2/times/today.json?city=\"+city+\"\";
  809.                     callApi(apiUrl);
  810.                 }
  811.                 navigator.geolocation.getCurrentPosition(success, error, {
  812.                     enableHighAccuracy: true,
  813.                     timeout: 10000, // 10 secondes
  814.                     maximumAge: 0
  815.                 });
  816.                                             
  817.             }else{
  818.                 console.log('geolocation refused')
  819.                 var apiUrl =\" https://api.aladhan.com/v1/timingsByCity?city=\"+city+\"&country=\"+country+\"&method=8\"
  820.             }
  821.             function callApi(url){
  822.                 \$.ajax({
  823.                     type: \"GET\",
  824.                     url: url,  
  825.                     crossDomain: true,
  826.                     cache: false,
  827.                     success: function(data) {  
  828.                         \$(\"#fajr\").text(data['data'][\"timings\"][\"Fajr\"])
  829.                         \$(\"#dhor\").text(data['data'][\"timings\"][\"Dhuhr\"])
  830.                         \$(\"#asr\").text(data['data'][\"timings\"][\"Asr\"])
  831.                         \$(\"#maghreb\").text(data['data'][\"timings\"][\"Maghrib\"])
  832.                         \$(\"#icha\").text(data['data'][\"timings\"][\"Isha\"])
  833.                     },
  834.                     error: function(error){
  835.                         console.log(\"error\");
  836.                     }
  837.                 });
  838.             }
  839.             
  840.         </script>
  841.         {% endblock %}
  842.        
  843.     </body>
  844. </html>""base.html.twig""/var/www/sharjah/templates/base.html.twig");
  845.     }
  846. }