footer.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <?php
  11. foreach ($page->footer->social as $social){
  12. ?>
  13. <a title='<?=text($page, $social->title)?>' href='<?=$social->url?>'>
  14. <img class='footer_social_icon' src='<?=$path["img"]["content"]?>social/x2/<?=$social->icon?>' alt='<?=text($page, $social->title)?>' title='<?=text($page, $social->title)?>'/>
  15. </a>
  16. <?php
  17. }
  18. ?>
  19. </td>
  20. <td id='footer_center'>
  21. <?=str_replace("#YEAR#", date("Y"), text($page, "FOOTER_COPY"));?>
  22. </td>
  23. <td id='footer_right'>
  24. <a id='footer_help' href='<?=$root?>help/'>
  25. <?=text($page, "FOOTER_HELP");?>
  26. </a>
  27. <br/><br/>
  28. <?php
  29. foreach ($page->footer->lang as $lang){
  30. $uri = $_SERVER["REQUEST_URI"];
  31. if (substr($uri, 3, 1) == '/'){
  32. $uri = substr($uri, 3);
  33. }
  34. $dest = $root . $lang->code . $uri;
  35. ?>
  36. <a class='lang' href='<?=$dest?>'>
  37. <img src='<?=$path["img"]["layout"]?>lang/<?=$lang->code?>.svg' alt='<?=$lang->name?>' title='<?=$lang->name?>'/>
  38. </a>
  39. <?php
  40. }
  41. ?>
  42. </td>
  43. </tr>
  44. </table>
  45. </footer>