Made some notes for future edits
This commit is contained in:
parent
798ac5f30e
commit
31f47317c2
3 changed files with 16 additions and 5 deletions
|
@ -86,6 +86,9 @@ class LBRY_Network
|
||||||
add_post_meta($post_id, $meta_key, $channel);
|
add_post_meta($post_id, $meta_key, $channel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Publish the post on the LBRY Network
|
||||||
|
$this->publisher->publish($post, $new_channels);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function meta_box_html($post)
|
public function meta_box_html($post)
|
||||||
|
|
|
@ -13,4 +13,16 @@ class LBRY_Network_Publisher
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Publish the post to the LBRY Network
|
||||||
|
* @param int $post_id The ID of the post we are publishing
|
||||||
|
* @param array $channels An array of channels we are publishing to
|
||||||
|
*/
|
||||||
|
public function publish($post, $channels)
|
||||||
|
{
|
||||||
|
$name = $post->post_name;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,12 @@
|
||||||
$LBRY = LBRY();
|
$LBRY = LBRY();
|
||||||
$wallet_balance = $LBRY->daemon->wallet_balance();
|
$wallet_balance = $LBRY->daemon->wallet_balance();
|
||||||
$channel_list = $LBRY->daemon->channel_list();
|
$channel_list = $LBRY->daemon->channel_list();
|
||||||
|
// TODO: Make this page look cleaner
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<h1><?= esc_html(get_admin_page_title()); ?></h1>
|
<h1><?= esc_html(get_admin_page_title()); ?></h1>
|
||||||
|
|
||||||
<h2>Your wallet amount:</h2>
|
<h2>Your wallet amount:</h2>
|
||||||
<code><?= number_format($wallet_balance, 2, '.', ','); ?></code>
|
<code><?= number_format($wallet_balance, 2, '.', ','); ?></code>
|
||||||
|
|
||||||
<form action="options.php" method="post">
|
<form action="options.php" method="post">
|
||||||
<?php
|
<?php
|
||||||
settings_fields(LBRY_SETTINGS_GROUP);
|
settings_fields(LBRY_SETTINGS_GROUP);
|
||||||
|
@ -17,7 +15,6 @@ $channel_list = $LBRY->daemon->channel_list();
|
||||||
submit_button('Save Settings');
|
submit_button('Save Settings');
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h2>Your Publishable Channels</h2>
|
<h2>Your Publishable Channels</h2>
|
||||||
<?php if ($channel_list): ?>
|
<?php if ($channel_list): ?>
|
||||||
<ul class="lbry-channel-list">
|
<ul class="lbry-channel-list">
|
||||||
|
@ -28,7 +25,6 @@ $channel_list = $LBRY->daemon->channel_list();
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<p>Looks like you haven't added any channels yet, feel free to do so below:</p>
|
<p>Looks like you haven't added any channels yet, feel free to do so below:</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<h2>Add a new channel to publish to:</h2>
|
<h2>Add a new channel to publish to:</h2>
|
||||||
<form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post">
|
<form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post">
|
||||||
<?php wp_nonce_field('lbry_add_channel', '_lbrynonce'); ?>
|
<?php wp_nonce_field('lbry_add_channel', '_lbrynonce'); ?>
|
||||||
|
|
Loading…
Reference in a new issue