PluginProbe
Code Engine – PHP Snippets, AI Functions & Automation for WordPress / 0.0.2
Code Engine – PHP Snippets, AI Functions & Automation for WordPress v0.0.2
0.5.6 0.5.5 0.5.4 0.5.3 0.5.2 0.5.1 0.5.0 0.4.9 0.4.8 0.4.7 0.4.6 trunk 0.0.1 0.0.2 0.2.8 0.2.9 0.3.0 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 All 32 releases
code-engine / classes / views / settings.php

settings.php in Code Engine – PHP Snippets, AI Functions & Automation for WordPress 0.0.2, at classes/views/settings.php

30 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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