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