2018-09-01 03:14:12 +02:00
|
|
|
<?php
|
2018-09-11 22:10:15 +02:00
|
|
|
$LBRY = LBRY();
|
|
|
|
$wallet_balance = $LBRY->daemon->wallet_balance();
|
2018-09-13 01:39:13 +02:00
|
|
|
$channel_list = $LBRY->daemon->channel_list();
|
2018-09-01 03:14:12 +02:00
|
|
|
?>
|
2018-08-21 01:39:57 +02:00
|
|
|
<div class="wrap">
|
2018-10-04 19:47:34 +02:00
|
|
|
|
2018-08-21 01:39:57 +02:00
|
|
|
<h1><?= esc_html(get_admin_page_title()); ?></h1>
|
2018-09-01 03:14:12 +02:00
|
|
|
|
|
|
|
<h2>Your wallet amount:</h2>
|
2018-10-05 01:47:32 +02:00
|
|
|
<code><?= number_format($wallet_balance, 2, '.', ','); ?></code>
|
2018-09-13 01:39:13 +02:00
|
|
|
|
2018-08-21 01:39:57 +02:00
|
|
|
<form action="options.php" method="post">
|
|
|
|
<?php
|
2018-09-13 01:39:13 +02:00
|
|
|
settings_fields(LBRY_SETTINGS_GROUP);
|
|
|
|
do_settings_sections(LBRY_ADMIN_PAGE);
|
2018-08-21 01:39:57 +02:00
|
|
|
submit_button('Save Settings');
|
|
|
|
?>
|
|
|
|
</form>
|
2018-09-13 01:39:13 +02:00
|
|
|
|
|
|
|
<h2>Your Publishable Channels</h2>
|
|
|
|
<?php if ($channel_list): ?>
|
|
|
|
|
|
|
|
<?php else: ?>
|
|
|
|
<p>Looks like you haven't added any channels yet, feel free to do so below:</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<h2>Add a new channel to publish to:</h2>
|
2018-09-13 21:02:32 +02:00
|
|
|
<form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post">
|
|
|
|
<?php wp_nonce_field('lbry_add_channel', '_lbrynonce'); ?>
|
|
|
|
<input type="hidden" name="action" value="lbry_add_channel">
|
|
|
|
<table class="form-table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">New Channel Name</th>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="new_channel" value="" placeholder="Your New Channel" required>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Amount of LBC to Bid</th>
|
|
|
|
<td>
|
|
|
|
<input type="number" step="0.1" min="0.1" name="bid_amount" value="10" required>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-09-13 01:39:13 +02:00
|
|
|
<?php submit_button('Add New Channel'); ?>
|
|
|
|
</form>
|
2018-08-21 01:39:57 +02:00
|
|
|
</div>
|