From dd2ff2161984457b57fa93cf554b1d4128f988ee Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Tue, 8 Nov 2011 13:28:01 -0500 Subject: [PATCH] added a count of total bookmarks on each page The patch adds a count of the total number of bookmarks that would be displayed if there were not a per-page limit for the current page. It is added in parentheses to the subheader on each page or not shown at all if the variable is not defined for the page. --- templates/top.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/top.inc.php b/templates/top.inc.php index 6878622..390fbf3 100644 --- a/templates/top.inc.php +++ b/templates/top.inc.php @@ -41,7 +41,11 @@ if (isset($_GET['popup'])) { '. $subtitle ."\n"; + echo '

'. $subtitle; + if (isset($total)) { + echo " (" . $total . ")"; + } + echo "

\n"; } if (isset($error)) { echo '

'. $error ."

\n"; -- 2.39.5