4.x style
[freeside.git] / httemplate / elements / menubar.html
index e6b7fb1..ffe83ec 100644 (file)
@@ -20,56 +20,9 @@ Example:
 </%doc>
 %if ( $opt->{'newstyle'} ) {
 
-%  #false laziness w/header.html... shouldn't these just go in freeside.css?
-
-   <style type="text/css">
-   a.fsblackbutton {
-            background-color:#333333;
-            color: #ffffff;
-            border:1px solid;
-            border-top-color:#cccccc;
-            border-left-color:#cccccc;
-            border-right-color:#aaaaaa;
-            border-bottom-color:#aaaaaa;
-            /*font-weight:bold;*/
-            /*padding-left:12px;
-            padding-right:12px;*/
-            padding-left:4px;
-            padding-right:4px;
-            text-decoration:none;
-            overflow:visible;
-            filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff333333',EndColorStr='#ff666666')
-   }
-   
-   a.fsblackbuttonselected {
-            background-color:#7e0079;
-            color: #ffffff;
-            border:1px solid;
-            border-top-color:#cccccc;
-            border-left-color:#cccccc;
-            border-right-color:#aaaaaa;
-            border-bottom-color:#aaaaaa;
-            /*font-weight:bold;*/
-            /*padding-left:12px;
-            padding-right:12px;*/
-            padding-left:4px;
-            padding-right:4px;
-            text-decoration:none;
-            overflow:visible;
-            filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff330033',EndColorStr='#ff7e0079')
-   }
-   </style>
-
-   <TABLE BGCOLOR="#000000" BORDER=0 CELLSPACING=0 CELLPADDING=0>
-     <TR>
-       <TD><IMG SRC="<%$fsurl%>images/gray-black-side.png" WIDTH=13 HEIGHT=25></TD>
-       <TD>
-         <% join(' ', @html ) %>
-       </TD>
-       <TD><IMG SRC="<%$fsurl%>images/black-gray-side.png" WIDTH=13 HEIGHT=25></TD>
-       </TD>
-     </TR>
-   </TABLE>
+   <DIV CLASS="fstabs">
+   <% join('', @html ) %>
+   </DIV>
 
 %} else {
 
@@ -92,16 +45,19 @@ while (@_) {
   if ( $opt->{'newstyle'} ) {
 
     my $dclass = $item eq $opt->{'selected'}
-                   ? 'fsblackbuttonselected'
-                   : 'fsblackbutton';
+                   ? 'fstabselected'
+                   : 'fstab';
+
+    $style = qq( CLASS="$dclass" );
 
-    $style =
-      qq( CLASS="$dclass" ).
-      qq( onMouseOver="this.className='fsblackbuttonselected'; return true;" ).
-      qq( onMouseOut="this.className='$dclass'; return true;" );
   }
 
-  push @html, qq!<A HREF="$url_base$url" $style>$item</A>!;
+  if ($item eq 'popup') {
+   push @html, $url;
+  }
+  else {
+    push @html, qq!<A HREF="$url_base$url" $style>$item</A>!;
+  }
 
 }