Changeset 6638
- Timestamp:
- 01/21/2008 10:13:07 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r6558 r6638 17 17 18 18 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); 19 if ( 100 < $awaiting_mod )20 $awaiting_mod = '99+'; // to not blow out layout21 19 $menu[15] = array(__('Design'), 'switch_themes', 'themes.php'); 22 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='comment-count'> $awaiting_mod</span>" ), 'edit_posts', 'edit-comments.php');20 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='comment-count'><span>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php'); 23 21 $menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 24 22 if ( current_user_can('edit_users') ) -
trunk/wp-admin/wp-admin.css
r6633 r6638 937 937 } 938 938 939 #adminmenu #awaiting-mod { 939 #adminmenu li a #awaiting-mod { 940 position: absolute; 941 margin-left: -1.2em; 942 margin-top: -0.2em; 943 font-size: 0.7em; 944 background-image: url(images/comment-stalk.gif); 945 background-repeat: no-repeat; 946 background-position: 0 bottom; 947 height: 0.9em; 948 width: 1em; 949 } 950 951 #adminmenu li a:hover #awaiting-mod { 952 background-position: -80px bottom; 953 } 954 955 #adminmenu li a #awaiting-mod span { 940 956 color: #fff; 941 font-size: 10px;942 width: 23px;957 top: -0.8em; 958 right: 0; 943 959 position: absolute; 944 margin-left: -15px; 945 margin-top: -13px; 946 background-image: url(images/comment-pill.gif); 947 background-position: 0 10px; 948 background-repeat: no-repeat; 960 display: block; 961 height: 1.3em; 962 line-height: 1.3em; 963 padding: 0 0.8em; 964 background-color: #d54e21; 965 -moz-border-radius: 0.3em; 966 -khtml-border-radius: 0.3em; 967 border-radius: 0.3em; 968 } 969 970 #adminmenu li a:hover #awaiting-mod span { 971 background-color: #264761; 949 972 } 950 973 … … 1346 1369 1347 1370 1371
Note: See TracChangeset
for help on using the changeset viewer.