footer.php 857 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <footer id="footer">
  2. <div class="footer_anchor">
  3. <a href="#">
  4. <i class="fa fa-angle-up" aria-hidden="true"></i>
  5. </a>
  6. </div>
  7. <?php
  8. if(file_exists("../config/footerlinks.txt")) {
  9. $footerlinks = json_decode(file_get_contents("../config/footerlinks.txt"));
  10. $haslinks = false;
  11. for($i=0;$i<count($footerlinks);$i++) {
  12. if($footerlinks[$i]->logout == true) {
  13. if($haslinks == false) {
  14. $haslinks = true;
  15. echo "<span>";
  16. }
  17. else {
  18. echo " | ";
  19. }
  20. echo "<a href='".$footerlinks[$i]->link."'>".$footerlinks[$i]->title."</a>";
  21. }
  22. }
  23. if($haslinks == true) {
  24. echo "</span><br/>";
  25. }
  26. }
  27. ?>
  28. <span>Halcyon version <?php echo file_get_contents("../version.txt") ?></span>
  29. </footer>
  30. </body>
  31. <script>
  32. window.cookieconsent.initialise({
  33. "palette": {
  34. "popup": {
  35. "background": "#000"
  36. },
  37. "button": {
  38. "background": "#f1d600"
  39. }
  40. },
  41. "theme": "classic",
  42. "position": "bottom"
  43. });
  44. </script>
  45. </html>