PluginProbe
Float menu – awesome floating side menu / 3.3.1
Float menu – awesome floating side menu v3.3.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 / partials / generator / style.php

style.php in Float menu – awesome floating side menu 3.3.1, at admin/partials/generator/style.php

197 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ========= INFORMATION ============================
2 - document: Float Menu - easily create floating menus of varying complexity!
3 - url: https://wow-estore.com/item/float-menu-pro/
4 - author: Wow-Company & Dmytro Lobov
5 - profile: https://wow-estore.com/
6 - version: 3.1
7 - email: support@wow-company.com
8 ==================================================== */
9 <?php if ( ! defined( 'ABSPATH' ) ) exit;
10 $isize = !empty( $param['iconSize'] ) ? $param['iconSize'] : 24;
11 $lsize = !empty( $param['labelSize'] ) ? $param['labelSize'] : 15;
12 $iwidth = $isize*2;
13 $iwidth1 = $iwidth-1;
14 $iwidth2 = $iwidth+2;
15 $iwidth3 = $iwidth+8;
16 // $lsize = $isize-9;
17 $misize = !empty( $param['mobiliconSize'] ) ? $param['mobiliconSize'] : 24;
18 $mlsize = !empty( $param['mobillabelSize'] ) ? $param['mobillabelSize'] : 15;
19 $miwidth = $misize*2;
20 $miwidth1 = $miwidth-1;
21 $miwidth2 = $miwidth+2;
22 $miwidth3 = $miwidth+8;
23 $mlsize = $misize-9;
24
25 if (isset( $id ) ) {
26 $idd = $id;
27 }
28 else {
29 $idd = $lastid;
30 }
31 $css = '';
32 $count_i = (!empty( $param[ 'menu_1' ][ 'item_type' ] )) ? count( $param[ 'menu_1' ][ 'item_type' ] ) : '0';
33 if ( $count_i > 0 ) {
34 for ( $i = 0; $i < $count_i; $i++ ) {
35 $css .= '.fm-item-' . $idd . '-' . $i . ' .fm-icon, .fm-item-' . $idd . '-' . $i . ' a:hover .fm-icon, .fm-item-' . $idd . '-' . $i . ' .fm-label, .fm-item-' . $idd . '-' . $i . ' .fm-icon i {';
36 $css .= 'color:' . $param[ 'menu_1' ][ 'color' ][ $i ] . ';';
37 $css .= 'background-color:' . $param[ 'menu_1' ][ 'bcolor' ][ $i ] . ';';
38 $css .= '}';
39 }
40 }
41 $css .= '
42 .fm-bar.fm-right li,
43 .fm-right .fm-mask,
44 .fm-hit,
45 .fm-icon {
46 height: ' . $iwidth . 'px;
47 }
48 .fm-bar a,
49 .fm-icon,
50 .fm-round .fm-hit,
51 .fm-sub > ul
52 {
53 width: ' . $iwidth . 'px;
54 }
55 .fm-icon,
56 .fm-label {
57 line-height:' . $iwidth . 'px;
58 }
59 .fm-icon {
60 font-size: ' . $isize . 'px;
61 }
62 .fm-label {
63 font-size: ' . $lsize . 'px;
64 }
65 .fm-icon .fa {
66 line-height: ' . $iwidth . 'px !important;
67 }
68
69 .fm-label,
70 .fm-label-space .fm-hit,
71 .fm-sub.fm-side > ul
72 {
73 left: ' . $iwidth . 'px;
74 }
75 .fm-right .fm-label,
76 .fm-right.fm-label-space .fm-hit,
77 .fm-right .fm-sub.fm-side > ul
78 {
79 right: ' . $iwidth . 'px;
80 }
81 .fm-round.fm-label-space .fm-hit
82 {
83 width: ' . $iwidth2 .'px;
84 }
85 .fm-sub > ul {
86 top: ' . $iwidth . 'px;
87 }
88 .fm-round li,
89 .fm-round .fm-mask,
90 .fm-round .fm-icon,
91 .fm-round a,
92 .fm-round .fm-label {
93 border-radius: ' . $isize . 'px;
94 }
95 .fm-connected .fm-label {
96 padding: 0 11px 0 ' . $iwidth3 . 'px;
97 }
98 .fm-right.fm-connected .fm-label {
99 padding: 0 ' . $iwidth3 . 'px 0 11px;
100 }
101 .fm-connected.fm-round .fm-label {
102 padding: 0 12px 0 ' . $iwidth1 . 'px;
103 }
104 .fm-right.fm-connected.fm-round .fm-label {
105 padding: 0 ' . $iwidth1 . 'px 0 12px;
106 }
107 ';
108 $mobilieScreen = !empty( $param['mobilieScreen'] ) ? $param['mobilieScreen'] : 480;
109 $css .= '
110 @media only screen and (max-width: ' . $mobilieScreen . 'px){
111 .fm-bar.fm-right li,
112 .fm-right .fm-mask,
113 .fm-hit,
114 .fm-icon {
115 height: ' . $miwidth . 'px;
116 }
117 .fm-bar a,
118 .fm-icon,
119 .fm-round .fm-hit,
120 .fm-sub > ul
121 {
122 width: ' . $miwidth . 'px;
123 }
124 .fm-icon,
125 .fm-label {
126 line-height:' . $miwidth . 'px;
127 }
128 .fm-icon {
129 font-size: ' . $misize . 'px;
130 }
131 .fm-label {
132 font-size: ' . $mlsize . 'px;
133 }
134 .fm-icon .fa {
135 line-height: ' . $miwidth . 'px !important;
136 }
137
138 .fm-label,
139 .fm-label-space .fm-hit,
140 .fm-sub.fm-side > ul
141 {
142 left: ' . $miwidth . 'px;
143 }
144 .fm-right .fm-label,
145 .fm-right.fm-label-space .fm-hit,
146 .fm-right .fm-sub.fm-side > ul
147 {
148 right: ' . $miwidth . 'px;
149 }
150 .fm-round.fm-label-space .fm-hit
151 {
152 width: ' . $miwidth2 .'px;
153 }
154 .fm-sub > ul {
155 top: ' . $miwidth . 'px;
156 }
157 .fm-round li,
158 .fm-round .fm-mask,
159 .fm-round .fm-icon,
160 .fm-round a,
161 .fm-round .fm-label {
162 border-radius: ' . $misize . 'px;
163 }
164 .fm-connected .fm-label {
165 padding: 0 11px 0 ' . $miwidth3 . 'px;
166 }
167 .fm-right.fm-connected .fm-label {
168 padding: 0 ' . $miwidth3 . 'px 0 11px;
169 }
170 .fm-connected.fm-round .fm-label {
171 padding: 0 12px 0 ' . $miwidth1 . 'px;
172 }
173 .fm-right.fm-connected.fm-round .fm-label {
174 padding: 0 ' . $miwidth1 . 'px 0 12px;
175 }
176 }';
177 if(!empty($param['include_mobile'])){
178 $screen = !empty( $param['screen'] ) ? $param['screen'] : 480;
179 $css .= '
180 @media only screen and (max-width: ' . $screen . 'px){
181 .float-menu-' . $idd .' {
182 display:none;
183 }
184 }';
185 }
186 if(!empty($param['include_more_screen'])){
187 $screen_more = !empty( $param['screen_more'] ) ? $param['screen_more'] : 1200;
188 $css .= '
189 @media only screen and (min-width: ' . $screen_more . 'px){
190 .float-menu-' . $idd .' {
191 display:none;
192 }
193 }';
194 }
195 $css = trim(preg_replace('~\s+~s', ' ', $css));
196 echo $css;
197 ?>