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

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