<ul class="inlineList dotSeparated">
<li>{lang}wcf.user.usersOnline.detail{/lang}</li>
- {if USERS_ONLINE_RECORD}<li>{lang}wcf.user.usersOnline.record{/lang}</li>{/if}
+ {if USERS_ONLINE_RECORD && $__showRecord}<li>{lang}wcf.user.usersOnline.record{/lang}</li>{/if}
</ul>
{if $usersOnlineList|count}
{/foreach}
</ul>
-<p><small>{lang}wcf.user.usersOnline.detail{/lang}{if USERS_ONLINE_RECORD} <span class="separatorLeft">{lang}wcf.user.usersOnline.record{/lang}</span>{/if}</small></p>
\ No newline at end of file
+<p><small>{lang}wcf.user.usersOnline.detail{/lang}{if USERS_ONLINE_RECORD && $__showRecord} <span class="separatorLeft">{lang}wcf.user.usersOnline.record{/lang}</span>{/if}</small></p>
\ No newline at end of file
*/
protected $supportedPositions = ['footerBoxes', 'sidebarLeft', 'sidebarRight'];
+ /**
+ * enables the display of the user online record
+ * @var boolean
+ */
+ public $showRecord = true;
+
/**
* @inheritDoc
*/
$templateName = 'boxUsersOnline';
}
- return WCF::getTPL()->fetch($templateName, 'wcf', ['usersOnlineList' => $this->objectList]);
+ return WCF::getTPL()->fetch($templateName, 'wcf', ['usersOnlineList' => $this->objectList, '__showRecord' => $this->showRecord]);
}
/**