-
Notifications
You must be signed in to change notification settings - Fork 0
/
authenticated.php
49 lines (49 loc) · 1.84 KB
/
authenticated.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<section class="row">
<div class="span10">
<h3><?= h($p['profile']['username']);?>'s Phones:</h3>
<?php if (count($p['phones']) == 0): ?>
<p>You've not connected a phone number to your Flattr account yet. Want to now?</p>
<?php else: ?>
<p>You've connected these phone numbers:</p>
<ul>
<?php foreach($p['phones'] as $phone => $info): ?>
<li<?php echo $info->confirmed == false ? ' class="unconfirmed"' : ''; ?>>
<?= h($phone); ?><?php echo $info->confirmed == false ? ' (pending confirmation)' : ''; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div class="span2" style="text-align:right">
<a href="/logout.php" class="btn">
<i class="icon-off"></i>
Logout
</a>
</div>
<div class="span12">
<form method="post" class="form-inline">
<fieldset class="well">
<header><h3>Connect a new phone number:</h3></header>
<input name="phone" placeholder="your phone number">
<button type="submit" class="btn">Connect</button>
<div class="help-inline">Be sure to include your country code when submitting your phone number!</div>
</fieldset>
</form>
</div>
<div class="span12">
<?php if (count($p['phones']) == 0): ?>
<p>No Flattrs sent yet.</p>
<?php else: ?>
<p>Flattrs done or en route initiated via Phlattr:</p>
<ul>
<?php foreach($p['phlattry'] as $phlattry): ?>
<li<?php echo $phlattry->value->confirmed == null ? ' class="unconfirmed"' : ''; ?>>
<?= h($phlattry->value->user->id); ?> via <?= h($phlattry->value->user->number); ?>
<strong>flattred</strong>
<?= h($phlattry->value->wants_to_phlattr->id); ?> at <?= h($phlattry->value->wants_to_phlattr->number); ?> <?php echo $phlattry->value->confirmed == null ? ' (in progress)' : ''; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</section>