| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
?> |
| 7 |
|
| 8 |
<div class="wrap"> |
| 9 |
<h1> |
| 10 |
<?php printf( '%s %s', $this->extension_name, __( 'Settings', 'powered-cache' ) ); ?> |
| 11 |
</h1> |
| 12 |
|
| 13 |
|
| 14 |
<div id="powered-cache-admin-page-wrapper" class="powered-cache-settings-page"> |
| 15 |
|
| 16 |
<div id="post-body"> |
| 17 |
<!-- main content --> |
| 18 |
<div id="post-body-content"> |
| 19 |
<form method="post" action="" enctype="multipart/form-data" class="powered-cache-form"> |
| 20 |
<div class="meta-box-sortables"> |
| 21 |
<div class="postbox"> |
| 22 |
<div class="inside"> |
| 23 |
|
| 24 |
<?php wp_nonce_field( 'powered_cache_update_settings', 'powered_cache_settings_nonce' ); ?> |
| 25 |
<input type="hidden" name="action" value="powered_cache_update_extension_settings" /> |
| 26 |
<input type="hidden" name="extension" value="<?php echo esc_attr( $this->extension_id ); ?>" /> |
| 27 |
<input type="hidden" name="wp_http_referer" value="<?php echo esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) ); ?>'" /> |
| 28 |
|
| 29 |
<?php |
| 30 |
if ( isset( $this->settings_files ) && is_array( $this->settings_files ) ) { |
| 31 |
foreach ( $this->settings_files as $file ) { |
| 32 |
if ( file_exists( $file ) ) { |
| 33 |
include $file; |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
?> |
| 38 |
|
| 39 |
|
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div class="save"> |
| 44 |
<?php submit_button( __( 'Save Changes', 'powered-cache' ), 'primary', 'submit', false ); ?> |
| 45 |
</div> |
| 46 |
</form> |
| 47 |
</div> |
| 48 |
<!-- post-body-content --> |
| 49 |
|
| 50 |
</div> |
| 51 |
|
| 52 |
<br class="clear"> |
| 53 |
</div> |
| 54 |
<!-- #poststuff --> |
| 55 |
|
| 56 |
</div> <!-- .wrap --> |