From 836a9494071660f0c5b8910cec5b0a2ee726cd9a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 6 Dec 2018 12:13:59 +0300 Subject: [PATCH] af_psql_trgm: fix showrelated() layout --- plugins/af_psql_trgm/button.png | Bin 523 -> 0 bytes plugins/af_psql_trgm/init.php | 24 +++++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 plugins/af_psql_trgm/button.png diff --git a/plugins/af_psql_trgm/button.png b/plugins/af_psql_trgm/button.png deleted file mode 100644 index 9b3422c61e5d23434d085834b82eed7a7363976e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 523 zcmV+m0`&cfP)JNR5;6} zQ!#78Koq{K0R;zL3K^ueKcPdX4$`e#^8*A?$4(UrP73NEC=L?Wb`e}#+M#4AI28&O z(h7D{iBLo^6ibLnntoS;4W+RSeem(_-M#O-mv=AJwr%ns(1oktvOHk&-Wjo2=gN^Bj3SRR*}a0NpG5_ zolK`M<47b@MJ$6*<9VLqM#|QJ9FOl*`~9c!VzJ0#yuW&YL-uTJXs#7SsfEK~0YXX4 z0b#F1DNRn42?6;6#8Y4fXr9klsZ$title"; + print "

$title

"; $sth = $this->pdo->prepare("SELECT ttrss_entries.id AS id, feed_id, @@ -77,26 +77,28 @@ class Af_Psql_Trgm extends Plugin { $sth->execute([$owner_uid, $id]); - print "
    "; + print "
      "; while ($line = $sth->fetch()) { - print "
    • "; - print "
      " . - smart_date_time(strtotime($line["updated"])) - . "
      "; + print "
    • "; + print "bookmark_outline"; $sm = sprintf("%.2f", $line['sm']); - print ""; - $article_link = htmlspecialchars($line["link"]); + + print "
      "; + print " ". $line["title"].""; print " (". htmlspecialchars($line["feed_title"]).")"; - print " ($sm)"; + print " — $sm"; + + print "
      "; + + print "
      " . smart_date_time(strtotime($line["updated"])) . "
      "; print "
    • "; } @@ -115,7 +117,7 @@ class Af_Psql_Trgm extends Plugin { function hook_article_button($line) { return "find_in_page"; + title='".__('Show related articles')."'>bookmark_outline"; } function hook_prefs_tab($args) {