From 0d1bd292fe2e71132b6dc721851a646ecbd254ca Mon Sep 17 00:00:00 2001 From: marcdeb1 Date: Wed, 10 Oct 2018 12:36:47 +0200 Subject: [PATCH 1/6] Claim LBRY link and Thumbnail --- src/Template/Main/claims.ctp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/Template/Main/claims.ctp b/src/Template/Main/claims.ctp index f2ec67a..bb88925 100644 --- a/src/Template/Main/claims.ctp +++ b/src/Template/Main/claims.ctp @@ -40,13 +40,10 @@ $a = ['purple', 'orange', 'blue', 'teal', 'green', 'yellow']; $autoThumbText = ''; -$link = $claim->Name; $rawLink = $claim->Name; if (isset($claim->Publisher->Name)) { - $link = urlencode($claim->Publisher->Name) . '/' . $link; $rawLink = $claim->Publisher->Name . '/' . $rawLink; } -$link = 'lbry://' . $link; $rawLink = 'lbry://' . $rawLink; if ($claim->ClaimType == 1) { $autoThumbText = strtoupper(substr($claim->Name, 1, min( strlen($claim->Name), 10 ))); } else { $str = str_replace(' ', '', (strlen(trim($claim->Title)) > 0) ? $claim->Title : $claim->Name); @@ -81,7 +78,7 @@ if (strlen(trim($desc)) == 0) {
IsNSFW && strlen(trim($claim->ThumbnailUrl)) > 0): ?> - +
@@ -144,7 +141,7 @@ if (strlen(trim($desc)) == 0) {
Language)) > 0 ? ($claim->Language == 'en' ? 'English' : '') : 'Unspecified' ?>
- Open in LBRY + Open in LBRY
@@ -165,13 +162,10 @@ if (strlen(trim($desc)) == 0) { } $autoThumbText = ''; - $link = $claim->Name; $rawLink = $claim->Name; if (isset($claim->Publisher->Name)) { - $link = urlencode($claim->Publisher->Name) . '/' . $link; $rawLink = $claim->Publisher->Name . '/' . $rawLink; } - $link = 'lbry://' . $link; $rawLink = 'lbry://' . $rawLink; $cost = ''; if (isset($claim->Price) && $claim->Price > 0) { @@ -216,7 +210,7 @@ if (strlen(trim($desc)) == 0) {
IsNSFW && strlen(trim($claim->ThumbnailUrl)) > 0): ?> - +
@@ -224,7 +218,7 @@ if (strlen(trim($desc)) == 0) {