footer.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <footer>
  2. <hr id='footer_separator'/>
  3. <br/>
  4. <table id='footer_table'>
  5. <tr>
  6. <td id='footer_left'>
  7. <span id='footer_follow' class='desktop'>
  8. <?=TEXT::get("FOOTER_FOLLOW");?>
  9. </span>
  10. <?php
  11. if (get_context()->get_user()->get_first_email() != null){
  12. ?>
  13. <a target='_blank' title='eMail' href='mailto:<?=get_context()->get_user()->get_first_email()?>'>
  14. <img class='footer_social_icon' src='<?=URL::IMG["LAYOUT"]?>social/email.svg' alt='eMail' title='eMail'/>
  15. </a>
  16. <?php
  17. }
  18. foreach (get_context()->get_user()->get_social() as $social){
  19. ?>
  20. <a target='_blank' title='<?=$social->get_text()?>' href='<?=$social->get_url()?>'>
  21. <img class='footer_social_icon' src='<?=URL::IMG["LAYOUT"]?>social/<?=$social->get_logo()?>' title='<?=$social->get_text()?>' alt='<?=$social->get_site_name()?>'/>
  22. </a>
  23. <?php
  24. }
  25. ?>
  26. </td>
  27. <td id='footer_center'>
  28. <?=str_replace("#YEAR#", date("Y"), TEXT::get("FOOTER_COPY"));?>
  29. </td>
  30. <td id='footer_right'>
  31. <a id='footer_help' href='<?=URL::BASE?>help/'>
  32. <?=TEXT::get("FOOTER_HELP");?>
  33. </a>
  34. <br/><br/>
  35. <?php
  36. foreach (get_context()->get_available_langs() as $code){
  37. $lang = new Lang($code);
  38. $uri = $_SERVER["REQUEST_URI"];
  39. if (substr($uri, 3, 1) == '/'){
  40. $uri = substr($uri, 3);
  41. }
  42. $dest = URL::BASE . $lang->get_code() . $uri;
  43. ?>
  44. <a class='lang' href='<?=$dest?>'>
  45. <img src='<?=URL::IMG["LAYOUT"]?>lang/<?=$lang->get_code()?>.svg' alt='<?=$lang->get_name()?>' title='<?=$lang->get_name()?>'/>
  46. </a>
  47. <?php
  48. }
  49. ?>
  50. </td>
  51. </tr>
  52. </table>
  53. </footer>