selfservice-no_logo option to disable logo, RT#15963
authorivan <ivan>
Sat, 14 Jan 2012 06:15:27 +0000 (06:15 +0000)
committerivan <ivan>
Sat, 14 Jan 2012 06:15:27 +0000 (06:15 +0000)
FS/FS/ClientAPI/MyAccount.pm
FS/FS/Conf.pm
fs_selfservice/FS-SelfService/cgi/header.html

index c2c295e..fe47acd 100644 (file)
@@ -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
index 06b72e2..37adffb 100644 (file)
@@ -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',
index 984030d..7bd5496 100644 (file)
@@ -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>