]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/sidebar.php
Wordpress 2.3.3
[autoinstalls/wordpress.git] / wp-admin / sidebar.php
index 74cb0819ad43e335ffbf7d0c13192d64cc1d1a03..4b160aff021d825103054437c024e928776a0a42 100644 (file)
@@ -4,7 +4,7 @@ $mode = 'sidebar';
 require_once('admin.php');
 
 if ( ! current_user_can('edit_posts') )
-       die ("Cheatin' uh ?");
+       wp_die(__('Cheatin’ uh?'));
 
 if ('b' == $_GET['a']) {
 
@@ -13,7 +13,7 @@ if ('b' == $_GET['a']) {
 <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" />
+<?php wp_admin_css(); ?>
 </head>
 <body>
        <p>Posted !</p>
@@ -28,21 +28,21 @@ if ('b' == $_GET['a']) {
 <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" />
+<?php wp_admin_css(); ?>
 <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>
@@ -65,9 +65,9 @@ Post:
 <textarea rows="8" cols="12" style="width: 100%" name="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="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" style="font-weight: bold;" value="Publish" />
 <?php endif; ?>
 </p>
 </div>