eeb-page-display.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Main Template |
| 4 | */ |
| 5 | |
| 6 | $currentScreen = get_current_screen(); |
| 7 | $columnCount = (1 == $currentScreen->get_columns()) ? 1 : 2; |
| 8 | $mulsitie_slug = ( is_multisite() ) ? 'network/' : ''; |
| 9 | |
| 10 | ?> |
| 11 | |
| 12 | <div class="wrap"> |
| 13 | <h1><?php echo get_admin_page_title() ?></h1> |
| 14 | |
| 15 | <?php if( ! empty( $this->display_notices ) ) : ?> |
| 16 | <div class="eeb-admin-notices"> |
| 17 | <?php foreach( $this->display_notices as $single_notice ) : ?> |
| 18 | <?php echo $single_notice; ?> |
| 19 | <?php endforeach; ?> |
| 20 | </div> |
| 21 | <?php endif; ?> |
| 22 | |
| 23 | <form method="post" action=""> |
| 24 | <?php settings_fields( $this->page_name ); ?> |
| 25 | |
| 26 | <input type="hidden" name="<?php echo $this->page_name; ?>_nonce" value="<?php echo wp_create_nonce( $this->page_name ) ?>"> |
| 27 | |
| 28 | <div id="poststuff"> |
| 29 | <div id="post-body" class="metabox-holder columns-<?php echo $columnCount; ?>"> |
| 30 | <?php include( 'widgets/main.php' ); ?> |
| 31 | |
| 32 | <div id="postbox-container-1" class="postbox-container"> |
| 33 | <?php include( 'widgets/sidebar.php' ); ?> |
| 34 | </div> |
| 35 | |
| 36 | <div id="postbox-container-2" class="postbox-container"> |
| 37 | <?php do_meta_boxes('', 'normal', ''); ?> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | </form> |
| 42 | </div> |
| 43 |