Ticket #24046: 24046.6.diff
File 24046.6.diff, 3.3 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post-formats.php
4 4 $format_meta = get_post_format_meta( $post_ID ); 5 5 6 6 ?> 7 <div class="post-format-change"><span class="icon <?php echo esc_attr( $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span> <a href="#"><?php _e('Change format'); ?></a></div>7 <div class="post-format-change"><span class="icon <?php echo esc_attr( $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span></div> 8 8 <div class="post-formats-fields"> 9 9 10 10 <input type="hidden" name="post_format" id="post_format" value="<?php echo esc_attr( $post_format ); ?>" /> -
wp-admin/js/post-formats.js
23 23 if ( typeof container === 'undefined' ) 24 24 container = $('#post-body-content'); 25 25 26 parent. slideUp().find('a.active').removeClass('active');26 parent.addClass('small').find('a.active').removeClass('active'); 27 27 $this.addClass('active'); 28 28 $('#post_format').val(format); 29 29 $('.post-format-change').show().find('span.icon').removeClass(postFormats.currentPostFormat).addClass(format); -
wp-admin/css/wp-admin.css
4147 4147 width: 16px; 4148 4148 } 4149 4149 4150 .post-format-options.small a div { 4151 height:16px; 4152 width:16px; 4153 } 4154 4155 .post-format-options.small a { 4156 margin-right: 16px; 4157 } 4158 4159 .post-format-options.small { 4160 height: 32px; 4161 } 4162 4163 .post-format-options.small .standard, 4150 4164 .post-format-change span.icon.standard { 4151 4165 background: url(../images/post-formats.png) no-repeat -8px -8px; 4152 4166 } 4153 4167 4168 .post-format-options.small .image, 4154 4169 .post-format-change span.icon.image { 4155 4170 background: url(../images/post-formats.png) no-repeat -40px -8px; 4156 4171 } 4157 4172 4173 .post-format-options.small .gallery, 4158 4174 .post-format-change span.icon.gallery { 4159 4175 background: url(../images/post-formats.png) no-repeat -72px -8px; 4160 4176 } 4161 4177 4178 .post-format-options.small .audio, 4162 4179 .post-format-change span.icon.audio { 4163 4180 background: url(../images/post-formats.png) no-repeat -104px -8px; 4164 4181 } 4165 4182 4183 .post-format-options.small .video, 4166 4184 .post-format-change span.icon.video { 4167 4185 background: url(../images/post-formats.png) no-repeat -136px -8px; 4168 4186 } 4169 4187 4188 .post-format-options.small .chat, 4170 4189 .post-format-change span.icon.chat { 4171 4190 background: url(../images/post-formats.png) no-repeat -168px -8px; 4172 4191 } 4173 4192 4193 .post-format-options.small .status, 4174 4194 .post-format-change span.icon.status { 4175 4195 background: url(../images/post-formats.png) no-repeat -200px -8px; 4176 4196 } 4177 4197 4198 .post-format-options.small .aside, 4178 4199 .post-format-change span.icon.aside { 4179 4200 background: url(../images/post-formats.png) no-repeat -232px -8px; 4180 4201 } 4181 4202 4203 .post-format-options.small .quote, 4182 4204 .post-format-change span.icon.quote { 4183 4205 background: url(../images/post-formats.png) no-repeat -264px -8px; 4184 4206 } 4185 4207 4208 .post-format-options.small .link, 4186 4209 .post-format-change span.icon.link { 4187 4210 background: url(../images/post-formats.png) no-repeat -296px -8px; 4188 4211 }