mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
61 lines
1.6 KiB
PHP
61 lines
1.6 KiB
PHP
<?php
|
|
/*
|
|
* e107 website system
|
|
*
|
|
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
|
* Released under the terms and conditions of the
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
*
|
|
* e107 chatbox_menu Plugin
|
|
*
|
|
*/
|
|
if ( ! defined('e107_INIT')) {
|
|
exit;
|
|
}
|
|
|
|
//---------------------------------MENU-----------------------------------------
|
|
|
|
$CHATBOX_MENU_TEMPLATE['menu']['start'] =
|
|
'<ul class="media-list unstyled list-unstyled mt-3">' . PHP_EOL;
|
|
|
|
$CHATBOX_MENU_TEMPLATE['menu']['item'] = '
|
|
<li class="media d-flex mb-2">
|
|
<div class="media-left me-3">
|
|
<span class="media-object mr-3">{CB_AVATAR: size=48&shape=circle}</span>
|
|
</div>
|
|
<div class="media-body">
|
|
<b>{CB_USERNAME}</b>
|
|
<small class="muted smalltext">{CB_TIMEDATE}</small><br />
|
|
<p>{CB_MESSAGE}</p>
|
|
</div>
|
|
</li>' . PHP_EOL;
|
|
|
|
$CHATBOX_MENU_TEMPLATE['menu']['end'] = '</ul>'. PHP_EOL;
|
|
|
|
|
|
//---------------------------------LIST-----------------------------------------
|
|
|
|
$CHATBOX_MENU_TEMPLATE['list']['start'] =
|
|
'<ul class="media-list list-group">' . PHP_EOL;
|
|
|
|
$CHATBOX_MENU_TEMPLATE['list']['item'] = '
|
|
<li class="media list-group-item" >
|
|
<div class="media-left">
|
|
<span class="media-object">{CB_AVATAR:size=60}</span>
|
|
</div>
|
|
<div class="media-body">
|
|
<h4 class="media-heading" style="display: inline !important;">{CB_USERNAME}</h4>
|
|
<small class="label label-default pull-right float-right">{CB_TIMEDATE}</small><br>
|
|
<p>{CB_MESSAGE}</p>
|
|
<div>
|
|
<div class="pull-left float-left">{CB_BLOCKED}</div>
|
|
<div class="pull-right float-right">{CB_MOD}</div>
|
|
</div>
|
|
</div>
|
|
</li>'. PHP_EOL;
|
|
|
|
$CHATBOX_MENU_TEMPLATE['list']['end'] = '</ul>'. PHP_EOL;
|
|
|
|
|
|
|