X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=699f82c53d65764d3762bd63c4cb584a54d138f9;hb=46fe3dbcb3ca97d1f3c70d49351846cf0ab6461d;hp=766d3ecbd54d104a1c14fe69128e40491672c781;hpb=8cfa2aa87c0c9f44da6b5b9e065868524ca014b3;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 766d3ecbd..699f82c53 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -4,11 +4,12 @@ Example: <& /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() : '' %><% $company_url ? '' : '' %> | +<% $company_url ? qq() : '' |n %><% $company_url ? '' : '' |n %> | <% $company_name || 'ExampleCo' %> | @@ -75,18 +87,18 @@ Example: % if ( $mobile ) { -+ | - | + | <% include('searchbar-combined.html') |n %> | % } else { -+ | @@ -96,27 +108,27 @@ Example: | ||||||||||||
+ | <% include('searchbar-prospect.html') |n %> | -+ | <% include('searchbar-cust_main.html') |n %> | -+ | <% include('searchbar-address2.html') |n %> | -+ | <% include('searchbar-cust_bill.html') |n %> | -+ | <% include('searchbar-cust_svc.html') |n %> | -+ | <% include('searchbar-ticket.html') |n %> | % } @@ -128,7 +140,7 @@ Example:|||||||||
+ | + | @@ -157,35 +169,40 @@ Example: | +% } else { #$menu_position eq 'top' +
-
- <% $title |h %>
-
+ + <% $title_noescape || encode_entities($title) %> +% unless ( $nobr ) { -+ % } <% $menubar !~ /^\s*$/ ? "$menubar " : '' %> + <%init> -my( $title, $menubar, $etc, $head ) = ( '', '', '', '' ); -my( $nobr, $nocss ) = ( 0, 0 ); +my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' ); +my( $nobr, $nocss, $no_jquery ) = ( 0, 0, 0 ); my $mobile; if ( ref($_[0]) ) { my $opt = shift; $title = $opt->{title}; - $menubar = $opt->{menubar}; - $etc = $opt->{etc}; - $head = $opt->{head}; - $nobr = $opt->{nobr}; - $nocss = $opt->{nocss}; - $mobile = $opt->{mobile}; + $title_noescape = $opt->{title_noescape}; + $menubar = $opt->{menubar}; + $etc = $opt->{etc}; + $head = $opt->{head}; + $nobr = $opt->{nobr}; + $nocss = $opt->{nocss}; + $mobile = $opt->{mobile}; + $no_jquery = $opt->{no_jquery}; } else { ($title, $menubar) = ( shift, shift ); $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc. @@ -215,4 +232,5 @@ if ( scalar(@agentnums) == 1 ) { $company_name = $conf->config('company_name'); $company_url = $conf->config('company_url'); } + %init> |