Change follow icon to `circle-plus`
authorMarcel Werk <burntime@woltlab.com>
Fri, 11 Aug 2023 15:15:32 +0000 (17:15 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 11 Aug 2023 15:15:32 +0000 (17:15 +0200)
see https://www.woltlab.com/community/thread/301085-folgen-icon-ersetzen/

com.woltlab.wcf/templates/userInformationButtons.tpl
wcfsetup/install/files/js/WCF.User.js

index b1c39659d076879c2f3f0048555161d4c339c34b..421b744c5bc70902a958c8988d02173dc89ac221 100644 (file)
@@ -15,9 +15,9 @@
                                {if $__wcf->user->userID && $user->userID != $__wcf->user->userID}
                                        {if !$__wcf->getUserProfileHandler()->isIgnoredByUser($user->userID)}
                                                {if $__wcf->getUserProfileHandler()->isFollowing($user->userID)}
-                                                       <li class="jsOnly"><a href="#" data-following="1" data-object-id="{@$user->userID}" class="jsFollowButton jsTooltip" title="{lang}wcf.user.button.unfollow{/lang}">{icon name='minus'} <span class="invisible">{lang}wcf.user.button.unfollow{/lang}</span></a></li>
+                                                       <li class="jsOnly"><a href="#" data-following="1" data-object-id="{@$user->userID}" class="jsFollowButton jsTooltip" title="{lang}wcf.user.button.unfollow{/lang}">{icon name='circle-minus'} <span class="invisible">{lang}wcf.user.button.unfollow{/lang}</span></a></li>
                                                {else}
-                                                       <li class="jsOnly"><a href="#" data-following="0" data-object-id="{@$user->userID}" class="jsFollowButton jsTooltip" title="{lang}wcf.user.button.follow{/lang}">{icon name='plus'} <span class="invisible">{lang}wcf.user.button.follow{/lang}</span></a></li>
+                                                       <li class="jsOnly"><a href="#" data-following="0" data-object-id="{@$user->userID}" class="jsFollowButton jsTooltip" title="{lang}wcf.user.button.follow{/lang}">{icon name='circle-plus'} <span class="invisible">{lang}wcf.user.button.follow{/lang}</span></a></li>
                                                {/if}
                                        {/if}
                                {/if}
index 35dc797fca16482fcac5402e35f08d69adbe8b4f..788435ff9590929a5485bf94d46c95cc49671c35 100644 (file)
@@ -1559,12 +1559,12 @@ if (COMPILER_TARGET_DEFAULT) {
                                        // toogle icon title
                                        if (data.returnValues.following) {
                                                button.attr('data-tooltip', WCF.Language.get('wcf.user.button.unfollow'));
-                                               button[0].querySelector("fa-icon").setIcon("minus");
+                                               button[0].querySelector("fa-icon").setIcon("circle-minus");
                                                button.children('.invisible').text(WCF.Language.get('wcf.user.button.unfollow'));
                                        }
                                        else {
                                                button.attr('data-tooltip', WCF.Language.get('wcf.user.button.follow'));
-                                               button[0].querySelector("fa-icon").setIcon("plus");
+                                               button[0].querySelector("fa-icon").setIcon("circle-plus");
                                                button.children('.invisible').text(WCF.Language.get('wcf.user.button.follow'));
                                        }