templates/Default/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale | cb_locale}}">
  3. <head>
  4.     {% if page_title is defined %}
  5.         <title>{{page_title}}</title>
  6.     {% endif %}
  7.     {% if page_meta_description is defined %}
  8.         <meta name="description" content="{{ page_meta_description }}">
  9.     {% endif %}
  10.     {% if page_meta_keywords is defined %}
  11.         <meta name="keywords" content="{{ page_meta_keywords }}">
  12.     {% endif %}
  13.     <meta charset="utf-8">
  14.     {#<meta name="google-site-verification" content="Why1l-IhtSsEDJUTDleLQkIJRYVkizOewkhv2pWxNA0" />#}
  15.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  16.     {#<meta name="verification" content="e7f6cf9cdffac86043ebd6a05e8a8b67" /> #}{#zanox verification#}
  17.     {#<meta property="fb:admins" content="797350112" /> #}{#facebook insight#}
  18.     {#<!-- TradeDoubler site verification 2987522 -->#}
  19. {#    <meta name="verify-admitad" content="7f89fd1e57" /> #}{# Admitad.com #}
  20.     {% if app.request.locale == 'xx' or  app.request.host == 'test-www.comparabus.com'%}
  21.         <meta name="robots" content="noindex, nofollow">
  22.     {% endif %}
  23.     {# favicon files #}
  24.     <link rel="apple-touch-icon" sizes="57x57" href="{{ asset('images/favicon_cb/apple-touch-icon-57x57.png') }}">
  25.     <link rel="apple-touch-icon" sizes="60x60" href="{{ asset('images/favicon_cb/apple-touch-icon-60x60.png') }}">
  26.     <link rel="apple-touch-icon" sizes="72x72" href="{{ asset('images/favicon_cb/apple-touch-icon-72x72.png') }}">
  27.     <link rel="apple-touch-icon" sizes="76x76" href="{{ asset('images/favicon_cb/apple-touch-icon-76x76.png') }}">
  28.     <link rel="apple-touch-icon" sizes="114x114" href="{{ asset('images/favicon_cb/apple-touch-icon-114x114.png') }}">
  29.     <link rel="apple-touch-icon" sizes="120x120" href="{{ asset('images/favicon_cb/apple-touch-icon-120x120.png') }}">
  30.     <link rel="apple-touch-icon" sizes="144x144" href="{{ asset('images/favicon_cb/apple-touch-icon-144x144.png') }}">
  31.     <link rel="apple-touch-icon" sizes="152x152" href="{{ asset('/images/favicon_cb/apple-touch-icon-152x152.png') }}">
  32.     <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('/images/favicon_cb/apple-touch-icon-180x180.png') }}">
  33.     <link rel="icon" type="image/png" href="{{ asset('/images/favicon_cb/favicon-32x32.png') }}" sizes="32x32">
  34.     <link rel="icon" type="image/png" href="{{ asset('/images/favicon_cb/android-chrome-192x192.png')}}" sizes="192x192">
  35.     <link rel="icon" type="image/png" href="{{ asset('/images/favicon_cb/favicon-96x96.png')}}" sizes="96x96">
  36.     <link rel="icon" type="image/png" href="{{ asset('/images/favicon_cb/favicon-16x16.png')}}" sizes="16x16">
  37.     <link rel="manifest" href="{{ asset('/images/favicon_cb/manifest.json')}}">
  38.     <link rel="shortcut icon" href="{{ asset('/images/favicon_cb/favicon.ico')}}">
  39.     <meta name="msapplication-TileColor" content="#da532c">
  40.     <meta name="msapplication-TileImage" content="{{ asset('images/favicon_cb/mstile-144x144.png')}}">
  41.     <meta name="msapplication-config" content="{{ asset('images/favicon_cb/browserconfig.xml')}}">
  42.     <meta name="theme-color" content="#ffffff">
  43.     {% if canonical is defined %}
  44.         <link href="{{canonical}}" rel="canonical" />
  45.     {% endif %}
  46.     {% if alternates is defined %}
  47.         {% for alternate in alternates %}
  48.             <link rel="alternate" hreflang="{{alternate.hreflang}}" href="{{alternate.href}}" />
  49.         {% endfor %}
  50.     {% endif %}
  51.     {% block stylesheets %}
  52.     {% endblock %}
  53.     {% if noIndex is defined and noIndex %}
  54.         <meta name="robots" content="noindex">
  55.     {%endif %}
  56.     {% include 'Default/_engine_confjs.html.twig' %}
  57.     {%block page_headjs %}{% endblock%}
  58.     <link rel="stylesheet" type="text/css" media="screen" href="{{ asset('build/desktop.css') }}" />
  59.     <script src="{{ asset('build/desktop.js') }}"></script>
  60.     {% include 'Default/_seo_gatag.html.twig' %}
  61. </head>
  62. <body class="{{ page_class | default() }} {{app.request.get('_route')}}">
  63. {% block page_header %}
  64.     <header>
  65.         <div class="title">
  66.             <a href="{{ path('homepageLocale') }}" class="logo-text">
  67.                 <span class="icon-cblogo"></span>
  68.                 <span class="text"><b>Compara</b>BUS</span>
  69.             </a>
  70.         </div>
  71.     </header>
  72. {% endblock %}
  73. {% block page_content %}{%endblock %}
  74. {% block page_footer %}
  75.     <footer>
  76.         <div class="container">
  77.             <div class="col-sm-3">
  78.                 <span class="title">© {{ "now" | date('Y') }} ComparaBUS</span>
  79.                 <ul>
  80.                     {# page bus#}
  81.                     {% set buscompanies = 'homepage.footer.buscompanies.enabled' | cb_transNoFallback %}
  82.                     {% if buscompanies %}
  83.                         <li>
  84.                             {% if buscompanies %}
  85.                                 <a href="{{ path('page_bus_company') }}">{{ 'homepage.footer.buscompanies.label' | trans }}</a>
  86.                             {% endif %}
  87.                             {% if app.request.locale == 'fr' %}
  88.                                 <br /><a href="{{ path('page_busfaq_home') }}">FAQ Bus</a>
  89.                             {% endif %}
  90.                             {% if app.request.locale == 'en' %}
  91.                                 <br /><a href="{{ path('page_busfaq_home') }}">Bus FAQ</a>
  92.                             {% endif %}
  93.                         </li>
  94.                     {% endif %}
  95.                     {# page train#}
  96.                     {% set trainhome = 'homepage.footer.trainhome.enabled' | cb_transNoFallback %}
  97.                     {% set traincompanies = 'homepage.footer.traincompanies.enabled' | cb_transNoFallback %}
  98.                     {% if trainhome or traincompanies %}
  99.                     <li>
  100.                         {% if trainhome %}
  101.                             <a href="{{ path('page_train_home') }}">{{ 'result.filter.type.train' | trans }}</a><br />
  102.                         {% endif %}
  103.                         {% if traincompanies %}
  104.                             <a href="{{ path('page_train_company') }}">{{ 'homepage.footer.traincompanies.label' | trans }}</a>
  105.                         {% endif %}
  106.                         {% if app.request.locale == 'fr' %}
  107.                             <br/><a href="{{ path('page_trainfaq_home') }}">FAQ Train</a>
  108.                         {% endif %}
  109.                     </li>
  110.                     {% endif %}
  111.                     {% if app.request.locale == 'fr' %}
  112.                         <li>
  113.                             <a href="{{ path('page_flight_home') }}">Avion</a>
  114.                             <br/>
  115.                             <a href="{{  path('page_flight_company') }}">Compagnies aériennes</a>
  116.                         </li>
  117.                         <li>
  118.                             <a href="{{ path('page_carpooling_home') }}">Covoiturage</a>
  119. {#                            <br />#}
  120. {#                            <a href="{{  path('page_carpooling_company') }}">Sites de covoiturage</a>#} {#page not finished to be written#}
  121.                         </li>
  122.                     {% endif %}
  123.                     {% if app.request.locale in ['fr','en']%}
  124.                         <li><a href="{{ path('mapLocale', {'_locale': app.request.locale | slice(0,2)}) }}">{{'homepage.footer.mappagelink' | trans}}</a></li>
  125.                     {% endif %}
  126.                     {% if app.request.locale == 'fr'%}
  127.                         <li><a href="{{ path('page_advert_new') }}">Revendre billet</a></li>
  128.                         <li><a href="{{ path('page_quotation') }}">Location bus</a></li>
  129.                     {% endif %}
  130.                 </ul>
  131.             </div>
  132.             <div class="col-sm-3"><span class="title">{{ 'footer.about' | trans }}</span>
  133.                 <ul>
  134.                     {% if 'homepage.footer.blog.enabled' | cb_transNoFallback == 1 %}
  135.                         <li><a href="{{ 'homepage.footer.blog.url' | trans }}">Blog</a></li>
  136.                     {% endif %}
  137. {#                    {% include 'Default/_footer_link_enabled.html.twig'#}
  138. {#                        with {#}
  139. {#                        'path_name' : 'page_contact',#}
  140. {#                        'enabled_name' : 'homepage.footer.contact.enabled',#}
  141. {#                        'label' : 'contactpage.title' | trans#}
  142. {#                    } %}#}
  143.                     {# page_contact #}
  144.                     {% set enabled = 'homepage.footer.contact.enabled' | cb_transNoFallback %}
  145.                     {% if enabled == 1 %}
  146.                         <li><a href="{{ path('page_contact') }}">{{ 'contactpage.title' | trans }}</a></li>
  147.                     {% elseif enabled %}
  148.                         <li><a href="{{ path('page_contact', {'_locale': enabled}) }}">{{ 'contactpage.title' | trans }}</a></li>
  149.                     {% endif %}
  150.                     <li><a href="{{ path('page_legal', {'_locale': 'fr'}) }}">{{'legal.title' | trans}}</a></li>
  151.                     {# page press #}
  152.                     {% set enabled = 'homepage.footer.press.enabled' | cb_transNoFallback %}
  153.                     {% if enabled == 1 %}
  154.                         <li><a href="{{ path('page_press') }}">{{ 'presspage.title' | trans }}</a></li>
  155.                     {% elseif enabled %}
  156.                         <li><a href="{{ path('page_press', {'_locale': enabled}) }}">{{ 'presspage.title' | trans }}</a></li>
  157.                     {% endif %}
  158.                     {# page widget #}
  159.                     {% set enabled = 'homepage.footer.widget.enabled' | cb_transNoFallback %}
  160.                     {% if enabled == 1 %}
  161.                         <li><a href="{{ path('page_widget') }}">{{ 'homepage.footer.widget.label' | trans }}</a></li>
  162.                     {% elseif enabled %}
  163.                         <li><a href="{{ path('page_widget', {'_locale': enabled}) }}">{{ 'homepage.footer.widget.label' | trans }}</a></li>
  164.                     {% endif %}
  165.                     {# page whoweare #}
  166.                     {% set enabled = 'homepage.footer.whoweare.enabled' | cb_transNoFallback %}
  167.                     {% if enabled == 1 %}
  168.                         <li><a href="{{ path('page_whoweare') }}">{{ 'homepage.footer.whoweare.label' | trans }}</a></li>
  169.                     {% elseif enabled %}
  170.                         <li><a href="{{ path('page_whoweare', {'_locale': enabled}) }}">{{ 'homepage.footer.whoweare.label' | trans }}</a></li>
  171.                     {% endif %}
  172.                     {# page partner #}
  173.                     {% set enabled = 'homepage.footer.partner.enabled' | cb_transNoFallback %}
  174.                     {% if enabled == 1 %}
  175.                         <li><a href="{{ path('page_partner') }}">{{ 'homepage.footer.partner.label' | trans }}</a></li>
  176.                     {% elseif enabled %}
  177.                         <li><a href="{{ path('page_partner', {'_locale': enabled}) }}">{{ 'homepage.footer.partner.label' | trans }}</a></li>
  178.                     {% endif %}
  179.                 </ul>
  180.             </div>
  181.             <div class="col-sm-3">
  182.                 <span class="title">{{ 'footer.social' | trans }}</span>
  183.                 <ul>
  184.                     <li><i class="icon-twitter"></i><a href="http://twitter.com/comparabusfr" target="_top"> Twitter</a></li>
  185.                     <li><i class="icon-facebook"></i><a href="https://www.facebook.com/pages/ComparaBUS/1444065052480416"> Facebook</a></li>
  186.                 </ul>
  187.             </div>
  188.             <div class="col-sm-3">
  189.                 <span class="title">{{ 'footer.language' | trans }}</span>
  190.                 <ul>
  191.                     <li>
  192.                         <a href="{{ path('homepageLocale', {'_locale': 'fr'}) }}">Français FR</a>
  193.                         {#<a href="{{ path('homepageLocale', {'_locale': 'fr_CH'}) }}">CH</a>#}
  194.                         <a href="{{ path('homepageLocale', {'_locale': 'fr_BE'}) }}">BE</a>
  195.                         <a href="{{ path('homepageLocale', {'_locale': 'fr_MA'}) }}">MA</a>
  196.                     </li>
  197.                     <li>
  198.                         <a href="{{ path('homepageLocale', {'_locale': 'en'}) }}">English</a>
  199.                         <a href="{{ path('homepageLocale', {'_locale': 'en_IN'}) }}">IN</a>
  200.                         <a href="{{ path('homepageLocale', {'_locale': 'en_US'}) }}">US</a>
  201.                         <a href="{{ path('homepageLocale', {'_locale': 'en_GB'}) }}">GB</a>
  202.                     </li>
  203.                     <li><a href="{{ path('homepageLocale', {'_locale': 'es'}) }}">Español ES <a href="{{ path('homepageLocale', {'_locale': 'es_CO'}) }}">CO</a></a></li>
  204.                     <li><a href="{{ path('homepageLocale', {'_locale': 'pt'}) }}">Português</a></li>
  205.                     <li><a href="{{ path('homepageLocale', {'_locale': 'de'}) }}">Deutsch</a></li>
  206.                     <li><a href="{{ path('homepageLocale', {'_locale': 'it'}) }}">Italiano</a></li>
  207.                     <li><a href="{{ path('homepageLocale', {'_locale': 'cs'}) }}">Čeština</a></li>
  208.                     <li><a href="{{ path('homepageLocale', {'_locale': 'ru'}) }}">Русский</a></li>
  209.                     <li><a href="{{ path('homepageLocale', {'_locale': 'uk_UA'}) }}">Українська</a></li>
  210.                     <li><a href="{{ path('homepageLocale', {'_locale': 'pl'}) }}">Polski</a></li>
  211.                     <li><a href="{{ path('homepageLocale', {'_locale': 'tr'}) }}">Türkçe</a></li>
  212.                 </ul>
  213.             </div>
  214.         </div>
  215.     </footer>
  216. {% endblock %}
  217. <!-- env=xx / dt={{ 'now' | date("Y-m-d G:i:s") }} -->
  218. </body>
  219. <div id="cookieInfo" data-apiurl="{{ path('api_cookieconsent_update') }}">
  220.     {{ 'legal.cookie.banner.text' | trans }} <br />
  221.     <a href="{{ path('page_legal', {'_locale': 'fr'}) }}#cookie"> {{ 'legal.cookie.banner.link' | trans }}</a>
  222.     &nbsp; <b>{{ 'legal.cookie.banner.accept' | trans}} ✕</b>
  223. </div>
  224. </html>