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.

103 lines
4.3 KiB

11 years ago
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="https://webmention.io/aaronpk/xmlrpc" />
  8. <link rel="webmention" href="https://webmention.io/aaronpk/webmention" />
  9. <!-- standard viewport tag to set the viewport to the device's width
  10. , Android 2.3 devices need this so 100% width works properly and
  11. doesn't allow children to blow up the viewport width-->
  12. <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" />
  13. <!-- width=device-width causes the iPhone 5 to letterbox the app, so
  14. we want to exclude it for iPhone 5 to allow full screen apps -->
  15. <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" />
  16. <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
  17. <link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
  18. <script src="/js/jquery-1.7.1.min.js"></script>
  19. <script src="/libs/localforage.js"></script>
  20. <script src="/bootstrap/js/bootstrap.min.js"></script>
  21. <script src="/libs/tokenfield/bootstrap-tokenfield.min.js"></script>
  22. <link rel="stylesheet" href="/libs/tokenfield/bootstrap-tokenfield.min.css">
  23. <link rel="stylesheet" href="/libs/tokenfield/tokenfield-typeahead.min.css">
  24. <link rel="stylesheet" href="/css/style.css">
  25. <link rel="apple-touch-icon" sizes="57x57" href="/images/quill-icon-57.png">
  26. <link rel="apple-touch-icon" sizes="72x72" href="/images/quill-icon-72.png">
  27. <link rel="apple-touch-icon" sizes="114x114" href="/images/quill-icon-114.png">
  28. <link rel="apple-touch-icon" sizes="144x144" href="/images/quill-icon-144.png">
  29. <link rel="apple-touch-icon" sizes="196x196" href="/images/quill-icon-196.png">
  30. <link rel="icon" href="/favicon.ico" type="image/x-icon">
  31. <link rel="icon" sizes="196x196" href="/images/quill-icon-196.png">
  32. <meta name="apple-mobile-web-app-capable" content="yes">
  33. <meta name="mobile-web-app-capable" content="yes">
  34. <meta name="theme-color" content="#428bca">
  35. <link rel="manifest" href="/js/manifest.json">
  36. <script src="/js/script.js"></script>
  37. <script src="/js/date.js"></script>
  38. <script src="/js/cassis.js"></script>
  39. </head>
  40. <body role="document">
  41. <div class="page">
  42. <div class="container">
  43. <?= $this->fetch($this->page . '.php') ?>
  44. </div>
  45. <div class="footer">
  46. <div class="nav">
  47. <ul class="nav navbar-nav">
  48. <?php if(session('me') && isset($this->user)) { ?>
  49. <?php if(supports_post_type($this->user, 'article')): ?>
  50. <li><a href="/editor">📄 Editor</a></li>
  51. <?php endif; ?>
  52. <?php if(supports_post_type($this->user, 'note')): ?>
  53. <li><a href="/new">✏️ Note</a></li>
  54. <?php endif; ?>
  55. <?php if(supports_post_type($this->user, 'bookmark')): ?>
  56. <li><a href="/bookmark">🔖 Bookmark</a></li>
  57. <?php endif; ?>
  58. <?php if(supports_post_type($this->user, 'like')): ?>
  59. <li><a href="/favorite">👍 Favorite</a></li>
  60. <?php endif; ?>
  61. <?php } ?>
  62. <li><a href="/docs">Docs</a></li>
  63. </ul>
  64. <ul class="nav navbar-nav navbar-right">
  65. <?php if(session('me')) { ?>
  66. <li><a href="/settings"> <?= display_url(session('me')) ?></a></li>
  67. <li><a href="/signout">Sign Out</a></li>
  68. <?php } else if(property_exists($this, 'authorizing')) { ?>
  69. <li class="navbar-text"><?= $this->authorizing ?></li>
  70. <?php } else { ?>
  71. <form action="/auth/start" method="get" class="navbar-form">
  72. <input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
  73. <button type="submit" class="btn">Sign In</button>
  74. <input type="hidden" name="redirect_uri" value="https://<?= $_SERVER['SERVER_NAME'] ?>/indieauth" />
  75. </form>
  76. <?php } ?>
  77. </ul>
  78. </div>
  79. <p class="credits">&copy; <?=date('Y')?> by <a href="https://aaronparecki.com">Aaron Parecki</a>.
  80. This code is <a href="https://github.com/aaronpk/Quill">open source</a>.
  81. Feel free to send a pull request, or <a href="https://github.com/aaronpk/Quill/issues">file an issue</a>.</p>
  82. </div>
  83. </div>
  84. </body>
  85. </html>