mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 20:09:27 +01:00
splitted up themeStyles in theme2css, style and themeStyles
This commit is contained in:
parent
1b0912de51
commit
191ac458fc
@ -326,16 +326,25 @@ class html
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
@function themeStyles
|
@function themeStyles
|
||||||
@abstract returns simple stylesheet for nextmatch row-colors
|
@abstract returns simple stylesheet (incl. <STYLE> tags) for nextmatch row-colors
|
||||||
@result the classes 'th' = nextmatch header, 'row_on'+'row_off' = alternating rows
|
@result the classes 'th' = nextmatch header, 'row_on'+'row_off' = alternating rows
|
||||||
*/
|
*/
|
||||||
function themeStyles()
|
function themeStyles()
|
||||||
{
|
{
|
||||||
return $this->style(
|
return $this->style($this->theme2css());
|
||||||
".th { background: ".$GLOBALS['phpgw_info']['theme']['th_bg']."; }\n".
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function theme2css
|
||||||
|
@abstract returns simple stylesheet for nextmatch row-colors
|
||||||
|
@result the classes 'th' = nextmatch header, 'row_on'+'row_off' = alternating rows
|
||||||
|
*/
|
||||||
|
function theme2css()
|
||||||
|
{
|
||||||
|
return
|
||||||
|
".th { background: ".$GLOBALS['phpgw_info']['theme']['th_bg']."; font-weight: bold; }\n".
|
||||||
".row_on,.th_bright { background: ".$GLOBALS['phpgw_info']['theme']['row_on']."; }\n".
|
".row_on,.th_bright { background: ".$GLOBALS['phpgw_info']['theme']['row_on']."; }\n".
|
||||||
".row_off { background: ".$GLOBALS['phpgw_info']['theme']['row_off']."; }\n"
|
".row_off { background: ".$GLOBALS['phpgw_info']['theme']['row_off']."; }\n";
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function style($styles)
|
function style($styles)
|
||||||
|
Loading…
Reference in New Issue
Block a user