4 require_once('admin.php');
6 if ( ! current_user_can('edit_posts') )
7 wp_die(__('Cheatin’ uh?'));
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 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
15 <title><?php _e('WordPress › Posted'); ?></title>
17 wp_admin_css( 'css/global' );
22 <p><?php _e('Posted !'); ?></p>
23 <p><?php printf(__('<a href="%s">Click here</a> to post again.'), 'sidebar.php'); ?></p>
29 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
30 <html xmlns="http://www.w3.org/1999/xhtml">
32 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
33 <title><?php _e('WordPress › Sidebar'); ?></title>
35 wp_admin_css( 'css/global' );
38 <style type="text/css" media="screen">
46 background-color: #f4f4f4;
48 .sidebar-categories label {
56 <h1 id="wphead"><a href="http://wordpress.org/" rel="external">WordPress</a></h1>
57 <form name="post" action="post.php" method="post">
59 <input type="hidden" name="action" value="post" />
60 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
61 <input type="hidden" name="mode" value="sidebar" />
62 <?php wp_nonce_field('add-post'); ?>
63 <p><?php _e('Title:'); ?>
64 <input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
66 <p><?php _e('Categories:'); ?>
67 <span class="sidebar-categories">
68 <?php dropdown_categories(); ?>
73 <textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
76 <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft'); ?>" />
77 <?php if ( current_user_can('publish_posts') ) : ?>
78 <input name="publish" type="submit" id="publish" tabindex="6" value="<?php _e('Publish') ?>" class="button button-highlighted" />