Show topic label on latest post box
-
byerbasan -
4. Juli 2022 um 21:28 -
Erledigt
-
-
- Hilfreichste Antwort
Hi
If you copy boxThreadListSidebar from Default Templats over to the new Group.
Then go to the new Group and press the edit button to boxThreadListSidebar and deletes the content and uses this file.
Afterwards, go to Style and select the Template you have copy in the new boxThreadListSidebar
Smarty
Alles anzeigen<ul class="sidebarItemList"> {foreach from=$boxThreadList item=boxThread} {if $boxSortField == 'lastPostTime'} {assign var='__boxUserProfile' value=$boxThread->getLastPosterProfile()} {else} {assign var='__boxUserProfile' value=$boxThread->getUserProfile()} {/if} <li class="box24{if $__wcf->getUserProfileHandler()->isIgnoredUser($__boxUserProfile->userID, 2)} ignoredUserContent{/if}"> {if $boxSortField == 'lastPostTime'} <a href="{link application='wbb' controller='Thread' object=$boxThread}{/link}" aria-hidden="true">{@$__boxUserProfile->getAvatar()->getImageTag(24)}</a> {else} <a href="{link application='wbb' controller='Thread' object=$boxThread}{/link}" aria-hidden="true">{@$__boxUserProfile->getAvatar()->getImageTag(24)}</a> {/if} <div class="sidebarItemTitle"> <h3><a href="{link application='wbb' controller='Thread' object=$boxThread->getDecoratedObject()}{if $boxSortField == 'lastPostTime' && $__wcf->user->userID}action=firstNew{/if}{/link}" {if $boxThread->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if} data-object-id="{@$boxThread->threadID}" data-sort-order="DESC">{$boxThread->topic}</a></h3> {if $boxThread->hasLabels()} <div class="sidebarBoxLabelList"> <ul class="labelList"> {foreach from=$boxThread->getLabels() item=label} <li><span class="label badge{if $label->getClassNames()} {$label->getClassNames()}{/if}">{lang}{$label->label}{/lang}</span></li> {/foreach} </ul> </div> {/if} {capture assign='__boxThreadLanguageItem'}{lang __optional=true}wbb.thread.boxList.description.{$boxSortField}{/lang}{/capture} {if $__boxThreadLanguageItem} <small>{@$__boxThreadLanguageItem}</small> {else} <small> {user object=$boxThread->getUserProfile()} <span class="separatorLeft">{@$boxThread->time|time}</span> </small> {/if} </div> </li> {/foreach} </ul>
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!