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
This commit is contained in:
Andrew Ozz 2008-10-25 20:55:40 +00:00
parent bfe6168186
commit 28f001214c
4 changed files with 59 additions and 32 deletions

View File

@ -414,6 +414,7 @@ case 'add-tag' : // From Manage->Tags
$x = new WP_Ajax_Response( array( $x = new WP_Ajax_Response( array(
'what' => 'tag', 'what' => 'tag',
'id' => $tag->term_id, 'id' => $tag->term_id,
'position' => '-1',
'data' => _tag_row( $tag ), 'data' => _tag_row( $tag ),
'supplemental' => array('name' => $tag_full_name, 'show-link' => sprintf(__( 'Tag <a href="#%s">%s</a> added' ), "tag-$tag->term_id", $tag_full_name)) 'supplemental' => array('name' => $tag_full_name, 'show-link' => sprintf(__( 'Tag <a href="#%s">%s</a> added' ), "tag-$tag->term_id", $tag_full_name))
) ); ) );

View File

@ -65,12 +65,17 @@ li.widget-list-control-item h4.widget-title a,
} }
li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links,
.form-table tr, #poststuff h3, .metabox-holder h3, #replyhandle, #poststuff h3, .metabox-holder h3, #replyhandle,
.login form, h3.info-box-title, #post-status-info, #screen-options-wrap, .login form, h3.info-box-title, #post-status-info, #screen-options-wrap,
#wpbody-content .describe tr, #edithead, #replyhead { #wpbody-content .describe tr, #edithead, #replyhead {
background-color: #eaf3fa; background-color: #eaf3fa;
} }
.form-table tr,
.form-wrap .form-field {
background-color: #f1f1f1;
}
select { select {
background-color: #fff; background-color: #fff;
border-color: #ddd; border-color: #ddd;
@ -151,8 +156,14 @@ ul#widget-list li.widget-list-item h4.widget-title {
border-color: #c00 !important; border-color: #c00 !important;
} }
.form-table input, .form-table textarea, .search-input { .form-table input,
border-color: #c6d9e9; .form-table textarea,
.search-input,
.form-field input,
.form-field textarea,
.submit,
.submit-top {
border-color: #DFDFDF;
} }
.form-table td, .form-table td,
@ -769,10 +780,6 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
color: #333; color: #333;
} }
.form-wrap .form-field {
background-color: #f5f5f5;
}
/* Diff */ /* Diff */
table.diff .diff-deletedline { table.diff .diff-deletedline {

View File

@ -113,9 +113,11 @@ if ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
exit; exit;
} }
$can_manage = current_user_can('manage_categories');
wp_enqueue_script( 'admin-tags' ); wp_enqueue_script( 'admin-tags' );
wp_enqueue_script('admin-forms'); wp_enqueue_script('admin-forms');
if ( current_user_can('manage_categories') ) if ( $can_manage )
wp_enqueue_script('inline-edit-tax'); wp_enqueue_script('inline-edit-tax');
require_once ('admin-header.php'); require_once ('admin-header.php');
@ -241,9 +243,21 @@ if ( $page_links )
<div id="col-left"> <div id="col-left">
<div class="col-wrap"> <div class="col-wrap">
<?php if ( current_user_can('manage_categories') ) {
<div class="tagcloud">
<h3><?php _e('Popular Tags'); ?></h3>
<?php
if ( $can_manage )
wp_tag_cloud(array('link' => 'edit'));
else
wp_tag_cloud();
?>
</div>
<?php if ( $can_manage ) {
do_action('add_tag_form_pre', $tag); ?> do_action('add_tag_form_pre', $tag); ?>
<div class="form-wrap">
<h3><?php _e('Add a New Tag'); ?></h3> <h3><?php _e('Add a New Tag'); ?></h3>
<div id="ajax-response"></div> <div id="ajax-response"></div>
<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate"> <form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">
@ -251,7 +265,6 @@ if ( $page_links )
<input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" /> <input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?> <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?>
<div class="form-wrap">
<div class="form-field form-required"> <div class="form-field form-required">
<label for="name"><?php _e('Tag name') ?></label> <label for="name"><?php _e('Tag name') ?></label>
<input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attribute_escape($tag->name); ?>" size="40" aria-required="true" /> <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 @@ if ( $page_links )
<label for="slug"><?php _e('Tag slug') ?></label> <label for="slug"><?php _e('Tag slug') ?></label>
<input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" /> <input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
<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> <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>
</div></div> </div>
<p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Add Tag'); ?>" /></p> <p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Add Tag'); ?>" /></p>
<?php <?php do_action('edit_tag_form', $tag); ?>
do_action('edit_tag_form', $tag); </form></div>
<?php } ?>
} ?>
</form>
<div class="tagcloud">
<h3><?php _e('Popular Tags'); ?></h3>
<?php wp_tag_cloud(array('link' => 'edit')); ?>
</div>
</div> </div>
</div><!-- /col-left --> </div><!-- /col-left -->

View File

@ -188,7 +188,8 @@ table#availablethemes td.bottom {
} }
.submit { .submit {
border-top: 1px solid #ccc; border-top-style: solid;
border-top-width: 1px;
padding: 1.5em 0; padding: 1.5em 0;
margin: 5px 0; margin: 5px 0;
-moz-border-radius: 0 0 3px 3px; -moz-border-radius: 0 0 3px 3px;
@ -201,8 +202,9 @@ table#availablethemes td.bottom {
} }
.submit-top { .submit-top {
border-top: 0; border-top: 0 none;
border-bottom: 1px solid #ccc; border-bottom-style: solid;
border-bottom-width: 1px;
} }
#misc-publishing-actions { #misc-publishing-actions {
@ -1184,14 +1186,14 @@ table.form-table td .updated {
/* divs for cats and tags pages */ /* divs for cats and tags pages */
.col-wrap h3 { .form-wrap {
margin: 12px 0; margin: 10px 0;
width: 90%;
} }
.form-wrap { .form-wrap p,
margin: 8px 0 -8px; .form-wrap label {
font-size: 11px; font-size: 11px;
width: 90%;
} }
.form-wrap label { .form-wrap label {
@ -1200,7 +1202,9 @@ table.form-table td .updated {
font-weight: bold; font-weight: bold;
} }
.form-wrap input { .form-field input {
border-style: solid;
border-width: 1px;
width: 95%; width: 95%;
} }
@ -1214,13 +1218,22 @@ table.form-table td .updated {
padding: 8px; padding: 8px;
} }
.col-wrap h3 {
margin: 12px 0;
font-size: 1.1em;
}
.col-wrap p.submit { .col-wrap p.submit {
width: 90%; margin-top: -10px;
} }
.tagcloud { .tagcloud {
width: 90%; width: 90%;
margin: 20px 5px 5px; margin: 10px 0 40px;
}
#col-left .col-wrap {
margin-left: 12px;
} }
/* Post Screen */ /* Post Screen */