From 8cfa2aa87c0c9f44da6b5b9e065868524ca014b3 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 6 Aug 2014 17:43:08 -0700 Subject: [PATCH] link header logo to company_url config, RT#28457 --- httemplate/elements/header.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'); } -- 2.11.0
freeside<% $company_url ? qq() : '' %>freeside<% $company_url ? '' : '' %> <% $company_name || 'ExampleCo' %>