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.

31 lines
1.3 KiB

  1. <div class="footer">
  2. <div class="nav">
  3. <ul class="nav navbar-nav">
  4. <? if(session('me')) { ?>
  5. <li><a href="/new">New Post</a></li>
  6. <? } ?>
  7. <li><a href="/docs">Docs</a></li>
  8. </ul>
  9. <ul class="nav navbar-nav navbar-right">
  10. <? if(session('me')) { ?>
  11. <li><a href="/add-to-home?start">Add to Home Screen</a></li>
  12. <li><a href="/settings"><?= preg_replace(['/https?:\/\//','/\/$/'],'',session('me')) ?></a></li>
  13. <li><a href="/signout">Sign Out</a></li>
  14. <? } else if(property_exists($this, 'authorizing')) { ?>
  15. <li class="navbar-text"><?= htmlspecialchars($this->authorizing) ?></li>
  16. <? } else { ?>
  17. <form action="/auth/start" method="get" class="navbar-form">
  18. <input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
  19. <button type="submit" class="btn">Sign In</button>
  20. </form>
  21. <? } ?>
  22. </ul>
  23. </div>
  24. <p class="credits">&copy; <?=date('Y')?> by <a href="https://aaronparecki.com">Aaron Parecki</a>.
  25. This code is <a href="https://github.com/aaronpk/Teacup">open source</a>.
  26. Feel free to send a pull request, or <a href="https://github.com/aaronpk/Teacup/issues">file an issue</a>.</p>
  27. </div>