X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=30a6189f661a1866f4582eefaf296f48144dc1ea;hb=5e0a78a1dca6d39ea70c8c01002024929e36f2d8;hp=61d031376a8c30ee8a34afa4550574a340373cbf;hpb=f1cfd3ba31c346283520ea88ad3b8b265559db02;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 61d031376..30a6189f6 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -2,18 +2,18 @@ Example: - include( '/elements/header.html', - { - 'title' => 'Title', - 'menubar' => \@menubar, - 'etc' => '', #included in
tag, for things like onLoad= - 'head' => '', #included before closing tag - 'nobr' => 0, #1 for no+ | <% $company_url ? qq() : '' |n %><% $company_url ? '' : '' |n %> | <% $company_name || 'ExampleCo' %> | -Logged in as <% getotaker %> logout Preferences + | Logged in as <% $FS::CurrentUser::CurrentUser->username |h %> logout Preferences % if ( $conf->config("ticket_system") % && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) { | Ticketing preferences @@ -69,7 +71,7 @@ Example: % if ( $menu_position eq 'top' ) { -
<% include('searchbar-prospect.html') |n %>
@@ -124,7 +126,7 @@ Example:
% } else { #$menu_position eq 'left'
- |
|
@@ -140,7 +142,7 @@ Example:
% if ( $menu_position eq 'left' ) {
-
+ |
@@ -156,7 +158,7 @@ Example:
|
% }
-
+%# page content starts here
@@ -204,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');
}
%init>
| |