creation of the repo fbpatch
This commit is contained in:
24
html/menu.html
Normal file
24
html/menu.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--
|
||||
|
||||
{"calculations":false,"hide_show":false}
|
||||
|
||||
-->
|
||||
|
||||
<style>
|
||||
.patches_wrapper {
|
||||
margin: 20px 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- https://developer.wordpress.org/reference/hooks/admin_post_action/ -->
|
||||
<form method="POST" action="<?php echo admin_url( 'admin-post.php' ); ?>">
|
||||
<input type="hidden" name="action" value="<?php echo $admin_post_patches; ?>">
|
||||
<?php wp_nonce_field($nonce['_action'], $nonce['_name']); ?>
|
||||
<?php foreach($patches as $patch => $options) {?>
|
||||
<div class="patches_wrapper">
|
||||
<input type="checkbox" id="<?php echo $patch; ?>" name="<?php echo $patch; ?>" <?php echo $options['checked'] === true ? "checked" : "" ?> />
|
||||
<label for="<?php echo $patch; ?>"><b><?php echo $options['title']; ?> : </b><?php echo $options['description']; ?></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<input type="submit" value="send"/>
|
||||
</form>
|
||||
Reference in New Issue
Block a user