-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hostsToRewrite option and advanced-options page.
- Loading branch information
1 parent
b3cd0d7
commit 62ed042
Showing
9 changed files
with
225 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
// phpcs:disable Generic.Files.LineLength.MaxExceeded | ||
// phpcs:disable Generic.Files.LineLength.TooLong | ||
/** | ||
* @var mixed[] $view | ||
*/ | ||
|
||
?> | ||
|
||
<div class="wrap"> | ||
<form | ||
name="wp2static-ui-advanced-options" | ||
method="POST" | ||
action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> | ||
|
||
<h1>Advanced Options<h1> | ||
|
||
<h2>Post-processing Options</h2> | ||
|
||
<table class="widefat striped"> | ||
<tbody> | ||
<tr> | ||
<td style="width:50%;"> | ||
<label | ||
for="<?php echo $view['coreOptions']['hostsToRewrite']->name; ?>" | ||
><b><?php echo $view['coreOptions']['hostsToRewrite']->label; ?></b></label> | ||
<br/><?php echo $view['coreOptions']['hostsToRewrite']->description; ?> | ||
</td> | ||
<td> | ||
<textarea | ||
class="widefat" | ||
cols=30 rows=10 | ||
id="<?php echo $view['coreOptions']['hostsToRewrite']->name; ?>" | ||
name="<?php echo $view['coreOptions']['hostsToRewrite']->name; ?>" | ||
type="text" | ||
><?php echo $view['coreOptions']['hostsToRewrite']->blob_value; ?></textarea> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<p> | ||
|
||
<?php wp_nonce_field( $view['nonce_action'] ); ?> | ||
<input name="action" type="hidden" value="wp2static_ui_save_advanced_options" /> | ||
|
||
<button class="button btn-primary" type="submit">Save options</button> | ||
|
||
</form> | ||
</div> |