You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.1 KiB

  1. <?php if (isLogged()) { ?>
  2. <?php $this->widget('Search');?>
  3. <?php $this->widget('Upload'); ?>
  4. <?php $this->widget('Notifications');?>
  5. <?php $this->widget('SendTo');?>
  6. <?php if(\App\User::me()->hasOMEMO()) $this->widget('ChatOmemo');?>
  7. <?php $this->widget('Location');?>
  8. <?php $this->widget('PostActions');?>
  9. <nav>
  10. <?php $this->widget('Presence');?>
  11. <?php $this->widget('Navigation');?>
  12. </nav>
  13. <?php $this->widget('BottomNavigation');?>
  14. <?php } ?>
  15. <main style="background-color: rgb(var(--movim-background))">
  16. <?php if (!isLogged()) { ?>
  17. <aside>
  18. <?php $this->widget('CommunityDataPublic'); ?>
  19. </aside>
  20. <div>
  21. <?php $this->widget('PublicNavigation');?>
  22. <hr />
  23. <?php $this->widget('Blog');?>
  24. <ul class="list">
  25. <li>
  26. <span class="primary icon gray">
  27. <i class="material-symbols">cloud_queue</i>
  28. </span>
  29. <div>
  30. <p class="center normal"><a target="_blank" href="https://movim.eu">Powered by Movim</a></p>
  31. </div>
  32. </li>
  33. </ul>
  34. </div>
  35. <?php } else { ?>
  36. <?php if (empty($_GET['n'])) { ?>
  37. <aside>
  38. <?php $this->widget('CommunitiesTags'); ?>
  39. <?php $this->widget('NewsNav');?>
  40. <?php $this->widget('CommunitiesServerInfo'); ?>
  41. </aside>
  42. <div>
  43. <?php $this->widget('CommunitiesServer'); ?>
  44. </div>
  45. <?php } else { ?>
  46. <aside>
  47. <?php $this->widget('CommunityData'); ?>
  48. <?php $this->widget('CommunityConfig'); ?>
  49. <?php $this->widget('CommunityAffiliations'); ?>
  50. </aside>
  51. <div id="community">
  52. <?php $this->widget('CommunityHeader'); ?>
  53. <?php $this->widget('CommunityPosts'); ?>
  54. </div>
  55. <?php } ?>
  56. <?php } ?>
  57. </main>
  58. <?php if (isLogged() && \App\User::me()->hasPubsub()) { ?>
  59. <?php $this->widget('PublishStories');?>
  60. <?php } ?>