footer.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div id='footer'>
  2. <hr id='footer_separator'/><br/>
  3. <table id='footer_table'>
  4. <tr>
  5. <td id='footer_left'>
  6. <span id='footer_follow' class='desktop'><?=text($con, "FOOTER_FOLLOW", $lang);?><br/></span>
  7. <?php
  8. $q_social = mysqli_query($con, "SELECT title, icon, url FROM social WHERE visible = 1 ORDER BY idx;");
  9. while ($r_social = mysqli_fetch_array($q_social)){
  10. ?>
  11. <a title='<?=text($con, $r_social["title"], $lang)?>' href='<?=$r_social["url"]?>'>
  12. <img class='footer_social_icon' src='<?=$lserver?>/img/social/x2/<?=$r_social["icon"]?>' alt='<?=text($con, $r_social["title"], $lang)?>' title='<?=text($con, $r_social["title"], $lang)?>'/>
  13. </a>
  14. <?php
  15. }
  16. ?>
  17. </td>
  18. <td id='footer_center'><?=str_replace("#YEAR#", date("Y"), text($con, "FOOTER_COPY", $lang));?></td>
  19. <td id='footer_right'>
  20. <a href='<?=$lserver?>/help/'><?=text($con, "FOOTER_HELP", $lang);?></a>
  21. <br/><br/>
  22. <?php
  23. $q_lang = mysqli_query($con, "SELECT * FROM lang WHERE active = 1;");
  24. while ($r = mysqli_fetch_array($q_lang)){
  25. $uri = $_SERVER["REQUEST_URI"];
  26. if (substr($uri, 3, 1) == '/'){
  27. $uri = substr($uri, 3);
  28. }
  29. $dest = $server . "/" . $r["code"] . $uri;
  30. ?>
  31. <a class='lang' href='<?=$dest?>'><img src='<?=$lserver?>/img/lang/<?=$r["code"]?>.gif' alt='<?=$r['name']?>' /></a>
  32. <?php
  33. }
  34. ?>
  35. </td>
  36. </tr>
  37. </table>
  38. </div>