]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/sidebar.php
Wordpress 2.6.2
[autoinstalls/wordpress.git] / wp-admin / sidebar.php
index 17fd3cb4fa08151c3bd8f4e06c553d7aea20dc26..96adee981e9ea4f4f128d763bc9b300f6e6f38de 100644 (file)
@@ -4,20 +4,24 @@ $mode = 'sidebar';
 require_once('admin.php');
 
 if ( ! current_user_can('edit_posts') )
-       die ("Cheatin' uh ?");
+       wp_die(__('Cheatin’ uh?'));
 
 if ('b' == $_GET['a']) {
 
 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<title>WordPress &#8250; Posted</title>
 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
-<link rel="stylesheet" href="wp-admin.css" type="text/css" />
+<title><?php _e('WordPress &#8250; Posted'); ?></title>
+<?php
+wp_admin_css( 'global', true );
+wp_admin_css( 'wp-admin', true );
+wp_admin_css( 'colors', true );
+?>
 </head>
 <body>
-       <p>Posted !</p>
-       <p><a href="sidebar.php">Click here</a> to post again.</p>
+       <p><?php _e('Posted !'); ?></p>
+       <p><?php printf(__('<a href="%s">Click here</a> to post again.'), 'sidebar.php'); ?></p>
 </body>
 </html><?php
 
@@ -26,48 +30,54 @@ if ('b' == $_GET['a']) {
 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<title>WordPress &#8250; Sidebar</title>
 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
-<link rel="stylesheet" href="wp-admin.css" type="text/css" />
+<title><?php _e('WordPress &#8250; Sidebar'); ?></title>
+<?php
+wp_admin_css( 'global', true );
+wp_admin_css( 'wp-admin', true );
+wp_admin_css( 'colors', true );
+?>
 <style type="text/css" media="screen">
 form {
        padding: 3px;
 }
 .sidebar-categories {
-    display: block;
-    height: 6.6em;
-    overflow: auto;
-    background-color: #f4f4f4;
+       display: block;
+       height: 6.6em;
+       overflow: auto;
+       background-color: #f4f4f4;
 }
 .sidebar-categories label {
        font-size: 10px;
-    display: block;
-    width: 90%;
+       display: block;
+       width: 90%;
 }
 </style>
 </head>
 <body id="sidebar">
 <h1 id="wphead"><a href="http://wordpress.org/" rel="external">WordPress</a></h1>
-<form name="post" action="post.php" method="POST">
-<div><input type="hidden" name="action" value="post" />
+<form name="post" action="post.php" method="post">
+<div>
+<input type="hidden" name="action" value="post" />
 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
 <input type="hidden" name="mode" value="sidebar" />
-<p>Title:
-<input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
+<?php wp_nonce_field('add-post'); ?>
+<p><label for="post_title"><?php _e('Title:'); ?></label>
+<input type="text" name="post_title" id="post_title" size="20" tabindex="1" style="width: 100%;" />
 </p>
-<p>Categories:
+<p><?php _e('Categories:'); ?>
 <span class="sidebar-categories">
 <?php dropdown_categories(); ?>
 </span>
 </p>
 <p>
-Post:
-<textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
+<label for="content">Post:</label>
+<textarea rows="8" cols="12" style="width: 100%" name="content" id="content" tabindex="2"></textarea>
 </p>
 <p>
-    <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" /> 
+       <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft'); ?>" />
 <?php if ( current_user_can('publish_posts') ) : ?>
-    <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="Publish" /> 
+       <input name="publish" type="submit" id="publish" tabindex="6" value="<?php _e('Publish') ?>" class="button button-highlighted" />
 <?php endif; ?>
 </p>
 </div>