diff --git a/admin/css/lbry-admin.css b/admin/css/lbry-admin.css index 5fea468..b397430 100644 --- a/admin/css/lbry-admin.css +++ b/admin/css/lbry-admin.css @@ -14,6 +14,12 @@ margin-bottom: -.2em; } +.channel-bid-icon-lbc { + height: 1.1em; + margin-right: .1em; + margin-bottom: -.2em; +} + .lbry-pub-metabox { margin: 0 0 0 -.2em; padding: 0 .2em 0 0 ; @@ -21,7 +27,7 @@ .meta-icon-lbry { height: 1.55em; margin-bottom: -.4em; - padding-left: .1em; + padding: 0 .1em 0 0; } .lbry-meta-checkbox-wrapper { padding: .5em .8em .6em; @@ -79,4 +85,4 @@ .lbry-meta-bx-content-last { padding: .2em .8em 1em .1em; -} \ No newline at end of file +} diff --git a/classes/LBRY_Admin.php b/classes/LBRY_Admin.php index e4a7fcb..64343ff 100644 --- a/classes/LBRY_Admin.php +++ b/classes/LBRY_Admin.php @@ -256,8 +256,18 @@ class LBRY_Admin if ( $channel_list ) { ?> diff --git a/classes/LBRY_Daemon.php b/classes/LBRY_Daemon.php index 08a1a23..92e6966 100644 --- a/classes/LBRY_Daemon.php +++ b/classes/LBRY_Daemon.php @@ -66,6 +66,30 @@ class LBRY_Daemon } } + /** + * Returns the info about a claim can get supports and initial bid amount when claim created among other information about a claim. + * TODO Can be build out later to accept more params + * @param string $claim_id + * @return object $result + */ + public function claim_search( $claim_id ) + { + $params = array( + 'claim_id' => $claim_id, + // 'name' => $norm_name, + // 'claim_type' => $claim_type, + ); + try { + $result = $this->request( 'claim_search', $params ); + $this->logger->log( 'Claim Search Results: ' . print_r( $result->result, true ) ); + return $result->result; + } catch ( LBRYDaemonException $e ) { + $this->logger->log( 'claim_search error', $e->getMessage() . ' | Code: ' . $e->getCode() ); + LBRY()->notice->set_notice( 'error', 'Issue getting claim search info' ); + return; + } + } + /** * Returns the available balance of a current LBRY account * https://lbry.tech/api/sdk#wallet_balance diff --git a/classes/LBRY_Network.php b/classes/LBRY_Network.php index b64481b..6d8bfa7 100644 --- a/classes/LBRY_Network.php +++ b/classes/LBRY_Network.php @@ -173,7 +173,7 @@ class LBRY_Network } else { printf ( '
- Publish to: ' . esc_html__('LBRY', 'lbrypress') . ' + Publish to: LBRY
', plugin_dir_url( LBRY_PLUGIN_FILE ) . 'admin/images/lbry.png', checked( $value, true, false ), diff --git a/classes/LBRY_Network_Publisher.php b/classes/LBRY_Network_Publisher.php index 1b64e6f..3f8ccda 100644 --- a/classes/LBRY_Network_Publisher.php +++ b/classes/LBRY_Network_Publisher.php @@ -92,7 +92,7 @@ class LBRY_Network_Publisher // Set License Published under $published_license = $output->value->license; - if ( isset( $published_license ) && ( $published_license !== null ) ) { + if ( ( $published_license ) && ( $published_license !== null ) ) { update_post_meta( $post->ID, '_lbry_post_published_license', $published_license ); }