Pages update and tweaks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
<div class="wrap">
|
||||
|
||||
<h2><?php _e('New Page'); ?></h2>
|
||||
<?php
|
||||
if (0 == $post_ID) {
|
||||
$form_action = 'post';
|
||||
@@ -32,16 +32,32 @@ function focusit() {
|
||||
window.onload = focusit;
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<div id="poststuff">
|
||||
<fieldset id="titlediv">
|
||||
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
|
||||
<legend><?php _e('Page Title') ?></legend>
|
||||
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
<fieldset id="commentstatusdiv">
|
||||
<legend><?php _e('Discussion') ?></legend>
|
||||
<div><label for="comment_status" class="selectit">
|
||||
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($comment_status, 'open'); ?> />
|
||||
<?php _e('Allow Comments') ?></label>
|
||||
<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset id="postpassworddiv">
|
||||
<legend><?php _e('Page Password') ?></legend>
|
||||
<div><input name="post_password" type="text" size="13" id="post_password" value="<?php echo $post_password ?>" /></div>
|
||||
</fieldset>
|
||||
<fieldset id="pageparent">
|
||||
<legend><?php _e('Page Parent') ?></a></legend>
|
||||
<div><select name="parent_id">
|
||||
<option value='0'>Main Page (no parent)</option>
|
||||
<?php parent_dropdown(); ?>
|
||||
</select>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset id="postdiv">
|
||||
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with page field') ?>"><?php _e('Page') ?></a></legend>
|
||||
<legend><?php _e('Page Content') ?></legend>
|
||||
<?php the_quicktags(); ?>
|
||||
<?php
|
||||
$rows = get_settings('default_post_edit_rows');
|
||||
@@ -60,11 +76,10 @@ edCanvas = document.getElementById('content');
|
||||
</script>
|
||||
|
||||
<p class="submit">
|
||||
<input name="savepage" type="submit" id="savepage" tabindex="6" style="font-weight: bold;" value="<?php _e('Save') ?>" />
|
||||
<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page') ?> »" />
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo htmlspecialchars($_SERVER['HTTP_REFERER']); ?>" />
|
||||
</p>
|
||||
<?php do_action('edit_page_form', ''); ?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user