Butter upload buttons. Still need custom dialogs for music/video/other.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
After Width: | Height: | Size: 72 B |
After Width: | Height: | Size: 69 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 141 B |
After Width: | Height: | Size: 68 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 723 B |
|
@ -98,7 +98,7 @@ jQuery(document).ready(function(){
|
|||
</fieldset>
|
||||
<p>
|
||||
<button name="image-add" id="image-add" class="button-ok" value="1"><?php _e('Add Image'); ?></button>
|
||||
<a href="#" onclick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a>
|
||||
<a href="#" onClick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a>
|
||||
</p>
|
||||
<input type="hidden" name="post_id" value="<?php echo attribute_escape($post_id); ?>" />
|
||||
<?php wp_nonce_field( 'inlineuploading' ); ?>
|
||||
|
@ -351,10 +351,14 @@ function media_buttons() { // just a placeholder for now
|
|||
$multimedia_upload_iframe_src = wp_nonce_url("media-upload.php?type=multimedia&post_id=$uploading_iframe_ID", 'inlineuploading');
|
||||
$multimedia_upload_iframe_src = apply_filters('multimedia_upload_iframe_src', $multimedia_upload_iframe_src);
|
||||
$out = <<<EOF
|
||||
<a href="{$multimedia_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox">Multimedia</a>
|
||||
<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=460" class="thickbox">
|
||||
<img src="./images/media-buttons.gif" alt="" />
|
||||
</a>
|
||||
|
||||
<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=480" class="thickbox"><img src='images/media-button-image.gif' alt='' /></a>
|
||||
<a href="{$multimedia_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-gallery.gif' alt='' /></a>
|
||||
<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-video.gif' alt='' /></a>
|
||||
<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-music.gif' alt='' /></a>
|
||||
<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-other.gif' alt='' /></a>
|
||||
|
||||
|
||||
EOF;
|
||||
echo $out;
|
||||
}
|
||||
|
|
|
@ -1091,6 +1091,10 @@ html, body {
|
|||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#poststuff #media-buttons a {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#poststuff .togbox {
|
||||
background-color:#b2b2b2;
|
||||
background-image:url(images/toggle-arrow.gif);
|
||||
|
|