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.

120 lines
4.9 KiB

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