Table styling and "add media" label. See #5911. Hat tip: andy.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-04 04:28:23 +00:00
parent 6ecded2a95
commit d320099c83
2 changed files with 11 additions and 1 deletions

View File

@ -156,6 +156,7 @@ if ( is_string($content_func) )
function media_buttons() {
global $post_ID, $temp_ID;
$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
$context = apply_filters('media_buttons_context', __('Add media: %s'));
$media_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID";
$media_title = __('Add Media');
$image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src&type=image");
@ -172,7 +173,7 @@ function media_buttons() {
<a href="{$media_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox" title='$media_title'><img src='images/media-button-other.gif' alt='$media_title' /></a>
EOF;
echo $out;
printf($context, $out);
}
add_action( 'media_buttons', 'media_buttons' );

View File

@ -563,6 +563,15 @@ p.pagenav {
padding-top: 6px;
}
td.media-icon {
vertical-align: middle;
}
td.media-icon img {
max-width: 60px;
max-height: 40px;
}
#update-nag, .plugin-update {
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;