From 40ceefcb579f5b4893e75eaee33d06aac1fd611c Mon Sep 17 00:00:00 2001 From: angles Date: Thu, 17 May 2001 21:18:01 +0000 Subject: [PATCH] add isset check for hovlink, and made vlink same as link color in theme --- phpgwapi/templates/idsociety/head.inc.php | 9 +++++---- phpgwapi/themes/idsociety.theme | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/phpgwapi/templates/idsociety/head.inc.php b/phpgwapi/templates/idsociety/head.inc.php index a71b1253b8..615f91d798 100644 --- a/phpgwapi/templates/idsociety/head.inc.php +++ b/phpgwapi/templates/idsociety/head.inc.php @@ -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"'; diff --git a/phpgwapi/themes/idsociety.theme b/phpgwapi/themes/idsociety.theme index 9e41eb7e3f..33c6b224b2 100755 --- a/phpgwapi/themes/idsociety.theme +++ b/phpgwapi/themes/idsociety.theme @@ -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';