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.

32 lines
1.1KB

  1. <div class="narrow">
  2. <?= partial('partials/header') ?>
  3. <?php if($this->micropubUser): ?>
  4. <h3>Awesome! We found your Micropub endpoint!</h3>
  5. <div class="alert alert-success">
  6. Click below to authorize this app to create posts at your Micropub endpoint.
  7. </div>
  8. <?php else: ?>
  9. <h3>Would you like to use a hosted account?</h3>
  10. <div class="alert alert-warning">
  11. It looks like your site doesn't support <a href="http://micropub.net">Micropub</a>.
  12. You can still use this site to track what you drink, and the posts will live here instead of on your own site.
  13. </div>
  14. <?php endif; ?>
  15. <a href="<?= $this->authorizationURL ?>" class="btn btn-primary"><?= $this->micropubUser ? 'Authorize' : 'Sign In' ?></a>
  16. <div class="bs-callout bs-callout-<?= $this->micropubUser ? 'success' : 'warning' ?>">
  17. Your authorization endpoint: <code><?= $this->authorizationEndpoint ?: 'none' ?></code><br>
  18. Your token endpoint: <code><?= $this->tokenEndpoint ?: 'none' ?></code><br>
  19. Your Micropub endpoint: <code><?= $this->micropubEndpoint ?: 'none' ?></code>
  20. </div>
  21. </div>