footer.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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($page, "FOOTER_FOLLOW");?>
  9. </span>
  10. <a target='_blank' title='eMail' href='mailto:i@inigovalentin.com'>
  11. <img class='footer_social_icon' src='<?=$path["img"]["layout"]?>social/email.svg' alt='eMail' title='eMail'/>
  12. </a>
  13. <a target='_blank' title='Telegram' href='https://telegram.me/@InigoValentin'>
  14. <img class='footer_social_icon' src='<?=$path["img"]["layout"]?>social/telegram.svg' alt='Telegram' title='Telegram'/>
  15. </a>
  16. <a target='_blank' title='Github' href='https://github.com/InigoValentin'>
  17. <img class='footer_social_icon' src='<?=$path["img"]["layout"]?>social/github.svg' alt='Github' title='Github'/>
  18. </a>
  19. <a target='_blank' title='LinkedIn' href='https://www.linkedin.com/in/ivalentin'>
  20. <img class='footer_social_icon' src='<?=$path["img"]["layout"]?>social/linkedin.svg' alt='LinkedIn' title='LinkedIn'/>
  21. </a>
  22. </td>
  23. <td id='footer_center'>
  24. <?=str_replace("#YEAR#", date("Y"), text($page, "FOOTER_COPY"));?>
  25. </td>
  26. <td id='footer_right'>
  27. <a id='footer_help' href='<?=$root?>help/'>
  28. <?=text($page, "FOOTER_HELP");?>
  29. </a>
  30. <br/><br/>
  31. <?php
  32. foreach ($page->footer->lang as $lang){
  33. $uri = $_SERVER["REQUEST_URI"];
  34. if (substr($uri, 3, 1) == '/'){
  35. $uri = substr($uri, 3);
  36. }
  37. $dest = $root . $lang->code . $uri;
  38. ?>
  39. <a class='lang' href='<?=$dest?>'>
  40. <img src='<?=$path["img"]["layout"]?>lang/<?=$lang->code?>.svg' alt='<?=$lang->name?>' title='<?=$lang->name?>'/>
  41. </a>
  42. <?php
  43. }
  44. ?>
  45. </td>
  46. </tr>
  47. </table>
  48. </footer>