From c47de19b2bd35715842d6a17c7c0836e0c0bb6d1 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 21 Apr 2021 22:04:05 +0800 Subject: [PATCH 1/3] add tag hdr --- include/functions.php | 12 ++++++++---- lang/chs/lang_functions.php | 3 ++- lang/cht/lang_functions.php | 3 ++- lang/en/lang_functions.php | 1 + 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/include/functions.php b/include/functions.php index 4c79817d..9ac44f08 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4484,19 +4484,23 @@ function torrentTags($tags = 0, $type = 'checkbox') ], [ 'text' => $lang_functions['text_tag_official'], - 'color' => '#2F7DB8', + 'color' => '#0000ff', ], [ 'text' => $lang_functions['text_tag_diy'], - 'color' => '#787878', + 'color' => '#46d5ff', ], [ 'text' => $lang_functions['text_tag_mother_language'], - 'color' => '#FFAA32', + 'color' => '#6a3906', ], [ 'text' => $lang_functions['text_tag_mother_language_subtitle'], - 'color' => '#91B493', + 'color' => '#006400', + ], + [ + 'text' => $lang_functions['text_tag_hdr'], + 'color' => '#38b03f', ], ]; $html = ''; diff --git a/lang/chs/lang_functions.php b/lang/chs/lang_functions.php index ffd2a2a6..596b1b81 100644 --- a/lang/chs/lang_functions.php +++ b/lang/chs/lang_functions.php @@ -309,9 +309,10 @@ $lang_functions = array 'text_tag_no_release_to_any_other' => '禁转', 'text_tag_first_release' => '首发', 'text_tag_official' => '官方', - 'text_tag_diy' => '自制', + 'text_tag_diy' => 'DIY', 'text_tag_mother_language' => '国语', 'text_tag_mother_language_subtitle' => '中字', + 'tag_hdr' => 'HDR', 'text_required' => '不能为空', 'text_invalid' => '非法', 'text_technical_info' => '技术信息', diff --git a/lang/cht/lang_functions.php b/lang/cht/lang_functions.php index 64606661..fe8e5fcf 100644 --- a/lang/cht/lang_functions.php +++ b/lang/cht/lang_functions.php @@ -310,9 +310,10 @@ $lang_functions = array 'text_tag_no_release_to_any_other' => '禁轉', 'text_tag_first_release' => '首發', 'text_tag_official' => '官方', - 'text_tag_diy' => '自制', + 'text_tag_diy' => 'DIY', 'text_tag_mother_language' => '國語', 'text_tag_mother_language_subtitle' => '中字', + 'tag_hdr' => 'HDR', 'text_required' => '不能為空', 'text_invalid' => '非法', 'text_technical_info' => '技術信息', diff --git a/lang/en/lang_functions.php b/lang/en/lang_functions.php index f88e5d06..02c7f29a 100644 --- a/lang/en/lang_functions.php +++ b/lang/en/lang_functions.php @@ -314,6 +314,7 @@ $lang_functions = array 'text_tag_diy' => 'DIY', 'text_tag_mother_language' => 'Mother language', 'text_tag_mother_language_subtitle' => 'Mother language subtitle', + 'tag_hdr' => 'HDR', 'text_required' => 'Required', 'text_invalid' => 'Invalid', 'text_technical_info' => 'Technical Info', From 881026ca65ea4b3af4aab4a4a80cb93ca5d1fb4a Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 21 Apr 2021 22:11:49 +0800 Subject: [PATCH 2/3] fix hdr text --- lang/chs/lang_functions.php | 2 +- lang/cht/lang_functions.php | 2 +- lang/en/lang_functions.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/chs/lang_functions.php b/lang/chs/lang_functions.php index 596b1b81..fbfaeacb 100644 --- a/lang/chs/lang_functions.php +++ b/lang/chs/lang_functions.php @@ -312,7 +312,7 @@ $lang_functions = array 'text_tag_diy' => 'DIY', 'text_tag_mother_language' => '国语', 'text_tag_mother_language_subtitle' => '中字', - 'tag_hdr' => 'HDR', + 'text_tag_hdr' => 'HDR', 'text_required' => '不能为空', 'text_invalid' => '非法', 'text_technical_info' => '技术信息', diff --git a/lang/cht/lang_functions.php b/lang/cht/lang_functions.php index fe8e5fcf..06080ee0 100644 --- a/lang/cht/lang_functions.php +++ b/lang/cht/lang_functions.php @@ -313,7 +313,7 @@ $lang_functions = array 'text_tag_diy' => 'DIY', 'text_tag_mother_language' => '國語', 'text_tag_mother_language_subtitle' => '中字', - 'tag_hdr' => 'HDR', + 'text_tag_hdr' => 'HDR', 'text_required' => '不能為空', 'text_invalid' => '非法', 'text_technical_info' => '技術信息', diff --git a/lang/en/lang_functions.php b/lang/en/lang_functions.php index 02c7f29a..0e2f2d50 100644 --- a/lang/en/lang_functions.php +++ b/lang/en/lang_functions.php @@ -314,7 +314,7 @@ $lang_functions = array 'text_tag_diy' => 'DIY', 'text_tag_mother_language' => 'Mother language', 'text_tag_mother_language_subtitle' => 'Mother language subtitle', - 'tag_hdr' => 'HDR', + 'text_tag_hdr' => 'HDR', 'text_required' => 'Required', 'text_invalid' => 'Invalid', 'text_technical_info' => 'Technical Info', From 8b6740a2a4fc64dcfacbe98c8c33045189928f41 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 21 Apr 2021 22:31:35 +0800 Subject: [PATCH 3/3] change no release any other tag color red --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 9ac44f08..7534a5a6 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4476,7 +4476,7 @@ function torrentTags($tags = 0, $type = 'checkbox') $tagsOptions = [ [ 'text' => $lang_functions['text_tag_no_release_to_any_other'], - 'color' => '#D74D4D', + 'color' => '#ff0000', ], [ 'text' => $lang_functions['text_tag_first_release'],