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.

80 lines
3.0 KiB

9 years ago
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. <link rel="icon" href="/favicon.ico" type="image/x-icon">
  18. <script src="/js/jquery-1.7.1.min.js"></script>
  19. </head>
  20. <body role="document">
  21. <script type="text/javascript">
  22. var _gaq = _gaq || [];
  23. _gaq.push(['_setAccount', '<?= Config::$gaid ?>']);
  24. _gaq.push(['_trackPageview']);
  25. (function() {
  26. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  27. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  28. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  29. })();
  30. </script>
  31. <div class="page">
  32. <div class="container">
  33. <?= $this->fetch($this->page . '.php') ?>
  34. </div>
  35. <div class="footer">
  36. <div class="nav">
  37. <ul class="nav navbar-nav">
  38. <? if(session('me')) { ?>
  39. <li><a href="/new">New Post</a></li>
  40. <? } ?>
  41. <li><a href="/docs">Docs</a></li>
  42. </ul>
  43. <ul class="nav navbar-nav navbar-right">
  44. <? if(session('me')) { ?>
  45. <li><a href="/add-to-home?start">Add to Home Screen</a></li>
  46. <li><span class="navbar-text"><?= preg_replace('/https?:\/\//','',session('me')) ?></span></li>
  47. <li><a href="/signout">Sign Out</a></li>
  48. <? } else if(property_exists($this, 'authorizing')) { ?>
  49. <li class="navbar-text"><?= $this->authorizing ?></li>
  50. <? } else { ?>
  51. <form action="/auth/start" method="get" class="navbar-form">
  52. <input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
  53. <button type="submit" class="btn">Sign In</button>
  54. <input type="hidden" name="redirect_uri" value="https://<?= $_SERVER['SERVER_NAME'] ?>/indieauth" />
  55. </form>
  56. <? } ?>
  57. </ul>
  58. </div>
  59. <p class="credits">&copy; <?=date('Y')?> by <a href="http://aaronparecki.com">Aaron Parecki</a>.
  60. This code is <a href="https://github.com/aaronpk/Quill">open source</a>.
  61. Feel free to send a pull request, or <a href="https://github.com/aaronpk/Quill/issues">file an issue</a>.</p>
  62. </div>
  63. </div>
  64. </body>
  65. </html>