var/cache/dev/twig/b8/b8469bb9569fd869cb5d72cfc22849bc3bec882f0f1495df80364d2e30776617.php line 149

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_03bf6edddf12c559dc0bafad09667afd0bee1ed5d059a153b691cb38832075d0 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.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.             'script' => [$this'block_script'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         // line 1
  38.         echo "<!DOCTYPE html>
  39. <html>
  40. \t<head>
  41. \t\t<meta charset=\"UTF-8\">
  42. \t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  43. <!-- Favicon -->
  44. <link rel=\"icon\" type=\"image/x-icon\" href=\"";
  45.         // line 7
  46.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/logo-emir-tour.png"), "html"nulltrue);
  47.         echo "\">
  48. \t\t<title>
  49. \t\t\t";
  50.         // line 12
  51.         $this->displayBlock('title'$context$blocks);
  52.         // line 14
  53.         echo "\t\t</title>
  54. \t\t<link
  55. \t\trel=\"stylesheet\" href=\"";
  56.         // line 16
  57.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/style.css"), "html"nulltrue);
  58.         echo "\">
  59. \t\t<!-- CSS only -->
  60. \t\t<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css\">
  61. \t\t<link rel=\"stylesheet\" href=\"";
  62.         // line 25
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/slick.css"), "html"nulltrue);
  64.         echo "\">
  65. \t</head>
  66. \t";
  67.         // line 32
  68.         echo "    <body>
  69. \t\t<!--#######################NAVBAR################################-->
  70. \t\t<nav id=\"header \" class=\"navbar navbar-expand-lg navbar-light fixed-top px-auto  \" style=\"position:fixed;height:90px; z-index:10000;transition: 0.4s;\">
  71. \t\t\t<a class=\"navbar-brand\" id=\"logoHeader\" href=\"/\" style=\" transition: 0.4s;\">
  72. \t\t\t<img src=\"";
  73.         // line 40
  74.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/logo-emir-tour.png"), "html"nulltrue);
  75.         echo "\" class=\" img-fluid\" id=\"imageLogo\" alt=\"Responsive image\" style=\" transition: 0.4s;\"></a>
  76. \t\t\t<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarTogglerDemo02\" aria-controls=\"navbarTogglerDemo02\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  77. \t\t\t\t<span class=\"navbar-toggler-icon\"></span>
  78. \t\t\t</button>
  79. \t\t\t<div class=\"collapse navbar-collapse navbar-right\" id=\"navbarTogglerDemo02\" style=\"\">
  80. \t\t\t\t<ul class=\"navbar-nav mr-auto mt-2 \">
  81. \t\t\t\t\t<li class=\"nav-item  \">
  82. \t\t\t\t\t\t<a class=\"nav-link \" href=\"/\">Accueil
  83. \t\t\t\t\t\t</a>
  84. \t\t\t\t\t</li>
  85. \t\t\t\t\t<li class=\"nav-item\">
  86. \t\t\t\t\t\t<a class=\"nav-link\" href=\"";
  87.         // line 55
  88.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("destinations");
  89.         echo "\">Destinations</a>
  90. \t\t\t\t\t</li>
  91. \t\t\t\t\t<li class=\"nav-item\">
  92. \t\t\t\t\t\t<a class=\"nav-link\" href=\"";
  93.         // line 58
  94.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sejours");
  95.         echo "\">Séjours</a>
  96. \t\t\t\t\t</li>
  97. \t\t\t\t\t<li class=\"nav-item\">
  98. \t\t\t\t\t\t<a class=\"nav-link\" href=\"";
  99.         // line 61
  100.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("promotions");
  101.         echo "\">Promotions</a>
  102. \t\t\t\t\t</li>
  103. \t\t\t\t\t<li class=\"nav-item\">
  104. \t\t\t\t\t\t<a class=\"nav-link\" href=\"";
  105.         // line 64
  106.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
  107.         echo "\">Contact</a>
  108. \t\t\t\t\t</li>
  109. \t\t\t\t</ul>
  110. \t\t\t</div>
  111. \t\t</nav>
  112. \t\t<!--##############################ENDNAVBAR#########################-->
  113. \t\t";
  114.         // line 74
  115.         $this->displayBlock('body'$context$blocks);
  116.         // line 76
  117.         echo "
  118. \t\t";
  119.         // line 80
  120.         echo twig_include($this->env$context"includes/footer.html.twig");
  121.         echo "
  122. \t\t";
  123.         // line 83
  124.         $this->displayBlock('javascripts'$context$blocks);
  125.         // line 86
  126.         echo "
  127. <script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.1/lodash.min.js\"></script>
  128. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
  129. <script type=\"text/javascript\" src=\"https://unpkg.com/fuse.js@2.5.0/src/fuse.min.js\"></script>
  130. <script type=\"text/javascript\" src=\"https://screenfeedcontent.blob.core.windows.net/html/airports.js\"></script>
  131. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\"></script>
  132. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js\"></script>
  133. \t\t<link rel=\"stylesheet\" href=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css\">
  134. \t\t<script src=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\"></script>
  135. <!--#########################AUTOCOMPLETE#######################-->
  136. <script >
  137. var options = {
  138.     shouldSort: true,
  139.     threshold: 0.4,
  140.     maxPatternLength: 32,
  141.     keys: [{
  142.         name: 'iata',
  143.         weight: 0.5
  144.     }, {
  145.         name: 'name',
  146.         weight: 0.3
  147.     }, {
  148.         name: 'city',
  149.         weight: 0.2
  150.     }]
  151. };
  152. var fuse = new Fuse(airports, options)
  153. \$('.autocomplete-airport').each(function () {
  154.     var ac = \$(this);
  155.     ac.on('click', function (e) {
  156.         e.stopPropagation();
  157.     })
  158.         .on('focus keyup', search)
  159.         .on('keydown', onKeyDown);
  160.     var wrap = \$('<div>')
  161.         .addClass('autocomplete-wrapper')
  162.         .insertBefore(ac)
  163.         .append(ac);
  164.     var list = \$('<div>')
  165.         .addClass('autocomplete-results troll')
  166.         .on('click', '.autocomplete-result', function (e) {
  167.             e.preventDefault();
  168.             e.stopPropagation();
  169.             selectIndex(\$(this).data('index'), ac);
  170.         })
  171.         .appendTo(wrap);
  172.     var counter = 0;
  173.     counter++;
  174.     \$(\".autocomplete-wrapper\").addClass(\"_\" + counter);
  175.     // \$(\".autocomplete-airport\").click(function(){
  176.     \$(\".autocomplete-airport\").focus(function () {
  177.         \$(ac).toggleClass(\"yes\");
  178.         // \$(this).addClass(\".autoyes\");
  179.         \$(\".autocomplete-result\").closest(\".autocomplete-results\").addClass(\"in\");
  180.     });
  181. });
  182. \$(document)
  183.     .on('mouseover', '.autocomplete-result', function (e) {
  184.         var index = parseInt(\$(this).data('index'), 10);
  185.         
  186.         if (!isNaN(index)) {
  187.             \$(this).attr('data-highlight', index);
  188.           
  189.         }
  190.     })
  191.     .on('click', clearResults);
  192. function clearResults() {
  193.     results = [];
  194.     numResults = 0;
  195.     \$('.autocomplete-results').empty();
  196. }
  197. function selectIndex(index, autoinput) {
  198.     if (results.length >= index + 1) {
  199.         autoinput.val(results[index].iata + \" - \" + results[index].name + \" - \" + results[index].city);
  200.         clearResults();
  201.     }
  202. }
  203. var results = [];
  204. var numResults = 0;
  205. var selectedIndex = -1;
  206. function search(e) {
  207.     if (e.which === 38 || e.which === 13 || e.which === 40) {
  208.         return;
  209.     }
  210.     var ac = \$(e.target);
  211.     var list = ac.next();
  212.     if (ac.val().length > 0) {
  213.         results = _.take(fuse.search(ac.val()), 7);
  214.         numResults = results.length;
  215.         var divs = results.map(function (r, i) {
  216.             return '<div class=\"autocomplete-result\" data-index=\"' + i + '\">'
  217.                 + '<div><b>' + r.iata + '</b> - ' + r.name + '</div>'
  218.                 + '<div class=\"autocomplete-location\">' + r.city + ', ' + r.country + '</div>'
  219.                 + '</div>';
  220.         });
  221.         selectedIndex = -1;
  222.         list.html(divs.join(''))
  223.             .attr('data-highlight', selectedIndex);
  224.     } else {
  225.         numResults = 0;
  226.         list.empty();
  227.     }
  228. }
  229. function onKeyDown(e) {
  230.     var ac = \$(e.currentTarget);
  231.     var list = ac.next();
  232.     switch (e.which) {
  233.         case 38: // up
  234.             selectedIndex--;
  235.             if (selectedIndex <= -1) {
  236.                 selectedIndex = -1;
  237.             }
  238.             list.attr('data-highlight', selectedIndex);
  239.             break;
  240.         case 13: // enter
  241.             selectIndex(selectedIndex, ac);
  242.             break;
  243.         case 9: // enter
  244.             selectIndex(selectedIndex, ac);
  245.             e.stopPropagation();
  246.             return;
  247.         case 40: // down
  248.             selectedIndex++;
  249.             if (selectedIndex >= numResults) {
  250.                 selectedIndex = numResults - 1;
  251.             }
  252.             list.attr('data-highlight', selectedIndex);
  253.             break;
  254.         default: return; // exit this handler for other keys
  255.     }
  256.     e.stopPropagation();
  257.     e.preventDefault(); // prevent the default action (scroll / move caret)
  258. }
  259. var counter = 0;
  260. \$(\".autocomplete-wrapper\").each(function () {
  261.     counter++;
  262.     var self = \$(this);
  263.     self.addClass(\"row_\" + counter);
  264.     var tdCounter = 0;
  265.     self.find('.autocomplete-results').each(function (index) {
  266.         \$(\".autocomplete-wrapper\").find(\".autocomplete-results\").addClass(\"intro\");
  267.         //     tdCounter++;
  268.         //     if (index == 0) {
  269.         //         \$(this).css({ \"margin-left\": 30,'float': 'left'});
  270.         //     }
  271.         //     \$(this).addClass(\"row_\" + counter + tdCounter);
  272.         //   // \$(\"button\").click(function(){
  273.         // \$(this).addClass(\"intro\");
  274.         // });
  275.     });
  276. });
  277. </script>
  278.    <script src=\"";
  279.         // line 280
  280.         echo "\"></script>
  281. \t\t<!--Query UI -->
  282. \t\t<script defer src=\"https://kit.fontawesome.com/22efbde854.js\"></script>
  283. \t\t<!-----------------fonts------------------>
  284. \t\t<link href=\"https://fonts.googleapis.com/css?family=Roboto&display=swap\" rel=\"stylesheet\">
  285. \t\t<script type=\"text/javascript\" src=\"";
  286.         // line 293
  287.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/personsNumbers.js"), "html"nulltrue);
  288.         echo "\"></script>
  289. \t\t<script  src=\"";
  290.         // line 296
  291.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/datepicker.js"), "html"nulltrue);
  292.         echo "\"></script>
  293. \t\t<script  defer type=\"text/javascript\" src=\"";
  294.         // line 297
  295.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/changeFlightType.js"), "html"nulltrue);
  296.         echo "\"></script>
  297. \t\t<script type=\"text/javascript\" src=\"";
  298.         // line 300
  299.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/picker.js"), "html"nulltrue);
  300.         echo "\"></script>
  301. \t\t<script>
  302. \t\t\t\$(function () {
  303. \$('nav a[href^=\"/' + location.pathname[1] + '\"]').addClass('active');
  304. });
  305. \t\t</script>
  306. ";
  307.         // line 324
  308.         echo "
  309. ";
  310.         // line 337
  311.         echo "       </script>
  312.         
  313.       
  314. \t</body>
  315.     ";
  316.         // line 343
  317.         $this->displayBlock('script'$context$blocks);
  318.         // line 345
  319.         echo "</html>
  320. ";
  321.         
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  323.         
  324.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  325.     }
  326.     // line 12
  327.     public function block_title($context, array $blocks = [])
  328.     {
  329.         $macros $this->macros;
  330.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  331.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  332.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  333.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  334.         echo "Welcome!
  335. \t\t\t";
  336.         
  337.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  338.         
  339.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  340.     }
  341.     // line 74
  342.     public function block_body($context, array $blocks = [])
  343.     {
  344.         $macros $this->macros;
  345.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  346.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  347.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  348.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  349.         
  350.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  351.         
  352.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  353.     }
  354.     // line 83
  355.     public function block_javascripts($context, array $blocks = [])
  356.     {
  357.         $macros $this->macros;
  358.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  359.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  361.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  362.         // line 84
  363.         echo "
  364.   ";
  365.         
  366.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  367.         
  368.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  369.     }
  370.     // line 343
  371.     public function block_script($context, array $blocks = [])
  372.     {
  373.         $macros $this->macros;
  374.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  375.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  376.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  377.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  378.         // line 344
  379.         echo "    ";
  380.         
  381.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  382.         
  383.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  384.     }
  385.     public function getTemplateName()
  386.     {
  387.         return "base.html.twig";
  388.     }
  389.     public function isTraitable()
  390.     {
  391.         return false;
  392.     }
  393.     public function getDebugInfo()
  394.     {
  395.         return array (  511 => 344,  501 => 343,  490 => 84,  480 => 83,  462 => 74,  442 => 12,  430 => 345,  428 => 343,  420 => 337,  417 => 324,  392 => 300,  386 => 297,  382 => 296,  376 => 293,  361 => 280,  165 => 86,  163 => 83,  157 => 80,  151 => 76,  149 => 74,  136 => 64,  130 => 61,  124 => 58,  118 => 55,  100 => 40,  90 => 32,  81 => 25,  69 => 16,  65 => 14,  63 => 12,  55 => 7,  47 => 1,);
  396.     }
  397.     public function getSourceContext()
  398.     {
  399.         return new Source("<!DOCTYPE html>
  400. <html>
  401. \t<head>
  402. \t\t<meta charset=\"UTF-8\">
  403. \t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  404. <!-- Favicon -->
  405. <link rel=\"icon\" type=\"image/x-icon\" href=\"{{asset('images/logo-emir-tour.png')}}\">
  406. \t\t<title>
  407. \t\t\t{% block title %}Welcome!
  408. \t\t\t{% endblock %}
  409. \t\t</title>
  410. \t\t<link
  411. \t\trel=\"stylesheet\" href=\"{{asset('css/style.css')}}\">
  412. \t\t<!-- CSS only -->
  413. \t\t<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css\">
  414. \t\t<link rel=\"stylesheet\" href=\"{{asset('css/slick.css')}}\">
  415. \t</head>
  416. \t{# <body onscroll=\"scrollFunction\"> #}
  417.     <body>
  418. \t\t<!--#######################NAVBAR################################-->
  419. \t\t<nav id=\"header \" class=\"navbar navbar-expand-lg navbar-light fixed-top px-auto  \" style=\"position:fixed;height:90px; z-index:10000;transition: 0.4s;\">
  420. \t\t\t<a class=\"navbar-brand\" id=\"logoHeader\" href=\"/\" style=\" transition: 0.4s;\">
  421. \t\t\t<img src=\"{{asset('images/logo-emir-tour.png')}}\" class=\" img-fluid\" id=\"imageLogo\" alt=\"Responsive image\" style=\" transition: 0.4s;\"></a>
  422. \t\t\t<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarTogglerDemo02\" aria-controls=\"navbarTogglerDemo02\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  423. \t\t\t\t<span class=\"navbar-toggler-icon\"></span>
  424. \t\t\t</button>
  425. \t\t\t<div class=\"collapse navbar-collapse navbar-right\" id=\"navbarTogglerDemo02\" style=\"\">
  426. \t\t\t\t<ul class=\"navbar-nav mr-auto mt-2 \">
  427. \t\t\t\t\t<li class=\"nav-item  \">
  428. \t\t\t\t\t\t<a class=\"nav-link \" href=\"/\">Accueil
  429. \t\t\t\t\t\t</a>
  430. \t\t\t\t\t</li>
  431. \t\t\t\t\t<li class=\"nav-item\">
  432. \t\t\t\t\t\t<a class=\"nav-link\" href=\"{{path('destinations')}}\">Destinations</a>
  433. \t\t\t\t\t</li>
  434. \t\t\t\t\t<li class=\"nav-item\">
  435. \t\t\t\t\t\t<a class=\"nav-link\" href=\"{{path('sejours')}}\">Séjours</a>
  436. \t\t\t\t\t</li>
  437. \t\t\t\t\t<li class=\"nav-item\">
  438. \t\t\t\t\t\t<a class=\"nav-link\" href=\"{{path('promotions')}}\">Promotions</a>
  439. \t\t\t\t\t</li>
  440. \t\t\t\t\t<li class=\"nav-item\">
  441. \t\t\t\t\t\t<a class=\"nav-link\" href=\"{{path('contact')}}\">Contact</a>
  442. \t\t\t\t\t</li>
  443. \t\t\t\t</ul>
  444. \t\t\t</div>
  445. \t\t</nav>
  446. \t\t<!--##############################ENDNAVBAR#########################-->
  447. \t\t{% block body %}
  448. {% endblock %}
  449. \t\t{{include('includes/footer.html.twig')}}
  450. \t\t{% block javascripts %}
  451.   {% endblock %}
  452. <script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.1/lodash.min.js\"></script>
  453. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
  454. <script type=\"text/javascript\" src=\"https://unpkg.com/fuse.js@2.5.0/src/fuse.min.js\"></script>
  455. <script type=\"text/javascript\" src=\"https://screenfeedcontent.blob.core.windows.net/html/airports.js\"></script>
  456. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\"></script>
  457. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js\"></script>
  458. \t\t<link rel=\"stylesheet\" href=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css\">
  459. \t\t<script src=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\"></script>
  460. <!--#########################AUTOCOMPLETE#######################-->
  461. <script >
  462. var options = {
  463.     shouldSort: true,
  464.     threshold: 0.4,
  465.     maxPatternLength: 32,
  466.     keys: [{
  467.         name: 'iata',
  468.         weight: 0.5
  469.     }, {
  470.         name: 'name',
  471.         weight: 0.3
  472.     }, {
  473.         name: 'city',
  474.         weight: 0.2
  475.     }]
  476. };
  477. var fuse = new Fuse(airports, options)
  478. \$('.autocomplete-airport').each(function () {
  479.     var ac = \$(this);
  480.     ac.on('click', function (e) {
  481.         e.stopPropagation();
  482.     })
  483.         .on('focus keyup', search)
  484.         .on('keydown', onKeyDown);
  485.     var wrap = \$('<div>')
  486.         .addClass('autocomplete-wrapper')
  487.         .insertBefore(ac)
  488.         .append(ac);
  489.     var list = \$('<div>')
  490.         .addClass('autocomplete-results troll')
  491.         .on('click', '.autocomplete-result', function (e) {
  492.             e.preventDefault();
  493.             e.stopPropagation();
  494.             selectIndex(\$(this).data('index'), ac);
  495.         })
  496.         .appendTo(wrap);
  497.     var counter = 0;
  498.     counter++;
  499.     \$(\".autocomplete-wrapper\").addClass(\"_\" + counter);
  500.     // \$(\".autocomplete-airport\").click(function(){
  501.     \$(\".autocomplete-airport\").focus(function () {
  502.         \$(ac).toggleClass(\"yes\");
  503.         // \$(this).addClass(\".autoyes\");
  504.         \$(\".autocomplete-result\").closest(\".autocomplete-results\").addClass(\"in\");
  505.     });
  506. });
  507. \$(document)
  508.     .on('mouseover', '.autocomplete-result', function (e) {
  509.         var index = parseInt(\$(this).data('index'), 10);
  510.         
  511.         if (!isNaN(index)) {
  512.             \$(this).attr('data-highlight', index);
  513.           
  514.         }
  515.     })
  516.     .on('click', clearResults);
  517. function clearResults() {
  518.     results = [];
  519.     numResults = 0;
  520.     \$('.autocomplete-results').empty();
  521. }
  522. function selectIndex(index, autoinput) {
  523.     if (results.length >= index + 1) {
  524.         autoinput.val(results[index].iata + \" - \" + results[index].name + \" - \" + results[index].city);
  525.         clearResults();
  526.     }
  527. }
  528. var results = [];
  529. var numResults = 0;
  530. var selectedIndex = -1;
  531. function search(e) {
  532.     if (e.which === 38 || e.which === 13 || e.which === 40) {
  533.         return;
  534.     }
  535.     var ac = \$(e.target);
  536.     var list = ac.next();
  537.     if (ac.val().length > 0) {
  538.         results = _.take(fuse.search(ac.val()), 7);
  539.         numResults = results.length;
  540.         var divs = results.map(function (r, i) {
  541.             return '<div class=\"autocomplete-result\" data-index=\"' + i + '\">'
  542.                 + '<div><b>' + r.iata + '</b> - ' + r.name + '</div>'
  543.                 + '<div class=\"autocomplete-location\">' + r.city + ', ' + r.country + '</div>'
  544.                 + '</div>';
  545.         });
  546.         selectedIndex = -1;
  547.         list.html(divs.join(''))
  548.             .attr('data-highlight', selectedIndex);
  549.     } else {
  550.         numResults = 0;
  551.         list.empty();
  552.     }
  553. }
  554. function onKeyDown(e) {
  555.     var ac = \$(e.currentTarget);
  556.     var list = ac.next();
  557.     switch (e.which) {
  558.         case 38: // up
  559.             selectedIndex--;
  560.             if (selectedIndex <= -1) {
  561.                 selectedIndex = -1;
  562.             }
  563.             list.attr('data-highlight', selectedIndex);
  564.             break;
  565.         case 13: // enter
  566.             selectIndex(selectedIndex, ac);
  567.             break;
  568.         case 9: // enter
  569.             selectIndex(selectedIndex, ac);
  570.             e.stopPropagation();
  571.             return;
  572.         case 40: // down
  573.             selectedIndex++;
  574.             if (selectedIndex >= numResults) {
  575.                 selectedIndex = numResults - 1;
  576.             }
  577.             list.attr('data-highlight', selectedIndex);
  578.             break;
  579.         default: return; // exit this handler for other keys
  580.     }
  581.     e.stopPropagation();
  582.     e.preventDefault(); // prevent the default action (scroll / move caret)
  583. }
  584. var counter = 0;
  585. \$(\".autocomplete-wrapper\").each(function () {
  586.     counter++;
  587.     var self = \$(this);
  588.     self.addClass(\"row_\" + counter);
  589.     var tdCounter = 0;
  590.     self.find('.autocomplete-results').each(function (index) {
  591.         \$(\".autocomplete-wrapper\").find(\".autocomplete-results\").addClass(\"intro\");
  592.         //     tdCounter++;
  593.         //     if (index == 0) {
  594.         //         \$(this).css({ \"margin-left\": 30,'float': 'left'});
  595.         //     }
  596.         //     \$(this).addClass(\"row_\" + counter + tdCounter);
  597.         //   // \$(\"button\").click(function(){
  598.         // \$(this).addClass(\"intro\");
  599.         // });
  600.     });
  601. });
  602. </script>
  603.    <script src=\"{#{asset('js/fontawesome.min.js')}#}\"></script>
  604. \t\t<!--Query UI -->
  605. \t\t<script defer src=\"https://kit.fontawesome.com/22efbde854.js\"></script>
  606. \t\t<!-----------------fonts------------------>
  607. \t\t<link href=\"https://fonts.googleapis.com/css?family=Roboto&display=swap\" rel=\"stylesheet\">
  608. \t\t<script type=\"text/javascript\" src=\"{{asset('js/personsNumbers.js')}}\"></script>
  609. \t\t<script  src=\"{{asset('js/datepicker.js')}}\"></script>
  610. \t\t<script  defer type=\"text/javascript\" src=\"{{asset('js/changeFlightType.js')}}\"></script>
  611. \t\t<script type=\"text/javascript\" src=\"{{asset('js/picker.js')}}\"></script>
  612. \t\t<script>
  613. \t\t\t\$(function () {
  614. \$('nav a[href^=\"/' + location.pathname[1] + '\"]').addClass('active');
  615. });
  616. \t\t</script>
  617. {# 
  618. // \t\t<script> #}
  619. {# // \t\t\twindow.onscroll = function () {
  620. // scrollFunction()
  621. // };
  622. // function scrollFunction() {
  623. // if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
  624. // document.getElementById(\"navbar\").style.height = \"30px\";
  625. // } else {
  626. // document.getElementById(\"navbar\").style.height = \"90px\";
  627. // }
  628. // }
  629. //   #}
  630.        </script>
  631.         
  632.       
  633. \t</body>
  634.     {% block script %}
  635.     {% endblock %}
  636. </html>
  637. ""base.html.twig""/homepages/12/d770973771/htdocs/Emirtour/templates/base.html.twig");
  638.     }
  639. }