html-options-page.php
47 lines
| 1 | <div class="wrap acf-settings-wrap"> |
| 2 | |
| 3 | <h1><?php echo esc_html( $page_title ); ?></h1> |
| 4 | |
| 5 | <form id="post" method="post" name="post"> |
| 6 | |
| 7 | <?php |
| 8 | |
| 9 | // render post data |
| 10 | acf_form_data( |
| 11 | array( |
| 12 | 'screen' => 'options', |
| 13 | 'post_id' => $post_id, |
| 14 | ) |
| 15 | ); |
| 16 | |
| 17 | wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); |
| 18 | wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); |
| 19 | |
| 20 | ?> |
| 21 | |
| 22 | <div id="poststuff" class="poststuff"> |
| 23 | |
| 24 | <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>"> |
| 25 | |
| 26 | <div id="postbox-container-1" class="postbox-container"> |
| 27 | |
| 28 | <?php do_meta_boxes( 'acf_options_page', 'side', null ); ?> |
| 29 | |
| 30 | </div> |
| 31 | |
| 32 | <div id="postbox-container-2" class="postbox-container"> |
| 33 | |
| 34 | <?php do_meta_boxes( 'acf_options_page', 'normal', null ); ?> |
| 35 | |
| 36 | </div> |
| 37 | |
| 38 | </div> |
| 39 | |
| 40 | <br class="clear"> |
| 41 | |
| 42 | </div> |
| 43 | |
| 44 | </form> |
| 45 | |
| 46 | </div> |
| 47 |