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.

93 lines
3.7 KiB

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