Mirror of Quill
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.

89 lines
3.3 KiB

11 years ago
11 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. <script src="/js/jquery-1.7.1.min.js"></script>
  14. </head>
  15. <body role="document">
  16. <script type="text/javascript">
  17. var _gaq = _gaq || [];
  18. _gaq.push(['_setAccount', '<?= Config::$gaid ?>']);
  19. _gaq.push(['_trackPageview']);
  20. (function() {
  21. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  22. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  23. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  24. })();
  25. </script>
  26. <div class="navbar navbar-inverse navbar-fixed-top">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="/">Quill</a>
  36. </div>
  37. <div class="navbar-collapse collapse">
  38. <ul class="nav navbar-nav">
  39. <? if(session('me')) { ?>
  40. <li><a href="/new">New Post</a></li>
  41. <? } ?>
  42. <li><a href="/docs">Docs</a></li>
  43. <!-- <li><a href="/about">About</a></li> -->
  44. <!-- <li><a href="/contact">Contact</a></li> -->
  45. </ul>
  46. <? if(session('me')) { ?>
  47. <ul class="nav navbar-nav navbar-right">
  48. <li><a href="/user?domain=<?= urlencode(session('me')) ?>"><?= session('me') ?></a></li>
  49. <li><a href="/signout">Sign Out</a></li>
  50. </ul>
  51. <? } else if(property_exists($this, 'authorizing')) { ?>
  52. <ul class="nav navbar-right">
  53. <li class="navbar-text"><?= $this->authorizing ?></li>
  54. </ul>
  55. <? } else { ?>
  56. <ul class="nav navbar-right" style="font-size: 8pt;">
  57. <li><a href="https://indieauth.com/setup">What's This?</a></li>
  58. </ul>
  59. <form action="/auth/start" method="get" class="navbar-form navbar-right">
  60. <input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
  61. <button type="submit" class="btn">Sign In</button>
  62. <input type="hidden" name="redirect_uri" value="https://<?= $_SERVER['SERVER_NAME'] ?>/indieauth" />
  63. </form>
  64. <? } ?>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="page">
  69. <div class="container">
  70. <?= $this->fetch($this->page . '.php') ?>
  71. </div>
  72. <div class="footer">
  73. <p class="credits">&copy; <?=date('Y')?> by <a href="http://aaronparecki.com">Aaron Parecki</a>.
  74. This code is <a href="https://github.com/aaronpk/Quill">open source</a>.
  75. Feel free to send a pull request, or <a href="https://github.com/aaronpk/Quill/issues">file an issue</a>.</p>
  76. </div>
  77. </div>
  78. </body>
  79. </html>