From 4573e2eae02d8b8172c622c56f78034c3171392b Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Sat, 4 May 2024 08:32:51 -0700 Subject: [PATCH] [ticket/17300] Replace Sticky and Announcement Icons PHPBB3-17300 Signed-off-by: Matt Friedman --- phpBB/phpbb/template/twig/extension/icon.php | 2 +- phpBB/styles/prosilver/imgs/svg/bullhorn.svg | 1 + phpBB/styles/prosilver/imgs/svg/globe.svg | 1 + phpBB/styles/prosilver/imgs/svg/thumbtack.svg | 1 + phpBB/styles/prosilver/template/mcp_forum.html | 6 +++--- phpBB/styles/prosilver/template/search_results.html | 6 +++--- phpBB/styles/prosilver/template/ucp_main_bookmarks.html | 6 +++--- phpBB/styles/prosilver/template/ucp_main_front.html | 6 +++--- phpBB/styles/prosilver/template/ucp_main_subscribed.html | 6 +++--- phpBB/styles/prosilver/template/viewforum_body.html | 6 +++--- tests/template/extension_test.php | 4 ++-- 11 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 phpBB/styles/prosilver/imgs/svg/bullhorn.svg create mode 100644 phpBB/styles/prosilver/imgs/svg/globe.svg create mode 100644 phpBB/styles/prosilver/imgs/svg/thumbtack.svg diff --git a/phpBB/phpbb/template/twig/extension/icon.php b/phpBB/phpbb/template/twig/extension/icon.php index 8edd33bbc7..3788853837 100644 --- a/phpBB/phpbb/template/twig/extension/icon.php +++ b/phpBB/phpbb/template/twig/extension/icon.php @@ -280,7 +280,7 @@ class icon extends AbstractExtension * * {{ Icon('font', { * 'bullhorn': topicrow.S_POST_GLOBAL or topicrow.S_POST_ANNOUNCE, - * 'star': topicrow.S_POST_STICKY, + * 'thumbtack': topicrow.S_POST_STICKY, * 'lock': topicrow.S_TOPIC_LOCKED, * 'fire': topicrow.S_TOPIC_HOT, * 'file': true, diff --git a/phpBB/styles/prosilver/imgs/svg/bullhorn.svg b/phpBB/styles/prosilver/imgs/svg/bullhorn.svg new file mode 100644 index 0000000000..2755c3b78b --- /dev/null +++ b/phpBB/styles/prosilver/imgs/svg/bullhorn.svg @@ -0,0 +1 @@ + diff --git a/phpBB/styles/prosilver/imgs/svg/globe.svg b/phpBB/styles/prosilver/imgs/svg/globe.svg new file mode 100644 index 0000000000..c340561509 --- /dev/null +++ b/phpBB/styles/prosilver/imgs/svg/globe.svg @@ -0,0 +1 @@ + diff --git a/phpBB/styles/prosilver/imgs/svg/thumbtack.svg b/phpBB/styles/prosilver/imgs/svg/thumbtack.svg new file mode 100644 index 0000000000..9a0adc18fa --- /dev/null +++ b/phpBB/styles/prosilver/imgs/svg/thumbtack.svg @@ -0,0 +1 @@ + diff --git a/phpBB/styles/prosilver/template/mcp_forum.html b/phpBB/styles/prosilver/template/mcp_forum.html index cff04e89bc..786c09c531 100644 --- a/phpBB/styles/prosilver/template/mcp_forum.html +++ b/phpBB/styles/prosilver/template/mcp_forum.html @@ -40,9 +40,9 @@
{{ Icon('svg', { - 'info-variant' : topicrow.S_POST_GLOBAL, - 'info-variant' : topicrow.S_POST_ANNOUNCE, - 'star' : topicrow.S_POST_STICKY, + 'globe' : topicrow.S_POST_GLOBAL, + 'bullhorn' : topicrow.S_POST_ANNOUNCE, + 'thumbtack' : topicrow.S_POST_STICKY, 'lock' : topicrow.S_TOPIC_LOCKED, 'arrow-right-bold' : topicrow.S_TOPIC_MOVED, 'fire' : topicrow.S_TOPIC_HOT, diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html index 8ea1bd0518..e7cd42ff4f 100644 --- a/phpBB/styles/prosilver/template/search_results.html +++ b/phpBB/styles/prosilver/template/search_results.html @@ -82,9 +82,9 @@
{{ Icon('svg', { - 'info-variant' : searchresults.S_POST_GLOBAL, - 'info-variant' : searchresults.S_POST_ANNOUNCE, - 'star' : searchresults.S_POST_STICKY, + 'globe' : searchresults.S_POST_GLOBAL, + 'bullhorn' : searchresults.S_POST_ANNOUNCE, + 'thumbtack' : searchresults.S_POST_STICKY, 'lock' : searchresults.S_TOPIC_LOCKED, 'arrow-right-bold' : searchresults.S_TOPIC_MOVED, 'fire' : searchresults.S_TOPIC_HOT, diff --git a/phpBB/styles/prosilver/template/ucp_main_bookmarks.html b/phpBB/styles/prosilver/template/ucp_main_bookmarks.html index 98616732f9..6d0fd6933c 100644 --- a/phpBB/styles/prosilver/template/ucp_main_bookmarks.html +++ b/phpBB/styles/prosilver/template/ucp_main_bookmarks.html @@ -38,9 +38,9 @@
{{ Icon('svg', { - 'info-variant' : topicrow.S_POST_GLOBAL, - 'info-variant' : topicrow.S_POST_ANNOUNCE, - 'star' : topicrow.S_POST_STICKY, + 'globe' : topicrow.S_POST_GLOBAL, + 'bullhorn' : topicrow.S_POST_ANNOUNCE, + 'thumbtack' : topicrow.S_POST_STICKY, 'lock' : topicrow.S_TOPIC_LOCKED, 'arrow-right-bold' : topicrow.S_TOPIC_MOVED, 'fire' : topicrow.S_TOPIC_HOT, diff --git a/phpBB/styles/prosilver/template/ucp_main_front.html b/phpBB/styles/prosilver/template/ucp_main_front.html index c8b5093e81..1276b38738 100644 --- a/phpBB/styles/prosilver/template/ucp_main_front.html +++ b/phpBB/styles/prosilver/template/ucp_main_front.html @@ -17,9 +17,9 @@
{{ Icon('svg', { - 'info-variant' : topicrow.S_POST_GLOBAL, - 'info-variant' : topicrow.S_POST_ANNOUNCE, - 'star' : topicrow.S_POST_STICKY, + 'globe' : topicrow.S_POST_GLOBAL, + 'bullhorn' : topicrow.S_POST_ANNOUNCE, + 'thumbtack' : topicrow.S_POST_STICKY, 'lock' : topicrow.S_TOPIC_LOCKED, 'arrow-right-bold' : topicrow.S_TOPIC_MOVED, 'fire' : topicrow.S_TOPIC_HOT, diff --git a/phpBB/styles/prosilver/template/ucp_main_subscribed.html b/phpBB/styles/prosilver/template/ucp_main_subscribed.html index 6f365bfd9e..b91a70048e 100644 --- a/phpBB/styles/prosilver/template/ucp_main_subscribed.html +++ b/phpBB/styles/prosilver/template/ucp_main_subscribed.html @@ -88,9 +88,9 @@
{{ Icon('svg', { - 'info-variant' : topicrow.S_POST_GLOBAL, - 'info-variant' : topicrow.S_POST_ANNOUNCE, - 'star' : topicrow.S_POST_STICKY, + 'globe' : topicrow.S_POST_GLOBAL, + 'bullhorn' : topicrow.S_POST_ANNOUNCE, + 'thumbtack' : topicrow.S_POST_STICKY, 'lock' : topicrow.S_TOPIC_LOCKED, 'arrow-right-bold' : topicrow.S_TOPIC_MOVED, 'fire' : topicrow.S_TOPIC_HOT, diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html index 024be04a2b..8d784b6943 100644 --- a/phpBB/styles/prosilver/template/viewforum_body.html +++ b/phpBB/styles/prosilver/template/viewforum_body.html @@ -160,9 +160,9 @@
{{ Icon('svg', { - 'info-variant' : topicrow.S_POST_GLOBAL, - 'info-variant' : topicrow.S_POST_ANNOUNCE, - 'star' : topicrow.S_POST_STICKY, + 'globe' : topicrow.S_POST_GLOBAL, + 'bullhorn' : topicrow.S_POST_ANNOUNCE, + 'thumbtack' : topicrow.S_POST_STICKY, 'lock' : topicrow.S_TOPIC_LOCKED, 'arrow-right-bold' : topicrow.S_TOPIC_MOVED, 'fire' : topicrow.S_TOPIC_HOT, diff --git a/tests/template/extension_test.php b/tests/template/extension_test.php index ea762f5b0f..207aa5e99f 100644 --- a/tests/template/extension_test.php +++ b/tests/template/extension_test.php @@ -322,7 +322,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case 'type' => 'font', 'icon' => [ 'bullhorn' => false, - 'star' => false, + 'thumbtack' => false, 'lock' => true, 'fire' => false, 'file' => true, @@ -344,7 +344,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case 'type' => 'font', 'icon' => [ 'bullhorn' => false, - 'star' => false, + 'thumbtack' => false, 'lock' => false, 'fire' => false, 'file',