PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 6.0.7
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v6.0.7
trunk 2.0.2 3.0 4.0 4.1.2 4.3 5.0 5.0.1 5.1 5.1.1 5.2 5.3 5.3.1 6.0 6.0.1 6.0.10 6.0.11 6.0.12 6.0.13 6.0.2 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 All 31 releases
floating-button / includes / pages / sidebar.php

sidebar.php in Floating Button – Easily Create Sticky, Fixed & Floating Buttons 6.0.7, at includes/pages/sidebar.php

106 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use FloatingButton\Dashboard\DBManager;
4 use FloatingButton\Dashboard\Field;
5 use FloatingButton\Dashboard\Link;
6 use FloatingButton\WOW_Plugin;
7
8 defined( 'ABSPATH' ) || exit;
9
10 $default = Field::getDefault();
11
12 $link = ! empty( $default['param']['link'] ) ? $default['param']['link'] : '';
13
14 $shortcode = '';
15 if ( ! empty( $default['id'] ) ) {
16 $shortcode = '[' . WOW_Plugin::SHORTCODE . ' id="' . absint( $default['id'] ) . '"]';
17 }
18
19 ?>
20
21 <div class="postbox ">
22 <div class="postbox-header">
23 <h2 class="hndle">
24 <?php esc_html_e( 'Publish', 'floating-button' ); ?>
25 </h2>
26 </div>
27
28 <div class="inside">
29
30 <div class="submitbox wowp-sidebar" id="submitpost">
31
32 <div id="minor-publishing">
33 <div class="misc-pub-section wowp-sidebar-pub-section">
34
35 <div class="wowp-field has-checkbox">
36 <label>
37 <span class="label"><?php esc_html_e( 'Status', 'floating-button' ); ?></span>
38 <?php Field::checkbox( 'status' ); ?>
39 <span><?php esc_html_e( 'Deactivate', 'floating-button' ); ?></span>
40 </label>
41
42 </div>
43
44 <div class="wowp-field has-checkbox">
45 <label>
46 <span class="label"><?php esc_html_e( 'Test mode', 'floating-button' ); ?></span>
47 <?php Field::checkbox( 'mode' ); ?>
48 <span><?php esc_html_e( 'Activate', 'floating-button' ); ?></span>
49 </label>
50 </div>
51
52 <div class="wowp-field has-addon border-default">
53 <label for="tag" class="is-addon"><span class="dashicons dashicons-tag"></span></label>
54 <input list="wowp-tags" type="text" name="tag" id="tag"
55 value="<?php echo esc_attr( $default['tag'] ); ?>">
56 <datalist id="wowp-tags">
57 <?php DBManager::display_tags(); ?>
58 </datalist>
59 </div>
60
61 <div class="wowp-field has-addon border-default">
62 <label for="link" class="is-addon">
63 <?php if ( ! empty( $link ) ): ?>
64 <a href="<?php echo esc_url( $link ); ?>" target="_blank">
65 <span class="dashicons dashicons-admin-links"></span>
66 </a>
67 <?php else: ?>
68 <span class="dashicons dashicons-admin-links"></span>
69 <?php endif; ?>
70 </label>
71 <input type="url" name="param[link]" id="link"
72 value="<?php echo esc_url( $link ); ?>">
73 </div>
74
75 <?php if ( ! empty( $shortcode ) ) : ?>
76 <div class="wowp-field has-addon border-default">
77 <label for="shortcode" class="is-addon">
78 <span class="dashicons dashicons-shortcode"></span>
79 </label>
80 <input type="text" id="shortcode" readonly value="<?php echo esc_attr( $shortcode ); ?>">
81 </div>
82 <?php endif; ?>
83
84 </div>
85 </div>
86 <div class="major-publishing-actions" id="major-publishing-actions">
87 <?php if ( ! empty( $default['id'] ) ): ?>
88 <div id="delete-action">
89 <a class="submitdelete deletion"
90 href="<?php echo esc_url( Link::remove( $default['id'] ) ); ?>">
91 <?php esc_html_e( 'Delete', 'floating-button' ); ?>
92 </a>
93 </div>
94 <?php endif; ?>
95
96 <div id="publishing-action">
97 <?php submit_button( null, 'primary', 'submit_settings', false ); ?>
98 </div>
99 <div class="clear"></div>
100
101 </div>
102
103 </div>
104 </div>
105 </div>
106