Ticket #28785: 28785-plugin-custom-icons.2.diff
File 28785-plugin-custom-icons.2.diff, 2.7 KB (added by , 10 years ago) |
---|
-
wp-admin/css/list-tables.css
1297 1297 } 1298 1298 1299 1299 .plugin-card h4 { 1300 float: left;1301 1300 margin: 0 0 12px; 1302 1301 font-size: 18px; 1303 1302 } 1304 1303 1305 .plugin-card .desc {1306 clear: left;1307 }1308 1309 1304 .plugin-action-buttons { 1305 clear: right; 1310 1306 float: right; 1311 1307 margin-left: 2em; 1312 1308 margin-bottom: 1em; … … 1350 1346 clear: right; 1351 1347 } 1352 1348 1349 .plugin-icon { 1350 width: 128px; 1351 height: 128px; 1352 float: left; 1353 margin: 0 1em 1em 0; 1354 } 1355 1353 1356 /* ms */ 1354 1357 /* Background Color for Site Status */ 1355 1358 .wp-list-table .site-deleted { -
wp-admin/includes/class-wp-plugin-install-list-table.php
98 98 $args = array( 99 99 'page' => $paged, 100 100 'per_page' => $per_page, 101 'fields' => array( 'last_updated' => true, 'downloaded' => true ),101 'fields' => array( 'last_updated' => true, 'downloaded' => true, 'icons' => true, 'banners' => true ), 102 102 // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results. 103 103 'locale' => get_locale(), 104 104 'installed_plugins' => $this->get_installed_plugin_slugs(), … … 398 398 /* translators: 1: Plugin name and version. */ 399 399 $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>'; 400 400 401 $plugin_icon_url = $plugin['icons']['default']; 402 if ( !empty( $plugin['icons']['low'] ) ) 403 $plugin_icon_url = $plugin['icons']['low']; 401 404 402 405 /** 403 406 * Filter the install action links for a plugin. … … 411 414 ?> 412 415 <div class="plugin-card"> 413 416 <div class="plugin-card-top"> 417 <img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" /> 418 <div class="action-links"> 419 <?php 420 if ( ! empty( $action_links ) ) { 421 echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>'; 422 } 423 ?> 424 </div> 414 425 <div class="name column-name"> 415 426 <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4> 416 <div class="action-links">417 <?php418 if ( ! empty( $action_links ) ) {419 echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>';420 }421 ?>422 </div>423 427 </div> 424 428 <div class="desc column-description"> 425 429 <p><?php echo $description; ?></p>