html-options-edit.php
61 lines
| 1 | <div class="wrap acf-settings-wrap"> |
| 2 | |
| 3 | <?php |
| 4 | $title = __('Edit Option'); |
| 5 | if($_REQUEST['action'] === 'add') |
| 6 | $title = __('Add Option'); |
| 7 | ?> |
| 8 | <h1 class="wp-heading-inline"><?php echo $title; ?></h1> |
| 9 | |
| 10 | <hr class="wp-header-end" /> |
| 11 | |
| 12 | <form id="post" method="post" name="post"> |
| 13 | |
| 14 | <?php |
| 15 | |
| 16 | // render post data |
| 17 | acf_form_data(array( |
| 18 | 'screen' => 'acfe-options-edit', |
| 19 | 'post_id' => 'acfe_options_edit', |
| 20 | )); |
| 21 | |
| 22 | wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); |
| 23 | wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); |
| 24 | |
| 25 | ?> |
| 26 | |
| 27 | <div id="poststuff"> |
| 28 | |
| 29 | <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>"> |
| 30 | |
| 31 | <!-- |
| 32 | <div id="post-body-content"> |
| 33 | <div id="titlediv"> |
| 34 | <div id="titlewrap"> |
| 35 | <input type="text" name="post_title" size="30" value="Post 4" id="title" spellcheck="true" autocomplete="off" /> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | --> |
| 40 | |
| 41 | <div id="postbox-container-1" class="postbox-container"> |
| 42 | |
| 43 | <?php do_meta_boxes('acf_options_page', 'side', null); ?> |
| 44 | |
| 45 | </div> |
| 46 | |
| 47 | <div id="postbox-container-2" class="postbox-container"> |
| 48 | |
| 49 | <?php do_meta_boxes('acf_options_page', 'normal', null); ?> |
| 50 | |
| 51 | </div> |
| 52 | |
| 53 | </div> |
| 54 | |
| 55 | <br class="clear" /> |
| 56 | |
| 57 | </div> |
| 58 | |
| 59 | </form> |
| 60 | |
| 61 | </div> |