mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Adding separator
This commit is contained in:
parent
83713fc56e
commit
cfa7ce79a9
@ -103,6 +103,7 @@ public function jsonify($raw = false) {
|
||||
'formattedUsername' => $this->getFormattedUsername(),
|
||||
'formattedMessage' => (string) $this,
|
||||
'formattedTime' => \wcf\util\DateUtil::format(\wcf\util\DateUtil::getDateTimeByTimestamp($this->time), 'H:i:s'),
|
||||
'separator' => ($this->type == self::TYPE_NORMAL) ? ': ' : ' ',
|
||||
'sender' => $this->sender,
|
||||
'username' => $this->getUsername(),
|
||||
'time' => $this->time,
|
||||
|
@ -1 +1 @@
|
||||
{literal}<dl style="margin: 0;"><dt style="width: 145px; margin: 0;"><time style="float: left;">{@$formattedTime}</time> {@$formattedUsername}</dt> <dd style="padding: 0; margin-left: 150px;">{@$formattedMessage}</dd></dl>{/literal}
|
||||
{literal}<dl style="margin: 0;"><dt style="width: 145px; margin: 0;"><time style="float: left;">{@$formattedTime}</time> {@$formattedUsername}{$separator}</dt> <dd style="padding: 0; margin-left: 150px;">{@$formattedMessage}</dd></dl>{/literal}
|
||||
|
Loading…
Reference in New Issue
Block a user