Changeset 928

Show
Ignore:
Timestamp:
03/04/08 18:31:16 (9 months ago)
Author:
_ck_
Message:

darn fix for IE was breaking everything else...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • admin-instant-menus/trunk/admin-instant-menus.php

    r926 r928  
    44Plugin URI: http://bbpress.org/plugins/topic/95 
    55Description: Makes the third row of options in the admin menu instantly available without extra clicks. Conversion with code and CSS tweaks from WordPress based on <a href="http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/">Ozh</a>'s original.  
    6 Version: 1.0 
     6Version: 1.01 
    77Author: _ck_ 
    88Author http://bbShowcase.org 
     
    140140        print "document.getElementById('bb-admin-menu').innerHTML=\"$admin\";"; 
    141141        print "if (!document.getElementById('bb-admin-submenu')) {newUL = document.createElement(\"UL\"); newUL.setAttribute(\"id\", \"bb-admin-submenu\"); document.getElementById('bb-admin-menu').parentNode.insertBefore(newUL, document.getElementById('bb-admin-menu').nextSibling);      document.getElementById('bb-admin-submenu').innerHTML=\"<li class='altmenu_empty' title='This menu has no sub menu'><small>&#8230;</small></li><li style='padding:0 300px'>&nbsp;</li>\"; }"; 
    142          
     142        // print "else {document.getElementById('bb-admin-submenu').innerHTML=\"<li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li>\";}"; 
    143143        print "</script>"; 
    144144} 
     
    207207                font-weight:bold;        
    208208        } 
    209          
    210         /* Stuff for MSIE */ 
    211         * html $id li .ulcurrent { 
     209CSS; 
     210if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') ) { // && strpos($_SERVER['HTTP_USER_AGENT'], 'Win')  
     211print <<<CSS 
     212        $id li .ulcurrent { 
    212213                width:200%;      
    213214        } 
    214         * html $id li a { 
     215        $id li a { 
    215216                margin-right:0.3em; 
    216         } 
    217          
    218         * html $id li.msieFix ul, { 
     217        }        
     218        $id li.msieFix ul, { 
    219219                margin:2em 0; 
    220220                width:300%; 
    221221                left:0; 
    222222        } 
    223         * html $id li ul { 
     223        $id li ul { 
    224224                margin:2em 0; 
    225225                padding-left: 3em; 
    226         } 
    227          
    228          
    229         /**/ 
    230         </style> 
    231  
     226        }        
    232227CSS; 
    233228} 
     229print " </style>"; 
     230 
     231} 
    234232 
    235233?> 
  • admin-instant-menus/trunk/readme.txt

    r927 r928  
    22Tags: admin, administrate, drop-down, menus, slider, _ck_ 
    33Contributors: _ck_ 
    4 Requires at least: 0.8 
    5 Tested up to: trunk 
     4Requires at least: 0.8.2 
     5Tested up to: 0.8 branch 
    66Stable tag: trunk 
    77Donate link: http://amazon.com/paypage/P2FBORKDEFQIVM