PluginProbe
Float menu – awesome floating side menu / 7.1
Float menu – awesome floating side menu v7.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 7.1, at admin/settings/sidebar.php

121 lines 4.6 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="wpie-icon wpie_icon-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="has-tooltip on-right is-pointer" data-tooltip="Open Link"><span
59 class="wpie-icon wpie_icon-link"></span></span>
60 </a>
61 <?php else: ?>
62 <span class="wpie-icon wpie_icon-link"></span>
63 <?php endif; ?>
64 <input type="url" name="link" id="link" value="<?php echo esc_url( $link ); ?>">
65 </label>
66 </div>
67
68 <?php if ( ! empty( $shortcode ) ) : ?>
69 <div class="wpie-field">
70 <label class="wpie-field__label has-icon">
71 <span class="has-tooltip on-right is-pointer can-copy" data-tooltip="Copy"><span
72 class="dashicons dashicons-shortcode"></span></span>
73 <input type="text" id="shortcode" value="<?php echo esc_attr( $shortcode ); ?>" readonly>
74 </label>
75 </div>
76 <?php endif; ?>
77
78 </div>
79
80 <div class="wpie-actions__box">
81
82 <div class="wpie-action__link">
83 <?php if ( ! empty( $options['id'] ) ): ?>
84 <a class="wpie-link-delete"
85 href="<?php echo esc_url( Link::remove( $options['id'] ) ); ?>">
86 <?php esc_html_e( 'Delete', 'float-menu' ); ?>
87 </a>
88 <?php endif; ?>
89 </div>
90
91 <div class="wpie-action__btn">
92 <span class="spinner"></span>
93 <?php submit_button( null, 'primary', 'submit_settings', false ); ?>
94 </div>
95 </div>
96
97 </div>
98
99 <?php if ( !class_exists( '\FloatMenuLite\WOWP_PRO' ) ) : ?>
100 <div class="wpie-sidebar wpie-sidebar-features">
101 <div class="wpie-item_heading">
102 <span class="wpie-item_heading_icon">
103 <span class="wpie-icon wpie_icon-rocket wpie-color-danger"></span>
104 </span>
105 <span class="wpie-item_heading_label">
106 <?php esc_html_e( 'PRO VERSION', 'float-menu' ); ?>
107 </span>
108 <span class="wpie-item_heading_type"></span>
109 </div>
110
111 <div class="wpie-buttons">
112 <a href="<?php echo esc_url( WOWP_Plugin::info( 'demo' ) ); ?>" target="_blank" class="wpie-button is-demo">Demo</a>
113 <a href="<?php echo esc_url( WOWP_Plugin::info( 'pro' ) ); ?>" target="_blank" class="wpie-button is-pro">GET
114 PRO</a>
115 </div>
116 </div>
117
118 <?php
119 endif;
120
121