Ticket #16196: 16196.2.diff
File 16196.2.diff, 3.4 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-theme-install-list-table.php
140 140 141 141 <table id="availablethemes" cellspacing="0" cellpadding="0"> 142 142 <tbody id="the-list" class="list:themes"> 143 <?php $this->display_rows (); ?>143 <?php $this->display_rows_or_placeholder(); ?> 144 144 </tbody> 145 145 </table> 146 146 -
wp-admin/includes/class-wp-themes-list-table.php
61 61 } 62 62 63 63 function no_items() { 64 if( $this->search || $this->features ) { 65 _e( 'No items found.' ); 66 return; 67 } 68 64 69 if ( is_multisite() ) { 65 70 if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { 66 71 printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) ); … … 82 87 // Fallthrough. 83 88 printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); 84 89 } 90 91 function tablenav( $which = 'top' ) { 92 if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) 93 return; 94 ?> 95 <div class="tablenav <?php echo $which; ?>"> 96 <?php $this->pagination( $which ); ?> 97 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 98 <br class="clear" /> 99 </div> 100 <?php 101 } 85 102 86 103 function display() { 87 88 104 wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); 89 105 ?> 90 <div class="tablenav top"> 91 <?php $this->pagination( 'top' ); ?> 92 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 93 <br class="clear" /> 94 </div> 106 <?php $this->tablenav( 'top' ); ?> 95 107 96 108 <table id="availablethemes" cellspacing="0" cellpadding="0"> 97 109 <tbody id="the-list" class="list:themes"> 98 <?php $this->display_rows (); ?>110 <?php $this->display_rows_or_placeholder(); ?> 99 111 </tbody> 100 112 </table> 101 113 102 <div class="tablenav bottom"> 103 <?php $this->pagination( 'bottom' ); ?> 104 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 105 <br class="clear" /> 106 </div> 114 <?php $this->tablenav( 'bottom' ); ?> 107 115 <?php 108 116 } 109 117 -
wp-admin/css/wp-admin.dev.css
3580 3580 16.0 - Themes 3581 3581 ------------------------------------------------------------------------------*/ 3582 3582 3583 .theme-install-php .tablenav { 3584 height:auto; 3585 } 3586 3583 3587 table#availablethemes { 3584 3588 border-spacing: 0; 3585 3589 border-width: 1px 0; … … 3588 3592 width: 100%; 3589 3593 } 3590 3594 3595 table#availablethemes .no-items td{ 3596 border-width:0; 3597 padding:5px; 3598 } 3599 3591 3600 td.available-theme { 3592 3601 vertical-align: top; 3593 3602 width: 240px;