| 1 |
<?php defined( 'ABSPATH' ) or exit; ?> |
| 2 |
|
| 3 |
<div class="wrap hf"> |
| 4 |
|
| 5 |
<p class="breadcrumbs"> |
| 6 |
<span class="prefix"><?php echo __( 'You are here: ', 'html-forms' ); ?></span> |
| 7 |
<a href="<?php echo admin_url( 'admin.php?page=html-forms' ); ?>">HTML Forms</a> › |
| 8 |
<span class="current-crumb"><strong><?php _e( 'Settings', 'html-forms' ); ?></strong></span> |
| 9 |
</p> |
| 10 |
|
| 11 |
<h1 class="page-title"><?php _e( 'Settings', 'html-forms' ); ?></h1> |
| 12 |
|
| 13 |
<?php if ( ! empty( $_GET['settings-updated'] ) ) { |
| 14 |
echo '<div class="notice notice-success"><p>' . __( 'Settings updated.', 'html-forms' ) . '</p></div>'; |
| 15 |
} ?> |
| 16 |
|
| 17 |
<form method="post" action="<?php echo admin_url( 'options.php' ); ?>"> |
| 18 |
<?php settings_fields( 'hf_settings' ); ?> |
| 19 |
|
| 20 |
<table class="form-table"> |
| 21 |
<tr valign="top"> |
| 22 |
<th scope="row"><?php _e( 'Load stylesheet?', 'html-forms' ); ?></th> |
| 23 |
<td> |
| 24 |
<label><input type="radio" name="hf_settings[load_stylesheet]" value="1" <?php checked( $settings['load_stylesheet'], 1 ); ?>> <?php _e( 'Yes' ); ?></label> |
| 25 |
<label><input type="radio" name="hf_settings[load_stylesheet]" value="0" <?php checked( $settings['load_stylesheet'], 0 ); ?>> <?php _e( 'No' ); ?></label> |
| 26 |
|
| 27 |
<p class="help"><?php _e( 'Select "yes" to apply some basic form styles to all HTML Forms.', 'html-forms' ); ?></p> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
<?php submit_button(); ?> |
| 32 |
</form> |
| 33 |
|
| 34 |
<?php require __DIR__ . '/admin-footer.php'; ?> |
| 35 |
</div> |
| 36 |
|