From f01e2ce0aa6c1925e6266d78797025ec68bfac07 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 26 Jan 2007 08:04:37 +0000 Subject: top bar option! --- httemplate/elements/header.html | 68 +++- httemplate/elements/menu.html | 15 +- httemplate/elements/xmenu.css | 11 +- httemplate/elements/xmenu.top.css | 211 ++++++++++++ httemplate/elements/xmenu.top.js | 671 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 959 insertions(+), 17 deletions(-) create mode 100644 httemplate/elements/xmenu.top.css create mode 100644 httemplate/elements/xmenu.top.js (limited to 'httemplate/elements') diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 0e69b19ca..1f5674885 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -1,11 +1,3 @@ -% -% my($title, $menubar) = ( shift, shift ); -% my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc. -% my $head = @_ ? shift : ''; #$head is for things that go in the section -% my $conf = new FS::Conf; -% -% - @@ -16,7 +8,10 @@ - <% include('menu.html', 'freeside_baseurl' => $fsurl ) %> + <% include('menu.html', 'freeside_baseurl' => $fsurl, + 'position' => $menu_position, + ) + %> + + + + + + + + + + + + + + +% } + @@ -172,13 +191,26 @@ input.fsblackbuttonselected { + + + +% if ( $menu_position eq 'left' ) { + - + +% } + + + + + +% if ( $menu_position eq 'left' ) { +
- - + +% if ( $opt{'position'} eq 'top' ) { + + + + +% } else { # elsif ( $opt{'position'} eq 'left' ) { + + + + +% } +