X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=699f82c53d65764d3762bd63c4cb584a54d138f9;hb=19c77bd46e3d0155b9f2a1afb7a3c488bc050f65;hp=374bfa63f1ea904561d2dff00bbb07dc186c711d;hpb=1af14d92fb2615909fc974d8233faac1c4b5d84f;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 374bfa63f..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

after the title + 'title' => 'Title', + 'menubar' => \@menubar, + 'etc' => '', #included in tag, for things like onLoad= + 'head' => '', #included before closing tag + 'nobr' => 0, #1 for no

after the title + 'no_jquery' => #for use from RT, which loads its own } &> @@ -23,7 +24,7 @@ Example: - <% $title %> + <% encode_entities($title) || $title_noescape |n %> @@ -42,12 +43,22 @@ Example: ) |n %> - +% unless ( $no_jquery ) { + + + +% } <% include('init_overlib.html') |n %> <% include('rs_init_object.html') |n %> <% $head |n %> +%# announce our base path, and the Mason comp path of this page + + STYLE="margin-top:0; margin-bottom:0; margin-left:0px; margin-right:0px"> @@ -173,10 +184,11 @@ Example: % } <% $menubar !~ /^\s*$/ ? "$menubar

" : '' %> + <%init> my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' ); -my( $nobr, $nocss ) = ( 0, 0 ); +my( $nobr, $nocss, $no_jquery ) = ( 0, 0, 0 ); my $mobile; @@ -184,12 +196,13 @@ if ( ref($_[0]) ) { my $opt = shift; $title = $opt->{title}; $title_noescape = $opt->{title_noescape}; - $menubar = $opt->{menubar}; - $etc = $opt->{etc}; - $head = $opt->{head}; - $nobr = $opt->{nobr}; - $nocss = $opt->{nocss}; - $mobile = $opt->{mobile}; + $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. @@ -219,4 +232,5 @@ if ( scalar(@agentnums) == 1 ) { $company_name = $conf->config('company_name'); $company_url = $conf->config('company_url'); } +