From 5fb7a74e23b2059ec0c1acb72d8d804adbf05c52 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 13 Jun 2015 15:27:28 +0200 Subject: Replace categories with keywords Remove package base categories. Instead, users can now specify up to twenty custom keywords that are taken into consideration when searching. Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 25 ++++++++----------------- web/template/pkg_search_form.php | 14 -------------- web/template/pkg_search_results.php | 2 -- web/template/pkgbase_details.php | 25 ++++++++----------------- 4 files changed, 16 insertions(+), 50 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index e50f029..cc2f055 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -11,7 +11,7 @@ $uid = uid_from_sid($SID); $pkgid = intval($row['ID']); $base_id = intval($row['BaseID']); -$catarr = pkgbase_categories(); +$keywords = pkgbase_get_keywords($base_id); $submitter = username_from_id($row["SubmitterUID"]); $maintainer = username_from_id($row["MaintainerUID"]); @@ -188,34 +188,25 @@ $sources = pkg_sources($row["ID"]); - - + +
- + - - + "/> +
- - - - + 0): ?> diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 683675b..2d03cfa 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -19,7 +19,6 @@ $outdated_flags = array( $sortby = array( 'n' => __('Name'), - 'c' => __('Category'), 'v' => __('Votes'), 'p' => __('Popularity'), 'w' => __('Voted'), @@ -44,19 +43,6 @@ $per_page = array(50, 100, 250);
-
- - -
]" value="1" /> - "> class="flagged"> diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php index 2ef8788..2522f34 100644 --- a/web/template/pkgbase_details.php +++ b/web/template/pkgbase_details.php @@ -10,7 +10,7 @@ $uid = uid_from_sid($SID); $base_id = intval($row['ID']); -$catarr = pkgbase_categories(); +$keywords = pkgbase_get_keywords($base_id); $submitter = username_from_id($row["SubmitterUID"]); $maintainer = username_from_id($row["MaintainerUID"]); @@ -127,34 +127,25 @@ $pkgs = pkgbase_get_pkgnames($base_id); - - + +
- + - - + "/> +
- - - - + -- cgit v1.2.3-70-g09d2