WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/04/2014 11:10:35 PM (6 years ago)
Author:
azaozz
Message:

Restyles the modal for attaching media to posts, props avryl, see #26952

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r27305 r27401  
    14321432
    14331433    $html = '<table class="widefat"><thead><tr><th class="found-radio"><br /></th><th>'.__('Title').'</th><th class="no-break">'.__('Type').'</th><th class="no-break">'.__('Date').'</th><th class="no-break">'.__('Status').'</th></tr></thead><tbody>';
     1434    $alt = '';
    14341435    foreach ( $posts as $post ) {
    14351436        $title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' );
     1437        $alt = ( 'alternate' == $alt ) ? '' : 'alternate';
    14361438
    14371439        switch ( $post->post_status ) {
     
    14581460        }
    14591461
    1460         $html .= '<tr class="found-posts"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . esc_attr($post->ID) . '"></td>';
     1462        $html .= '<tr class="' . trim( 'found-posts ' . $alt ) . '"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . esc_attr($post->ID) . '"></td>';
    14611463        $html .= '<td><label for="found-'.$post->ID.'">' . esc_html( $title ) . '</label></td><td class="no-break">' . esc_html( $post_types[$post->post_type]->labels->singular_name ) . '</td><td class="no-break">'.esc_html( $time ) . '</td><td class="no-break">' . esc_html( $stat ). ' </td></tr>' . "\n\n";
    14621464    }
Note: See TracChangeset for help on using the changeset viewer.