Changeset 785996
- Timestamp:
- 10/10/2013 04:16:49 PM (12 years ago)
- Location:
- dashboard/trunk
- Files:
-
- 4 edited
-
css/dash-rwd.css (modified) (3 diffs)
-
js/dash-rwd.js (modified) (1 diff)
-
quickdraft.php (modified) (1 diff)
-
rightnow.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dashboard/trunk/css/dash-rwd.css
r785534 r785996 21 21 22 22 /* two columns on the dash */ 23 @media only screen and (min-width: 800px) and (max-width: 1 199px) {23 @media only screen and (min-width: 800px) and (max-width: 1299px) { 24 24 #wpbody-content #dashboard-widgets .postbox-container { 25 25 width: 49.5%; … … 42 42 43 43 /* three columns on the dash */ 44 @media only screen and (min-width: 1 200px) and (max-width: 1800px) {44 @media only screen and (min-width: 1300px) and (max-width: 1800px) { 45 45 #wpbody-content #dashboard-widgets .postbox-container { 46 46 width: 33.5%; … … 62 62 } 63 63 } 64 65 .metabox-holder .postbox-container .empty-container { 66 border: none; 67 } 68 69 #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { 70 border: none !important; 71 } 72 73 .postbox-container, 74 .meta-box-sortables { 75 min-height: 245px; 76 } -
dashboard/trunk/js/dash-rwd.js
r785524 r785996 1 jQuery(document).ready(function ($) { 2 // Update main column count on load 3 updateColumnCount(); 4 5 // Show dashed box only on sort 6 var emptyContainers = $('.postbox-container .empty-container'); 7 $('.meta-box-sortables').on('sortstart', function(event, ui) { 8 emptyContainers.css('border', '3px dashed #CCCCCC'); 9 }).on( 'sortbeforestop', function(event, ui) { 10 emptyContainers.css('border', 'none'); 11 }).on( 'sortover', function(event, ui) { 12 $(event.target).find(emptyContainers).css('border', 'none'); 13 }).on( 'sortout', function(event, ui) { 14 $(event.target).find(emptyContainers).css('border', '3px dashed #CCCCCC'); 15 }); 16 }); 17 jQuery(window).resize( _.debounce( function(){ 18 updateColumnCount(); 19 }, 50) ); 20 function updateColumnCount() { 21 var cols = 1, 22 windowWidth = parseInt(jQuery(window).width()); 23 if (799 < windowWidth && 1299 > windowWidth) 24 cols = 2; 25 if (1300 < windowWidth && 1799 > windowWidth) 26 cols = 3; 27 if (1800 < windowWidth) 28 cols = 4; 29 jQuery('.metabox-holder').attr('class', jQuery('.metabox-holder').attr('class').replace(/columns-\d+/, 'columns-' + cols)); 30 } -
dashboard/trunk/quickdraft.php
r785460 r785996 92 92 $url = get_edit_post_link( $draft->ID ); 93 93 $title = _draft_or_post_title( $draft->ID ); 94 $item = '< h4><a href="'.$url.'" title="' . sprintf( __( 'Edit “%s”' ), esc_attr( $title ) ) . '">' . esc_html($title) . '</a> <time datetime="' . get_the_time( 'c', $draft) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . '</time></h4>';94 $item = '<a href="'.$url.'" title="' . sprintf( __( 'Edit “%s”' ), esc_attr( $title ) ) . '">' . esc_html($title) . '</a> <time datetime="' . get_the_time( 'c', $draft) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . '</time>'; 95 95 if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) 96 96 $item .= '<p>' . $the_content . '</p>'; -
dashboard/trunk/rightnow.php
r785664 r785996 97 97 ?> 98 98 </ul> 99 <p><?php printf( __(' <strong>WordPress %1$s</strong>running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); ?></p>99 <p><?php printf( __('WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); ?></p> 100 100 </div> 101 101
Note: See TracChangeset
for help on using the changeset viewer.