mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
$extra parameter for framework->header()
This commit is contained in:
parent
33ac096fdf
commit
5e3c0192d3
@ -168,7 +168,7 @@ abstract class egw_framework
|
|||||||
*
|
*
|
||||||
* @return string with html
|
* @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)
|
* Returns the html from the body-tag til the main application area (incl. opening div tag)
|
||||||
|
@ -82,9 +82,10 @@ class idots_framework extends egw_framework
|
|||||||
/**
|
/**
|
||||||
* Returns the html-header incl. the opening body tag
|
* 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
|
* @return string with html
|
||||||
*/
|
*/
|
||||||
function header()
|
function header(array $extra=array())
|
||||||
{
|
{
|
||||||
// make sure header is output only once
|
// make sure header is output only once
|
||||||
if (self::$header_done) return '';
|
if (self::$header_done) return '';
|
||||||
@ -110,7 +111,7 @@ class idots_framework extends egw_framework
|
|||||||
// hide location bar
|
// hide location bar
|
||||||
egw_framework::set_onload('window.setTimeout(function(){window.scrollTo(0, 1);}, 100);');
|
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');
|
$content .= $this->tpl->fp('out','head');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user