mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Don't show template dropdown if there's only one: http://mosquito.wordpress.org/view.php?id=530
git-svn-id: http://svn.automattic.com/wordpress/trunk@2203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ac7b74637e
commit
9ae063a5ed
@ -83,22 +83,25 @@ edCanvas = document.getElementById('content');
|
||||
<fieldset id="pageoptions">
|
||||
<legend><?php _e('Page Options') ?></legend>
|
||||
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
|
||||
<?php if ( 0 != count( get_page_templates() ) ) { ?>
|
||||
<tr valign="top">
|
||||
<th scope="row" width="30%"><?php _e('Page Template:') ?></th>
|
||||
<td><div><select name="page_template">
|
||||
<option value='default'><?php _e('Default Template'); ?></option>
|
||||
<?php page_template_dropdown($page_template); ?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr valign="top">
|
||||
<th scope="row" width="25%"><?php _e('Page slug') ?>:</th>
|
||||
<th scope="row" width="30%"><?php _e('Page slug') ?>:</th>
|
||||
<td><input name="post_name" type="text" size="25" id="post_name" value="<?php echo $post_name ?>" /></td>
|
||||
</tr>
|
||||
<?php if ($user_level > 7 && $users = $wpdb->get_results("SELECT ID, user_login, user_firstname, user_lastname FROM $wpdb->users WHERE user_level <= $user_level AND user_level > 0") ) : ?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Page owner'); ?>:</th>
|
||||
<th scope="row" width="30%"><?php _e('Page owner'); ?>:</th>
|
||||
<td>
|
||||
<select name="post_author" id="post_author">
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user