Changeset 9345
- Timestamp:
- 10/25/2008 08:55:40 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r9281 r9345 415 415 'what' => 'tag', 416 416 'id' => $tag->term_id, 417 'position' => '-1', 417 418 'data' => _tag_row( $tag ), 418 419 'supplemental' => array('name' => $tag_full_name, 'show-link' => sprintf(__( 'Tag <a href="#%s">%s</a> added' ), "tag-$tag->term_id", $tag_full_name)) -
trunk/wp-admin/css/colors-fresh.css
r9339 r9345 66 66 67 67 li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, 68 .form-table tr,#poststuff h3, .metabox-holder h3, #replyhandle,68 #poststuff h3, .metabox-holder h3, #replyhandle, 69 69 .login form, h3.info-box-title, #post-status-info, #screen-options-wrap, 70 70 #wpbody-content .describe tr, #edithead, #replyhead { 71 71 background-color: #eaf3fa; 72 } 73 74 .form-table tr, 75 .form-wrap .form-field { 76 background-color: #f1f1f1; 72 77 } 73 78 … … 152 157 } 153 158 154 .form-table input, .form-table textarea, .search-input { 155 border-color: #c6d9e9; 159 .form-table input, 160 .form-table textarea, 161 .search-input, 162 .form-field input, 163 .form-field textarea, 164 .submit, 165 .submit-top { 166 border-color: #DFDFDF; 156 167 } 157 168 … … 770 781 } 771 782 772 .form-wrap .form-field {773 background-color: #f5f5f5;774 }775 776 783 /* Diff */ 777 784 -
trunk/wp-admin/edit-tags.php
r9341 r9345 114 114 } 115 115 116 $can_manage = current_user_can('manage_categories'); 117 116 118 wp_enqueue_script( 'admin-tags' ); 117 119 wp_enqueue_script('admin-forms'); 118 if ( current_user_can('manage_categories'))120 if ( $can_manage ) 119 121 wp_enqueue_script('inline-edit-tax'); 120 122 … … 242 244 <div id="col-left"> 243 245 <div class="col-wrap"> 244 <?php if ( current_user_can('manage_categories') ) { 246 247 <div class="tagcloud"> 248 <h3><?php _e('Popular Tags'); ?></h3> 249 <?php 250 if ( $can_manage ) 251 wp_tag_cloud(array('link' => 'edit')); 252 else 253 wp_tag_cloud(); 254 ?> 255 </div> 256 257 <?php if ( $can_manage ) { 245 258 do_action('add_tag_form_pre', $tag); ?> 246 259 260 <div class="form-wrap"> 247 261 <h3><?php _e('Add a New Tag'); ?></h3> 248 262 <div id="ajax-response"></div> … … 252 266 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?> 253 267 254 <div class="form-wrap">255 268 <div class="form-field form-required"> 256 269 <label for="name"><?php _e('Tag name') ?></label> … … 263 276 <input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" /> 264 277 <p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p> 265 </div> </div>278 </div> 266 279 267 280 <p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Add Tag'); ?>" /></p> 268 <?php 269 do_action('edit_tag_form', $tag); 270 271 } ?> 272 </form> 273 274 <div class="tagcloud"> 275 <h3><?php _e('Popular Tags'); ?></h3> 276 <?php wp_tag_cloud(array('link' => 'edit')); ?> 277 </div> 281 <?php do_action('edit_tag_form', $tag); ?> 282 </form></div> 283 <?php } ?> 278 284 279 285 </div> -
trunk/wp-admin/wp-admin.css
r9343 r9345 189 189 190 190 .submit { 191 border-top: 1px solid #ccc; 191 border-top-style: solid; 192 border-top-width: 1px; 192 193 padding: 1.5em 0; 193 194 margin: 5px 0; … … 202 203 203 204 .submit-top { 204 border-top: 0; 205 border-bottom: 1px solid #ccc; 205 border-top: 0 none; 206 border-bottom-style: solid; 207 border-bottom-width: 1px; 206 208 } 207 209 … … 1185 1187 /* divs for cats and tags pages */ 1186 1188 1187 .col-wrap h3 {1188 margin: 12px 0;1189 }1190 1191 1189 .form-wrap { 1192 margin: 8px 0 -8px; 1190 margin: 10px 0; 1191 width: 90%; 1192 } 1193 1194 .form-wrap p, 1195 .form-wrap label { 1193 1196 font-size: 11px; 1194 width: 90%;1195 1197 } 1196 1198 … … 1201 1203 } 1202 1204 1203 .form-wrap input { 1205 .form-field input { 1206 border-style: solid; 1207 border-width: 1px; 1204 1208 width: 95%; 1205 1209 } … … 1215 1219 } 1216 1220 1221 .col-wrap h3 { 1222 margin: 12px 0; 1223 font-size: 1.1em; 1224 } 1225 1217 1226 .col-wrap p.submit { 1218 width: 90%;1227 margin-top: -10px; 1219 1228 } 1220 1229 1221 1230 .tagcloud { 1222 1231 width: 90%; 1223 margin: 20px 5px 5px; 1232 margin: 10px 0 40px; 1233 } 1234 1235 #col-left .col-wrap { 1236 margin-left: 12px; 1224 1237 } 1225 1238
Note: See TracChangeset
for help on using the changeset viewer.