2003-05-23 10:29:51 +02:00
|
|
|
<?php
|
2004-01-03 02:55:55 +01:00
|
|
|
$mode = 'sidebar';
|
2003-05-23 10:29:51 +02:00
|
|
|
|
2005-02-24 19:47:21 +01:00
|
|
|
require_once('admin.php');
|
2003-05-23 10:29:51 +02:00
|
|
|
|
2005-07-17 21:29:55 +02:00
|
|
|
if ( ! current_user_can('edit_posts') )
|
2006-07-10 07:29:10 +02:00
|
|
|
wp_die(__('Cheatin’ uh?'));
|
2003-05-23 10:29:51 +02:00
|
|
|
|
2004-04-21 00:56:47 +02:00
|
|
|
if ('b' == $_GET['a']) {
|
2003-05-23 10:29:51 +02:00
|
|
|
|
|
|
|
?><!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>
|
2005-02-14 05:36:57 +01:00
|
|
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
|
2008-03-27 00:41:41 +01:00
|
|
|
<title><?php _e('WordPress › Posted'); ?></title>
|
2008-03-02 21:17:30 +01:00
|
|
|
<?php
|
2008-05-22 02:06:41 +02:00
|
|
|
wp_admin_css( 'global', true );
|
|
|
|
wp_admin_css( 'wp-admin', true );
|
|
|
|
wp_admin_css( 'colors', true );
|
2008-02-11 08:53:10 +01:00
|
|
|
?>
|
2003-05-23 10:29:51 +02:00
|
|
|
</head>
|
2005-03-03 20:27:39 +01:00
|
|
|
<body>
|
2008-03-27 00:41:41 +01:00
|
|
|
<p><?php _e('Posted !'); ?></p>
|
|
|
|
<p><?php printf(__('<a href="%s">Click here</a> to post again.'), 'sidebar.php'); ?></p>
|
2003-05-23 10:29:51 +02:00
|
|
|
</body>
|
|
|
|
</html><?php
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
2004-06-11 21:28:30 +02:00
|
|
|
?><!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">
|
2003-05-23 10:29:51 +02:00
|
|
|
<head>
|
2005-02-14 05:36:57 +01:00
|
|
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
|
2008-03-27 00:41:41 +01:00
|
|
|
<title><?php _e('WordPress › Sidebar'); ?></title>
|
2008-03-02 21:17:30 +01:00
|
|
|
<?php
|
2008-05-22 02:06:41 +02:00
|
|
|
wp_admin_css( 'global', true );
|
|
|
|
wp_admin_css( 'wp-admin', true );
|
|
|
|
wp_admin_css( 'colors', true );
|
2008-02-11 08:53:10 +01:00
|
|
|
?>
|
2004-01-03 02:55:55 +01:00
|
|
|
<style type="text/css" media="screen">
|
|
|
|
form {
|
2003-05-23 10:29:51 +02:00
|
|
|
padding: 3px;
|
|
|
|
}
|
2004-01-03 06:12:32 +01:00
|
|
|
.sidebar-categories {
|
2006-11-19 08:56:05 +01:00
|
|
|
display: block;
|
|
|
|
height: 6.6em;
|
|
|
|
overflow: auto;
|
|
|
|
background-color: #f4f4f4;
|
2004-01-03 06:12:32 +01:00
|
|
|
}
|
2004-01-03 02:55:55 +01:00
|
|
|
.sidebar-categories label {
|
|
|
|
font-size: 10px;
|
2006-11-19 08:56:05 +01:00
|
|
|
display: block;
|
|
|
|
width: 90%;
|
2003-05-23 10:29:51 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
2004-01-03 02:55:55 +01:00
|
|
|
<body id="sidebar">
|
2005-10-12 20:21:15 +02:00
|
|
|
<h1 id="wphead"><a href="http://wordpress.org/" rel="external">WordPress</a></h1>
|
2006-07-05 22:18:56 +02:00
|
|
|
<form name="post" action="post.php" method="post">
|
2008-03-27 00:41:41 +01:00
|
|
|
<div>
|
|
|
|
<input type="hidden" name="action" value="post" />
|
2003-05-23 10:29:51 +02:00
|
|
|
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
|
|
|
<input type="hidden" name="mode" value="sidebar" />
|
2008-03-27 00:41:41 +01:00
|
|
|
<?php wp_nonce_field('add-post'); ?>
|
2008-05-04 12:37:06 +02:00
|
|
|
<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%;" />
|
2004-01-03 02:55:55 +01:00
|
|
|
</p>
|
2008-03-27 00:41:41 +01:00
|
|
|
<p><?php _e('Categories:'); ?>
|
2004-01-03 06:12:32 +01:00
|
|
|
<span class="sidebar-categories">
|
2003-05-23 10:29:51 +02:00
|
|
|
<?php dropdown_categories(); ?>
|
2004-01-03 06:12:32 +01:00
|
|
|
</span>
|
2004-01-03 02:55:55 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2008-05-04 12:37:06 +02:00
|
|
|
<label for="content">Post:</label>
|
|
|
|
<textarea rows="8" cols="12" style="width: 100%" name="content" id="content" tabindex="2"></textarea>
|
2004-01-03 02:55:55 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2008-03-27 00:41:41 +01:00
|
|
|
<input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft'); ?>" />
|
2005-12-05 04:38:35 +01:00
|
|
|
<?php if ( current_user_can('publish_posts') ) : ?>
|
2008-03-27 00:41:41 +01:00
|
|
|
<input name="publish" type="submit" id="publish" tabindex="6" value="<?php _e('Publish') ?>" class="button button-highlighted" />
|
2005-12-05 04:38:35 +01:00
|
|
|
<?php endif; ?>
|
2004-01-03 02:55:55 +01:00
|
|
|
</p>
|
2003-05-23 10:29:51 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</body>
|
2004-01-03 02:55:55 +01:00
|
|
|
</html>
|
|
|
|
<?php
|
2003-05-23 10:29:51 +02:00
|
|
|
}
|
2004-01-03 02:55:55 +01:00
|
|
|
?>
|