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/Header/Header.php

32 lines
597 B
PHP
Raw Normal View History

2016-03-15 16:28:38 +01:00
<?php
2016-03-29 14:12:33 +02:00
class Header extends \Movim\Widget\Base
2016-03-15 16:28:38 +01:00
{
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());
}
}