| 1 | {if !$usersOnlineShowRecord|isset}{assign var='usersOnlineShowRecord' value=true}{/if} |
| 2 | {if MODULE_USERS_ONLINE && $__wcf->session->getPermission('user.profile.canViewUsersOnlineList') && $usersOnlineList->stats[total]} |
| 3 | <section class="box" data-static-box-identifier="com.woltlab.wcf.UsersOnlineInfo"> |
| 4 | <h2 class="boxTitle"><a href="{link controller='UsersOnlineList'}{/link}">{lang}wcf.user.usersOnline{/lang}</a> <span class="badge">{#$usersOnlineList->stats[total]}</span></h2> |
| 5 | |
| 6 | <div class="boxContent"> |
| 7 | <ul class="inlineList dotSeparated"> |
| 8 | <li>{lang}wcf.user.usersOnline.detail{/lang}</li> |
| 9 | {if $usersOnlineShowRecord && USERS_ONLINE_RECORD}<li>{lang}wcf.user.usersOnline.record{/lang}</li>{/if} |
| 10 | </ul> |
| 11 | |
| 12 | {if $usersOnlineList|count} |
| 13 | <ul class="inlineList commaSeparated"> |
| 14 | {foreach from=$usersOnlineList->getObjects() item=userOnline} |
| 15 | <li>{user object=$userOnline}</li> |
| 16 | {/foreach} |
| 17 | </ul> |
| 18 | {/if} |
| 19 | </div> |
| 20 | |
| 21 | {if USERS_ONLINE_ENABLE_LEGEND && $usersOnlineList->getUsersOnlineMarkings()|count} |
| 22 | <div class="boxContent"> |
| 23 | <dl class="plain inlineDataList usersOnlineLegend"> |
| 24 | <dt>{lang}wcf.user.usersOnline.marking.legend{/lang}</dt> |
| 25 | <dd> |
| 26 | <ul class="inlineList commaSeparated"> |
| 27 | {foreach from=$usersOnlineList->getUsersOnlineMarkings() item=usersOnlineMarking} |
| 28 | <li>{@$usersOnlineMarking}</li> |
| 29 | {/foreach} |
| 30 | </ul> |
| 31 | </dd> |
| 32 | |
| 33 | </dl> |
| 34 | </div> |
| 35 | {/if} |
| 36 | </section> |
| 37 | {/if} |