Remove obsolete old user profile preview
authorMarcel Werk <burntime@woltlab.com>
Thu, 25 Jan 2024 16:00:21 +0000 (17:00 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 25 Jan 2024 16:00:21 +0000 (17:00 +0100)
com.woltlab.wcf/templates/userProfilePreview.tpl [deleted file]
wcfsetup/install/files/style/ui/trophy.scss
wcfsetup/install/files/style/ui/userProfile.scss
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

diff --git a/com.woltlab.wcf/templates/userProfilePreview.tpl b/com.woltlab.wcf/templates/userProfilePreview.tpl
deleted file mode 100644 (file)
index f34f805..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-{if $unknownUser|isset}
-       <p>{lang}wcf.user.unknownUser{/lang}</p>
-{else}
-       <div class="box128 userProfilePreview">
-               <a href="{$user->getLink()}" title="{$user->username}" class="userProfilePreviewAvatar">
-                       {@$user->getAvatar()->getImageTag(128)}
-                       
-                       {if $user->isOnline()}<span class="badge green badgeOnline">{lang}wcf.user.online{/lang}</span>{/if}
-               </a>
-               
-               <div class="userInformation">
-                       {include file='userInformation' disableDialogLinks=true}
-                       
-                       {if MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($user->isAccessible('canViewTrophies') || $user->userID == $__wcf->session->userID) && $user->getSpecialTrophies()|count}
-                               <div class="specialTrophyUserContainer">
-                                       <ul>
-                                               {foreach from=$user->getSpecialTrophies() item=trophy}
-                                                       <li><a href="{@$trophy->getLink()}">{@$trophy->renderTrophy(32, true)}</a></li>
-                                               {/foreach}
-                                       </ul>
-                               </div>
-                       {/if}
-                       
-                       {if $user->canViewOnlineStatus() && $user->getLastActivityTime()}
-                               <dl class="plain inlineDataList">
-                                       <dt>{lang}wcf.user.usersOnline.lastActivity{/lang}</dt>
-                                       <dd>{@$user->getLastActivityTime()|time}{if $user->getCurrentLocation()}, {@$user->getCurrentLocation()}{/if}</dd>
-                               </dl>
-                       {/if}
-                       
-                       {hascontent}
-                               <dl class="plain inlineDataList userFields">
-                                       {content}
-                                               {if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile') && $user->isAccessible('canViewProfile')}
-                                                       {if $user->getUserOption('occupation', true)}
-                                                               <dt>{lang}wcf.user.option.occupation{/lang}</dt>
-                                                               <dd>{$user->getUserOption('occupation', true)}</dd>
-                                                       {/if}
-                                                       {if $user->getUserOption('hobbies', true)}
-                                                               <dt>{lang}wcf.user.option.hobbies{/lang}</dt>
-                                                               <dd>{$user->getUserOption('hobbies', true)}</dd>
-                                                       {/if}
-                                               {/if}
-                                               {event name='userFields'}
-                                       {/content}
-                               </dl>
-                       {/hascontent}
-               </div>
-               
-               {if $__wcf->getUser()->userID && $__wcf->getUser()->userID != $user->userID}
-                       <script data-relocate="true">
-                               $(function() {
-                                       WCF.Language.addObject({
-                                               'wcf.user.button.follow': '{jslang}wcf.user.button.follow{/jslang}',
-                                               'wcf.user.button.unfollow': '{jslang}wcf.user.button.unfollow{/jslang}',
-                                       });
-                                       
-                                       new WCF.User.Action.Follow($('.userInformation'));
-                               });
-                       </script>
-               {/if}
-       </div>
-{/if}
index a8d7635979b0bba5cf5b24d70fb37a7e28a2bd84..257a6d5958c82fc238e54802d350e3a0e5fe5d62 100644 (file)
        margin-top: 0;
 }
 
-.userProfilePreview .specialTrophyUserContainer > ul {
-       margin-top: 5px;
-       margin-bottom: 5px;
-}
-
 .sortableNodeLabel > .trophyIcon {
        margin-right: 5px;
 }
index 2e84c7ac3ae756eacd4b399039a5be6a2ca2cfc9..c04a0f88c4909366bf79c29fedf97a50648336a6 100644 (file)
@@ -271,28 +271,6 @@ html[data-color-scheme="dark"] .userAvatarList > li > a > img {
        }
 }
 
-.userProfilePreview {
-       position: relative;
-
-       .userInformation {
-               margin-bottom: 20px;
-       }
-
-       .buttonGroupNavigation {
-               position: absolute;
-               bottom: 0;
-               right: 0;
-       }
-}
-
-/* using `dl` + `.inlineDataList` to prevent styles applied to the
-   data list provided by the `userInformation` template */
-.userProfilePreview dl.inlineDataList {
-       margin-top: 10px;
-
-       @include wcfFontSmall;
-}
-
 /* user notifications */
 .userNotificationItemList > .notificationItem {
        &.notificationUnconfirmed {
@@ -323,13 +301,6 @@ html[data-color-scheme="dark"] .userAvatarList > li > a > img {
        }
 }
 
-.userProfilePreviewAvatar {
-       align-self: flex-start;
-       display: block;
-       position: relative;
-}
-
-.userProfilePreviewAvatar .badgeOnline,
 .userProfileUser .contentHeaderIcon .badgeOnline {
        left: 0;
        pointer-events: none;
index a27d5e89a29dc166f89f1f32e9c12fdb83a24eba..1927e7730ea9274d0238d72b57b8b1c245de725c 100644 (file)
@@ -4585,7 +4585,6 @@ Dateianhänge:
                <item name="wcf.user.registrationIpAddress"><![CDATA[Registrierungs-IP-Adresse]]></item>
                <item name="wcf.user.visibleLanguages"><![CDATA[Inhaltssprachen]]></item>
                <item name="wcf.user.visibleLanguages.description"><![CDATA[Zeigt Inhalte der ausgewählten Sprachen an]]></item>
-               <item name="wcf.user.unknownUser"><![CDATA[Dieser Benutzer existiert nicht oder wurde gelöscht.]]></item>
                <item name="wcf.user.userID"><![CDATA[Benutzer-ID]]></item>
                <item name="wcf.user.username"><![CDATA[Benutzername]]></item>
                <item name="wcf.user.username.placeholder"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Gib{else}Geben Sie{/if} einen Benutzernamen ein]]></item>
index d1a9eaae2bfd03e1a47905c176730bcfad97c5de..cc9445c8c1d293d7bf246d9e0d9e505baf51b46f 100644 (file)
@@ -4590,7 +4590,6 @@ Attachments:
                <item name="wcf.user.registrationIpAddress"><![CDATA[Registration IP Address]]></item>
                <item name="wcf.user.visibleLanguages"><![CDATA[Multilingualism]]></item>
                <item name="wcf.user.visibleLanguages.description"><![CDATA[Limits visibility to content associated with the selected languages.]]></item>
-               <item name="wcf.user.unknownUser"><![CDATA[This user does not exist or has been deleted.]]></item>
                <item name="wcf.user.userID"><![CDATA[User ID]]></item>
                <item name="wcf.user.username"><![CDATA[Username]]></item>
                <item name="wcf.user.username.placeholder"><![CDATA[Enter a username]]></item>