Skip to content

Commit 28f0012

Browse files
committed
More styling for the Tags page, change the Options pages background color to light gray
git-svn-id: https://develop.svn.wordpress.org/trunk@9345 602fd350-edb4-49c9-b593-d223f7449a82
1 parent bfe6168 commit 28f0012

4 files changed

Lines changed: 59 additions & 32 deletions

File tree

wp-admin/admin-ajax.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@
414414
$x = new WP_Ajax_Response( array(
415415
'what' => 'tag',
416416
'id' => $tag->term_id,
417+
'position' => '-1',
417418
'data' => _tag_row( $tag ),
418419
'supplemental' => array('name' => $tag_full_name, 'show-link' => sprintf(__( 'Tag <a href="#%s">%s</a> added' ), "tag-$tag->term_id", $tag_full_name))
419420
) );

wp-admin/css/colors-fresh.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,17 @@ li.widget-list-control-item h4.widget-title a,
6565
}
6666

6767
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,
6969
.login form, h3.info-box-title, #post-status-info, #screen-options-wrap,
7070
#wpbody-content .describe tr, #edithead, #replyhead {
7171
background-color: #eaf3fa;
7272
}
7373

74+
.form-table tr,
75+
.form-wrap .form-field {
76+
background-color: #f1f1f1;
77+
}
78+
7479
select {
7580
background-color: #fff;
7681
border-color: #ddd;
@@ -151,8 +156,14 @@ ul#widget-list li.widget-list-item h4.widget-title {
151156
border-color: #c00 !important;
152157
}
153158

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;
156167
}
157168

158169
.form-table td,
@@ -769,10 +780,6 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
769780
color: #333;
770781
}
771782

772-
.form-wrap .form-field {
773-
background-color: #f5f5f5;
774-
}
775-
776783
/* Diff */
777784

778785
table.diff .diff-deletedline {

wp-admin/edit-tags.php

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@
113113
exit;
114114
}
115115

116+
$can_manage = current_user_can('manage_categories');
117+
116118
wp_enqueue_script( 'admin-tags' );
117119
wp_enqueue_script('admin-forms');
118-
if ( current_user_can('manage_categories') )
120+
if ( $can_manage )
119121
wp_enqueue_script('inline-edit-tax');
120122

121123
require_once ('admin-header.php');
@@ -241,17 +243,28 @@
241243

242244
<div id="col-left">
243245
<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 ) {
245258
do_action('add_tag_form_pre', $tag); ?>
246259

260+
<div class="form-wrap">
247261
<h3><?php _e('Add a New Tag'); ?></h3>
248262
<div id="ajax-response"></div>
249263
<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">
250264
<input type="hidden" name="action" value="addtag" />
251265
<input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
252266
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?>
253267

254-
<div class="form-wrap">
255268
<div class="form-field form-required">
256269
<label for="name"><?php _e('Tag name') ?></label>
257270
<input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attribute_escape($tag->name); ?>" size="40" aria-required="true" />
@@ -262,19 +275,12 @@
262275
<label for="slug"><?php _e('Tag slug') ?></label>
263276
<input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
264277
<p><?php _e('The &#8220;slug&#8221; 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>
266279

267280
<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 } ?>
278284

279285
</div>
280286
</div><!-- /col-left -->

wp-admin/wp-admin.css

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ table#availablethemes td.bottom {
188188
}
189189

190190
.submit {
191-
border-top: 1px solid #ccc;
191+
border-top-style: solid;
192+
border-top-width: 1px;
192193
padding: 1.5em 0;
193194
margin: 5px 0;
194195
-moz-border-radius: 0 0 3px 3px;
@@ -201,8 +202,9 @@ table#availablethemes td.bottom {
201202
}
202203

203204
.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;
206208
}
207209

208210
#misc-publishing-actions {
@@ -1184,14 +1186,14 @@ table.form-table td .updated {
11841186

11851187
/* divs for cats and tags pages */
11861188

1187-
.col-wrap h3 {
1188-
margin: 12px 0;
1189+
.form-wrap {
1190+
margin: 10px 0;
1191+
width: 90%;
11891192
}
11901193

1191-
.form-wrap {
1192-
margin: 8px 0 -8px;
1194+
.form-wrap p,
1195+
.form-wrap label {
11931196
font-size: 11px;
1194-
width: 90%;
11951197
}
11961198

11971199
.form-wrap label {
@@ -1200,7 +1202,9 @@ table.form-table td .updated {
12001202
font-weight: bold;
12011203
}
12021204

1203-
.form-wrap input {
1205+
.form-field input {
1206+
border-style: solid;
1207+
border-width: 1px;
12041208
width: 95%;
12051209
}
12061210

@@ -1214,13 +1218,22 @@ table.form-table td .updated {
12141218
padding: 8px;
12151219
}
12161220

1221+
.col-wrap h3 {
1222+
margin: 12px 0;
1223+
font-size: 1.1em;
1224+
}
1225+
12171226
.col-wrap p.submit {
1218-
width: 90%;
1227+
margin-top: -10px;
12191228
}
12201229

12211230
.tagcloud {
12221231
width: 90%;
1223-
margin: 20px 5px 5px;
1232+
margin: 10px 0 40px;
1233+
}
1234+
1235+
#col-left .col-wrap {
1236+
margin-left: 12px;
12241237
}
12251238

12261239
/* Post Screen */

0 commit comments

Comments
 (0)