Ticket #32253: 32253.2.patch
File 32253.2.patch, 5.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/list-tables.css
495 495 } 496 496 497 497 /* Bulk Actions */ 498 .tablenav-pages a { 498 .tablenav-pages a, 499 .tablenav-pages-navspan { 499 500 font-weight: 600; 500 501 margin-right: 1px; 501 502 padding: 0 2px; … … 504 505 padding-top: 0; 505 506 text-align: center; 506 507 } 507 .tablenav-pages .next-page {508 margin-left: 2px;509 }510 508 511 509 .tablenav a.button-secondary { 512 510 display: block; … … 539 537 display: none; 540 538 } 541 539 540 .tablenav .pagination-links { 541 display: inline-block; 542 min-width: 205px; 543 text-align: right; 544 } 545 546 .tablenav.bottom .pagination-links { 547 min-width: 165px; 548 } 549 542 550 .tablenav .tablenav-pages a, 543 551 .tablenav-pages span.current { 544 552 text-decoration: none; … … 545 553 padding: 3px 6px; 546 554 } 547 555 548 .tablenav .tablenav-pages a { 549 padding: 0 10px 3px; 550 background: #eee; 551 background: rgba( 0, 0, 0, 0.05 ); 556 .tablenav .tablenav-pages a, 557 .tablenav-pages-navspan { 558 display: inline-block; 559 width: 7px; 560 padding: 3px 10px 7px; 561 background: #e4e4e4; 552 562 font-size: 16px; 553 563 font-weight: normal; 564 line-height: 1; 565 text-align: center; 566 vertical-align: middle; 554 567 } 555 568 569 .tablenav .paging-input { 570 display: inline-block; 571 margin-right: 2px; 572 vertical-align: middle; 573 } 574 575 .tablenav-pages-navspan { 576 height: 16px; 577 /*visibility: hidden;*/ 578 } 579 556 580 .tablenav .tablenav-pages a:hover, 557 581 .tablenav .tablenav-pages a:focus { 558 582 color: #fff; … … 559 583 background: #00a0d2; 560 584 } 561 585 562 .tablenav .tablenav-pages a.disabled,563 .tablenav .tablenav-pages a.disabled:hover,564 .tablenav .tablenav-pages a.disabled:focus,565 .tablenav .tablenav-pages a.disabled:active {566 color: #a0a5aa;567 background: #eee;568 background: rgba( 0, 0, 0, 0.05 );569 }570 571 586 .tablenav .displaying-num { 572 587 margin-right: 7px; 573 588 color: #777; … … 1598 1613 font-size: 18px; 1599 1614 } 1600 1615 1601 .tablenav-pages .pagination-links a { 1602 padding: 8px 20px 11px; 1616 .tablenav-pages .pagination-links a, 1617 .tablenav-pages-navspan { 1618 padding: 10px 17px 13px; 1603 1619 font-size: 18px; 1604 background: rgba(0, 0, 0, 0.05);1605 1620 } 1606 1621 1622 .tablenav-pages-navspan { 1623 height: 18px; 1624 } 1625 1607 1626 .tablenav-pages .pagination-links .current-page { 1608 1627 padding: 10px; 1609 1628 font-size: 14px; -
src/wp-admin/includes/class-wp-list-table.php
696 696 697 697 $page_links = array(); 698 698 699 $disable_first = $disable_last = ''; 699 $disable_first = $disable_last = $disable_prev = $disable_next = false; 700 700 701 if ( $current == 1 ) { 701 $disable_first = ' disabled'; 702 $disable_first = true; 703 $disable_prev = true; 702 704 } 705 if ( $current == 2 ) { 706 $disable_first = true; 707 } 703 708 if ( $current == $total_pages ) { 704 $disable_last = ' disabled'; 709 $disable_last = true; 710 $disable_next = true; 705 711 } 706 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 707 'first-page' . $disable_first, 708 esc_attr__( 'Go to the first page' ), 709 esc_url( remove_query_arg( 'paged', $current_url ) ), 710 '«' 711 ); 712 if ( $current == $total_pages - 1 ) { 713 $disable_last = true; 714 } 712 715 713 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 714 'prev-page' . $disable_first, 715 esc_attr__( 'Go to the previous page' ), 716 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 717 '‹' 718 ); 716 $navspan = '<span class="tablenav-pages-navspan"></span>'; 719 717 718 if ( $disable_first ) { 719 $page_links[] = $navspan; 720 } else { 721 $page_links[] = sprintf( "<a class='first-page' title='%s' href='%s'>%s</a>", 722 esc_attr__( 'Go to the first page' ), 723 esc_url( remove_query_arg( 'paged', $current_url ) ), 724 '«' 725 ); 726 } 727 728 if ( $disable_prev ) { 729 $page_links[] = $navspan; 730 } else { 731 $page_links[] = sprintf( "<a class='prev-page' title='%s' href='%s'>%s</a>", 732 esc_attr__( 'Go to the previous page' ), 733 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 734 '‹' 735 ); 736 } 737 720 738 if ( 'bottom' == $which ) { 721 739 $html_current_page = $current; 722 740 } else { … … 730 748 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 731 749 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>'; 732 750 733 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 734 'next-page' . $disable_last, 735 esc_attr__( 'Go to the next page' ), 736 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 737 '›' 738 ); 751 if ( $disable_next ) { 752 $page_links[] = $navspan; 753 } else { 754 $page_links[] = sprintf( "<a class='next-page' title='%s' href='%s'>%s</a>", 755 esc_attr__( 'Go to the next page' ), 756 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 757 '›' 758 ); 759 } 739 760 740 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 741 'last-page' . $disable_last, 742 esc_attr__( 'Go to the last page' ), 743 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 744 '»' 745 ); 761 if ( $disable_last ) { 762 $page_links[] = $navspan; 763 } else { 764 $page_links[] = sprintf( "<a class='last-page' title='%s' href='%s'>%s</a>", 765 esc_attr__( 'Go to the last page' ), 766 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 767 '»' 768 ); 769 } 746 770 747 771 $pagination_links_class = 'pagination-links'; 748 772 if ( ! empty( $infinite_scroll ) ) {