Ticket #24140: 24140.3.diff
File 24140.3.diff, 3.1 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/screen.php
171 171 if ( $post_ID ) { 172 172 $format = get_post_format( $post_ID ); 173 173 if ( $format ) 174 $class .= ' ' . $format;174 $class .= ' wp-format-' . $format; 175 175 } 176 176 } 177 177 -
wp-admin/js/post-formats.js
3 3 (function($) { 4 4 var container, mediaFrame, lastMimeType, mediaPreview, 5 5 noUIFormats = ['standard', 'chat', 'status', 'aside', 'gallery'], 6 $container = $( '.post-formats-fields' ); 6 $container = $( '.post-formats-fields' ), 7 $screenIcon = $( '.icon32' ); 7 8 8 9 function switchFormatClass( format ) { 9 container.get(0).className = container.get(0).className.replace( /\ bwp-format-[^ ]+/g, '' );10 container.get(0).className = container.get(0).className.replace( /\s?\bwp-format-[^ ]+/g, '' ); 10 11 container.addClass('wp-format-' + format); 12 $screenIcon.get(0).className = $screenIcon.get(0).className.replace( /\s?\bwp-format-[^ ]+/g, '' ); 13 $screenIcon.addClass('wp-format-' + format); 11 14 } 12 15 13 16 function switchFormat($this) { -
wp-admin/css/wp-admin.css
4031 4031 min-height: 97px; 4032 4032 } 4033 4033 4034 #icon-edit. standard,4034 #icon-edit.wp-format-standard, 4035 4035 .post-format-options .standard { 4036 4036 background: url(../images/post-formats32.png) no-repeat -3px -4px; 4037 4037 } 4038 4038 4039 #icon-edit. image,4039 #icon-edit.wp-format-image, 4040 4040 .post-format-options .image { 4041 4041 background: url(../images/post-formats32.png) no-repeat -43px -4px; 4042 4042 } 4043 4043 4044 #icon-edit. gallery,4044 #icon-edit.wp-format-gallery, 4045 4045 .post-format-options .gallery { 4046 4046 background: url(../images/post-formats32.png) no-repeat -83px -4px; 4047 4047 } 4048 4048 4049 #icon-edit. audio,4049 #icon-edit.wp-format-audio, 4050 4050 .post-format-options .audio { 4051 4051 background: url(../images/post-formats32.png) no-repeat -123px -4px; 4052 4052 } 4053 4053 4054 #icon-edit. video,4054 #icon-edit.wp-format-video, 4055 4055 .post-format-options .video { 4056 4056 background: url(../images/post-formats32.png) no-repeat -163px -4px; 4057 4057 } 4058 4058 4059 #icon-edit. chat,4059 #icon-edit.wp-format-chat, 4060 4060 .post-format-options .chat { 4061 4061 background: url(../images/post-formats32.png) no-repeat -202px -4px; 4062 4062 } 4063 4063 4064 #icon-edit. status,4064 #icon-edit.wp-format-status, 4065 4065 .post-format-options .status { 4066 4066 background: url(../images/post-formats32.png) no-repeat -242px -4px; 4067 4067 } 4068 4068 4069 #icon-edit. aside,4069 #icon-edit.wp-format-aside, 4070 4070 .post-format-options .aside { 4071 4071 background: url(../images/post-formats32.png) no-repeat -282px -4px; 4072 4072 } 4073 4073 4074 #icon-edit. quote,4074 #icon-edit.wp-format-quote, 4075 4075 .post-format-options .quote { 4076 4076 background: url(../images/post-formats32.png) no-repeat -322px -4px; 4077 4077 } 4078 4078 4079 #icon-edit. link,4079 #icon-edit.wp-format-link, 4080 4080 .post-format-options .link { 4081 4081 background: url(../images/post-formats32.png) no-repeat -362px -4px; 4082 4082 }