add isset check for hovlink, and made vlink same as link color in theme

This commit is contained in:
angles 2001-05-17 21:18:01 +00:00
parent f3bb7b7c4e
commit 40ceefcb57
2 changed files with 9 additions and 6 deletions

View File

@ -12,16 +12,17 @@
/* $Id$ */
// needed until hovlink is specified in all theme files
if ($phpgw_info['theme']['hovlink'] == '')
if (isset($phpgw_info['theme']['hovlink'])
&& ($phpgw_info['theme']['hovlink'] != ''))
{
$csshover = '';
$csshover = 'A:hover{ text-decoration:none; color: ' .$phpgw_info['theme']['hovlink'] .'; }';
}
else
{
$csshover = 'A:hover{ text-decoration:none; color: ' .$phpgw_info['theme']['hovlink'] .'; }';
$csshover = '';
};
$bodyheader = 'BGCOLOR="'.$phpgw_info['theme']['bg_color'].'" ALINK="'.$phpgw_info['theme']['alink'].'" LINK="'.$phpgw_info['theme']['link'].'" VLINK="'.$phpgw_info['theme']['vlink'].'"';
$bodyheader = 'bgcolor="'.$phpgw_info['theme']['bg_color'].'" alink="'.$phpgw_info['theme']['alink'].'" link="'.$phpgw_info['theme']['link'].'" vlink="'.$phpgw_info['theme']['vlink'].'"';
if (!$phpgw_info['server']['htmlcompliant'])
{
$bodyheader .= ' topmargin="0" marginheight="0" marginwidth="0" leftmargin="0"';

View File

@ -13,9 +13,11 @@
$phpgw_info['theme']['bg_color']= '#ffffff';
$phpgw_info['theme']['bg_text']= '#000000';
$phpgw_info['theme']['vlink']= '#333366';
// vlink is annoying and unncessary for most apps, make same as link
//$phpgw_info['theme']['vlink']= '#333366';
$phpgw_info['theme']['vlink']= '#336699';
$phpgw_info['theme']['alink']= '#ff0000';
// for future use with A.hover in CSS
// A.hover in CSS currently works only with idsociety theme + template combo
$phpgw_info['theme']['hovlink']= '#cc0000';
$phpgw_info['theme']['link']= '#336699';
$phpgw_info['theme']['row_on']= '#dddddd';