mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
31 lines
589 B
PHP
31 lines
589 B
PHP
<?php
|
|
|
|
class Header extends WidgetBase
|
|
{
|
|
function load()
|
|
{
|
|
}
|
|
|
|
static function fill($html)
|
|
{
|
|
RPC::call('movim_fill', 'header', $html);
|
|
}
|
|
|
|
function ajaxReset($view)
|
|
{
|
|
$html = $this->prepareHeader($view);
|
|
RPC::call('movim_fill', 'header', $html);
|
|
}
|
|
|
|
function prepareHeader($view = null)
|
|
{
|
|
if($view == null) $view = $this->_view;
|
|
$tpl = $this->tpl();
|
|
return $tpl->draw('_header_'.$view, true);
|
|
}
|
|
|
|
function display()
|
|
{
|
|
$this->view->assign('header', $this->prepareHeader());
|
|
}
|
|
}
|