-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwitter-settings.php
45 lines (26 loc) · 1.11 KB
/
twitter-settings.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
<div class="wrap">
<h1>Twitter Settings</h1>
<h2 class="title">Account</h2>
<?php if ( $account ) : ?>
<p>
Current Account: <strong><?php echo $account->name ?> (@<?php echo $account->screen_name ?>)</strong>
</p>
<p>
<a class="button button-primary" href="<?php echo add_query_arg( 'action', 'set-account', $this->settingsPage ) ?>">Replace Account</a>
<a href="<?php echo add_query_arg( 'action', 'remove-account', $this->settingsPage ) ?>" class="button">Remove Account</a>
</p>
<p><br></p>
<h2 class="title">Fetched Posts</h2>
<?php if ( $fetched->found_posts == 0 ) : ?>
<p>You have not fetched any posts</p>
<?php else : ?>
<p>You have <?php echo $fetched->found_posts ?> fetched posts</p>
<?php endif ?>
<p>
<a href="<?php echo add_query_arg( 'action', 'fetch-posts', $this->settingsPage ) ?>" class="button button-primary" >Fetch Posts</a>
</p>
<?php else : ?>
<p>There is currently no account set</p>
<p><a class="button button-primary" href="<?php echo add_query_arg( 'action', 'set-account', $this->settingsPage ) ?>">Set Account</a></p>
<?php endif ?>
</div>