PluginProbe
Float menu – awesome floating side menu / 6.0
Float menu – awesome floating side menu v6.0
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
← All changes | admin/pages/2.settings.php +12 -10 trunk6.0 View file →
@@ -9,8 +9,9 @@
9 9
10 10 defined( 'ABSPATH' ) || exit;
11 11
12 12 $options = Settings::get_options();
13 +
13 14 $title = $options['title'] ?? '';
14 15 $id = $options['id'] ?? '';
15 16 ?>
16 17 <form action="" id="wpie-settings" class="wpie-settings__wrapper" method="post">
@@ -20,10 +21,11 @@
20 21 <div class="wpie-field">
21 22 <label class="wpie-field__label">
22 23 <span class="screen-reader-text">
23 24 <?php esc_html_e( 'Enter title here', 'float-menu' ); ?></span>
24 - <input type="text" name="title" size="30" value="<?php echo esc_attr( $title ); ?>" id="title"
25 - placeholder="<?php esc_attr_e( 'Add title', 'float-menu' ); ?>">
25 + <input type="text" name="title" size="30" value="<?php
26 + echo esc_attr( $title ); ?>" id="title" placeholder="<?php
27 + esc_attr_e( 'Add title', 'float-menu' ); ?>">
26 28 </label>
27 29 </div>
28 30 <?php
29 31 Settings::init(); ?>
@@ -30,15 +32,15 @@
30 32
31 33 </div>
32 34
33 35 <div class="wpie-settings__sidebar">
34 - <?php require_once WOWP_Plugin::dir() . 'admin/settings/sidebar.php'; ?>
36 + <?php
37 + require_once WOWP_Plugin::dir() . 'admin/settings/sidebar.php'; ?>
35 38 </div>
36 39
37 - <input type="hidden" name="tool_id" value="<?php echo absint( $id ); ?>" id="tool_id"/>
38 - <input type="hidden" name="item_time" value="<?php echo esc_attr( time() ); ?>"/>
39 - <?php wp_nonce_field( WOWP_Plugin::PREFIX . '_nonce', WOWP_Plugin::PREFIX . '_settings' ); ?>
40 + <input type="hidden" name="tool_id" value="<?php
41 + echo absint( $id ); ?>" id="tool_id"/>
42 + <input type="hidden" name="item_time" value="<?php
43 + echo esc_attr( time() ); ?>"/>
44 + <?php
45 + wp_nonce_field( WOWP_Plugin::PREFIX . '_nonce', WOWP_Plugin::PREFIX . '_settings' ); ?>
40 46 </form>
41 -<?php
42 -
43 -$text = __( 'Item Saved', 'float-menu' );
44 -echo '<div class="wpie-notice notice notice-success">' . esc_html( $text ) . '</div>';