2018-11-12 21:38:16 +01:00
|
|
|
<?php
|
2020-01-28 05:54:40 +01:00
|
|
|
$url = get_post_meta(get_the_id(), LBRY_CANONICAL_URL, true);
|
2020-01-28 05:33:59 +01:00
|
|
|
if (!$url) {
|
2020-01-28 05:54:40 +01:00
|
|
|
// Get channel canonical for backwards compatibility
|
|
|
|
$channel_id = get_post_meta(get_the_id(), LBRY_POST_CHANNEL, true);
|
|
|
|
$url = LBRY()->daemon->canonical_url($channel_id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($url) {
|
|
|
|
$url = str_replace('lbry://', 'lbry.tv/', $url);
|
2020-01-28 05:33:59 +01:00
|
|
|
}
|
2018-11-12 21:38:16 +01:00
|
|
|
?>
|
|
|
|
<div class="lbry-published-banner">
|
|
|
|
<h5>Stored Safely on Blockchain</h5>
|
|
|
|
<p>
|
2020-01-28 05:54:40 +01:00
|
|
|
This post is published to <a href="https://lbry.io/get">LBRY</a> blockchain
|
|
|
|
<?php if($url): ?>
|
|
|
|
at <a href="https://<?= $url ?>"><?= $url ?></a>.
|
|
|
|
<?php else: ?>
|
|
|
|
.
|
|
|
|
<?php endif; ?>
|
2018-11-12 21:38:16 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<a href="https://lbry.io/get" target="_blank">Try LBRY</a> to experience content freedom, earn crypto, and support The Anti-Media!
|
|
|
|
</p>
|
|
|
|
</div>
|