From: Ivan Kohler Date: Thu, 7 Aug 2014 00:43:08 +0000 (-0700) Subject: link header logo to company_url config, RT#28457 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8cfa2aa87c0c9f44da6b5b9e065868524ca014b3 link header logo to company_url config, RT#28457 --- diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 4e0c74b8a..766d3ecbd 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -51,7 +51,7 @@ Example: STYLE="margin-top:0; margin-bottom:0; margin-left:0px; margin-right:0px"> - + @@ -206,11 +206,13 @@ if ( $cgi->param('mobile') =~ /^(\d)$/ ) { # allow client to override $mobile = $1; } -my $company_name; +my($company_name, $company_url); my @agentnums = $curuser->agentnums; if ( scalar(@agentnums) == 1 ) { $company_name = $conf->config('company_name', $agentnums[0] ); + $company_url = $conf->config('company_url', $agentnums[0] ); } else { $company_name = $conf->config('company_name'); + $company_url = $conf->config('company_url'); }
freeside<% $company_url ? qq() : '' %>freeside<% $company_url ? '' : '' %> <% $company_name || 'ExampleCo' %>