mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
591 B
31 lines
591 B
<?php
|
|
|
|
class Header extends WidgetCommon
|
|
{
|
|
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());
|
|
}
|
|
}
|