diff --git a/include/widgets.php b/include/widgets.php index 014160867..50e4cb184 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -809,6 +809,14 @@ function widget_chatroom_list($arr) { } } +function widget_chatroom_members() { + $o = replace_macros(get_markup_template('chatroom_members.tpl'), array( + '$header' => t('Chatroom Members') + )); + + return $o; +} + function widget_bookmarkedchats($arr) { $h = get_observer_hash(); if(! $h) diff --git a/mod/chatsvc.php b/mod/chatsvc.php index 829fef6f8..bdf4a9f8c 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -137,7 +137,8 @@ function chatsvc_content(&$a) { 'name' => $rr['xchan_name'], 'isotime' => datetime_convert('UTC', date_default_timezone_get(), $rr['created'], 'c'), 'localtime' => datetime_convert('UTC', date_default_timezone_get(), $rr['created'], 'r'), - 'text' => smilies(bbcode($rr['chat_text'])) + 'text' => smilies(bbcode($rr['chat_text'])), + 'self' => ((get_observer_hash() == $rr['chat_xchan']) ? 'self' : '') ); } } diff --git a/view/css/mod_chat.css b/view/css/mod_chat.css index 69c2e1528..9d46d9860 100644 --- a/view/css/mod_chat.css +++ b/view/css/mod_chat.css @@ -1,4 +1,5 @@ -#chatroom-new { +#chatroom-new, +#inline { display: none; } @@ -25,14 +26,23 @@ aside { padding-bottom: 0px; } +#chat-destroy { + display: inline; +} + #chatTopBar { float: left; + width: 100%; height: 400px; overflow-y: auto; } +#chatroom_list, +#chatroom_members { + display: none; +} -#chatUsers img { +#chatMembers img { float: left; margin-right: 5px; } @@ -49,11 +59,16 @@ aside { .chat-item { display: table; - table-layout: fixed; - + float: left; } -.chat-item-photo { +.chat-item-self { + display: table; + float: right; +} + +.chat-item-photo, +.chat-item-photo-self { display: table-cell; height: 32px; width: 32px; @@ -66,7 +81,17 @@ aside { padding: 0px 0px 20px 10px; } -.chat-item-title { +.chat-body-self { + display: table-cell; + vertical-align: top; + padding: 0px 10px 20px 0px; + text-align: right; +} + + + +.chat-item-title, +.chat-item-title-self { display: inline-block; padding: 3px; margin-bottom: 3px; @@ -84,3 +109,12 @@ aside { color: red; } +.generic-content-wrapper.fullscreen { + position: fixed; + width: 100%; + height: 100%; + top: 0px; + left: 0px; + z-index: 10000; +} + diff --git a/view/pdl/mod_chat.pdl b/view/pdl/mod_chat.pdl index 564199bed..664e77f53 100644 --- a/view/pdl/mod_chat.pdl +++ b/view/pdl/mod_chat.pdl @@ -3,4 +3,5 @@ [widget=chatroom_list][/widget] [widget=bookmarkedchats][/widget] [widget=suggestedchats][/widget] +[widget=chatroom_members][/widget] [/region] diff --git a/view/pdl/mod_cloud.pdl b/view/pdl/mod_cloud.pdl index 6b1d2a15e..d8f50ad7a 100644 --- a/view/pdl/mod_cloud.pdl +++ b/view/pdl/mod_cloud.pdl @@ -1,3 +1,3 @@ [region=aside] -[widget=profile][/widget] +[widget=vcard][/widget] [/region] diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 7f9f621a3..43607a95c 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1264,7 +1264,8 @@ img.mail-conv-sender-photo { .wall-item-content, .mail-conv-body, .page-body, -.chat-item-text { +.chat-item-text, +.chat-item-text-self { font-size: $font_size; clear: both; } @@ -1363,11 +1364,13 @@ img.mail-conv-sender-photo { cursor: pointer; } -.chat-item-photo { +.chat-item-photo, +.chat-item-photo-self { border-radius: $radiuspx; } -.chat-item-title { +.chat-item-title, +.chat-item-title-self { border-radius: $radiuspx; background-color: $item_colour; } diff --git a/view/tpl/bookmarkedchats.tpl b/view/tpl/bookmarkedchats.tpl index ab4372c25..3aabf835a 100644 --- a/view/tpl/bookmarkedchats.tpl +++ b/view/tpl/bookmarkedchats.tpl @@ -1,5 +1,5 @@ {{if $rooms}} -