Browse Source

clean up indieauth profile stuff

pull/110/head
Aaron Parecki 5 years ago
parent
commit
7e134358b5
No known key found for this signature in database GPG Key ID: 276C2817346D6056
2 changed files with 21 additions and 14 deletions
  1. +12
    -10
      views/index.php
  2. +9
    -4
      views/settings.php

+ 12
- 10
views/index.php View File

@ -5,16 +5,18 @@
<p class="tagline">Quill is a simple app for posting text notes to your website.</p>
<? if(session('me')):
if ( profile('photo') ) {
?> <img src="<?php echo profile('photo'); ?>" height="125" alt="Profile Image" />
<?php }
if ( profile('name') ) {
?> <p><?php echo profile('name'); ?></p>
<?php }
?>
<p>You're already signed in!<p>
<? if(session('me')): ?>
<? if(profile('photo')): ?>
<img src="<?php echo profile('photo'); ?>" height="125" alt="Profile Image" style="border: 1px #bbb solid; border-radius: 12px;" />
<? endif ?>
<? if(profile('name')): ?>
<p>Signed in as: <?= htmlspecialchars(profile('name')); ?></p>
<? endif ?>
<? if(!profile('name') && !profile('photo')): ?>
<p>You're already signed in!</p>
<? endif ?>
<p><a href="/dashboard" class="btn btn-primary">Continue</a></p>
<? else: ?>
<p>To use Quill, sign in with your domain. Your website will need to support <a href="https://indieweb.org/micropub">Micropub</a> for creating new posts.</p>

+ 9
- 4
views/settings.php View File

@ -8,13 +8,18 @@
<td>me</td>
<td><code><?= $this->user->url; ?></code> (should be your URL)</td>
</tr>
<?php if ( profile('name') ) {
?>
<?php if(profile('name')) { ?>
<tr>
<td>User Name</td>
<td>Name</td>
<td><code><?= profile('name'); ?></code> </td>
</tr>
<?php } ?>
<?php } ?>
<?php if(profile('photo')) { ?>
<tr>
<td>Photo</td>
<td><code><?= profile('photo'); ?></code> </td>
</tr>
<?php } ?>
<tr>
<td>scope</td>
<td><code><?= $this->user->micropub_scope ?></code> (should be a space-separated list of permissions including "create")</td>

Loading…
Cancel
Save