Browse Source

Style shoutbox

experimental
Paweł Jedwabny 3 years ago
parent
commit
b21dc29238
2 changed files with 20 additions and 5 deletions
  1. +1
    -1
      modules/Apps/Shoutbox/Shoutbox_0.php
  2. +19
    -4
      modules/Apps/Shoutbox/refresh.php

+ 1
- 1
modules/Apps/Shoutbox/Shoutbox_0.php View File

@@ -269,7 +269,7 @@ class Apps_Shoutbox extends Module {
return;
}

$theme->assign('board',$big?'<div style=\'height: 500px\' id=\'shoutbox_board\'></div>':'<div id=\'shoutbox_board\'></div>');
$theme->assign('board',$big?'<div style=\'height: 500px\' id=\'shoutbox_board\'></div>':'<ul id="shoutbox_board" class="list-group card-list-group"></ul>');
$theme->assign('header', __('Shoutbox'));
$theme->display('chat_form');



+ 19
- 4
modules/Apps/Shoutbox/refresh.php View File

@@ -42,12 +42,27 @@ foreach($arr as $row) {
$color = $color[$row['base_user_login_id'] % 6];

$html = <<<HTML
<div class="bs-callout bs-callout-$color">
<h4>$user_label<span class="label label-default pull-right">$time</span></h4>
<span class="shoutbox_textbox"style="color:$fcolor;">$message</span>
</div>
<li class="list-group-item py-5">
<div class="media">
<!--<div class="media-object avatar avatar-md mr-4" style="background-image: url(demo/faces/male/16.jpg)"></div>-->
<div class="media-body">
<div class="media-heading">
<small class="float-right text-muted">$time</small>
<h5>$user_label</h5>
</div>
<div>
$message
</div>
</div>
</div>
</li>
HTML;

// <div class="bs-callout bs-callout-$color">
// <h4>$user_label<span class="label label-default pull-right">$time</span></h4>
// <span class="shoutbox_textbox"style="color:$fcolor;">$message</span>
// </div>

print($html);
}



Loading…
Cancel
Save