templates/front/main/home.html.twig line 1

Open in your IDE?
  1. {% extends 'front/base_front.html.twig' %}
  2. {% block title %}{{ homePage.title }}{% endblock %}
  3. {% block SEO %}
  4.     {% if seo.homeSeoTitle is not empty %}
  5.         <meta name="title" content="{{ seo.homeSeoTitle }}">
  6.     {% endif %}
  7.     {% if seo.homeSeoDescription is not empty %}
  8.         <meta name="description" content="{{ seo.homeSeoDescription }}">
  9.     {% endif %}
  10. {% endblock %}
  11. {% block stylesheets %}
  12.     {{ parent() }}
  13.     {{ encore_entry_link_tags('app') }}
  14. {% endblock %}
  15. {% block container %}
  16.     {# <!-- Banner Area --> #}
  17.     {{ include ('front/main/subheader/slider.html.twig' ) }}
  18.     <div {{ react_component('HomeTabs/HomeSearchTabs', {
  19.         p_locale : app.session.get('_locale') ?? app.request.locale,
  20.         p_autocomplete : true,
  21.         p_hotel : modules['Hotel'],
  22.         p_flight : modules['Flight'],
  23.         p_transfer : modules['Transfer'],
  24.         p_hotelSuggestions : hotelSuggestions,
  25.         p_flightSuggestions : flightSuggestions,
  26.     }) }}>
  27. {#        Loading... <i class="fas fa-cog fa-spin fa-3x"></i>#}
  28.     </div>
  29.     {{ include('front/main/recent_search/recent_search_hotel.html.twig') }}
  30.     {% for zone in zones %}
  31.         {% if zone.active and zone.items is not empty %}
  32.             {{ include ('front/main/zones/zone'~zone.view~'.html.twig') }}
  33.         {% endif %}
  34.     {% endfor %}
  35.     {#    Sections #}
  36.     <section class="about-section">
  37.         <div class="container">
  38.             <h2 class="section-title">{{ 'Pages.Home.Messages.FrontSectionsTitle' | trans({}, 'messages_front') }}</h2>
  39.             <div class="row gy-4">
  40.                 {% if sections|length > 0 %}
  41.                     <div class="col-md-6">
  42.                         <div class="info-box">
  43.                             <div class="info-icon">
  44.                                 <img src="/front/assets/img/voyage.png" alt="رسالتنا">
  45.                             </div>
  46.                             <div class="info-content">
  47.                                 <h5>{{ sections[0].title }}</h5>
  48.                                 <p>{{ sections[0].content }}</p>
  49.                             </div>
  50.                         </div>
  51.                     </div>
  52.                 {% endif %}
  53.                 {% if sections|length > 1 %}
  54.                     <div class="col-md-6">
  55.                         <div class="info-box">
  56.                             <div class="info-icon">
  57.                                 <img src="/front/assets/img/solution.png" alt="من نحن">
  58.                             </div>
  59.                             <div class="info-content">
  60.                                 <h5>{{ sections[1].title }}</h5>
  61.                                 <p>{{ sections[1].content }}</p>
  62.                             </div>
  63.                         </div>
  64.                     </div>
  65.                 {% endif %}
  66.             </div>
  67.         </div>
  68.     </section>
  69. {% endblock %}