'none (anonymous)', 'claim_id' => 'null' ); $post_id = $post->ID; // Generate a custom nonce $lbrynonce = wp_create_nonce( 'lbry_publish_post_nonce' ); $lbry_published = get_post_meta( $post_id, '_lbry_is_published', true ); $lbry_claim_id = get_post_meta( $post_id, '_lbry_claim_id', true ); // $lbry_url = get_post_meta( $post_id, '_lbry_canonical_url', true ); $lbry_published_channel = get_post_meta( $post_id, '_lbry_post_published_channel', true ); if ( ! ( $lbry_published_channel ) ) { LBRY()->daemon->claim_search( $lbry_claim_id ); } $lbry_channel_claim_id = get_post_meta( $post_id, '_lbry_post_pub_channel', true ); //if ( $lbry_channel_claim_id === null ? 'Anonymously' : $lbry_channel_claim_id); $lbry_published_license = get_post_meta( $post_id, '_lbry_post_pub_license', true ); $channels = LBRY()->daemon->channel_list(); $channels[] = $unnatributed; $cur_channel = ( get_post_meta( $post_id, LBRY_POST_PUB_CHANNEL, true ) ? get_post_meta( $post_id, LBRY_POST_PUB_CHANNEL, true ) : get_post_meta( $post_id, '_lbry_channel', true ) ); $default_channel = get_option( LBRY_SETTINGS )['default_lbry_channel']; $chan_open_url = ( 'open.lbry.com/'. $lbry_published_channel .'#' . $lbry_channel_claim_id . ''); // Sort the channels in a natural way usort( $channels, array( 'LBRYPress', 'channel_name_comp' ) ); ?> daemon->claim_search( $lbry_claim_id ); $init_bid = $results->items[0]->amount; printf( '
' . __( 'Initial bid amount:', 'lbrypress' ) . ' ' . esc_html__( '%1$s', 'lbrypress' ) . '
' . __( 'LBRY channel published at:', 'lbrypress' ) . '
' . esc_html__( '%3$s', 'lbrypress' ) . '
' . __( 'License published under:', 'lbrypress' ) .'
' . esc_html__( '%5$s', 'lbrypress' ) . '
', $init_bid, $lbry_published_channel, $chan_open_url, $lbry_published_license, ); } else { ?>
$channel ) { $options .= ''; } printf( '', LBRY_POST_PUB_CHANNEL, $options ); } ?>
licenses; $options = ''; $default_license = get_option(LBRY_SETTINGS)[LBRY_LICENSE]; $cur_license = get_post_meta( $post_id, LBRY_POST_PUB_LICENSE, true ); // Create options list, select current license if ( $licenses ) { foreach ( $licenses as $value => $name ) { $options .= '