Table styling and "add media" label. See #5911. Hat tip: andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@7151 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
22cdc2b75e
commit
462e3bd95f
@ -156,6 +156,7 @@ if ( is_string($content_func) )
|
|||||||
function media_buttons() {
|
function media_buttons() {
|
||||||
global $post_ID, $temp_ID;
|
global $post_ID, $temp_ID;
|
||||||
$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_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_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID";
|
||||||
$media_title = __('Add Media');
|
$media_title = __('Add Media');
|
||||||
$image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src&type=image");
|
$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>
|
<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;
|
EOF;
|
||||||
echo $out;
|
printf($context, $out);
|
||||||
}
|
}
|
||||||
add_action( 'media_buttons', 'media_buttons' );
|
add_action( 'media_buttons', 'media_buttons' );
|
||||||
|
|
||||||
|
@ -563,6 +563,15 @@ p.pagenav {
|
|||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.media-icon {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.media-icon img {
|
||||||
|
max-width: 60px;
|
||||||
|
max-height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
#update-nag, .plugin-update {
|
#update-nag, .plugin-update {
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
|
Loading…
Reference in New Issue
Block a user