$extra parameter for framework->header()

This commit is contained in:
Ralf Becker 2013-07-19 17:07:05 +00:00
parent 33ac096fdf
commit 5e3c0192d3
2 changed files with 4 additions and 3 deletions

View File

@ -168,7 +168,7 @@ abstract class egw_framework
*
* @return string with html
*/
abstract function header();
abstract function header(array $extra=array());
/**
* Returns the html from the body-tag til the main application area (incl. opening div tag)

View File

@ -82,9 +82,10 @@ class idots_framework extends egw_framework
/**
* Returns the html-header incl. the opening body tag
*
* @param array $extra=array() extra attributes passed as data-attribute to egw.js
* @return string with html
*/
function header()
function header(array $extra=array())
{
// make sure header is output only once
if (self::$header_done) return '';
@ -110,7 +111,7 @@ class idots_framework extends egw_framework
// hide location bar
egw_framework::set_onload('window.setTimeout(function(){window.scrollTo(0, 1);}, 100);');
}
$this->tpl->set_var($this->_get_header());
$this->tpl->set_var($this->_get_header($extra));
$content .= $this->tpl->fp('out','head');