Changeset 29498
- Timestamp:
- 08/15/2014 09:37:01 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r29477 r29498 287 287 288 288 public function get_columns() { 289 return array( 290 'name' => _x( 'Name', 'plugin name' ), 291 'version' => __( 'Version' ), 292 'rating' => __( 'Rating' ), 293 'description' => __( 'Description' ), 294 ); 289 return array(); 295 290 } 296 291 … … 328 323 'Tools' => _x( 'Tools', 'Plugin installer group title' ), 329 324 ); 330 331 list( $columns, $hidden ) = $this->get_column_info();332 333 $style = array();334 foreach ( $columns as $column_name => $column_display_name ) {335 $style[ $column_name ] = in_array( $column_name, $hidden ) ? 'style="display:none;"' : '';336 }337 325 338 326 $group = null; … … 424 412 <div class="plugin-card"> 425 413 <div class="plugin-card-top"> 426 <div class="name column-name" <?php echo $style['name']; ?>>427 <h4><a href="<?php echo esc_url( $details_link ) ?>" class="thickbox"><?php echo $title; ?></a></h4>414 <div class="name column-name"> 415 <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4> 428 416 <div class="action-links"> 429 417 <?php … … 434 422 </div> 435 423 </div> 436 <div class="desc column-description" <?php echo $style['description']; ?>>437 <p><?php echo $description ?></p>424 <div class="desc column-description"> 425 <p><?php echo $description; ?></p> 438 426 <p class="authors"><?php echo $author; ?></p> 439 427 </div> 440 428 </div> 441 429 <div class="plugin-card-bottom"> 442 <div class="vers column-rating" <?php echo $style['rating']; ?>>430 <div class="vers column-rating"> 443 431 <?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?> 444 432 <span class="num-ratings">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span>
Note: See TracChangeset
for help on using the changeset viewer.