-
+ D5B0D20C4886A5910CD945D27C796E8B1CF89910E1507062E8A2543165E25EBB1C383533D7A5F1F36FD24B77357284BC5398DB7FD511BA48F52C930CAB35F704
mp-wp/wp-admin/sidebar.php
(0 . 0)(1 . 128)
57284 <?php
57285 /**
57286 * Quick way to create a WordPress Post.
57287 *
57288 * @package WordPress
57289 * @subpackage Administration
57290 */
57291
57292 /**
57293 * @var string
57294 * @name $mode
57295 */
57296 $mode = 'sidebar';
57297
57298 /** WordPress Administration Bootstrap */
57299 require_once('admin.php');
57300
57301 if ( ! current_user_can('edit_posts') )
57302 wp_die(__('Cheatin’ uh?'));
57303
57304 $post = get_default_post_to_edit();
57305
57306 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
57307 <html xmlns="http://www.w3.org/1999/xhtml">
57308 <head>
57309 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
57310 <title><?php bloginfo('name') ?> › <?php _e('Sidebar'); ?></title>
57311 <style type="text/css" media="screen">
57312 body {
57313 font-size: 0.9em;
57314 margin: 0;
57315 padding: 0;
57316 }
57317 form {
57318 padding: 1%;
57319 }
57320 .tags-wrap p {
57321 font-size: 0.75em;
57322 margin-top: 0.4em;
57323 }
57324 .button-highlighted, #wphead, label {
57325 font-weight: bold;
57326 }
57327 #post-title, #tags-input, #content {
57328 width: 99%;
57329 padding: 2px;
57330 }
57331 #wphead {
57332 font-size: 1.4em;
57333 background-color: #E4F2FD;
57334 color: #555555;
57335 padding: 0.2em 1%;
57336 }
57337 #wphead p {
57338 margin: 3px;
57339 }
57340 .button {
57341 font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
57342 padding: 3px 5px;
57343 margin-right: 5px;
57344 font-size: 0.75em;
57345 line-height: 1.5em;
57346 border: 1px solid #80b5d0;
57347 -moz-border-radius: 3px;
57348 -khtml-border-radius: 3px;
57349 -webkit-border-radius: 3px;
57350 border-radius: 3px;
57351 cursor: pointer;
57352 background-color: #e5e5e5;
57353 color: #246;
57354 }
57355 .button:hover {
57356 border-color: #535353;
57357 }
57358 .updated {
57359 background-color: #FFFBCC;
57360 border: 1px solid #E6DB55;
57361 margin-bottom: 1em;
57362 padding: 0 0.6em;
57363 }
57364 .updated p {
57365 margin: 0.6em;
57366 }
57367 </style>
57368 </head>
57369 <body id="sidebar">
57370 <div id="wphead"><p><?php bloginfo('name') ?> › <?php _e('Sidebar'); ?></p></div>
57371 <form name="post" action="post.php" method="post">
57372 <div>
57373 <input type="hidden" name="action" value="post" />
57374 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
57375 <input type="hidden" name="mode" value="sidebar" />
57376 <input type="hidden" name="ping_status" value="<?php echo $post->ping_status; ?>" />
57377 <input type="hidden" name="comment_status" value="<?php echo $post->comment_status; ?>" />
57378 <?php wp_nonce_field('add-post');
57379
57380 if ( 'b' == $_GET['a'] )
57381 echo '<div class="updated"><p>' . __('Post published.') . '</p></div>';
57382 elseif ( 'c' == $_GET['a'] )
57383 echo '<div class="updated"><p>' . __('Post saved.') . '</p></div>';
57384 ?>
57385 <p>
57386 <label for="post-title"><?php _e('Title:'); ?></label>
57387 <input type="text" name="post_title" id="post-title" size="20" tabindex="1" autocomplete="off" value="" />
57388 </p>
57389
57390 <p>
57391 <label for="content"><?php _e('Post:'); ?></label>
57392 <textarea rows="8" cols="12" name="content" id="content" style="height:10em;line-height:1.4em;" tabindex="2"></textarea>
57393 </p>
57394
57395 <div class="tags-wrap">
57396 <label for="tags-input"><?php _e('Tags:') ?></label>
57397 <input type="text" name="tags_input" id="tags-input" tabindex="3" value="" />
57398 <p><?php _e('Separate tags with commas'); ?></p>
57399 </div>
57400
57401 <p>
57402 <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" accesskey="s" class="button" value="<?php _e('Save as Draft'); ?>" />
57403 <?php if ( current_user_can('publish_posts') ) : ?>
57404 <input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _e('Publish') ?>" class="button button-highlighted" />
57405 <?php endif; ?>
57406 </p>
57407 </div>
57408 </form>
57409
57410 </body>
57411 </html>