From 42a01ff4c9d9a42e699e827508d349d35a0724fd Mon Sep 17 00:00:00 2001 From: Sayak Banerjee Date: Sun, 4 Aug 2013 20:28:33 -0500 Subject: [PATCH] Friendly names for visibility flags --- list.php | 41 +++++++++++++++--------------- skins/bootstrap/html/tpl_list.html | 4 +-- skins/neverland/html/tpl_list.html | 4 +-- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/list.php b/list.php index 37a7a0a7d..d4565b450 100755 --- a/list.php +++ b/list.php @@ -269,26 +269,26 @@ } $skin->assign(array( - 'paste_count' => $rowcount, - 'paste_pages' => ceil($total / 10), - 'error_text' => $lang->get('no_pastes'), - 'list_title' => $trending ? $lang->get('trending') : $lang->get('archives'), - 'list_icon' => $trending ? 'trending' : 'archives', - 'list_data' => $output_data, - 'list_pagination' => $pagination, - 'feed_time' => $published, - 'filter_visibility' => $skin->visibility($trending), - 'pages_visibility' => $skin->visibility($trending, true), - 'trending_now' => $nav->get('nav_trending', $project), - 'trending_week' => $nav->get('nav_trending', $project, $page, 'week'), - 'trending_month' => $nav->get('nav_trending', $project, $page, 'month'), - 'trending_year' => $nav->get('nav_trending', $project, $page, 'year'), - 'trending_all' => $nav->get('nav_trending', $project, $page, 'all'), - 'tr_active_now' => $skin->active(empty($age)), - 'tr_active_week' => $skin->active($age == 'week'), - 'tr_active_month' => $skin->active($age == 'month'), - 'tr_active_year' => $skin->active($age == 'year'), - 'tr_active_all' => $skin->active($age == 'all'), + 'paste_count' => $rowcount, + 'paste_pages' => ceil($total / 10), + 'error_text' => $lang->get('no_pastes'), + 'list_title' => $trending ? $lang->get('trending') : $lang->get('archives'), + 'list_icon' => $trending ? 'trending' : 'archives', + 'list_data' => $output_data, + 'list_pagination' => $pagination, + 'feed_time' => $published, + 'trending_visibility' => $skin->visibility($trending), + 'archives_visibility' => $skin->visibility($trending, true), + 'trending_now' => $nav->get('nav_trending', $project), + 'trending_week' => $nav->get('nav_trending', $project, $page, 'week'), + 'trending_month' => $nav->get('nav_trending', $project, $page, 'month'), + 'trending_year' => $nav->get('nav_trending', $project, $page, 'year'), + 'trending_all' => $nav->get('nav_trending', $project, $page, 'all'), + 'tr_active_now' => $skin->active(empty($age)), + 'tr_active_week' => $skin->active($age == 'week'), + 'tr_active_month' => $skin->active($age == 'month'), + 'tr_active_year' => $skin->active($age == 'year'), + 'tr_active_all' => $skin->active($age == 'all'), )); // Output the page @@ -305,4 +305,3 @@ } ?> - diff --git a/skins/bootstrap/html/tpl_list.html b/skins/bootstrap/html/tpl_list.html index 894f90d57..1fb8010ac 100755 --- a/skins/bootstrap/html/tpl_list.html +++ b/skins/bootstrap/html/tpl_list.html @@ -9,7 +9,7 @@


-
+
diff --git a/skins/neverland/html/tpl_list.html b/skins/neverland/html/tpl_list.html index 5b4f4aa7e..19ccfa9fd 100644 --- a/skins/neverland/html/tpl_list.html +++ b/skins/neverland/html/tpl_list.html @@ -12,7 +12,7 @@

-
+
-
+
[[list_pagination]]