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 add_thickbox();
mp-wp_genesis 17 wp_enqueue_script('media-upload');
mp-wp_genesis 18 wp_enqueue_script('word-count');
mp-wp_genesis 19
mp-wp_genesis 20 if ( ! current_user_can('edit_posts') ) {
mp-wp_genesis 21 require_once ('./admin-header.php'); ?>
mp-wp_genesis 22 <div class="wrap">
mp-wp_genesis 23 <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 24 You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
mp-wp_genesis 25 When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?>
mp-wp_genesis 26 </p>
mp-wp_genesis 27 </div>
mp-wp_genesis 28 <?php
mp-wp_genesis 29 include('admin-footer.php');
mp-wp_genesis 30 exit();
mp-wp_genesis 31 }
mp-wp_genesis 32
mp-wp_genesis 33 // Show post form.
mp-wp_genesis 34 $post = get_default_post_to_edit();
mp-wp_genesis 35 include('edit-form-advanced.php');
mp-wp_genesis 36
mp-wp_genesis 37 include('admin-footer.php');
mp-wp_genesis 38 ?>