PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.2
WP Coder – Insert & Manage Code Snippets v4.2
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Tools/ToolsManager.php +16 -16 3.54.2 View file →
@@ -9,25 +9,25 @@
9 9 public static function init(): void {
10 10 self::send();
11 11
12 12 ?>
13 - <div class="wrap wowp-wrap wpcoder-tools-wrap wowp-settings">
13 +
14 + <div class="wowp-settings wowp-tools">
14 15 <form method="post">
15 - <fieldset style="display: block;">
16 - <legend>
17 - <?php esc_html_e( 'Tools', 'wpcoder' ); ?>
18 - </legend>
19 - <div class="tab-content-wrapper wowp-tab-content">
20 - <?php require_once plugin_dir_path( __FILE__ ) . '/page.php'; ?>
21 - </div>
22 - <div class="wowp-field is-full has-mt">
23 - <?php
24 - submit_button( __( 'Save', 'wpcoder' ), 'primary large', 'submit', false ); ?>
25 - </div>
26 16
27 - <?php
28 - wp_nonce_field( WPCoder::PREFIX . '_tools_action', WPCoder::PREFIX . '_save_tools' ); ?>
29 - </fieldset>
17 + <div class="wowp-snippets__header">
18 + <h3 class="wowp-snippets__header-title">Tools & Integrations</h3>
19 + <p class="wowp-snippets__header-description">Manage useful features and external service
20 + integrations to enhance your site.</p>
21 + </div>
22 +
23 +
24 + <?php require_once plugin_dir_path( __FILE__ ) . '/page.php'; ?>
25 +
26 + <?php submit_button( __( 'Save', 'wp-coder' ), 'wowp-button button button-dark button-hero', 'submit', false ); ?>
27 +
28 + <?php wp_nonce_field( WPCoder::PREFIX . '_tools_action', WPCoder::PREFIX . '_save_tools' ); ?>
29 +
30 30 </form>
31 31 </div>
32 32 <?php
33 33
@@ -50,9 +50,9 @@
50 50 private static function field( $type = 'checkbox', $name = '', $def = '', $placeholder = '' ) {
51 51 $options = get_option( '_wp_coder_tools', [] );
52 52 if ( $type === 'checkbox' ) {
53 53 $checked = array_key_exists( $name, $options ) ? 'checked' : '';
54 - echo '<input type="checkbox" name="wp_coder_tool[' . esc_attr( $name ) . ']" ' . esc_attr( $checked ) . ' value="1">';
54 + echo '<input type="checkbox" name="wp_coder_tool[' . esc_attr( $name ) . ']" ' . esc_attr( $checked ) . ' value="1" id="' . esc_attr( $name ) . '">';
55 55 } elseif ( $type === 'textarea' ) {
56 56 $value = ! empty( $options[ $name ] ) ? $options[ $name ] : $def;
57 57 echo '<textarea name="wp_coder_tool[' . esc_attr( $name ) . ']" placeholder="' . esc_attr( $placeholder ) . '">' . esc_attr( $value ) . '</textarea>';
58 58 } else {