1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/Hello/Hello.php

29 lines
586 B
PHP

<?php
class Hello extends WidgetBase
{
function load()
{
}
function ajaxChat($jid)
{
$c = new Chats;
$c->ajaxOpen($jid);
RPC::call('movim_redirect', $this->route('chat', $jid));
}
function display()
{
$cd = new modl\ContactDAO;
$this->view->assign('top', $cd->getTop(6));
$pd = new \Modl\PostnDAO;
$this->view->assign('news', $pd->getAllPosts(false, 0, 4));
$this->view->assign('jid', $this->user->getLogin());
$this->view->assign('presencestxt', getPresencesTxt());
}
}