30 changed files with 318 additions and 193 deletions
-
12app/helpers/DateHelper.php
-
58app/helpers/StringHelper.php
-
2app/models/message/Message.php
-
3app/views/page.tpl
-
100app/widgets/Chat/Chat.php
-
10app/widgets/Chat/_chat.tpl
-
17app/widgets/Chat/_chat_bubble.tpl
-
5app/widgets/Chat/_chat_bubble_room.tpl
-
2app/widgets/Chat/_chat_header.tpl
-
44app/widgets/Chat/_chat_message.tpl
-
21app/widgets/Chat/_chat_messages.tpl
-
31app/widgets/Chat/chat.css
-
62app/widgets/Chat/chat.js
-
83app/widgets/Chat/chat_otr.js
-
2app/widgets/Chats/chats.js
-
2app/widgets/Rooms/Rooms.php
-
6linker.php
-
18themes/material/css/color.css
-
30themes/material/css/fonts.css
-
3themes/material/css/style.css
-
BINthemes/material/fonts/os_300.woff
-
BINthemes/material/fonts/os_300.woff2
-
BINthemes/material/fonts/os_400.woff
-
BINthemes/material/fonts/os_400.woff2
-
BINthemes/material/fonts/os_600.woff
-
BINthemes/material/fonts/os_600.woff2
-
BINthemes/material/fonts/os_700.woff
-
BINthemes/material/fonts/os_700.woff2
-
BINthemes/material/fonts/os_800.woff
-
BINthemes/material/fonts/os_800.woff2
@ -0,0 +1,17 @@ |
|||
<li {if="$me"}class="oppose"{/if}> |
|||
{$url = $contact->getPhoto('s')} |
|||
{if="$url"} |
|||
<span class="icon bubble"> |
|||
<img src="{$url}"> |
|||
</span> |
|||
{else} |
|||
<span class="icon bubble color {$contact->jid|stringToColor}"> |
|||
<i class="md md-person"></i> |
|||
</span> |
|||
{/if} |
|||
|
|||
<div class="bubble"> |
|||
<div></div> |
|||
<span class="info"></span> |
|||
</div> |
|||
</li> |
|||
@ -0,0 +1,5 @@ |
|||
<li class="room"> |
|||
<span class="info"></span> |
|||
<span class="user"></span> |
|||
<div></div> |
|||
</li> |
|||
@ -1,44 +0,0 @@ |
|||
{if="$message->body != ''"} |
|||
<li {if="$message->jidfrom != $jid"}class="oppose"{/if}> |
|||
{if="$message->jidfrom == $jid"} |
|||
{$url = $contact->getPhoto('s')} |
|||
{if="$url"} |
|||
<span class="icon bubble"> |
|||
<img src="{$url}"> |
|||
</span> |
|||
{elseif="$message->type == 'groupchat'"} |
|||
<span class="icon bubble color {$message->resource|stringToColor}"> |
|||
<i class="md md-person"></i> |
|||
</span> |
|||
{else} |
|||
<span class="icon bubble color {$contact->jid|stringToColor}"> |
|||
<i class="md md-person"></i> |
|||
</span> |
|||
{/if} |
|||
{else} |
|||
<span class="icon bubble"> |
|||
<img src="{$me->getPhoto('s')}"> |
|||
</span> |
|||
{/if} |
|||
|
|||
{if="preg_match('#^\/me#', $message->body)"} |
|||
{$message->body = '* '.substr($message->body, 3)} |
|||
{$class = 'quote'} |
|||
{else} |
|||
{$class = ''} |
|||
{/if} |
|||
|
|||
<div class="bubble {$class}"> |
|||
{if="preg_match('#^\?OTR#', $message->body)"} |
|||
<i class="md md-lock"></i><div class="encrypted">{$c->__('message.encrypted')}</div> |
|||
<!--<div class="encrypted">{$message->body}</div>--> |
|||
{else} |
|||
<div>{if="isset($message->html)"}{$message->html|prepareString}{else}{$message->body|htmlentities:ENT_COMPAT,'UTF-8'|prepareString}{/if}</div> |
|||
{/if} |
|||
<span class="info">{$message->published|strtotime|prepareDate}</span> |
|||
{if="$message->type == 'groupchat'"} |
|||
<span class="info">{$message->resource} - </span> |
|||
{/if} |
|||
</div> |
|||
</li> |
|||
{/if} |
|||
@ -1,21 +0,0 @@ |
|||
<ul class="middle" id="{$jid}_conversation"> |
|||
{$messages_html} |
|||
{if="$status != false"} |
|||
<li {if="$myself != false"}class="oppose"{/if}> |
|||
<span class="icon bubble"> |
|||
{if="$myself == false"} |
|||
<img src="{$contact->getPhoto('s')}"> |
|||
{else} |
|||
<img src="{$me->getPhoto('s')}"> |
|||
{/if} |
|||
</span> |
|||
<div class="bubble"> |
|||
{if="$status == 'composing'"} |
|||
<i class="md md-mode-edit"></i> {$c->__('message.composing')} |
|||
{else} |
|||
<i class="md md-mode-edit"></i> {$c->__('message.paused')} |
|||
{/if} |
|||
</div> |
|||
</li> |
|||
{/if} |
|||
</ul> |
|||
@ -0,0 +1,30 @@ |
|||
@font-face { |
|||
font-family: 'Open Sans'; |
|||
font-style: normal; |
|||
font-weight: 300; |
|||
src: local('Open Sans Light'), local('OpenSans-Light'), url(../fonts/os_300.woff2) format('woff2'), url(../fonts/os_300.woff2) format('woff'); |
|||
} |
|||
@font-face { |
|||
font-family: 'Open Sans'; |
|||
font-style: normal; |
|||
font-weight: 400; |
|||
src: local('Open Sans'), local('OpenSans'), url(../fonts/os_400.woff2) format('woff2'), url(../fonts/os_400.woff) format('woff'); |
|||
} |
|||
@font-face { |
|||
font-family: 'Open Sans'; |
|||
font-style: normal; |
|||
font-weight: 600; |
|||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(../fonts/os_600.woff2) format('woff2'), url(../fonts/os_600.woff) format('woff'); |
|||
} |
|||
@font-face { |
|||
font-family: 'Open Sans'; |
|||
font-style: normal; |
|||
font-weight: 700; |
|||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(../fonts/os_700.woff2) format('woff2'), url(../fonts/os_700.woff) format('woff'); |
|||
} |
|||
@font-face { |
|||
font-family: 'Open Sans'; |
|||
font-style: normal; |
|||
font-weight: 800; |
|||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(../fonts/os_800.woff2) format('woff2'), url(../fonts/os_800.woff) format('woff'); |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue