mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * New Post Administration Panel.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** Load WordPress Administration Bootstrap */
mp-wp_genesis 10 require_once('admin.php');
mp-wp_genesis 11 $title = __('Add New Post');
mp-wp_genesis 12 $parent_file = 'edit.php';
mp-wp_genesis 13 $editing = true;
mp-wp_genesis 14 wp_enqueue_script('autosave');
mp-wp_genesis 15 wp_enqueue_script('post');
mp-wp_genesis 16 if ( user_can_richedit() )
mp-wp_genesis 17 wp_enqueue_script('editor');
mp-wp_genesis 18 add_thickbox();
mp-wp_genesis 19 wp_enqueue_script('media-upload');
mp-wp_genesis 20 wp_enqueue_script('word-count');
mp-wp_genesis 21
mp-wp_genesis 22 if ( ! current_user_can('edit_posts') ) {
mp-wp_genesis 23 require_once ('./admin-header.php'); ?>
mp-wp_genesis 24 <div class="wrap">
mp-wp_genesis 25 <p><?php printf(__('Since you’re a newcomer, you’ll have to wait for an admin to add the <code>edit_posts</code> capability to your user, in order to be authorized to post.<br />
mp-wp_genesis 26 You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
mp-wp_genesis 27 When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?>
mp-wp_genesis 28 </p>
mp-wp_genesis 29 </div>
mp-wp_genesis 30 <?php
mp-wp_genesis 31 include('admin-footer.php');
mp-wp_genesis 32 exit();
mp-wp_genesis 33 }
mp-wp_genesis 34
mp-wp_genesis 35 // Show post form.
mp-wp_genesis 36 $post = get_default_post_to_edit();
mp-wp_genesis 37 include('edit-form-advanced.php');
mp-wp_genesis 38
mp-wp_genesis 39 include('admin-footer.php');
mp-wp_genesis 40 ?>