From 6701497879d3e6c9e895cfcd56fb2d7a9297686d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Feb 2019 13:12:55 +0300 Subject: [PATCH] public.php: markup cleanup --- classes/handler/public.php | 72 ++++++++++++++------------------------ 1 file changed, 26 insertions(+), 46 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 41544f188..00911e06e 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -61,8 +61,7 @@ class Handler_Public extends Handler { PluginHost::feed_to_pfeed_id($feed)); if ($handler) { - $qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id($feed), - $options); + $qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id($feed), $params); } } else { @@ -383,26 +382,6 @@ class Handler_Public extends Handler { $line['content'] = rewrite_cached_urls($line['content']); - $num_comments = (int) $line["num_comments"]; - $entry_comments = ""; - - if ($num_comments > 0) { - if ($line["comments"]) { - $comments_url = htmlspecialchars($line["comments"]); - } else { - $comments_url = htmlspecialchars($line["link"]); - } - $entry_comments = "$num_comments ". - _ngettext("comment", "comments", $num_comments).""; - - } else { - if ($line["comments"] && $line["link"] != $line["comments"]) { - $entry_comments = "".__("comments").""; - } - } - $enclosures = Article::get_article_enclosures($line["id"]); header("Content-Type: text/html"); @@ -965,34 +944,35 @@ class Handler_Public extends Handler { } else if (!$method) { print_notice(__("You will need to provide valid account name and email. Password reset link will be sent to your email address.")); - print "
"; - print ""; - print ""; - - print "
"; - print ""; - print ""; - print "
"; - - print "
"; - print ""; - print ""; - print "
"; + print " + + + +
+ + +
+ +
+ + +
"; $_SESSION["pwdreset:testvalue1"] = rand(1,10); $_SESSION["pwdreset:testvalue2"] = rand(1,10); - print "
"; - print ""; - print ""; - print "
"; - - print "
"; - print "
"; - print ""; - print "
"; - - print "
"; + print "
+ + +
+ +
+
+ + ".__("Return to Tiny Tiny RSS")." +
+ + "; } else if ($method == 'do') { $login = clean($_POST["login"]);