WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/04/2014 03:38:33 AM (6 years ago)
Author:
helen
Message:

Media grid, round 2. Expect much more to come.

  • Instead of a sidebar for details, utilize a modal. The modal experience allows for a larger preview, editing images, audio/video previews, and previous/next navigation, like the theme browser. Think of it as an attachment browser.
  • Show some details in the grid view to more easily distinguish items.

props ericlewis, wonderboymusic, JerrySarcastic. see #24716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/upload.php

    r28992 r28993  
    2525    wp_enqueue_script( 'media-grid' );
    2626    wp_enqueue_script( 'media' );
    27    
     27
    2828    require_once( ABSPATH . 'wp-admin/admin-header.php' );
    29     ?><div class="view-switch media-grid-view-switch">
    30         <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ) ?>" class="view-list">
    31             <img id="view-switch-list" src="<?php echo includes_url( 'images/blank.gif' ) ?>" width="20" height="20" title="List View" alt="List View"/>
    32         </a>
    33         <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ) ?>" class="view-grid current">
    34             <img id="view-switch-excerpt" src="<?php echo includes_url( 'images/blank.gif' ) ?>" width="20" height="20" title="Grid View" alt="Grid View"/>
    35         </a>
    36     </div><?php
    3729    include( ABSPATH . 'wp-admin/admin-footer.php' );
    3830    exit;
Note: See TracChangeset for help on using the changeset viewer.