Changeset 29569
- Timestamp:
- 08/21/2014 07:10:59 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r29343 r29569 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; … … 1349 1345 float: right; 1350 1346 clear: right; 1347 } 1348 1349 .plugin-icon { 1350 width: 128px; 1351 height: 128px; 1352 float: left; 1353 margin: 0 1em 1em 0; 1351 1354 } 1352 1355 -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r29498 r29569 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 ), 102 102 // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results. 103 103 'locale' => get_locale(), … … 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 if ( !empty( $plugin['icons']['svg'] ) ) { 402 $plugin_icon_url = $plugin['icons']['svg']; 403 } elseif ( !empty( $plugin['icons']['2x'] ) ) { 404 $plugin_icon_url = $plugin['icons']['2x']; 405 } elseif ( !empty( $plugin['icons']['1x'] ) ) { 406 $plugin_icon_url = $plugin['icons']['1x']; 407 } else { 408 $plugin_icon_url = $plugin['icons']['default']; 409 } 401 410 402 411 /** … … 412 421 <div class="plugin-card"> 413 422 <div class="plugin-card-top"> 423 <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" /></a> 424 <div class="action-links"> 425 <?php 426 if ( $action_links ) { 427 echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>'; 428 } 429 ?> 430 </div> 414 431 <div class="name column-name"> 415 432 <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 433 </div> 424 434 <div class="desc column-description">
Note: See TracChangeset
for help on using the changeset viewer.