Admin styling updates from mt. fixes #5940

git-svn-id: http://svn.automattic.com/wordpress/trunk@6950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-21 00:27:23 +00:00
parent efc3b70996
commit 2c874f5189
26 changed files with 104 additions and 112 deletions

View File

@ -46,7 +46,7 @@ do_action('admin_head');
<div id="wpwrap"> <div id="wpwrap">
<div id="wpcontent"> <div id="wpcontent">
<div id="wphead"> <div id="wphead">
<h1><?php bloginfo('name'); ?> <span id="viewsite"><a href="<?php echo get_option('home') . '/'; ?>"><?php _e('Visit Site') ?></a></span></h1> <h1><?php bloginfo('name'); ?><span id="viewsite"><a href="<?php echo get_option('home') . '/'; ?>"><?php _e('Visit Site') ?></a></span></h1>
</div> </div>
<div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php printf(__('<a href="%s">Help</a>'), 'http://codex.wordpress.org/') ?> | <?php printf(__('<a href="%s">Forums</a>'), 'http://wordpress.org/support/') ?></p></div> <div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php printf(__('<a href="%s">Help</a>'), 'http://codex.wordpress.org/') ?> | <?php printf(__('<a href="%s">Forums</a>'), 'http://wordpress.org/support/') ?></p></div>

View File

@ -134,7 +134,7 @@ $messages[5] = __('Category not updated.');
<div class="tablenav"> <div class="tablenav">
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-categories'); ?> <?php wp_nonce_field('bulk-categories'); ?>
</div> </div>

View File

@ -4,6 +4,12 @@ a { color: #2583ad; text-decoration: none; }
a:hover, .subsubsub a:hover, .subsubsub a.current:hover { color: #d54e21; } a:hover, .subsubsub a:hover, .subsubsub a.current:hover { color: #d54e21; }
a:focus, a:active {
border: none;
-moz-outline: none;
outline: none;
}
body { body {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;
@ -93,7 +99,7 @@ textarea, input, select {
clear: both; clear: both;
color: #666666; color: #666666;
font: 24px Georgia, "Times New Roman", Times, serif; font: 24px Georgia, "Times New Roman", Times, serif;
margin: 0 0 0 -5px; margin: 5px 0 0 -4px;
padding: 0; padding: 0;
padding-bottom: 5px; padding-bottom: 7px;
} }

View File

@ -43,7 +43,7 @@ if ( ! empty($cat_ID) ) {
<td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->description); ?></textarea></td> <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->description); ?></textarea></td>
</tr> </tr>
</table> </table>
<p class="submit"><input type="submit" name="submit" value="<?php echo $submit_text ?>" /></p> <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_category_form', $category); ?> <?php do_action('edit_category_form', $category); ?>
</form> </form>
</div> </div>

View File

@ -45,7 +45,7 @@ if ('' != $post->pinged) {
$pings .= '</ul>'; $pings .= '</ul>';
} }
$saveasdraft = '<input name="save" type="submit" id="save" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />'; $saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />';
?> ?>
@ -154,14 +154,14 @@ if ($post_ID) {
</div> </div>
<p class="submit"> <p class="submit">
<input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" /> <input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" class="button" />
<?php <?php
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) { if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?> ?>
<?php if ( current_user_can('publish_posts') ) : ?> <?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php else : ?> <?php else : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" /> <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
<?php endif; ?> <?php endif; ?>
<?php <?php
} }

View File

@ -82,7 +82,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-link-categories'); ?> <?php wp_nonce_field('bulk-link-categories'); ?>
</div> </div>

View File

@ -37,7 +37,7 @@ if ( ! empty($cat_ID) ) {
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td> <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
</tr> </tr>
</table> </table>
<p class="submit"><input type="submit" name="submit" value="<?php echo $submit_text ?>" /></p> <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_link_category_form', $category); ?> <?php do_action('edit_link_category_form', $category); ?>
</form> </form>
</div> </div>

View File

@ -73,7 +73,7 @@ function xfn_check($class, $value = '', $deprecated = '') {
</div> </div>
<p class="submit"> <p class="submit">
<input type="submit" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" /> <input type="submit" class="button" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
</p> </p>
<div class="inside"> <div class="inside">

View File

@ -119,14 +119,14 @@ if ($post_ID) {
</div> </div>
<p class="submit"> <p class="submit">
<input type="submit" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" /> <input type="submit" name="save" class="button" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
<?php <?php
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) { if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?> ?>
<?php if ( current_user_can('publish_pages') ) : ?> <?php if ( current_user_can('publish_pages') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php else : ?> <?php else : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" /> <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
<?php endif; ?> <?php endif; ?>
<?php <?php
} }

View File

@ -107,7 +107,7 @@ unset($status_links);
<div class="tablenav"> <div class="tablenav">
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-pages'); ?> <?php wp_nonce_field('bulk-pages'); ?>
</div> </div>

View File

@ -33,7 +33,7 @@ if ( ! empty($tag_ID) ) {
<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape($tag->slug); ?>" size="40" /></td> <td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape($tag->slug); ?>" size="40" /></td>
</tr> </tr>
</table> </table>
<p class="submit"><input type="submit" name="submit" value="<?php echo $submit_text ?>" /></p> <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_tag_form', $tag); ?> <?php do_action('edit_tag_form', $tag); ?>
</form> </form>
</div> </div>

View File

@ -144,7 +144,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-tags'); ?> <?php wp_nonce_field('bulk-tags'); ?>
</div> </div>

View File

@ -135,7 +135,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-posts'); ?> <?php wp_nonce_field('bulk-posts'); ?>
<?php <?php
@ -168,7 +168,7 @@ foreach ($arc_result as $arc_row) {
<?php } ?> <?php } ?>
<?php wp_dropdown_categories('show_option_all='.__('View all categories').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> <?php wp_dropdown_categories('show_option_all='.__('View all categories').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
</div> </div>

View File

@ -20,7 +20,7 @@ class Blogger_Import {
<div class='wrap'><h2>$title</h2><p>$welcome</p><p>$prereqs</p><p>$stepone</p> <div class='wrap'><h2>$title</h2><p>$welcome</p><p>$prereqs</p><p>$stepone</p>
<form action='$auth_url' method='get'> <form action='$auth_url' method='get'>
<p class='submit' style='text-align:left;'> <p class='submit' style='text-align:left;'>
<input type='submit' value='$auth' /> <input type='submit' class='button' value='$auth' />
<input type='hidden' name='scope' value='http://www.blogger.com/feeds/' /> <input type='hidden' name='scope' value='http://www.blogger.com/feeds/' />
<input type='hidden' name='session' value='1' /> <input type='hidden' name='session' value='1' />
<input type='hidden' name='secure' value='0' /> <input type='hidden' name='secure' value='0' />
@ -178,7 +178,7 @@ class Blogger_Import {
$init .= "blogs[$i]=new blog($i,'$blogtitle','{$blog['mode']}'," . $this->get_js_status($i) . ');'; $init .= "blogs[$i]=new blog($i,'$blogtitle','{$blog['mode']}'," . $this->get_js_status($i) . ');';
$pstat = "<div class='ind' id='pind$i'>&nbsp;</div><div id='pstat$i' class='stat'>$pdone/{$blog['total_posts']}</div>"; $pstat = "<div class='ind' id='pind$i'>&nbsp;</div><div id='pstat$i' class='stat'>$pdone/{$blog['total_posts']}</div>";
$cstat = "<div class='ind' id='cind$i'>&nbsp;</div><div id='cstat$i' class='stat'>$cdone/{$blog['total_comments']}</div>"; $cstat = "<div class='ind' id='cind$i'>&nbsp;</div><div id='cstat$i' class='stat'>$cdone/{$blog['total_comments']}</div>";
$rows .= "<tr id='blog$i'><td class='blogtitle'>$blogtitle</td><td class='bloghost'>{$blog['host']}</td><td class='bar'>$pstat</td><td class='bar'>$cstat</td><td class='submit'><input type='submit' id='submit$i' value='$value' /><input type='hidden' name='blog' value='$i' /></td></tr>\n"; $rows .= "<tr id='blog$i'><td class='blogtitle'>$blogtitle</td><td class='bloghost'>{$blog['host']}</td><td class='bar'>$pstat</td><td class='bar'>$cstat</td><td class='submit'><input type='submit' class='button' id='submit$i' value='$value' /><input type='hidden' name='blog' value='$i' /></td></tr>\n";
} }
echo "<div class='wrap'><h2>$title</h2><noscript>$noscript</noscript><table cellpadding='5px'><thead><td>$name</td><td>$url</td><td>$posts</td><td>$comments</td><td>$action</td></thead>\n$rows</table></form></div>"; echo "<div class='wrap'><h2>$title</h2><noscript>$noscript</noscript><table cellpadding='5px'><thead><td>$name</td><td>$url</td><td>$posts</td><td>$comments</td><td>$action</td></thead>\n$rows</table></form></div>";
@ -618,7 +618,7 @@ class Blogger_Import {
foreach ( $blog['authors'] as $i => $author ) foreach ( $blog['authors'] as $i => $author )
$rows .= "<tr><td><label for='authors[$i]'>{$author[0]}</label></td><td><select name='authors[$i]' id='authors[$i]'>" . $this->get_user_options($author[1]) . "</select></td></tr>"; $rows .= "<tr><td><label for='authors[$i]'>{$author[0]}</label></td><td><select name='authors[$i]' id='authors[$i]'>" . $this->get_user_options($author[1]) . "</select></td></tr>";
return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value='$importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='authorsubmit' value='$submit' /></td></tr></table></form></div>"; return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value='$importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='button authorsubmit' value='$submit' /></td></tr></table></form></div>";
} }
function get_user_options($current) { function get_user_options($current) {
@ -788,7 +788,7 @@ class Blogger_Import {
$restart = __('Restart'); $restart = __('Restart');
$message = __('We have saved some information about your Blogger account in your WordPress database. Clearing this information will allow you to start over. Restarting will not affect any posts you have already imported. If you attempt to re-import a blog, duplicate posts and comments will be skipped.'); $message = __('We have saved some information about your Blogger account in your WordPress database. Clearing this information will allow you to start over. Restarting will not affect any posts you have already imported. If you attempt to re-import a blog, duplicate posts and comments will be skipped.');
$submit = __('Clear account information'); $submit = __('Clear account information');
echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&noheader=true'><p class='submit' style='text-align:left;'><input type='submit' value='$submit' name='restart' /></p></form></div>"; echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&noheader=true'><p class='submit' style='text-align:left;'><input type='submit' class='button' value='$submit' name='restart' /></p></form></div>";
} }
} }
@ -821,9 +821,6 @@ thead td { font-weight: bold; }
position: relative; position: relative;
text-align: center; text-align: center;
} }
.submit {
text-align: center !important;
}
</style> </style>
<?php <?php
} }

View File

@ -640,7 +640,7 @@ class Dotclear_Import {
function db_form() function db_form()
{ {
echo '<table class="editform">'; echo '<table class="niceblue">';
printf('<tr><th><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('DotClear Database User:')); printf('<tr><th><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('DotClear Database User:'));
printf('<tr><th><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('DotClear Database Password:')); printf('<tr><th><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('DotClear Database Password:'));
printf('<tr><th><label for="dbname">%s</label></th><td><input type="text" name="dbname" id="dbname" /></td></tr>', __('DotClear Database Name:')); printf('<tr><th><label for="dbname">%s</label></th><td><input type="text" name="dbname" id="dbname" /></td></tr>', __('DotClear Database Name:'));

View File

@ -36,7 +36,7 @@ class GM_Import {
<input type="hidden" name="step" value="1" /> <input type="hidden" name="step" value="1" />
<?php wp_nonce_field('import-greymatter'); ?> <?php wp_nonce_field('import-greymatter'); ?>
<h3><?php _e('Second step: GreyMatter details:') ?></h3> <h3><?php _e('Second step: GreyMatter details:') ?></h3>
<p><table cellpadding="0"> <table class="niceblue">
<tr> <tr>
<td><?php _e('Path to GM files:') ?></td> <td><?php _e('Path to GM files:') ?></td>
<td><input type="text" style="width:300px" name="gmpath" value="/home/my/site/cgi-bin/greymatter/" /></td> <td><input type="text" style="width:300px" name="gmpath" value="/home/my/site/cgi-bin/greymatter/" /></td>
@ -46,17 +46,14 @@ class GM_Import {
<td><input type="text" style="width:300px" name="archivespath" value="/home/my/site/cgi-bin/greymatter/archives/" /></td> <td><input type="text" style="width:300px" name="archivespath" value="/home/my/site/cgi-bin/greymatter/archives/" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><br /><?php _e("This importer will search for files 00000001.cgi to 000-whatever.cgi,<br />so you need to enter the number of the last GM post here.<br />(if you don't know that number, just log into your FTP and look it out<br />in the entries' folder)") ?></td>
</tr>
<tr>
<td><?php _e("Last entry's number:") ?></td> <td><?php _e("Last entry's number:") ?></td>
<td><input type="text" name="lastentry" value="00000001" /></td> <td><input type="text" name="lastentry" value="00000001" /><br />
<?php _e("This importer will search for files 00000001.cgi to 000-whatever.cgi,<br />so you need to enter the number of the last GM post here.<br />(if you don't know that number, just log into your FTP and look it out<br />in the entries' folder)") ?></td>
</tr> </tr>
</table> </table>
</p> </p>
<p><?php _e("When you're ready, click OK to start importing: ") ?><input type="submit" name="submit" value="<?php _e('OK') ?>" class="search" /></p> <p><input type="submit" name="submit" value="<?php _e('Start Importing') ?>" class="button" /></p>
</form> </form>
<p>&nbsp</p>
<?php <?php
$this->footer(); $this->footer();
} }

View File

@ -20,11 +20,11 @@ class JeromesKeyword_Import {
echo '<p><strong>'.__('Don&#8217;t be stupid - backup your database before proceeding!').'</strong></p>'; echo '<p><strong>'.__('Don&#8217;t be stupid - backup your database before proceeding!').'</strong></p>';
echo '<form action="admin.php?import=jkw&amp;step=1" method="post">'; echo '<form action="admin.php?import=jkw&amp;step=1" method="post">';
wp_nonce_field('import-jkw'); wp_nonce_field('import-jkw');
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Version 1.x').'" /></p>'; echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Import Version 1.x').'" /></p>';
echo '</form>'; echo '</form>';
echo '<form action="admin.php?import=jkw&amp;step=3" method="post">'; echo '<form action="admin.php?import=jkw&amp;step=3" method="post">';
wp_nonce_field('import-jkw'); wp_nonce_field('import-jkw');
echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Version 2.0a').'" /></p>'; echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.__('Import Version 2.0a').'" /></p>';
echo '</form>'; echo '</form>';
echo '</div>'; echo '</div>';
} }

View File

@ -46,7 +46,7 @@ class Textpattern_Import {
echo '<form action="admin.php?import=textpattern&amp;step=1" method="post">'; echo '<form action="admin.php?import=textpattern&amp;step=1" method="post">';
wp_nonce_field('import-textpattern'); wp_nonce_field('import-textpattern');
$this->db_form(); $this->db_form();
echo '<p class="submit"><input type="submit" name="submit" value="'.attribute_escape(__('Import Categories')).'" /></p>'; echo '<p class="submit"><input type="submit" class="button" name="submit" value="'.attribute_escape(__('Import')).'" /></p>';
echo '</form>'; echo '</form>';
echo '</div>'; echo '</div>';
} }
@ -481,7 +481,7 @@ class Textpattern_Import {
echo '<form action="admin.php?import=textpattern&amp;step=2" method="post">'; echo '<form action="admin.php?import=textpattern&amp;step=2" method="post">';
wp_nonce_field('import-textpattern'); wp_nonce_field('import-textpattern');
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Users'))); printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Users')));
echo '</form>'; echo '</form>';
} }
@ -494,7 +494,7 @@ class Textpattern_Import {
echo '<form action="admin.php?import=textpattern&amp;step=3" method="post">'; echo '<form action="admin.php?import=textpattern&amp;step=3" method="post">';
wp_nonce_field('import-textpattern'); wp_nonce_field('import-textpattern');
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Posts'))); printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Posts')));
echo '</form>'; echo '</form>';
} }
@ -508,7 +508,7 @@ class Textpattern_Import {
echo '<form action="admin.php?import=textpattern&amp;step=4" method="post">'; echo '<form action="admin.php?import=textpattern&amp;step=4" method="post">';
wp_nonce_field('import-textpattern'); wp_nonce_field('import-textpattern');
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Comments'))); printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Comments')));
echo '</form>'; echo '</form>';
} }
@ -520,7 +520,7 @@ class Textpattern_Import {
echo '<form action="admin.php?import=textpattern&amp;step=5" method="post">'; echo '<form action="admin.php?import=textpattern&amp;step=5" method="post">';
wp_nonce_field('import-textpattern'); wp_nonce_field('import-textpattern');
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Import Links'))); printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Import Links')));
echo '</form>'; echo '</form>';
} }
@ -533,7 +533,7 @@ class Textpattern_Import {
echo '<form action="admin.php?import=textpattern&amp;step=6" method="post">'; echo '<form action="admin.php?import=textpattern&amp;step=6" method="post">';
wp_nonce_field('import-textpattern'); wp_nonce_field('import-textpattern');
printf('<input type="submit" name="submit" value="%s" />', attribute_escape(__('Finish'))); printf('<input type="submit" class="button" name="submit" value="%s" />', attribute_escape(__('Finish')));
echo '</form>'; echo '</form>';
} }
@ -575,7 +575,7 @@ class Textpattern_Import {
function db_form() function db_form()
{ {
echo '<table class="editform">'; echo '<table class="niceblue">';
printf('<tr><th scope="row"><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('Textpattern Database User:')); printf('<tr><th scope="row"><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('Textpattern Database User:'));
printf('<tr><th scope="row"><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('Textpattern Database Password:')); printf('<tr><th scope="row"><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('Textpattern Database Password:'));
printf('<tr><th scope="row"><label for="dbname">%s</label></th><td><input type="text" id="dbname" name="dbname" /></td></tr>', __('Textpattern Database Name:')); printf('<tr><th scope="row"><label for="dbname">%s</label></th><td><input type="text" id="dbname" name="dbname" /></td></tr>', __('Textpattern Database Name:'));

View File

@ -68,7 +68,7 @@ function check_all_rows() {
</script> </script>
<?php <?php
echo '<form name="formlist" id="formlist" action="admin.php?import=wp-cat2tag&amp;step=2" method="post"> echo '<form name="formlist" id="formlist" action="admin.php?import=wp-cat2tag&amp;step=2" method="post">
<p><input type="button" value="' . __('Check All') . '"' . ' onClick="this.value=check_all_rows()"></p>'; <p><input type="button" class="button-secondary" value="' . __('Check All') . '"' . ' onClick="this.value=check_all_rows()"></p>';
wp_nonce_field('import-cat2tag'); wp_nonce_field('import-cat2tag');
echo '<ul style="list-style:none">'; echo '<ul style="list-style:none">';
@ -90,7 +90,7 @@ function check_all_rows() {
echo '</ul>'; echo '</ul>';
echo '<p class="submit"><input type="submit" name="submit" value="' . __('Convert Tags') . '" /></p>'; echo '<p class="submit"><input type="submit" name="submit" class="button" value="' . __('Convert Tags') . '" /></p>';
echo '</form>'; echo '</form>';
} }

View File

@ -945,7 +945,7 @@ function wp_import_upload_form( $action ) {
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" /> <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
</p> </p>
<p class="submit"> <p class="submit">
<input type="submit" value="<?php _e( 'Upload file and import' ); ?>" /> <input type="submit" class="button" value="<?php _e( 'Upload file and import' ); ?>" />
</p> </p>
</form> </form>
<?php <?php

View File

@ -89,7 +89,7 @@ if ( isset($_GET['deleted']) ) {
<div class="tablenav"> <div class="tablenav">
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php <?php
$categories = get_terms('link_category', "hide_empty=1"); $categories = get_terms('link_category', "hide_empty=1");
$select_cat = "<select name=\"cat_id\">\n"; $select_cat = "<select name=\"cat_id\">\n";
@ -109,7 +109,7 @@ echo $select_cat;
echo $select_order; echo $select_order;
?> ?>
<input type="submit" id="post-query-submit" value="<?php _e('Filter &#187;'); ?>" class="button" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
</div> </div>

View File

@ -138,7 +138,7 @@ if ( $page_links )
?> ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-media'); ?> <?php wp_nonce_field('bulk-media'); ?>
<?php <?php
@ -170,7 +170,7 @@ foreach ($arc_result as $arc_row) {
</select> </select>
<?php } ?> <?php } ?>
<input type="submit" id="post-query-submit" value="<?php _e('Filter &#187;'); ?>" class="button" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter &#187;'); ?>" class="button-secondary" />
</div> </div>

View File

@ -149,7 +149,7 @@ case 'delete':
<?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:')."</label> $user_dropdown"; ?></li> <?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:')."</label> $user_dropdown"; ?></li>
</ul> </ul>
<input type="hidden" name="action" value="dodelete" /> <input type="hidden" name="action" value="dodelete" />
<p class="submit"><input type="submit" name="submit" value="<?php _e('Confirm Deletion'); ?>" class="button" /></p> <p class="submit"><input type="submit" name="submit" value="<?php _e('Confirm Deletion'); ?>" class="button-secondary" /></p>
<?php else : ?> <?php else : ?>
<p><?php _e('There are no valid users selected for deletion.'); ?></p> <p><?php _e('There are no valid users selected for deletion.'); ?></p>
<?php endif; ?> <?php endif; ?>
@ -293,7 +293,7 @@ unset($role_links);
<?php endif; ?> <?php endif; ?>
<div style="float: left"> <div style="float: left">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button" /> <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
<?php wp_nonce_field('bulk-users'); ?> <?php wp_nonce_field('bulk-users'); ?>
</div> </div>

View File

@ -193,7 +193,7 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<option value='<?php echo $show_value; ?>'<?php selected( $show_value, $show ); ?>><?php echo wp_specialchars( $show_text ); ?></option> <option value='<?php echo $show_value; ?>'<?php selected( $show_value, $show ); ?>><?php echo wp_specialchars( $show_text ); ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<input type="submit" value="<?php _e('Show' ); ?>" class="button" /> <input type="submit" value="<?php _e('Show' ); ?>" class="button-secondary" />
<p class="pagenav"> <p class="pagenav">
<?php echo $page_links; ?> <?php echo $page_links; ?>
</p> </p>
@ -210,7 +210,7 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<option value='<?php echo $sidebar_id; ?>'<?php selected( $sidebar_id, $sidebar ); ?>><?php echo wp_specialchars( $registered_sidebar['name'] ); ?></option> <option value='<?php echo $sidebar_id; ?>'<?php selected( $sidebar_id, $sidebar ); ?>><?php echo wp_specialchars( $registered_sidebar['name'] ); ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<input type="submit" value="<?php _e('Go' ); ?>" class="button" /> <input type="submit" value="<?php _e('Show' ); ?>" class="button-secondary" />
</div> </div>
</div> </div>

View File

@ -17,12 +17,6 @@ a.delete:hover {
font-size: 16px; font-size: 16px;
} }
#import-upload-form {
margin: auto;
background: #eee;
padding: 1em;
}
.form-invalid { .form-invalid {
background-color: #FF9999 !important; background-color: #FF9999 !important;
} }
@ -131,19 +125,24 @@ form#upload #post_content {
margin: 1.5em 0; margin: 1.5em 0;
} }
.submit input, .submit input:focus, .button, .button:focus { .submit input, .button, .button-secondary {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
color: #246;
padding: 4px 6px; padding: 4px 6px;
background: #e5e5e5;
border: none; border: none;
font-size: 13px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
-khtml-border-radius: 2px; -khtml-border-radius: 2px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
color: #246;
background: #e5e5e5;
} }
.submit input:hover, .button:hover { .button-secondary {
background: #cee1ef;
}
.submit input:hover, .button:hover, .button-secondary:hover {
color: #d54e21; color: #d54e21;
} }
@ -154,10 +153,6 @@ select {
padding: none; padding: none;
} }
.editform th, #postcustomsubmit {
text-align: right;
}
.submit a{ .submit a{
color: #fff; color: #fff;
} }
@ -515,13 +510,6 @@ p.pagenav {
margin: 0 6px; margin: 0 6px;
} }
.tablenav .button,
div.nav .button,
.niceblue tr .button {
padding: 4px 6px;
background: #cee1ef;
}
.tablenav .dots { .tablenav .dots {
background-color: #e4f2fd; background-color: #e4f2fd;
border-color: #e4f2fd; border-color: #e4f2fd;
@ -608,9 +596,9 @@ a.view-comment-post-link {
#user_info { #user_info {
position: absolute; position: absolute;
right: 15%; right: 15%;
top: 9px; top: 11px;
color: #ccc; color: #ccc;
font-size: 12px; font-size: 11px;
} }
#user_info p { #user_info p {
@ -622,6 +610,10 @@ a.view-comment-post-link {
color: #fff; color: #fff;
} }
#user_info a:hover {
text-decoration: underline;
}
#wphead { #wphead {
border-top: 30px solid #464646; border-top: 30px solid #464646;
background: #e4f2fd; background: #e4f2fd;
@ -650,7 +642,7 @@ a.view-comment-post-link {
#wphead h1 { #wphead h1 {
font: normal 36px Georgia, "Times New Roman", Times, serif; font: normal 36px Georgia, "Times New Roman", Times, serif;
color: #555; color: #555;
padding: 15px 170px 18px 15px; padding: 11px 170px 16px 12px;
margin: 0; margin: 0;
margin-right: 15%; margin-right: 15%;
} }
@ -661,10 +653,10 @@ a.view-comment-post-link {
margin: 0; margin: 0;
list-style: none; list-style: none;
position: absolute; position: absolute;
top: 5px; top: 7px;
left: 0; left: 0;
font-size: 12px; font-size: 11px;
padding-left: 12px; padding-left: 9px;
} }
#dashmenu a { #dashmenu a {
@ -674,7 +666,7 @@ a.view-comment-post-link {
margin-right: 8px; margin-right: 8px;
} }
#dashmenu a:hover, #dashmenu a.current, #dashmenu a.current:hover { #dashmenu a.current {
background: #e4f2fd; background: #e4f2fd;
color: #555; color: #555;
-moz-border-radius-topleft: 3px; -moz-border-radius-topleft: 3px;
@ -687,12 +679,20 @@ a.view-comment-post-link {
border-top-right-radius: 3px; border-top-right-radius: 3px;
} }
#dashmenu a:hover {
color: #fff;
}
#dashmenu a.current:hover {
color: #555;
}
#adminmenu { #adminmenu {
margin: 0; margin: 0;
list-style: none; list-style: none;
background-color: #e4f2fd; background-color: #e4f2fd;
border-bottom: 1px solid #c6d9e9; border-bottom: 1px solid #c6d9e9;
padding-left: 15px; padding-left: 11px;
} }
/* Because we don't want visited on these links */ /* Because we don't want visited on these links */
@ -702,15 +702,16 @@ a.view-comment-post-link {
#adminmenu a { #adminmenu a {
font-size: 16px; font-size: 16px;
padding: 6px 7px 6px 7px; padding: 6px 7px;
line-height: 200%; line-height: 195%;
} }
#adminmenu a:hover, #adminmenu a.current, #adminmenu a.current:hover { #adminmenu a.current {
background: #fff; background: #fff;
color: #d54e21; color: #d54e21;
border: 1px solid #c6d9e9; border: 1px solid #c6d9e9;
font-weight: bold; border-bottom: 2px solid #fff;
font-weight: normal;
padding: 6px; padding: 6px;
-moz-border-radius-topleft: 4px; -moz-border-radius-topleft: 4px;
-khtml-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px;
@ -723,16 +724,11 @@ a.view-comment-post-link {
} }
#adminmenu a:hover { #adminmenu a:hover {
border-bottom: 0; color: #d54e21;
font-weight: normal;
}
#adminmenu a.current, #adminmenu a.current:hover {
border-bottom: 2px solid #fff;
} }
#sidemenu { #sidemenu {
margin: 0; margin: 0 -3px 0 0;
color: #999; color: #999;
list-style: none; list-style: none;
position: absolute; position: absolute;
@ -762,8 +758,7 @@ a.view-comment-post-link {
#adminmenu li a #awaiting-mod { #adminmenu li a #awaiting-mod {
position: absolute; position: absolute;
margin-left: -1.2em; margin-left: -0.2em;
margin-top: -0.2em;
font-size: 0.7em; font-size: 0.7em;
background-image: url(images/comment-stalk.gif); background-image: url(images/comment-stalk.gif);
background-repeat: no-repeat; background-repeat: no-repeat;
@ -843,7 +838,7 @@ strong .post-com-count span {
#submenu { #submenu {
margin: 0; margin: 0;
list-style: none; list-style: none;
padding: 12px 0 15px 0; padding: 7px 0 15px 0;
} }
#submenu a { #submenu a {
@ -871,7 +866,7 @@ html, body {
min-height: 100%; min-height: 100%;
} }
#wpcontent{ #wpcontent{
padding-bottom: 65px; padding-bottom: 95px;
} }
#footer { #footer {
clear: both; clear: both;
@ -881,7 +876,7 @@ html, body {
background: #464646 url('images/logo-ghost.png') no-repeat 20px 10px; background: #464646 url('images/logo-ghost.png') no-repeat 20px 10px;
color: #999; color: #999;
position: relative; position: relative;
// margin-top: -75px; margin-top: -75px;
} }
#footer a { #footer a {
@ -1006,9 +1001,6 @@ html, body {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
padding: 2px; padding: 2px;
margin-bottom: 10px; margin-bottom: 10px;
}
#poststuff .postarea {
margin-right: 8px; margin-right: 8px;
} }

View File

@ -157,7 +157,7 @@ function kubrick_theme_page_head() {
kUpdate(ColorPicker_targetInput.id); kUpdate(ColorPicker_targetInput.id);
} }
function PopupWindow_populate(contents) { function PopupWindow_populate(contents) {
contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" value="<?php echo attribute_escape(__('Close Color Picker')); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>'; contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php echo attribute_escape(__('Close Color Picker')); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';
this.contents = contents; this.contents = contents;
this.populated = false; this.populated = false;
} }
@ -386,18 +386,18 @@ function kubrick_theme_page() {
<div id="jsForm"> <div id="jsForm">
<form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo attribute_escape($_SERVER['REQUEST_URI']); ?>"> <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo attribute_escape($_SERVER['REQUEST_URI']); ?>">
<?php wp_nonce_field('kubrick-header'); ?> <?php wp_nonce_field('kubrick-header'); ?>
<input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php echo attribute_escape(__('Font Color')); ?>"></input> <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php echo attribute_escape(__('Font Color')); ?>"></input>
<input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php echo attribute_escape(__('Upper Color')); ?>"></input> <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php echo attribute_escape(__('Upper Color')); ?>"></input>
<input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php echo attribute_escape(__('Lower Color')); ?>"></input> <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php echo attribute_escape(__('Lower Color')); ?>"></input>
<input type="button" name="revert" value="<?php echo attribute_escape(__('Revert')); ?>" onclick="kRevert()" /> <input type="button" class="button-secondary" name="revert" value="<?php echo attribute_escape(__('Revert')); ?>" onclick="kRevert()" />
<input type="button" value="<?php echo attribute_escape(__('Advanced')); ?>" onclick="toggleAdvanced()" /> <input type="button" class="button-secondary" value="<?php echo attribute_escape(__('Advanced')); ?>" onclick="toggleAdvanced()" />
<input type="hidden" name="action" value="save" /> <input type="hidden" name="action" value="save" />
<input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo attribute_escape(kubrick_header_display()); ?>" /> <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo attribute_escape(kubrick_header_display()); ?>" />
<input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo attribute_escape(kubrick_header_color()); ?>" /> <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo attribute_escape(kubrick_header_color()); ?>" />
<input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo attribute_escape(kubrick_upper_color()); ?>" /> <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo attribute_escape(kubrick_upper_color()); ?>" />
<input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo attribute_escape(kubrick_lower_color()); ?>" /> <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo attribute_escape(kubrick_lower_color()); ?>" />
<input type="hidden" name="headerimage" id="headerimage" value="<?php echo attribute_escape(kubrick_header_image()); ?>" /> <input type="hidden" name="headerimage" id="headerimage" value="<?php echo attribute_escape(kubrick_header_image()); ?>" />
<p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php echo attribute_escape(__('Update Header &raquo;')); ?>" onclick="cp.hidePopup('prettyplease')" /></p> <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php echo attribute_escape(__('Update Header')); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
</form> </form>
<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
<div id="advanced"> <div id="advanced">
@ -406,8 +406,8 @@ function kubrick_theme_page() {
<label for="advfontcolor"><?php _e('Font Color (CSS):'); ?> </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo attribute_escape(kubrick_header_color()); ?>" /><br /> <label for="advfontcolor"><?php _e('Font Color (CSS):'); ?> </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo attribute_escape(kubrick_header_color()); ?>" /><br />
<label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo attribute_escape(kubrick_upper_color()); ?>" /><br /> <label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo attribute_escape(kubrick_upper_color()); ?>" /><br />
<label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo attribute_escape(kubrick_lower_color()); ?>" /><br /> <label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo attribute_escape(kubrick_lower_color()); ?>" /><br />
<input type="button" name="default" value="<?php echo attribute_escape(__('Select Default Colors')); ?>" onclick="kDefaults()" /><br /> <input type="button" class="button-secondary" name="default" value="<?php echo attribute_escape(__('Select Default Colors')); ?>" onclick="kDefaults()" /><br />
<input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php echo attribute_escape(__('Toggle Text Display')); ?>"></input><br /> <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php echo attribute_escape(__('Toggle Text Display')); ?>"></input><br />
</form> </form>
</div> </div>
</div> </div>