From 31f47317c212ac58589919820f925384e7f36612 Mon Sep 17 00:00:00 2001 From: Paul Kirby Date: Fri, 12 Oct 2018 01:22:20 -0500 Subject: [PATCH] Made some notes for future edits --- classes/LBRY_Network.php | 3 +++ classes/LBRY_Network_Publisher.php | 12 ++++++++++++ templates/options_page.php | 6 +----- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/classes/LBRY_Network.php b/classes/LBRY_Network.php index 8a7bce8..346059b 100644 --- a/classes/LBRY_Network.php +++ b/classes/LBRY_Network.php @@ -86,6 +86,9 @@ class LBRY_Network 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) diff --git a/classes/LBRY_Network_Publisher.php b/classes/LBRY_Network_Publisher.php index 76b9370..0cd6235 100644 --- a/classes/LBRY_Network_Publisher.php +++ b/classes/LBRY_Network_Publisher.php @@ -13,4 +13,16 @@ class LBRY_Network_Publisher 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; + } } diff --git a/templates/options_page.php b/templates/options_page.php index 5a2932f..320f2ea 100644 --- a/templates/options_page.php +++ b/templates/options_page.php @@ -2,14 +2,12 @@ $LBRY = LBRY(); $wallet_balance = $LBRY->daemon->wallet_balance(); $channel_list = $LBRY->daemon->channel_list(); +// TODO: Make this page look cleaner ?>
-

-

Your wallet amount:

-
daemon->channel_list(); submit_button('Save Settings'); ?>
-

Your Publishable Channels