2004-11-16 20:29:51 +01:00
|
|
|
<?php
|
|
|
|
require_once('admin.php');
|
2006-11-18 08:31:29 +01:00
|
|
|
$title = __('New Page');
|
|
|
|
$parent_file = 'post-new.php';
|
2005-07-23 08:22:48 +02:00
|
|
|
$editing = true;
|
2006-08-11 05:54:45 +02:00
|
|
|
wp_enqueue_script('prototype');
|
2007-02-22 16:30:47 +01:00
|
|
|
wp_enqueue_script('interface');
|
2006-08-11 05:54:45 +02:00
|
|
|
wp_enqueue_script('autosave');
|
2004-11-16 20:29:51 +01:00
|
|
|
require_once('admin-header.php');
|
|
|
|
?>
|
|
|
|
|
2006-10-04 15:16:07 +02:00
|
|
|
<?php if ( (isset($_GET['posted']) && $_GET['posted']) || isset($_GET['saved']) ) : ?>
|
2006-10-04 09:46:47 +02:00
|
|
|
<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?> »</a></p></div>
|
2004-11-16 20:29:51 +01:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
2005-07-15 04:16:45 +02:00
|
|
|
if ( current_user_can('edit_pages') ) {
|
2004-11-16 20:29:51 +01:00
|
|
|
$action = 'post';
|
2005-06-19 05:07:16 +02:00
|
|
|
$post = get_default_post_to_edit();
|
2006-02-09 11:03:48 +01:00
|
|
|
$post->post_type = 'page';
|
2004-11-16 20:29:51 +01:00
|
|
|
|
|
|
|
include('edit-page-form.php');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2006-10-04 09:46:47 +02:00
|
|
|
<?php include('admin-footer.php'); ?>
|