diff options
author | ivan <ivan> | 2012-01-14 06:15:27 +0000 |
---|---|---|
committer | ivan <ivan> | 2012-01-14 06:15:27 +0000 |
commit | a6446097691aa2e1b393cd1f099f304316a82689 (patch) | |
tree | 4d1c38c2999a2f91dc9e20970a11f6d13d391393 | |
parent | 0dad032a0c88e7ab2dec90eb5488372ab0fb77e7 (diff) |
selfservice-no_logo option to disable logo, RT#15963
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 2 | ||||
-rw-r--r-- | FS/FS/Conf.pm | 8 | ||||
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/header.html | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index c2c295e27..fe47acded 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -121,7 +121,7 @@ sub skin_info { ) ), ( map { $_ => $conf->exists("selfservice-$_", $agentnum ) } - qw( menu_skipblanks menu_skipheadings menu_nounderline ) + qw( menu_skipblanks menu_skipheadings menu_nounderline no_logo ) ), ( map { $_ => scalar($conf->config_binary("selfservice-$_", $agentnum)) } qw( title_left_image title_right_image diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 06b72e203..37adffb36 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -3970,6 +3970,14 @@ and customer address. Include units.', }, { + 'key' => 'selfservice-no_logo', + 'section' => 'self-service', + 'description' => 'Disable the logo in self-service', + 'type' => 'checkbox', + 'per_agent' => 1, + }, + + { 'key' => 'selfservice-title_color', 'section' => 'self-service', 'description' => 'HTML color for the self-service title, for example, #000000', diff --git a/fs_selfservice/FS-SelfService/cgi/header.html b/fs_selfservice/FS-SelfService/cgi/header.html index 984030dee..7bd5496d1 100644 --- a/fs_selfservice/FS-SelfService/cgi/header.html +++ b/fs_selfservice/FS-SelfService/cgi/header.html @@ -55,7 +55,7 @@ <TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0> <TR STYLE="padding:0px"> - <TD><IMG SRC="image.cgi?logo"></TD> + <TD><%= $no_logo ? '' : '<IMG SRC="image.cgi?logo">' %></TD> <TD WIDTH = "29%" STYLE = "background: url(image.cgi?title_left_image) no-repeat left center; padding:0px"> </TD> |