Changeset 21574
- Timestamp:
- 08/21/2012 10:46:30 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r21435 r21574 77 77 $admin_body_class .= ' folded'; 78 78 79 if ( !get_user_setting('unfold') ) 80 $admin_body_class .= ' auto-fold'; 81 79 82 if ( is_admin_bar_showing() ) 80 83 $admin_body_class .= ' admin-bar'; -
trunk/wp-admin/css/colors-classic.dev.css
r21534 r21574 491 491 #adminmenu a:hover, 492 492 #adminmenu li.menu-top > a:focus, 493 #adminmenu ul.wp-submenu a:hover,493 #adminmenu .wp-submenu a:hover, 494 494 #the-comment-list .comment a:hover, 495 495 #rightnow a:hover, … … 1281 1281 1282 1282 #adminmenu a.menu-top, 1283 .folded #adminmenu li.menu-top,1284 1283 #adminmenu .wp-submenu .wp-submenu-head { 1285 1284 border-top-color: #ffffff; … … 1291 1290 } 1292 1291 1293 #adminmenu li.menu-top:hover > a, 1294 #adminmenu li.menu-top.focused > a, 1295 #adminmenu li.menu-top > a:focus { 1292 #adminmenu a.menu-top:hover, 1293 #adminmenu li.opensub > a.menu-top, 1294 #adminmenu li.opensub > a.menu-top, 1295 #adminmenu li > a.menu-top:focus { 1296 1296 background-color: #e0f1ff; 1297 color: #d54e21; 1297 1298 text-shadow: 0 1px 0 rgba( 255, 255, 255, 0.4 ); 1298 1299 } … … 1319 1320 background-image: -o-linear-gradient(bottom right, #5589aa, #619bbb); 1320 1321 background-image: linear-gradient(to top left, #5589aa, #619bbb); 1321 1322 1322 } 1323 1323 … … 1364 1364 } 1365 1365 1366 #adminmenu .wp-submenu ul { 1366 #adminmenu .wp-submenu, 1367 .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1368 .folded #adminmenu .wp-has-current-submenu .wp-submenu { 1367 1369 background-color: #fff; 1368 }1369 1370 #adminmenu .wp-submenu-wrap,1371 #adminmenu .wp-submenu ul {1372 1370 border-color: #d0dfe9; 1373 } 1374 1375 #adminmenu .wp-submenu-wrap, 1376 .folded #adminmenu .wp-has-current-submenu .wp-submenu-wrap { 1377 -webkit-box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1378 box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1371 -webkit-box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1372 box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1379 1373 } 1380 1374 1381 1375 #adminmenu .wp-submenu .wp-submenu-head { 1382 border-right-color: #e8eff4; 1383 background-color: #EFF8FF; 1384 } 1385 1386 #adminmenu div.wp-submenu { 1387 background-color: transparent; 1376 border-right-color: #dfdfdf; 1377 background-color: #e4e4e4; 1388 1378 } 1389 1379 … … 1391 1381 #collapse-menu { 1392 1382 color: #A0C3D5; 1383 border-top-color: #f9f9f9; 1393 1384 } 1394 1385 … … 1399 1390 #collapse-button { 1400 1391 border-color: #d0dfe9; 1401 background: #eff8ff; /* Fallback */1392 background: #eff8ff; 1402 1393 background-image: -webkit-gradient(linear, left bottom, left top, from(#eff8ff), to(#fff)); 1403 1394 background-image: -webkit-linear-gradient(bottom, #eff8ff, #fff); … … 1422 1413 /* Auto-folding of the admin menu */ 1423 1414 @media only screen and (max-width: 900px) { 1424 #adminmenu li.menu-top { 1425 border-top-color: #ffffff; 1426 border-bottom-color: #cae6ff; 1415 .auto-fold #adminmenu li.wp-has-current-submenu, 1416 .auto-fold #adminmenu li.current.menu-top { 1417 background-color: #5589AA; 1418 background-image: -webkit-gradient(linear, left bottom, left top, from(#5589AA), to(#619bbb)); 1419 background-image: -webkit-linear-gradient(bottom, #5589AA, #619bbb); 1420 background-image: -moz-linear-gradient(bottom, #5589AA, #619bbb); 1421 background-image: -o-linear-gradient(bottom, #5589AA, #619bbb); 1422 background-image: linear-gradient(bottom, #5589AA, #619bbb); 1427 1423 } 1428 1424 1429 #adminmenu li.wp-has-current-submenu, 1430 #adminmenu li.current.menu-top { 1431 background: #5589aa; 1432 background-image: -webkit-gradient(linear, left bottom, left top, from(#5589aa), to(#619bbb)); 1433 background-image: -webkit-linear-gradient(bottom, #5589aa, #619bbb); 1434 background-image: -moz-linear-gradient(bottom, #5589aa, #619bbb); 1435 background-image: -o-linear-gradient(bottom, #5589aa, #619bbb); 1436 background-image: linear-gradient(to top, #5589aa, #619bbb); 1437 } 1438 1439 #adminmenu li.menu-top li:hover a { 1440 background-image: none; 1441 } 1442 1443 #adminmenu li.wp-has-current-submenu, 1444 #adminmenu li.current.menu-top { 1425 .auto-fold #adminmenu li.wp-has-current-submenu, 1426 .auto-fold #adminmenu li.current.menu-top { 1445 1427 border-top-color: #5A8FAD; 1446 1428 border-bottom-color: #5589AA; 1447 1429 } 1448 1430 1449 #adminmenu .wp-has-current-submenu .wp-submenu-wrap { 1450 -webkit-box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1451 box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1431 .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1432 .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { 1433 background-color: #fff; 1434 border-color: #D0DFE9; 1435 -webkit-box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1436 box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1452 1437 } 1453 1438 1454 #collapse-button div {1439 .auto-fold #collapse-button div { 1455 1440 background-position: 0 -108px; 1456 1441 } … … 2422 2407 } 2423 2408 2424 .rtl #adminmenu .wp-submenu -wrap,2425 .rtl.folded #adminmenu .wp-has-current-submenu .wp-submenu -wrap{2409 .rtl #adminmenu .wp-submenu, 2410 .rtl.folded #adminmenu .wp-has-current-submenu .wp-submenu { 2426 2411 -webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2427 2412 box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2413 } 2414 2415 .rtl #adminmenu .wp-has-current-submenu .wp-submenu { 2416 -webkit-box-shadow: none; 2417 box-shadow: none; 2428 2418 } 2429 2419 … … 2439 2429 /* Auto-folding of the admin menu for RTL */ 2440 2430 @media only screen and (max-width: 900px) { 2441 .rtl #adminmenu .wp-has-current-submenu .wp-submenu-wrap{2431 .rtl.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { 2442 2432 -webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2443 2433 box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2444 2434 } 2445 2435 2446 .rtl #collapse-button div {2436 .rtl.auto-fold #collapse-button div { 2447 2437 background-position: 0 -72px; 2448 2438 } -
trunk/wp-admin/css/colors-fresh.dev.css
r21534 r21574 482 482 #adminmenu a:hover, 483 483 #adminmenu li.menu-top > a:focus, 484 #adminmenu ul.wp-submenu a:hover,484 #adminmenu .wp-submenu a:hover, 485 485 #the-comment-list .comment a:hover, 486 486 #rightnow a:hover, … … 1014 1014 1015 1015 #adminmenu a.menu-top, 1016 .folded #adminmenu li.menu-top,1017 1016 #adminmenu .wp-submenu .wp-submenu-head { 1018 1017 border-top-color: #f9f9f9; … … 1024 1023 } 1025 1024 1026 #adminmenu li.menu-top:hover > a,1027 #adminmenu li. menu-top.focused > a,1028 #adminmenu li .menu-top > a:focus {1025 #adminmenu li.menu-top:hover, 1026 #adminmenu li.opensub > a.menu-top, 1027 #adminmenu li > a.menu-top:focus { 1029 1028 background-color: #e4e4e4; 1029 color: #d54e21; 1030 1030 text-shadow: 0 1px 0 rgba( 255, 255, 255, 0.4 ); 1031 1031 } … … 1096 1096 } 1097 1097 1098 #adminmenu .wp-submenu ul { 1098 #adminmenu .wp-submenu, 1099 .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1100 .folded #adminmenu .wp-has-current-submenu .wp-submenu { 1099 1101 background-color: #fff; 1100 } 1101 1102 #adminmenu .wp-submenu-wrap, 1103 #adminmenu .wp-submenu ul { 1104 border-color: #dfdfdf; 1105 } 1106 1107 #adminmenu .wp-submenu-wrap, 1108 .folded #adminmenu .wp-has-current-submenu .wp-submenu-wrap { 1109 -webkit-box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1110 box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1102 border-color: #dfdfdf; 1103 -webkit-box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1104 box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1111 1105 } 1112 1106 1113 1107 #adminmenu .wp-submenu .wp-submenu-head { 1114 border-right-color: #dfdfdf; 1115 background-color: #ececec; 1116 } 1117 1118 #adminmenu div.wp-submenu { 1119 background-color: transparent; 1108 background-color: #e4e4e4; 1109 color: #333; 1120 1110 } 1121 1111 … … 1123 1113 #collapse-menu { 1124 1114 color: #aaa; 1115 border-top-color: #f9f9f9; 1125 1116 } 1126 1117 … … 1153 1144 /* Auto-folding of the admin menu */ 1154 1145 @media only screen and (max-width: 900px) { 1155 #adminmenu li.menu-top { 1156 border-top-color: #f9f9f9; 1157 border-bottom-color: #dfdfdf; 1158 } 1159 1160 #adminmenu li.wp-has-current-submenu, 1161 #adminmenu li.current.menu-top { 1162 background: #777; 1146 .auto-fold #adminmenu li.wp-has-current-submenu, 1147 .auto-fold #adminmenu li.current.menu-top { 1148 background-color: #777; 1163 1149 background-image: -webkit-gradient(linear, left bottom, left top, from(#6d6d6d), to(#808080)); 1164 1150 background-image: -webkit-linear-gradient(bottom, #6d6d6d, #808080); 1165 background-image: 1166 background-image: 1167 background-image: linear-gradient( to top, #6d6d6d, #808080);1151 background-image: -moz-linear-gradient(bottom, #6d6d6d, #808080); 1152 background-image: -o-linear-gradient(bottom, #6d6d6d, #808080); 1153 background-image: linear-gradient(bottom, #6d6d6d, #808080); 1168 1154 } 1169 1155 1170 #adminmenu li.menu-top li:hover a { 1171 background-image: none; 1172 } 1173 1174 #adminmenu li.wp-has-current-submenu, 1175 #adminmenu li.current.menu-top { 1156 .auto-fold #adminmenu li.wp-has-current-submenu, 1157 .auto-fold #adminmenu li.current.menu-top { 1176 1158 border-top-color: #808080; 1177 1159 border-bottom-color: #6d6d6d; 1178 1160 } 1179 1161 1180 #adminmenu .wp-has-current-submenu .wp-submenu-wrap { 1181 -webkit-box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1182 box-shadow: 2px 2px 5px rgba( 0, 0, 0, 0.4 ); 1162 .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1163 .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { 1164 background-color: #fff; 1165 border-color: #dfdfdf; 1166 -webkit-box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1167 box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4); 1183 1168 } 1184 1169 1185 #collapse-button div {1170 .auto-fold #collapse-button div { 1186 1171 background-position: 0 -108px; 1187 1172 } … … 2070 2055 } 2071 2056 2072 .rtl #adminmenu .wp-submenu -wrap,2073 .rtl.folded #adminmenu .wp-has-current-submenu .wp-submenu -wrap{2057 .rtl #adminmenu .wp-submenu, 2058 .rtl.folded #adminmenu .wp-has-current-submenu .wp-submenu { 2074 2059 -webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2075 2060 box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2061 } 2062 2063 .rtl #adminmenu .wp-has-current-submenu .wp-submenu { 2064 -webkit-box-shadow: none; 2065 box-shadow: none; 2076 2066 } 2077 2067 … … 2087 2077 /* Auto-folding of the admin menu for RTL */ 2088 2078 @media only screen and (max-width: 900px) { 2089 .rtl #adminmenu .wp-has-current-submenu .wp-submenu-wrap{ 2079 .rtl.auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 2080 .rtl.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { 2090 2081 -webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2091 2082 box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 ); 2092 2083 } 2093 2084 2094 .rtl #collapse-button div {2085 .rtl.auto-fold #collapse-button div { 2095 2086 background-position: 0 -72px; 2096 2087 } -
trunk/wp-admin/css/ie-rtl.dev.css
r20272 r21574 28 28 } 29 29 30 #adminmenu .wp-submenu .wp-submenu .wp-submenu -wrap,31 #adminmenu .wp-menu-open .wp-submenu .wp-submenu -wrap{30 #adminmenu .wp-submenu .wp-submenu .wp-submenu, 31 #adminmenu .wp-menu-open .wp-submenu .wp-submenu { 32 32 border: 1px solid #dfdfdf; 33 33 } … … 40 40 #adminmenu .wp-submenu .wp-submenu-head { 41 41 padding: 6px 10px 6px 4px; 42 }43 44 #adminmenu .wp-menu-arrow {45 display: none !important;46 42 } 47 43 -
trunk/wp-admin/css/ie.dev.css
r21547 r21574 75 75 } 76 76 77 #adminmenu li.wp-not-current-submenu:hover.wp-menu-arrow {78 display: none ;79 } 80 81 # wpcontent #adminmenu .wp-submenu li.wp-submenu-head {82 padding: 3px 4px 4px 10px;77 #adminmenu .wp-menu-arrow { 78 display: none !important; 79 } 80 81 #adminmenu .wp-submenu li.wp-submenu-head { 82 padding: 6px 4px 7px 10px; 83 83 zoom: 100%; 84 84 } … … 86 86 .js.folded #adminmenu .menu-top { 87 87 height: 30px; 88 }89 90 .js.folded #adminmenu .wp-submenu {91 margin: -1px 0 0 0;92 88 } 93 89 -
trunk/wp-admin/css/wp-admin-rtl.dev.css
r21465 r21574 343 343 ------------------------------------------------------------------------------*/ 344 344 345 .folded #wpcontent { 346 margin-left: 0; 347 margin-right: 52px; 348 } 349 350 .folded.wp-admin #footer { 351 margin-left: 15px; 352 margin-right: 52px; 353 } 354 345 355 #adminmenuback, 346 356 #adminmenuwrap { … … 358 368 } 359 369 360 .folded #adminmenu .wp-submenu, 361 .folded #adminmenu .wp-has-current-submenu .wp-submenu { 370 371 .folded #adminmenu .wp-submenu.sub-open, 372 .folded #adminmenu .opensub .wp-submenu, 373 .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 374 .folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, 375 .folded #adminmenu a.menu-top:focus + .wp-submenu, 376 .folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, 377 .no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { 362 378 left: auto; 363 right: 26px; 364 } 365 366 #adminmenu .wp-submenu.sub-open, 367 #adminmenu li.focused.wp-not-current-submenu .wp-submenu, 368 .folded #adminmenu li.focused.wp-has-current-submenu .wp-submenu, 369 .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 370 .no-js #adminmenu .wp-has-submenu:hover .wp-submenu, 371 .no-js.folded #adminmenu .wp-has-current-submenu:hover .wp-submenu { 372 padding: 0 0 8px 8px; 373 } 374 375 #adminmenu div.wp-menu-image { 376 float: right; 377 } 378 379 #adminmenu li li { 380 margin-left: 0; 381 margin-right: 8px 379 right: 32px; 380 } 381 382 #adminmenu div.wp-menu-image, 383 .folded #adminmenu div.wp-menu-image { 384 float: right; 385 width: 30px; 382 386 } 383 387 … … 392 396 padding-left: 0; 393 397 padding-right: 18px; 394 }395 396 .folded #adminmenu li li {397 margin-left: inherit;398 margin-right: 0399 }400 401 .folded #adminmenu li li a {402 padding-left: inherit;403 padding-right: 0404 398 } 405 399 … … 445 439 446 440 #adminmenu .wp-menu-image img { 447 float: right; 448 padding: 5px 2px 0 0; 441 padding: 7px 7px 0 0; 449 442 } 450 443 451 444 #adminmenu .wp-submenu .wp-submenu-head { 452 445 padding: 6px 10px 5px 4px; 453 } 454 455 #adminmenu li .wp-submenu-wrap { 456 border-width: 1px 0 1px 1px; 457 border-style: solid none solid solid; 446 -webkit-border-top-right-radius: 0; 447 -webkit-border-top-left-radius: 3px; 448 border-top-right-radius: 0; 449 border-top-left-radius: 3px; 450 } 451 452 .folded #adminmenu li.wp-has-current-submenu .wp-submenu { 453 border-width: 1px; 454 border-style: solid; 458 455 -webkit-border-bottom-right-radius: 0; 459 456 -webkit-border-bottom-left-radius: 3px; … … 466 463 } 467 464 468 .folded #adminmenu .wp-submenu ul {469 border-width: 0 1px 0 0;470 }471 472 .folded #adminmenu .wp-submenu a {473 padding-left: 0;474 padding-right: 10px;475 }476 477 .folded #adminmenu a.wp-has-submenu {478 margin-left: 0;479 margin-right: 40px;480 }481 482 465 #adminmenu .awaiting-mod, 483 466 #adminmenu span.update-plugins, … … 494 477 /* Auto-folding of the admin menu */ 495 478 @media only screen and (max-width: 900px) { 496 #adminmenu li .wp-submenu, 497 #adminmenu .wp-has-current-submenu .wp-submenu { 479 .auto-fold #wpcontent { 480 margin-left: 0; 481 margin-right: 52px; 482 } 483 484 .auto-fold.wp-admin #footer { 485 margin-left: 15px; 486 margin-right: 52px; 487 } 488 489 .auto-fold #adminmenu .wp-submenu.sub-open, 490 .auto-fold #adminmenu .opensub .wp-submenu, 491 .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 492 .auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, 493 .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, 494 .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, 495 .no-js.auto-fold #adminmenu .wp-has-submenu:hover .wp-submenu { 498 496 left: auto; 499 right: 26px;497 right: 32px; 500 498 } 501 499 502 #adminmenu li.focused.wp-has-current-submenu .wp-submenu, 503 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open { 504 padding: 0 0 8px 8px; 505 } 506 507 .folded #adminmenu .wp-not-current-submenu li a { 500 .auto-fold #adminmenu .wp-not-current-submenu li a { 508 501 padding-left: 0; 509 502 padding-right: 12px; 510 503 } 511 504 512 #adminmenu li li, 513 #adminmenu li li a { 514 padding-left: inherit; 515 padding-right: 0 516 } 517 518 .wp-menu-arrow { 505 .auto-fold .wp-menu-arrow { 519 506 -moz-transform: translate( -27px ); 520 507 -webkit-transform: translate( -27px ); … … 524 511 } 525 512 526 #adminmenu .wp-submenu ul { 527 border-width: 0 1px 0 0; 528 } 529 530 #adminmenu .wp-submenu a { 531 padding-left: 0; 532 padding-right: 10px; 533 } 534 535 #adminmenu a.wp-has-submenu { 536 margin-left: 0; 537 margin-right: 40px; 538 } 539 540 body #wpcontent { 541 margin-left: 0; 542 margin-right: 52px; 543 } 544 545 body .wp-admin #footer { 546 margin-left: 15px; 547 margin-right: 52px; 513 .auto-fold #adminmenu li.wp-has-current-submenu .wp-submenu { 514 border-width: 1px; 515 border-style: solid; 516 -webkit-border-bottom-right-radius: 0; 517 -webkit-border-bottom-left-radius: 3px; 518 -webkit-border-top-right-radius: 0; 519 -webkit-border-top-left-radius: 3px; 520 border-bottom-right-radius: 0; 521 border-bottom-left-radius: 3px; 522 border-top-right-radius: 0; 523 border-top-left-radius: 3px; 548 524 } 549 525 } … … 1640 1616 margin-left: 0; 1641 1617 margin-right: 165px; 1642 }1643 1644 .folded #wpcontent {1645 margin-left: 0;1646 margin-right: 52px;1647 }1648 1649 .folded.wp-admin #footer {1650 margin-left: 15px;1651 margin-right: 52px;1652 1618 } 1653 1619 -
trunk/wp-admin/css/wp-admin.dev.css
r21547 r21574 77 77 #adminmenuwrap, 78 78 #adminmenu, 79 #adminmenu .wp-submenu, 80 #adminmenu .wp-submenu-wrap, 81 .folded #adminmenu .wp-has-current-submenu .wp-submenu { 79 #adminmenu .wp-submenu { 82 80 width: 145px; 83 81 } … … 1331 1329 } 1332 1330 1331 #adminmenu li { 1332 margin: 0; 1333 padding: 0; 1334 cursor: pointer; 1335 } 1336 1337 #adminmenu a { 1338 display: block; 1339 line-height: 18px; 1340 padding: 2px 5px; 1341 } 1342 1343 #adminmenu li.menu-top { 1344 min-height: 28px; 1345 position: relative; 1346 } 1347 1333 1348 #adminmenu .wp-submenu { 1334 1349 list-style: none; 1335 padding: 0;1350 padding: 4px 0; 1336 1351 margin: 0; 1337 overflow: hidden;1338 }1339 1340 #adminmenu li .wp-submenu,1341 .folded #adminmenu .wp-has-current-submenu .wp-submenu {1342 display: none;1343 1352 position: absolute; 1344 top: -1 px;1353 top: -1000em; 1345 1354 left: 146px; 1346 1355 z-index: 999; 1347 overflow: hidden; 1348 } 1349 1350 .js #adminmenu .wp-submenu.sub-open, 1351 .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 1352 .no-js #adminmenu .wp-has-submenu:hover .wp-submenu, 1356 overflow: visible; 1357 border-width: 1px; 1358 border-style: solid; 1359 -webkit-border-bottom-right-radius: 3px; 1360 -webkit-border-top-right-radius: 3px; 1361 border-bottom-right-radius: 3px; 1362 border-top-right-radius: 3px; 1363 } 1364 1365 .js #adminmenu .sub-open, 1366 .js #adminmenu .opensub .wp-submenu, 1367 #adminmenu a.menu-top:focus + .wp-submenu, 1368 .no-js li.wp-has-submenu:hover .wp-submenu { 1369 top: -1px; 1370 } 1371 1353 1372 #adminmenu .wp-has-current-submenu .wp-submenu, 1354 #adminmenu li.focused .wp-submenu { 1355 display: block; 1356 } 1357 1358 #adminmenu .wp-has-current-submenu .wp-submenu { 1373 .no-js li.wp-has-current-submenu:hover .wp-submenu, 1374 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1375 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 1376 #adminmenu .wp-has-current-submenu.opensub .wp-submenu { 1359 1377 position: relative; 1360 1378 z-index: 2; … … 1363 1381 right: auto; 1364 1382 bottom: auto; 1365 padding: 0; 1366 } 1367 1368 #adminmenu .wp-has-current-submenu .wp-submenu-wrap { 1383 border: 0 none; 1384 1369 1385 -webkit-box-shadow: none; 1370 1386 box-shadow: none; 1371 1387 } 1372 1388 1373 .folded #adminmenu .wp-submenu, 1389 .folded #adminmenu .wp-submenu.sub-open, 1390 .folded #adminmenu .opensub .wp-submenu, 1391 .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 1392 .folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, 1393 .folded #adminmenu a.menu-top:focus + .wp-submenu, 1394 .folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, 1395 .no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { 1396 top: -1px; 1397 left: 32px; 1398 } 1399 1400 .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1374 1401 .folded #adminmenu .wp-has-current-submenu .wp-submenu { 1375 top: -5px; 1376 left: 26px; 1377 } 1378 1379 #adminmenu .wp-submenu.sub-open, 1380 #adminmenu li.focused.wp-not-current-submenu .wp-submenu, 1381 .folded #adminmenu li.focused.wp-has-current-submenu .wp-submenu, 1382 .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 1383 .no-js #adminmenu .wp-has-submenu:hover .wp-submenu, 1384 .no-js.folded #adminmenu .wp-has-current-submenu:hover .wp-submenu { 1385 padding: 0 8px 8px 0; 1386 } 1387 1388 .no-js #adminmenu .wp-has-current-submenu:hover .wp-submenu, 1389 #adminmenu .wp-has-current-submenu .wp-submenu { 1390 padding: 0; 1402 border-width: 1px; 1403 border-style: solid; 1404 position: absolute; 1405 top: -1000em; 1391 1406 } 1392 1407 … … 1394 1409 font-size: 12px; 1395 1410 line-height: 18px; 1411 margin: 0; 1412 padding-left: 12px; 1413 } 1414 1415 #adminmenu .wp-not-current-submenu li > a { 1416 padding-left: 16px; 1417 } 1418 1419 #adminmenu .wp-has-current-submenu ul > li > a, 1420 .folded #adminmenu li.menu-top .wp-submenu > li > a { 1421 padding-left: 12px; 1396 1422 } 1397 1423 … … 1399 1425 #adminmenu .wp-submenu-head { 1400 1426 font-size: 13px; 1427 font-weight: bold; 1401 1428 line-height: 18px; 1402 } 1403 1404 #adminmenu div.wp-submenu-head { 1429 padding: 0; 1430 } 1431 1432 #adminmenu .wp-submenu-head, 1433 .folded #adminmenu .wp-menu-name { 1405 1434 display: none; 1406 1435 } 1407 1436 1408 .folded #adminmenu div.wp-submenu-head {1437 .folded #adminmenu .wp-submenu-head { 1409 1438 display: block; 1410 1439 } 1411 1440 1412 .folded #adminmenu a.menu-top { 1413 display: none; 1441 #adminmenu .wp-submenu li { 1442 padding: 0; 1443 margin: 0; 1444 overflow: hidden; 1445 } 1446 1447 #adminmenu a.menu-top { 1448 border-width: 1px 0; 1449 border-style: solid none; 1450 } 1451 1452 #adminmenu .wp-menu-image img { 1453 padding: 7px 0 0 7px; 1454 opacity: 0.6; 1455 filter: alpha(opacity=60); 1456 } 1457 1458 #adminmenu div.wp-menu-name { 1459 padding: 5px; 1414 1460 } 1415 1461 … … 1418 1464 width: 28px; 1419 1465 height: 28px; 1466 margin-top: -1px; 1420 1467 } 1421 1468 1422 1469 .folded #adminmenu div.wp-menu-image { 1423 width: 30px; 1424 } 1425 1426 #adminmenu li { 1427 margin: 0; 1428 padding: 0; 1429 cursor: pointer; 1430 } 1431 1432 #adminmenu a { 1433 display: block; 1434 line-height: 18px; 1435 padding: 2px 5px; 1436 } 1437 1438 #adminmenu li.menu-top { 1439 min-height: 29px; 1440 position: relative; 1441 } 1442 1443 #adminmenu a.menu-top { 1444 font-weight: bold; 1445 line-height: 18px; 1446 min-width: 10em; 1447 padding: 5px 5px; 1448 border-width: 1px 0 1px; 1449 border-style: solid; 1450 } 1451 1452 #adminmenu li.wp-menu-open { 1453 border-width: 0 0 1px; 1454 border-style: solid; 1455 } 1456 1457 #adminmenu .wp-submenu ul { 1458 padding: 4px 0; 1459 } 1460 1461 #adminmenu .wp-submenu a { 1462 margin: 0; 1463 } 1464 1465 #adminmenu li li { 1466 margin-left: 8px; 1467 } 1468 1469 #adminmenu .wp-submenu a, 1470 #adminmenu li li a, 1471 .folded #adminmenu .wp-not-current-submenu li a { 1472 padding-left: 12px; 1473 } 1474 1475 #adminmenu .wp-not-current-submenu li a { 1476 padding-left: 18px; 1477 } 1478 1479 .folded #adminmenu li li { 1480 margin-left: 0; 1481 } 1482 1483 .folded #adminmenu li li a { 1484 padding-left: 0; 1470 width: 32px; 1471 margin-top: 0; 1472 position: absolute; 1473 z-index: 25; 1474 } 1475 1476 .folded #adminmenu a.menu-top { 1477 height: 29px; 1485 1478 } 1486 1479 1487 1480 .wp-menu-arrow { 1488 1481 display: none; 1489 cursor: auto;1490 1482 z-index: 25; 1491 1483 position: absolute; … … 1500 1492 -ms-transform: translate( 146px ); 1501 1493 transform: translate( 146px ); 1502 }1503 1504 #adminmenu li.wp-has-current-submenu .wp-menu-arrow,1505 #adminmenu li.menu-top:hover .wp-menu-arrow,1506 #adminmenu li.current .wp-menu-arrow,1507 #adminmenu li.focused .wp-menu-arrow,1508 #adminmenu li.menu-top.wp-has-submenu:hover .wp-menu-arrow div {1509 display: block;1510 }1511 1512 #adminmenu li.wp-not-current-submenu:hover .wp-menu-arrow div {1513 display: none;1514 }1515 1516 #adminmenu li.menu-top:hover .wp-menu-arrow,1517 #adminmenu li.menu-top.focused .wp-menu-arrow {1518 z-index: 1001;1519 }1520 1521 .ie8 #adminmenu li.menu-top:hover .wp-menu-arrow {1522 display: none;1523 1494 } 1524 1495 … … 1546 1517 border-width: 1px 0; 1547 1518 border-style: solid; 1519 top: 0; 1548 1520 } 1549 1521 … … 1556 1528 } 1557 1529 1530 #adminmenu li.wp-has-current-submenu .wp-menu-arrow, 1531 #adminmenu a.menu-top:focus .wp-menu-arrow, 1532 .no-js #adminmenu li.wp-has-submenu:hover .wp-menu-arrow, 1533 #adminmenu li.current .wp-menu-arrow, 1534 #adminmenu li.wp-has-submenu.opensub .wp-menu-arrow { 1535 display: block; 1536 } 1537 1538 #adminmenu li.current .wp-menu-arrow, 1539 #adminmenu li.wp-menu-open .wp-menu-arrow { 1540 top: 0; 1541 } 1542 1543 .no-js #adminmenu li.wp-has-submenu:hover .wp-menu-arrow, 1544 #adminmenu .opensub a.wp-has-submenu .wp-menu-arrow, 1545 #adminmenu a.wp-has-submenu:focus .wp-menu-arrow { 1546 z-index: 1001; 1547 } 1548 1549 .ie8 #adminmenu li.menu-top:hover .wp-menu-arrow { 1550 display: none; 1551 } 1552 1558 1553 #adminmenu .wp-not-current-submenu .wp-menu-arrow div { 1559 1554 width: 15px; … … 1564 1559 1565 1560 .wp-menu-arrow, 1566 .folded #adminmenu li.menu-top:hover .wp-menu-arrow { 1561 .folded #adminmenu li.wp-not-current-submenu .wp-menu-arrow, 1562 .no-js #adminmenu li.wp-not-current-submenu:hover .wp-menu-arrow { 1567 1563 display: none; 1568 1564 } 1569 1565 1570 .folded #adminmenu li.current :hover.wp-menu-arrow,1571 .folded #adminmenu li. menu-top.wp-menu-open:hover.wp-menu-arrow {1566 .folded #adminmenu li.current .wp-menu-arrow, 1567 .folded #adminmenu li.wp-menu-open .wp-menu-arrow { 1572 1568 display: block; 1573 z-index: 125; 1574 } 1575 1576 #adminmenu .wp-submenu li { 1577 padding: 0; 1578 margin: 0; 1579 } 1580 1581 .folded #adminmenu li.menu-top { 1582 border-width: 1px 0; 1583 border-style: solid none; 1584 } 1585 1586 #adminmenu .wp-menu-image img { 1587 float: left; 1588 padding: 5px 0 0 2px; 1589 opacity: 0.6; 1590 filter: alpha(opacity=60); 1569 top: 1px; 1591 1570 } 1592 1571 … … 1615 1594 #adminmenu .wp-submenu .wp-submenu-head { 1616 1595 padding: 6px 4px 5px 10px; 1617 cursor: default;1596 margin: -4px -1px 4px; 1618 1597 border-width: 1px 0; 1619 1598 border-style: solid; 1620 }1621 1622 #adminmenu li .wp-submenu-wrap {1623 border-width: 1px 1px 1px 0;1624 border-style: solid solid solid none;1625 position: relative;1626 -webkit-border-bottom-right-radius: 3px;1627 1599 -webkit-border-top-right-radius: 3px; 1628 border-bottom-right-radius: 3px;1629 1600 border-top-right-radius: 3px; 1630 1601 } 1631 1602 1632 #adminmenu li.wp-menu-open .wp-submenu-wrap { 1603 #adminmenu li.wp-menu-open { 1604 border-width: 0 0 1px; 1605 border-style: solid; 1606 } 1607 1608 #adminmenu li.current, 1609 .folded #adminmenu li.wp-menu-open { 1633 1610 border: 0 none; 1634 1611 } 1635 1612 1636 .folded #adminmenu .wp-submenu .wp-submenu-wrap { 1637 margin-top: 3px; 1638 } 1639 1640 .folded #adminmenu .wp-has-current-submenu { 1613 .folded #adminmenu li.wp-has-current-submenu { 1641 1614 margin-bottom: 1px; 1642 1615 } … … 1644 1617 .folded #adminmenu .wp-has-current-submenu.menu-top-last { 1645 1618 margin-bottom: 0; 1646 }1647 1648 .folded #adminmenu .wp-has-current-submenu .wp-submenu-wrap {1649 margin-top: 4px;1650 }1651 1652 .folded #adminmenu .wp-submenu ul {1653 border-width: 0 0 0 1px;1654 border-style: solid;1655 }1656 1657 .folded #adminmenu .wp-submenu a {1658 padding-left: 10px;1659 }1660 1661 .folded #adminmenu a.wp-has-submenu {1662 margin-left: 40px;1663 }1664 1665 #adminmenu .wp-menu-image a {1666 height: 24px;1667 1619 } 1668 1620 … … 1697 1649 font-size: 12px; 1698 1650 line-height: 34px; 1651 border-width: 1px 0 0; 1652 border-style: solid; 1699 1653 } 1700 1654 … … 1720 1674 /* Auto-folding of the admin menu */ 1721 1675 @media only screen and (max-width: 900px) { 1722 #wpcontent,1723 #footer {1676 .auto-fold #wpcontent, 1677 .auto-fold #footer { 1724 1678 margin-left: 52px; 1725 1679 } 1726 1680 1727 #adminmenuback,1728 #adminmenuwrap,1729 #adminmenu,1730 #adminmenu li.menu-top {1681 .auto-fold #adminmenuback, 1682 .auto-fold #adminmenuwrap, 1683 .auto-fold #adminmenu, 1684 .auto-fold #adminmenu li.menu-top { 1731 1685 width: 32px; 1732 1686 } 1733 1687 1734 #adminmenu .wp-has-current-submenu .wp-submenu { 1688 .auto-fold #adminmenu .wp-submenu.sub-open, 1689 .auto-fold #adminmenu .opensub .wp-submenu, 1690 .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, 1691 .auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, 1692 .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, 1693 .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { 1694 top: -1px; 1695 left: 32px; 1696 } 1697 1698 .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, 1699 .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { 1700 border-width: 1px; 1701 border-style: solid; 1702 position: absolute; 1703 top: -1000em; 1704 } 1705 1706 .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { 1707 padding-left: 12px; 1708 } 1709 1710 .auto-fold #adminmenu .wp-menu-name { 1735 1711 display: none; 1736 position: absolute;1737 width: 145px;1738 z-index: 999;1739 overflow: hidden;1740 1712 } 1741 1713 1742 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open{1714 .auto-fold #adminmenu .wp-submenu-head { 1743 1715 display: block; 1744 1716 } 1745 1717 1746 #adminmenu li .wp-submenu, 1747 #adminmenu .wp-has-current-submenu .wp-submenu { 1748 top: -5px; 1749 left: 26px; 1718 .auto-fold #adminmenu div.wp-menu-image { 1719 width: 32px; 1720 margin-top: 0; 1721 position: absolute; 1722 z-index: 25; 1750 1723 } 1751 1724 1752 #adminmenu li.focused.wp-has-current-submenu .wp-submenu, 1753 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open { 1754 padding: 0 8px 8px 0; 1725 .auto-fold #adminmenu a.menu-top { 1726 height: 29px; 1755 1727 } 1756 1728 1757 #adminmenu div.wp-submenu-head { 1758 display: block; 1759 } 1760 1761 #adminmenu a.menu-top { 1762 display: none; 1763 } 1764 1765 #adminmenu div.wp-menu-image { 1766 width: 30px; 1767 } 1768 1769 #adminmenu .wp-not-current-submenu li a { 1770 padding-left: 12px; 1771 } 1772 1773 #adminmenu li li { 1774 margin-left: 0; 1775 } 1776 1777 #adminmenu li li a { 1778 padding-left: 0; 1779 } 1780 1781 .wp-menu-arrow { 1729 .auto-fold .wp-menu-arrow { 1782 1730 -moz-transform: translate( 33px ); 1783 1731 -webkit-transform: translate( 33px ); … … 1787 1735 } 1788 1736 1789 #adminmenu li.menu-top:hover.wp-menu-arrow {1737 .auto-fold #adminmenu li.wp-not-current-submenu .wp-menu-arrow { 1790 1738 display: none; 1791 1739 } 1792 1740 1793 #adminmenu li.current:hover.wp-menu-arrow,1794 #adminmenu li.menu-top.wp-menu-open:hover.wp-menu-arrow {1741 .auto-fold #adminmenu li.current .wp-menu-arrow, 1742 .auto-fold #adminmenu li.wp-menu-open .wp-menu-arrow { 1795 1743 display: block; 1796 z-index: 125;1744 top: 1px; 1797 1745 } 1798 1746 1799 #adminmenu li.menu-top { 1800 border-width: 1px 0; 1801 border-style: solid none; 1747 .auto-fold #adminmenu li.wp-menu-open { 1748 border: 0 none; 1802 1749 } 1803 1750 1804 #adminmenu .wp-submenu .wp-submenu-wrap { 1805 margin-top: 3px; 1806 } 1807 1808 #adminmenu .wp-has-current-submenu { 1751 .auto-fold #adminmenu li.wp-has-current-submenu { 1809 1752 margin-bottom: 1px; 1810 1753 } 1811 1754 1812 #adminmenu .wp-has-current-submenu.menu-top-last {1755 .auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { 1813 1756 margin-bottom: 0; 1814 1757 } 1815 1758 1816 #adminmenu .wp-has-current-submenu .wp-submenu-wrap { 1817 margin-top: 4px; 1818 } 1819 1820 #adminmenu .wp-submenu ul { 1821 border-width: 0 0 0 1px; 1822 border-style: solid; 1823 } 1824 1825 #adminmenu .wp-submenu a { 1826 padding-left: 10px; 1827 } 1828 1829 #adminmenu a.wp-has-submenu { 1830 margin-left: 40px; 1831 } 1832 1833 #collapse-menu { 1759 .auto-fold #collapse-menu span { 1834 1760 display: none; 1835 1761 } -
trunk/wp-admin/js/common.dev.js
r21529 r21574 162 162 $(document).ready( function() { 163 163 var lastClicked = false, checks, first, last, checked, menu = $('#adminmenu'), 164 pageInput = $('input.current-page'), currentPage = pageInput.val(), refresh; 165 166 // admin menu 167 refresh = function(i, el){ // force the browser to refresh the tabbing index 168 var node = $(el), tab = node.attr('tabindex'); 169 if ( tab ) 170 node.attr('tabindex', '0').attr('tabindex', tab); 171 }; 172 173 $('#collapse-menu', menu).click(function(){ 164 pageInput = $('input.current-page'), currentPage = pageInput.val(); 165 166 // when the menu is folded, make the fly-out submenu header clickable 167 menu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){ 168 $(e.target).parent().siblings('a').get(0).click(); 169 }); 170 171 $('#collapse-menu').on('click.collapse-menu', function(e){ 174 172 var body = $(document.body); 175 173 … … 177 175 $('#adminmenu div.wp-submenu').css('margin-top', ''); 178 176 179 if ( body.hasClass('folded') ) { 180 body.removeClass('folded'); 181 setUserSetting('mfold', 'o'); 177 if ( $(window).width() < 900 ) { 178 if ( body.hasClass('auto-fold') ) { 179 body.removeClass('auto-fold'); 180 setUserSetting('unfold', 1); 181 body.removeClass('folded'); 182 deleteUserSetting('mfold'); 183 } else { 184 body.addClass('auto-fold'); 185 deleteUserSetting('unfold'); 186 } 182 187 } else { 183 body.addClass('folded'); 184 setUserSetting('mfold', 'f'); 185 } 186 return false; 188 if ( body.hasClass('folded') ) { 189 body.removeClass('folded'); 190 deleteUserSetting('mfold'); 191 } else { 192 body.addClass('folded'); 193 setUserSetting('mfold', 'f'); 194 } 195 } 187 196 }); 188 197 … … 191 200 var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop; 192 201 193 if ( m.is(':visible'))202 if ( parseInt( m.css('top'), 10 ) > -5 ) 194 203 return; 195 204 … … 214 223 m.css('margin-top', ''); 215 224 216 menu.find(' .wp-submenu').removeClass('sub-open');217 m.addClass('sub-open');225 menu.find('li.menu-top').removeClass('opensub'); 226 $(this).addClass('opensub'); 218 227 }, 219 228 out: function(){ 220 $(this). find('.wp-submenu').removeClass('sub-open').css('margin-top', '');229 $(this).removeClass('opensub').find('.wp-submenu').css('margin-top', ''); 221 230 }, 222 231 timeout: 200, … … 225 234 }); 226 235 227 // Tab to select, Enter to open sub, Esc to close sub and focus the top menu 228 $('li.wp-has-submenu > a.wp-not-current-submenu', menu).bind('keydown.adminmenu', function(e){ 229 if ( e.which != 13 ) 230 return; 231 232 var target = $(e.target); 233 234 e.stopPropagation(); 235 e.preventDefault(); 236 237 menu.find('.wp-submenu').removeClass('sub-open'); 238 target.siblings('.wp-submenu').toggleClass('sub-open').find('a[role="menuitem"]').each(refresh); 239 }).each(refresh); 240 241 $('a[role="menuitem"]', menu).bind('keydown.adminmenu', function(e){ 242 if ( e.which != 27 ) 243 return; 244 245 var target = $(e.target); 246 247 e.stopPropagation(); 248 e.preventDefault(); 249 250 target.add( target.siblings() ).closest('.sub-open').removeClass('sub-open').siblings('a.wp-not-current-submenu').focus(); 236 menu.on('focus.adminmenu', '.wp-submenu a', function(e){ 237 $(e.target).closest('li.menu-top').addClass('opensub'); 238 }).on('blur.adminmenu', '.wp-submenu a', function(e){ 239 $(e.target).closest('li.menu-top').removeClass('opensub'); 251 240 }); 252 241 -
trunk/wp-admin/menu-header.php
r21311 r21574 88 88 if ( ! empty( $menu_hook ) || ( ('index.php' != $submenu_items[0][2]) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) ) ) { 89 89 $admin_is_parent = true; 90 echo "< div class='wp-menu-image'><a href='admin.php?page={$submenu_items[0][2]}' tabindex='-1' aria-label='$aria_label'>$img</a></div>$arrow<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$title</a>";90 echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image'>$img</div><div class='wp-menu-name'>$title</div></a>"; 91 91 } else { 92 echo "\n\t< div class='wp-menu-image'><a href='{$submenu_items[0][2]}' tabindex='-1' aria-label='$aria_label'>$img</a></div>$arrow<a href='{$submenu_items[0][2]}'$class $aria_attributes>$title</a>";92 echo "\n\t<a href='{$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image'>$img</div><div class='wp-menu-name'>$title</div></a>"; 93 93 } 94 94 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { … … 99 99 if ( ! empty( $menu_hook ) || ( ('index.php' != $item[2]) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) ) ) { 100 100 $admin_is_parent = true; 101 echo "\n\t< div class='wp-menu-image'><a href='admin.php?page={$item[2]}' tabindex='-1' aria-label='$aria_label'>$img</a></div>$arrow<a href='admin.php?page={$item[2]}'$class $aria_attributes>{$item[0]}</a>";101 echo "\n\t<a href='admin.php?page={$item[2]}'$class $aria_attributes>$arrow<div class='wp-menu-image'>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>"; 102 102 } else { 103 echo "\n\t< div class='wp-menu-image'><a href='{$item[2]}' tabindex='-1' aria-label='$aria_label'>$img</a></div>$arrow<a href='{$item[2]}'$class $aria_attributes>{$item[0]}</a>";103 echo "\n\t<a href='{$item[2]}'$class $aria_attributes>$arrow<div class='wp-menu-image'>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>"; 104 104 } 105 105 } 106 106 107 107 if ( ! empty( $submenu_items ) ) { 108 echo "\n\t<div class='wp-submenu'><div class='wp-submenu-wrap'>"; 109 echo "<div class='wp-submenu-head'>{$item[0]}</div><ul>"; 108 echo "\n\t<ul class='wp-submenu wp-submenu-wrap'>"; 109 echo "<li class='wp-submenu-head'>{$item[0]}</li>"; 110 110 111 $first = true; 111 112 foreach ( $submenu_items as $sub_key => $sub_item ) { … … 161 162 } 162 163 } 163 echo "</ul> </div></div>";164 echo "</ul>"; 164 165 } 165 166 echo "</li>";
Note: See TracChangeset
for help on using the changeset viewer.