templates/Frontend/_footer.html.twig line 1

Open in your IDE?
  1. <footer class="footer">
  2.     <div class="container">
  3.         <div class="logo_footer">
  4.              <a href="{{ path('frontend_home') }}"><img class="img-fluid" src="/assets/img/logo_footer.png" alt="Logo"></a>
  5.         </div>
  6.         <div class="menu_footer">
  7.             <ul>
  8.                 <li><a href="{{ path('page_single_simple',{'slug':'about'}) }}">{{'About'|trans}}</a></li>
  9.                 <li><a href="{{ path('page_single_simple',{'slug':'director'}) }}">{{'Director'|trans}}</a></li>
  10.                 <li><a href="{{ path('page_single',{'catslug':'people', 'slug':Categorypage_list('people')|first.slug}) }}">{{'People'|trans}}</a></li>
  11.                 <li><a href="{{ path('page_single_simple',{'slug':'phd-program'}) }}">{{'PhD Program'|trans}}</a></li>
  12.                 <li><a href="{{ path('page_single',{'catslug':'events', 'slug':Categorypage_list('events')|first.slug}) }}">{{'Events'|trans}}</a></li>
  13.                 <li><a href="{{ path('page_single',{'catslug':'join-us', 'slug':Categorypage_list('join-us')|first.slug}) }}">{{'Join Us'|trans}}</a></li>
  14.                 <li class="button_contact"><a href="mailto:mcgt@um6p.ma">{{'Contact'|trans}}</a></li>
  15.                 <li class="button_contact button_apply">
  16.                     <a href="{{ path('page_single',{'catslug':'join-us', 'slug':Categorypage_list('join-us')|first.slug}) }}">{{'Apply Now'|trans}}</a>
  17.                 </li>
  18.             </ul>
  19.         </div>
  20.     </div>
  21. </footer>
  22. {{getblockhtml('popup_cookies')|raw}}
  23. {% block javascripts %}
  24.     <script type="text/javascript">
  25.         function setCookie(cname, cvalue, exdays) {
  26.             var d = new Date();
  27.             d.setTime(d.getTime() + (exdays * 86400000 * 356));
  28.             var expires = "expires=" + d.toUTCString();
  29.             document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
  30.             console.log(expires);
  31.         }
  32.         function getCookie(cname) {
  33.             var name = cname + "=";
  34.             var decodedCookie = decodeURIComponent(document.cookie);
  35.             var ca = decodedCookie.split(';');
  36.             for (var i = 0; i < ca.length; i++) {
  37.                 var c = ca[i];
  38.                 while (c.charAt(0) == ' ') {
  39.                     c = c.substring(1);
  40.                 }
  41.                 if (c.indexOf(name) == 0) {
  42.                     return c.substring(name.length, c.length);
  43.                 }
  44.             }
  45.             return "";
  46.         }
  47.         $('#jaccepte_conditions').click(function () {
  48.             setCookie("lesitedejavu", "Yes", 1);
  49.             $('#popup_leprojet_cookies').hide();
  50.         });
  51.         $(window).on('load', function () {
  52.             if (getCookie("lesitedejavu") == "") {
  53.                 $('#popup_leprojet_cookies').show();
  54.             }
  55.         });
  56.     </script>
  57. {% endblock %}