From fa92ba6ff63b44a9b7bf522a600c2d802e07dbc8 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 11 Feb 2008 07:44:21 +0000 Subject: [PATCH] Butter upload buttons. Still need custom dialogs for music/video/other. git-svn-id: https://develop.svn.wordpress.org/trunk@6781 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/images/media-button-gallery.gif | Bin 0 -> 72 bytes wp-admin/images/media-button-image.gif | Bin 0 -> 69 bytes wp-admin/images/media-button-music.gif | Bin 0 -> 188 bytes wp-admin/images/media-button-other.gif | Bin 0 -> 141 bytes wp-admin/images/media-button-video.gif | Bin 0 -> 68 bytes wp-admin/images/media-buttons.gif | Bin 362 -> 723 bytes wp-admin/includes/media.php | 14 +++++++++----- wp-admin/wp-admin.css | 4 ++++ 8 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 wp-admin/images/media-button-gallery.gif create mode 100644 wp-admin/images/media-button-image.gif create mode 100644 wp-admin/images/media-button-music.gif create mode 100644 wp-admin/images/media-button-other.gif create mode 100644 wp-admin/images/media-button-video.gif diff --git a/wp-admin/images/media-button-gallery.gif b/wp-admin/images/media-button-gallery.gif new file mode 100644 index 0000000000000000000000000000000000000000..119177845ee7f30b6d9381d34e34f2e605127559 GIT binary patch literal 72 zcmZ?wbhEHbEe*zLy*r|NC| WWtYB%rlu|mn%UdUam;~{!5RPuK^K1j literal 0 HcmV?d00001 diff --git a/wp-admin/images/media-button-image.gif b/wp-admin/images/media-button-image.gif new file mode 100644 index 0000000000000000000000000000000000000000..11278c857b912ba38a498e00bb46345f7c0c0fa0 GIT binary patch literal 69 zcmZ?wbhEHb*4d2tJiGbz3QOndGhx2{P_!>z5jaV;?;vkPwv>W zf9||_mv7zQuxZPd?K@}AocaI%e+E*3;!hSv1_l8J9grrFoeZp&3Mx+Q4Ln{6Hp*Z2 ze7Jq=qtEHb!W^88B5Pv2MO64=jRg;HEU=k&HbL2}wR2TJ+qQ)%RuUK93koqYSOWkW CMM4(< literal 0 HcmV?d00001 diff --git a/wp-admin/images/media-button-other.gif b/wp-admin/images/media-button-other.gif new file mode 100644 index 0000000000000000000000000000000000000000..f3f2f8ae9e960b4a216bfa5b989bf52351219b30 GIT binary patch literal 141 zcmZ?wbhEHbLZW53!MuehRCrpSOWl+@f9Ng literal 0 HcmV?d00001 diff --git a/wp-admin/images/media-buttons.gif b/wp-admin/images/media-buttons.gif index 9fdb895140985cb756bcf962b613fe30718d4055..22660402680877bae91f2bdbd39958145a4e13f1 100644 GIT binary patch literal 723 zcmZ?wbhEHbEMwqdcqYX#Z~pw-k6vuqzVqq3FPCrK->_-R_TBsD&YO4W*r{uGA3b>S zZt;?(7q8#B_3-(ot=m_wUi0kz*ZK1oJbC;1;L($3E?zx-;mVFZ`wtyI_5c6>nKNfH zi~|4;ivUl0?`D>&$tXsBebN7^;?VN1P9FiQ&Y@Cx;omjnj{rbMX z^*gt&Xxg}ESN}C;Nd|`7cbSi$@40$<-MPybPhL57ZSsztjNGl8 zP2%VAS#iPPkaYmhuAR&W9$ZtYSujb_yFKUb!PE(QQCtf)2sBjj9pA{jbiIIUsM!CD zr!smUFX`WsWGj=oGR(N-^c~4x>fH?u%uFV3UMnUio^TS#wktl?lcqY?I`Sur)@p~4 ziccIDxz!C{1{a%Y-s^g5I_auo`?)lY5B}2T`H}_)j=qU9Q@&KIa&q2hb8p>f-e6XN jAJ4gG7$hCbaCEiq)?1a)-Kxc96OpPKxI~DRiNP8GED_D+ delta 269 zcmV+o0rLLS1?mC|M@dFFIbmD?3;@KD3s3{<^ZJv10UUo^01N;C1?ONUjwGp_Xo{As zsJ<`MP?z;Y8LX#@qo^5-a7Yy9cB`T>h&dvGt*0ts7$7o;fgy2XDv3^{7t9PxH7)aV zkO2VN??HFTGM>jnk^Q`i@-+bqB?|#_O)Yy*cuR?V84m^%6%7(FXNQ0tBQ~tYFc?1x>Vb TiVh-6(eEEE9X)=e2mt^)0{d*% diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index edfec90c9b..748bec4c1c 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -98,7 +98,7 @@ jQuery(document).ready(function(){

- +

@@ -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 = <<Multimedia - - - + + + + + + + + EOF; echo $out; } diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 3f7b518a58..e88fb9aba0 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -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);