| 1 |
<?php |
| 2 |
/** |
| 3 |
* Settings view |
| 4 |
*/ |
| 5 |
// Load the jQuery UI dialog dependencies |
| 6 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 7 |
|
| 8 |
wp_enqueue_script( 'jquery-ui-dialog' ); |
| 9 |
wp_enqueue_style( 'wp-jquery-ui-dialog' ); |
| 10 |
|
| 11 |
wp_enqueue_script( 'code-engine' ); |
| 12 |
|
| 13 |
?> |
| 14 |
<div class="wrap"> |
| 15 |
<h1><?php esc_html_e( 'Code Engine Settings', 'code-engine' ); ?></h1> |
| 16 |
<h2 class="title"><?php esc_html_e( 'Functions', 'code-engine' ); ?></h2> |
| 17 |
<?php $this->list_table->views(); ?> |
| 18 |
<?php $this->list_table->display(); ?> |
| 19 |
<h2 class="title"><?php esc_html_e( 'Settings', 'code-engine' ); ?></h2> |
| 20 |
<input type="button" id="btn-display-functions-json" class="button button-primary" value="<?php esc_html_e( 'Display Functions JSON', 'code-engine' ); ?>" /> |
| 21 |
<p><?php esc_html_e( 'This feature will log the content of the JSON in the Developer Tools Console.', 'code-engine' ); ?></p> |
| 22 |
</div> |
| 23 |
|
| 24 |
<div id="action-result-dialog" class="hidden" style="min-width: 400px; max-width:800px"> |
| 25 |
<p></p> |
| 26 |
</div> |
| 27 |
|
| 28 |
<?php wp_nonce_field( 'wp_rest', '_wpnonce_rest', false ); ?> |
| 29 |
|
| 30 |
|