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.

98 lines
3.9 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="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. <link rel="stylesheet" href="/css/style.css">
  20. <link rel="apple-touch-icon" sizes="57x57" href="/images/quill-icon-57.png">
  21. <link rel="apple-touch-icon" sizes="72x72" href="/images/quill-icon-72.png">
  22. <link rel="apple-touch-icon" sizes="114x114" href="/images/quill-icon-114.png">
  23. <link rel="apple-touch-icon" sizes="144x144" href="/images/quill-icon-144.png">
  24. <link rel="icon" href="/favicon.ico" type="image/x-icon">
  25. <script src="/js/jquery-1.7.1.min.js"></script>
  26. </head>
  27. <body role="document">
  28. <?php
  29. if(property_exists($this, 'include_facebook')) {
  30. # echo partial('partials/fb-script');
  31. }
  32. ?>
  33. <script type="text/javascript">
  34. var _gaq = _gaq || [];
  35. _gaq.push(['_setAccount', '<?= Config::$gaid ?>']);
  36. _gaq.push(['_trackPageview']);
  37. (function() {
  38. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  39. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  40. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  41. })();
  42. </script>
  43. <div class="page">
  44. <div class="container">
  45. <?= $this->fetch($this->page . '.php') ?>
  46. </div>
  47. <div class="footer">
  48. <div class="nav">
  49. <ul class="nav navbar-nav">
  50. <?php if(session('me')) { ?>
  51. <li><a href="/editor">Editor</a></li>
  52. <li><a href="/new">Note</a></li>
  53. <li><a href="/bookmark">Bookmark</a></li>
  54. <li><a href="/favorite">Favorite</a></li>
  55. <li><a href="/photo">Photo</a></li>
  56. <li><a href="/email">Email</a></li>
  57. <?php } ?>
  58. <li><a href="/docs">Docs</a></li>
  59. </ul>
  60. <ul class="nav navbar-nav navbar-right">
  61. <?php if(session('me')) { ?>
  62. <li><a href="/settings"><?= preg_replace(array('/https?:\/\//','/\/$/'),'',session('me')) ?></a></li>
  63. <li><a href="/signout">Sign Out</a></li>
  64. <?php } else if(property_exists($this, 'authorizing')) { ?>
  65. <li class="navbar-text"><?= $this->authorizing ?></li>
  66. <?php } else { ?>
  67. <form action="/auth/start" method="get" class="navbar-form">
  68. <input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
  69. <button type="submit" class="btn">Sign In</button>
  70. <input type="hidden" name="redirect_uri" value="https://<?= $_SERVER['SERVER_NAME'] ?>/indieauth" />
  71. </form>
  72. <?php } ?>
  73. </ul>
  74. </div>
  75. <p class="credits">&copy; <?=date('Y')?> by <a href="http://aaronparecki.com">Aaron Parecki</a>.
  76. This code is <a href="https://github.com/aaronpk/Quill">open source</a>.
  77. Feel free to send a pull request, or <a href="https://github.com/aaronpk/Quill/issues">file an issue</a>.</p>
  78. </div>
  79. </div>
  80. </body>
  81. </html>