1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

e_status and e_latest upgraded to new class format.

This commit is contained in:
Cameron
2012-12-08 01:31:00 -08:00
parent 159fb63bfb
commit e95e27b5c5
6 changed files with 99 additions and 16 deletions

View File

@@ -25,6 +25,22 @@
if (!defined('e107_INIT')) { exit; }
$chatbox_posts = $sql -> db_Count('chatbox');
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN_ABS."chatbox_menu/images/chatbox_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ".ADLAN_115.": ".$chatbox_posts."</div>";
class chatbox_menu_status // include plugin-folder in the name.
{
function config()
{
$sql = e107::getDb();
$chatbox_posts = $sql -> db_Count('chatbox');
$var[0]['icon'] = "<img src='".e_PLUGIN_ABS."chatbox_menu/images/chatbox_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ";
$var[0]['title'] = ADLAN_115;
$var[0]['url'] = e_PLUGIN."chatbox_menu/admin_chatbox.php";
$var[0]['total'] = $chatbox_posts;
return $var;
}
}
?>