local.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php include ('header.php'); ?>
  2. <main id="main">
  3. <div class="article_wrap">
  4. <aside class="left_column">
  5. <?php include dirname(__FILE__).('/widgets/side_current_user.php'); ?>
  6. </aside>
  7. <article class="center_column">
  8. <header class="timeline_header">
  9. <?php include dirname(__FILE__).('/widgets/create_status.php'); ?>
  10. </header>
  11. <div id="js-stream_update">
  12. <button>
  13. View <span></span> new Toots
  14. </button>
  15. </div>
  16. <ul id="js-timeline" class="timeline">
  17. </ul>
  18. <footer id="js-timeline_footer" class="timeline_footer">
  19. <i class="fa fa-spin fa-circle-o-notch" aria-hidden="true"></i>
  20. </footer>
  21. </article>
  22. <aside class="right_column">
  23. <section class="side_widgets_wrap">
  24. <?php include dirname(__FILE__).('/widgets/side_who_to_follow.php'); ?>
  25. </section>
  26. <?php include dirname(__FILE__).('/widgets/side_footer.php'); ?>
  27. </aside>
  28. </div>
  29. </main>
  30. <script>
  31. current_file = location.pathname;
  32. if (
  33. localStorage.getItem("setting_local_instance") === "default" |
  34. localStorage.getItem("setting_local_instance") === current_instance
  35. ) {
  36. setTimeline("timelines/public", [{name:"local",data:"true"}]);
  37. } else {
  38. setOtherTimeline(localStorage.getItem("setting_local_instance")+"/api/v1/", [{name:"local",data:"true"}]);
  39. }
  40. $("#local_nav").addClass('view');
  41. $('title').text('Halcyon / Local');
  42. </script>
  43. <?php include ('footer.php'); ?>