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..48fdf12 100644
--- a/classes/LBRY_Admin.php
+++ b/classes/LBRY_Admin.php
@@ -256,8 +256,28 @@ class LBRY_Admin
if ( $channel_list ) { ?>
-
- - name ) ?>
+ claim_id;
+ $results = LBRY()->daemon->claim_search( $claim_id );
+ $lbry_url = $results->items[0]->canonical_url;
+ if ($lbry_url) {
+ $open_url = str_replace( 'lbry://', 'open.lbry.com/', $lbry_url );
+ }
+ $support_amount = $results->items[0]->meta->support_amount;
+ if ( ( $support_amount < 0.001 ) ) {
+ ( $support_amount = '0' );
+ } elseif ( ( $support_amount < 0.01 ) && ( $support_amount >= 0.001 ) ) {
+ ( $support_amount = '<0.01' );
+ } elseif ( ( $support_amount <= 0.099 ) && ( $support_amount >= 0.01) ) {
+ ( $support_amount = number_format( floatval( $support_amount ), 2, '.', '' ) );
+ } elseif ( ( $support_amount <= 0.999 ) && ( $support_amount >= 0.1 ) ) {
+ ( $support_amount = number_format( floatval( $support_amount ), 1, '.', '' ) );
+ } else {
+ ( $support_amount = number_format( intval( $support_amount ) ) );
+ }
+ $init_bid = $results->items[0]->amount; ?>
+ - name, 'lbrypress' ) ?>
+
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 (
'',
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 );
}
diff --git a/templates/meta-box.php b/templates/meta-box.php
index d50abb2..071ae61 100644
--- a/templates/meta-box.php
+++ b/templates/meta-box.php
@@ -39,9 +39,18 @@ usort( $channels, array( 'LBRYPress', 'channel_name_comp' ) );
daemon->claim_search( $lbry_claim_id );
+ $init_bid = $results->items[0]->amount;
printf(
- '',
+ '
+ ' . __( 'LBRY channel published at:', 'lbrypress' ) . '
+
+ ' . __( 'License published under:', 'lbrypress' ) .'
+ ' . esc_html__( '%5$s', 'lbrypress' ) . '
',
+ $init_bid,
$lbry_published_channel,
$chan_open_url,
$lbry_published_license,