4 require_once('admin.php');
6 if ( ! current_user_can('edit_posts') )
9 if ('b' == $_GET['a']) {
11 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
12 <html xmlns="http://www.w3.org/1999/xhtml">
14 <title>WordPress › Posted</title>
15 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
16 <link rel="stylesheet" href="wp-admin.css" type="text/css" />
20 <p><a href="sidebar.php">Click here</a> to post again.</p>
26 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
27 <html xmlns="http://www.w3.org/1999/xhtml">
29 <title>WordPress › Sidebar</title>
30 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
31 <link rel="stylesheet" href="wp-admin.css" type="text/css" />
32 <style type="text/css" media="screen">
40 background-color: #f4f4f4;
42 .sidebar-categories label {
50 <h1 id="wphead"><a href="http://wordpress.org/" rel="external">WordPress</a></h1>
51 <form name="post" action="post.php" method="POST">
52 <div><input type="hidden" name="action" value="post" />
53 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
54 <input type="hidden" name="mode" value="sidebar" />
56 <input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
59 <span class="sidebar-categories">
60 <?php dropdown_categories(); ?>
65 <textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
68 <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" />
69 <?php if ( current_user_can('publish_posts') ) : ?>
70 <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="Publish" />