PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 6.0.13
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v6.0.13
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 / settings / 6.display.php

6.display.php in Floating Button – Easily Create Sticky, Fixed & Floating Buttons 6.0.13, at includes/settings/6.display.php

76 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Page Name: Display
4 */
5
6 use FloatingButton\Dashboard\Field;
7 use FloatingButton\Dashboard\FieldHelper;
8 use FloatingButton\Dashboard\Option;
9
10 defined( 'ABSPATH' ) || exit;
11
12 $default = Field::getDefault();
13 $setOpt = include( 'options/display.php' );
14
15 $count = 0;
16 if ( array_key_exists( 'show', $default['param'] ) && is_array( $default['param']['show'] ) ) {
17 $count = count( $default['param']['show'] );
18 }
19
20 ?>
21
22 <h4>
23 <span class="wowp-icon fas fa-list-check"></span>
24 <?php
25 esc_html_e( 'Display Conditions', 'floating-button' ); ?>
26 </h4>
27
28 <fieldset id="display-rules" class="wowp-item">
29 <legend><?php
30 esc_html_e( 'Display Rules', 'floating-button' ); ?></legend>
31 <div class="wowp-fields-group">
32 <?php
33 Option::init( [
34 $setOpt['show'],
35 ], 0 ); ?>
36
37 </div>
38
39
40 </fieldset>
41
42
43 <fieldset class="wowp-item">
44 <legend><?php
45 esc_html_e( 'Devices Rules', 'floating-button' ); ?></legend>
46 <div class="wowp-fields-group">
47 <?php
48 Option::init( [
49 $setOpt['is_desktop'],
50 $setOpt['desktop_screen']
51 ] ); ?>
52 </div>
53 <div class="wowp-fields-group">
54 <?php
55 Option::init( [
56 $setOpt['is_mobile'],
57 $setOpt['mobile_screen']
58 ] ); ?>
59 </div>
60
61 </fieldset>
62
63
64 <fieldset class="wowp-item">
65 <legend><?php
66 esc_html_e( 'Other', 'floating-button' ); ?></legend>
67
68 <div class="wowp-fields-group">
69 <?php
70 Option::init( [ $setOpt['fontawesome'] ] ); ?>
71 </div>
72
73 </fieldset>
74
75 <?php
76