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.

78 lines
2.9 KiB

9 years ago
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title><?= $this->title ?></title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <link rel="pingback" href="http://webmention.io/aaronpk/xmlrpc" />
  8. <link rel="webmention" href="http://webmention.io/aaronpk/webmention" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
  11. <link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
  12. <link rel="stylesheet" href="/css/style.css">
  13. <link rel="apple-touch-icon" sizes="57x57" href="/images/quill-icon-57.png">
  14. <link rel="apple-touch-icon" sizes="72x72" href="/images/quill-icon-72.png">
  15. <link rel="apple-touch-icon" sizes="114x114" href="/images/quill-icon-114.png">
  16. <link rel="apple-touch-icon" sizes="144x144" href="/images/quill-icon-144.png">
  17. <script src="/js/jquery-1.7.1.min.js"></script>
  18. </head>
  19. <body role="document">
  20. <script type="text/javascript">
  21. var _gaq = _gaq || [];
  22. _gaq.push(['_setAccount', '<?= Config::$gaid ?>']);
  23. _gaq.push(['_trackPageview']);
  24. (function() {
  25. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  26. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  27. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  28. })();
  29. </script>
  30. <div class="page">
  31. <div class="container">
  32. <?= $this->fetch($this->page . '.php') ?>
  33. </div>
  34. <div class="footer">
  35. <div class="nav">
  36. <ul class="nav navbar-nav">
  37. <? if(session('me')) { ?>
  38. <li><a href="/new">New Post</a></li>
  39. <? } ?>
  40. <li><a href="/docs">Docs</a></li>
  41. </ul>
  42. <ul class="nav navbar-nav navbar-right">
  43. <? if(session('me')) { ?>
  44. <li><a href="/add-to-home?start">Add to Home Screen</a></li>
  45. <li><span class="navbar-text"><?= preg_replace('/https?:\/\//','',session('me')) ?></span></li>
  46. <li><a href="/signout">Sign Out</a></li>
  47. <? } else if(property_exists($this, 'authorizing')) { ?>
  48. <li class="navbar-text"><?= $this->authorizing ?></li>
  49. <? } else { ?>
  50. <form action="/auth/start" method="get" class="navbar-form">
  51. <input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
  52. <button type="submit" class="btn">Sign In</button>
  53. <input type="hidden" name="redirect_uri" value="https://<?= $_SERVER['SERVER_NAME'] ?>/indieauth" />
  54. </form>
  55. <? } ?>
  56. </ul>
  57. </div>
  58. <p class="credits">&copy; <?=date('Y')?> by <a href="http://aaronparecki.com">Aaron Parecki</a>.
  59. This code is <a href="https://github.com/aaronpk/Quill">open source</a>.
  60. Feel free to send a pull request, or <a href="https://github.com/aaronpk/Quill/issues">file an issue</a>.</p>
  61. </div>
  62. </div>
  63. </body>
  64. </html>