PluginProbe
Float menu – awesome floating side menu / 6.1
Float menu – awesome floating side menu v6.1
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
float-menu / admin / settings / sidebar.php

sidebar.php in Float menu – awesome floating side menu 6.1, at admin/settings/sidebar.php

99 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use FloatMenuLite\Admin\DBManager;
4 use FloatMenuLite\Admin\Link;
5 use FloatMenuLite\Admin\Settings;
6 use FloatMenuLite\WOWP_Plugin;
7
8 defined( 'ABSPATH' ) || exit;
9
10 $link = $options['link'] ?? '';
11 $tag = $options['tag'] ?? '';
12 $status = ! empty( $options['status'] ) ? 'true' : 'false';
13 $test = ! empty( $options['mode'] ) ? 'true' : 'false';
14
15 $shortcode = '';
16 if ( ! empty( $options['id'] ) ) {
17 $shortcode = '[' . WOWP_Plugin::SHORTCODE . ' id="' . absint( $options['id'] ) . '"]';
18 }
19
20 ?>
21
22 <div class="wpie-sidebar">
23
24 <h2 class="wpie-title"><?php esc_html_e( 'Publish', 'float-menu' ); ?></h2>
25 <div class="wpie-fields__box">
26
27 <div class="wpie-field">
28 <div class="wpie-field__title"><?php esc_html_e( 'Status', 'float-menu' ); ?></div>
29 <label class="wpie-field__label">
30 <input type="checkbox" name="status" value="true" <?php checked( "true", $status ); ?>>
31 <span class=""><?php esc_html_e( 'Deactivate', 'float-menu' ); ?></span>
32 </label>
33 </div>
34
35 <div class="wpie-field">
36 <div class="wpie-field__title"><?php esc_html_e( 'Test mode', 'float-menu' ); ?></div>
37 <label class="wpie-field__label">
38 <input type="checkbox" name="mode" value="true" <?php checked( "true", $test ); ?>>
39 <span class=""><?php esc_html_e( 'Activate', 'float-menu' ); ?></span>
40 </label>
41 </div>
42
43 <div class="wpie-field">
44 <label class="wpie-field__label has-icon">
45 <span class="dashicons dashicons-tag"></span>
46 <input list="wpie-tags" type="text" name="tag" id="tag"
47 value="<?php echo esc_attr( $tag ); ?>">
48 <datalist id="wpie-tags">
49 <?php DBManager::display_tags(); ?>
50 </datalist>
51 </label>
52 </div>
53
54 <div class="wpie-field">
55 <label class="wpie-field__label has-icon">
56 <?php if ( ! empty( $link ) ): ?>
57 <a href="<?php echo esc_url( $link ); ?>" target="_blank">
58 <span class="dashicons dashicons-admin-links"></span>
59 </a>
60 <?php else: ?>
61 <span class="dashicons dashicons-admin-links"></span>
62 <?php endif; ?>
63 <input type="url" name="link" id="link" value="<?php echo esc_url( $link ); ?>">
64 </label>
65 </div>
66
67 <?php if ( ! empty( $shortcode ) ) : ?>
68 <div class="wpie-field">
69 <label class="wpie-field__label has-icon">
70 <span class="dashicons dashicons-shortcode"></span>
71 <input type="text" id="shortcode" value="<?php echo esc_attr( $shortcode ); ?>" readonly>
72 </label>
73 </div>
74 <?php endif; ?>
75
76 </div>
77
78 <div class="wpie-actions__box">
79
80 <div class="wpie-action__link">
81 <?php if ( ! empty( $options['id'] ) ): ?>
82 <a class="wpie-link-delete"
83 href="<?php echo esc_url( Link::remove( $options['id'] ) ); ?>">
84 <?php esc_html_e( 'Delete', 'float-menu' ); ?>
85 </a>
86 <?php endif; ?>
87 </div>
88
89 <div class="wpie-action__btn">
90 <?php submit_button( null, 'primary', 'submit_settings', false ); ?>
91 </div>
92 </div>
93
94 </div>
95
96 <?php
97 require_once plugin_dir_path( __FILE__ ) . 'pro-plugin.php';
98
99