WP Mobile Menu - Version 1.0

Version Description

  • Initial Version

=

Download this release

Release Info

Developer takanakui
Plugin Icon 128x128 WP Mobile Menu
Version 1.0
Comparing to
See all releases

Version 1.0

changelog.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ -----------------------------------------------------------
2
+ Version 1.0
3
+ - Initial Release
4
+
5
+ -----------------------------------------------------------
css/mobmenu-admin.css ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Mobile Menu Admin CSS Style*/
2
+
3
+ .widefat td {
4
+
5
+ padding: 8px 7px;
6
+ vertical-align: middle;
7
+
8
+ }
9
+
10
+ table.widefat {
11
+
12
+ background-color: #FFFFFF;
13
+
14
+ }
15
+
16
+
17
+ .headeradm{
18
+
19
+ background-color: #DCDCEC;
20
+
21
+ }
22
+
23
+ .leftcol {
24
+
25
+ width: 30%;
26
+
27
+ }
28
+
29
+ .firstcol{
30
+
31
+ width: 240px;
32
+
33
+ }
34
+
35
+ .ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a, .ui-tabs .ui-tabs-nav li a {
36
+
37
+ font-size: 12px;
38
+ font-family: inherit;
39
+
40
+ }
41
+
42
+ .ui-widget-header {
43
+
44
+ background: none !important;
45
+
46
+ }
47
+
48
+ .ui-widget-content, .widefat {
49
+
50
+ border:0px solid #fff !important;
51
+
52
+ }
css/mobmenu.css ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Mobile Menu Frontend CSS Style*/
2
+
3
+ html, body {
4
+ overflow-x: hidden;
5
+ }
6
+
7
+ .mob_menu, .mob_menu_left_panel, .mob_menu_right_panel{
8
+ display: none;
9
+
10
+ }
11
+
12
+
13
+ .widget img {
14
+
15
+ max-width: 100%;
16
+
17
+ }
18
+
19
+
20
+ .rightmtop{
21
+
22
+ margin-left: 10px;
23
+
24
+ }
25
+
26
+ .leftmbottom{
27
+
28
+ margin-left: 10px;
29
+ margin-top: 20px;
30
+
31
+ }
32
+
33
+
34
+ .leftmtop{
35
+
36
+ margin-left: 10px;
37
+ margin-top: 20px;
38
+
39
+ }
40
+
41
+
42
+ #mobmenuleft li > ul {
43
+
44
+ display:none;
45
+ left: 15px;
46
+
47
+ }
48
+
49
+ #mobmenuleft li:hover > ul {
50
+
51
+ display:block;
52
+ padding-left: 30px;
53
+ }
54
+
55
+
56
+ #mobmenuright li > ul {
57
+
58
+ display:none;
59
+ left: 15px;
60
+
61
+ }
62
+
63
+ #mobmenuright li:hover > ul {
64
+
65
+ display:block;
66
+ padding-left: 30px;
67
+
68
+ }
69
+
70
+
71
+
72
+
73
+ .mob_menu_header_div{
74
+
75
+ width: 100%;
76
+ font-weight:bold;
77
+ font-size:12px;
78
+ position:fixed;
79
+ top:0px;
80
+ right: 0px;
81
+ z-index: 99999998;
82
+ color:#000;
83
+
84
+ }
85
+
86
+
87
+
88
+ .rightmbottom, .rightmtop {
89
+
90
+ padding-left: 10px;
91
+ padding-right: 10px;
92
+
93
+ }
94
+
95
+ .mobmenu_content {
96
+
97
+ z-index: 1;
98
+ width: 220px;
99
+ height: 100%;
100
+ padding-top: 10px;
101
+ overflow: auto;
102
+
103
+ }
104
+
105
+ .mobmenu_content li a {
106
+
107
+ display: block;
108
+ font-family: 'Arial';
109
+ padding: 10px;
110
+ text-decoration: none;
111
+
112
+ }
113
+
114
+ .mobmenu_content ul {
115
+
116
+ margin: auto;
117
+
118
+ }
119
+
120
+
121
+ .mobmenu_content li {
122
+
123
+ list-style: none;
124
+
125
+ }
126
+
127
+
128
+ .mob_menu_footer_div ul{
129
+
130
+ list-style:none;
131
+ margin-top: 0px;
132
+
133
+ }
134
+
135
+ .mob_menu_footer_div li a{
136
+
137
+ display: block;
138
+
139
+ }
140
+
141
+ .mob_menu_footer_div li{
142
+
143
+ float:left;
144
+ text-align: center;
145
+ position: relative;
146
+
147
+ }
148
+
149
+
150
+ .mob_menu_footer_div{
151
+
152
+ width: 100%;
153
+ height: 50px;
154
+ font-weight:bold;
155
+ font-size:12px;
156
+ position:fixed;
157
+ bottom:0px;
158
+ left: 0px;
159
+ z-index: 99999998;
160
+ color:#000;
161
+ overflow:hidden;
162
+
163
+ }
164
+
165
+ .mob_menu_left_panel_anim{
166
+
167
+ background-color: #565550 !important;
168
+ -webkit-transition: all .30s ease-in-out !important;
169
+ transition: all .30s ease-in-out !important;
170
+ transform: translate(0px) !important;
171
+ -ms-transform: translate(0px) !important;
172
+ -webkit-transform: translate(0px) !important;
173
+
174
+ }
175
+
176
+
177
+ .mob_menu_right_panel_anim{
178
+
179
+ background-color: #565550 !important;
180
+ -webkit-transition: all .30s ease-in-out !important;
181
+ transition: all .30s ease-in-out !important;
182
+ transform: translate(0px) !important;
183
+ -ms-transform: translate(0px) !important;
184
+ -webkit-transform: translate(0px) !important;
185
+
186
+ }
187
+
188
+
189
+ .mobmenul-container{
190
+
191
+ left: 25px;
192
+ position: absolute;
193
+
194
+ }
195
+
196
+
197
+ .mobmenur-container{
198
+
199
+ position: absolute;
200
+ right: 0px;
201
+
202
+ }
203
+
204
+ .mob_menu_left_panel{
205
+
206
+ width: 230px;
207
+ height: 100%;
208
+ position: fixed;
209
+ top: 0px;
210
+ left: 0px;
211
+ z-index: 99999999;
212
+ transform: translate(-230px);
213
+ -ms-transform: translate(-230px);
214
+ -webkit-transform: translate(-230px);
215
+ transition: all .30s ease-in-out !important;
216
+ -webkit-transition: all .30s ease-in-out !important;
217
+ overflow:hidden;
218
+
219
+ }
220
+
221
+ .mob_menu_right_panel{
222
+
223
+ width: 220px;
224
+ height: 100%;
225
+ position: fixed;
226
+ top: 0px;
227
+ right: 0px;
228
+ background-color: rgba(112,101,90,.2);
229
+ z-index: 99999999;
230
+ transform: translate(220px);
231
+ -ms-transform: translate(220px);
232
+ -webkit-transform: translate(220px);
233
+ transition: all .30s ease-in-out !important;
234
+ -webkit-transition: all .30s ease-in-out !important;
235
+ overflow:hidden;
236
+
237
+ }
238
+
239
+ .leftmbottom h2{
240
+
241
+ font-weight: bold;
242
+ background-color: gray;
243
+ padding-left: 5px;
244
+ color: #fff;
245
+
246
+ }
247
+
248
+ #mobmenuleft li a:visited {
249
+ color: #FFFFFF !important;
250
+ }
images/mobile_32.png ADDED
Binary file
images/mobile_icon.png ADDED
Binary file
includes/style.php ADDED
@@ -0,0 +1,763 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+
5
+
6
+
7
+ <?php
8
+
9
+
10
+
11
+ // Determine the Width of the Footer li elements base on the admin options
12
+
13
+ $footerlinks = 0;
14
+
15
+
16
+
17
+ if( 'true' == get_option('mobmenu_opt_enabled_1stlink') ) $footerlinks++;
18
+
19
+ if( 'true' == get_option('mobmenu_opt_enabled_2ndlink') ) $footerlinks++;
20
+
21
+ if( 'true' == get_option('mobmenu_opt_enabled_3rdlink') ) $footerlinks++;
22
+
23
+ if( 'true' == get_option('mobmenu_opt_enabled_4thlink') ) $footerlinks++;
24
+
25
+
26
+
27
+ switch ($footerlinks) {
28
+
29
+
30
+
31
+ case 1:
32
+
33
+ $footerliwidth = '100%';
34
+
35
+ break;
36
+
37
+
38
+
39
+ case 2:
40
+
41
+ $footerliwidth = '50%';
42
+
43
+ break;
44
+
45
+
46
+
47
+ case 3:
48
+
49
+ $footerliwidth = '33%';
50
+
51
+ break;
52
+
53
+
54
+
55
+ case 4:
56
+
57
+ $footerliwidth = '25%';
58
+
59
+ break;
60
+
61
+ }
62
+
63
+ ?>
64
+
65
+ <style>
66
+
67
+
68
+
69
+ /* Our css Custom Options values */
70
+
71
+
72
+
73
+ @media only screen and (max-width:<?php echo get_option('mobmenu_opt_res_trigger'); ?>px){
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <?php echo get_option('mobmenu_opt_hide_selectors'); ?> {
82
+
83
+ display:none !important;
84
+
85
+ }
86
+
87
+
88
+ .mob_menu, .mob_menu_left_panel, .mob_menu_right_panel{
89
+
90
+ display: block;
91
+
92
+ }
93
+
94
+ #mobmenuleft li a {
95
+
96
+ font-family:News Cycle,helvetica,arial,sans-serif;
97
+ color: <?php echo get_option("mobmenu_opt_left_text_color");?> !important;
98
+
99
+
100
+
101
+ }
102
+
103
+
104
+
105
+
106
+ #mobmenuleft li a:hover {
107
+
108
+
109
+
110
+ font-family:News Cycle,helvetica,arial,sans-serif;
111
+
112
+ color: <?php echo get_option("mobmenu_opt_left_text_color_hover");?> !important;
113
+
114
+
115
+
116
+ }
117
+
118
+
119
+
120
+ #mobmenuleft li a:visited {
121
+
122
+ font-family:News Cycle,helvetica,arial,sans-serif;
123
+
124
+ color: #FFFFFF !important;
125
+
126
+ }
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ #mobmenuright li a {
137
+
138
+
139
+
140
+ color: <?php echo get_option("mobmenu_opt_right_text_color");?> !important;
141
+
142
+
143
+
144
+ }
145
+
146
+
147
+
148
+ #mobmenuright li a:hover {
149
+
150
+
151
+
152
+ color: <?php echo get_option("mobmenu_opt_right_text_color_hover");?> !important;
153
+
154
+
155
+
156
+ }
157
+
158
+
159
+
160
+ .mob_menu_footer_div li{
161
+
162
+
163
+
164
+ width: <?php echo $footerliwidth; ?>;
165
+
166
+
167
+
168
+ }
169
+
170
+
171
+
172
+ .mob_menu_footer_div{
173
+
174
+
175
+
176
+ height: <?php echo get_option('mobmenu_opt_footer_height');?>px;
177
+
178
+ line-height: <?php echo get_option('mobmenu_opt_footer_height');?>px;
179
+
180
+
181
+
182
+ }
183
+
184
+
185
+
186
+ .mobmenul-container{
187
+
188
+
189
+
190
+ top: <?php echo get_option('mobmenu_opt_left_icon_topmargin');?>px;
191
+
192
+ }
193
+
194
+
195
+
196
+
197
+
198
+ .mobmenur-container{
199
+
200
+
201
+
202
+ top: <?php echo get_option('mobmenu_opt_right_icon_topmargin');?>px;
203
+
204
+ }
205
+
206
+
207
+
208
+ .logoPlace{
209
+
210
+
211
+
212
+
213
+
214
+ padding-top: <?php echo get_option('mobmenu_opt_header_logo_topmargin');?>px;
215
+
216
+ text-align:center;
217
+
218
+
219
+
220
+
221
+
222
+ }
223
+
224
+
225
+
226
+
227
+
228
+ .mob_menu_header_div{
229
+
230
+
231
+
232
+ background-color: <?php echo get_option('mobmenu_opt_header_bgcolor'); ?> !important;
233
+
234
+ height: <?php echo get_option('mobmenu_opt_header_height'); ?>px;
235
+
236
+ width: 100%;
237
+
238
+ font-weight:bold;
239
+
240
+ font-size:12px;
241
+
242
+ position:fixed;
243
+
244
+ top:0px;
245
+
246
+ right: 0px;
247
+
248
+ z-index: 99999998;
249
+
250
+ color:#000;
251
+
252
+ display: block;
253
+
254
+ }
255
+
256
+
257
+
258
+ .mob_menu_footer_div{
259
+
260
+
261
+
262
+ background-color: <?php echo get_option('mobmenu_opt_footer_bgcolor'); ?> !important;
263
+
264
+ width: 100%;
265
+
266
+ height: 50px;
267
+
268
+ font-weight:bold;
269
+
270
+ font-size:12px;
271
+
272
+ position:fixed;
273
+
274
+ bottom:0px;
275
+
276
+ left: 0px;
277
+
278
+ z-index: 99999998;
279
+
280
+ color:#000;
281
+
282
+ overflow:hidden;
283
+
284
+
285
+
286
+
287
+ }
288
+
289
+
290
+
291
+ .mob_menu_left_panel{
292
+
293
+
294
+
295
+ background-color: <?php echo get_option('mobmenu_opt_left_menu_bgcolor'); ?> !important;
296
+
297
+ }
298
+
299
+
300
+
301
+ .mob_menu_right_panel{
302
+
303
+
304
+
305
+ background-color: <?php echo get_option('mobmenu_opt_right_menu_bgcolor'); ?> !important;
306
+
307
+ width: 220px;
308
+
309
+ height: 100%;
310
+
311
+ position: fixed;
312
+
313
+ top: 0px;
314
+
315
+ right: 0px;
316
+
317
+ background-color: rgba(112,101,90,.2);
318
+
319
+ z-index: 99999999;
320
+
321
+ transform: translate(220px);
322
+
323
+ -ms-transform: translate(220px);
324
+
325
+ -webkit-transform: translate(220px);
326
+
327
+ transition: all .30s ease-in-out !important;
328
+
329
+ -webkit-transition: all .30s ease-in-out !important;
330
+
331
+ overflow:hidden;
332
+
333
+
334
+ }
335
+
336
+
337
+
338
+ .headertext{
339
+
340
+ color: <?php echo get_option('mobmenu_opt_header_textcolor'); ?> !important;
341
+
342
+ font-size: <?php echo get_option('mobmenu_opt_header_font_size');?>px;
343
+
344
+ }
345
+
346
+
347
+
348
+ html, body {
349
+
350
+ overflow-x: hidden;
351
+
352
+ }
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+ .widget img {
362
+
363
+
364
+
365
+ max-width: 100%;
366
+
367
+
368
+
369
+ }
370
+
371
+
372
+
373
+
374
+
375
+ .rightmtop{
376
+
377
+
378
+
379
+ margin-left: 10px;
380
+
381
+
382
+
383
+ }
384
+
385
+
386
+
387
+ .leftmbottom{
388
+
389
+
390
+
391
+ margin-left: 10px;
392
+
393
+ margin-top: 20px;
394
+
395
+
396
+
397
+ }
398
+
399
+
400
+
401
+
402
+
403
+ .leftmtop{
404
+
405
+
406
+
407
+ margin-left: 10px;
408
+
409
+ margin-top: 20px;
410
+
411
+
412
+
413
+ }
414
+
415
+
416
+
417
+
418
+
419
+ #mobmenuleft li > ul {
420
+
421
+
422
+
423
+ display:none;
424
+
425
+ left: 15px;
426
+
427
+
428
+
429
+ }
430
+
431
+
432
+
433
+ #mobmenuleft li:hover > ul {
434
+
435
+
436
+
437
+ display:block;
438
+
439
+ padding-left: 30px;
440
+
441
+ }
442
+
443
+
444
+
445
+
446
+
447
+ #mobmenuright li > ul {
448
+
449
+
450
+
451
+ display:none;
452
+
453
+ left: 15px;
454
+
455
+
456
+
457
+ }
458
+
459
+
460
+
461
+ #mobmenuright li:hover > ul {
462
+
463
+
464
+
465
+ display:block;
466
+
467
+ padding-left: 30px;
468
+
469
+
470
+
471
+ }
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+ .rightmbottom, .rightmtop {
489
+
490
+
491
+
492
+ padding-left: 10px;
493
+
494
+ padding-right: 10px;
495
+
496
+
497
+
498
+ }
499
+
500
+
501
+
502
+ .mobmenu_content {
503
+
504
+
505
+
506
+ z-index: 1;
507
+
508
+ width: 220px;
509
+
510
+ height: 100%;
511
+
512
+ padding-top: 10px;
513
+
514
+ overflow: auto;
515
+
516
+
517
+
518
+ }
519
+
520
+
521
+
522
+ .mobmenu_content li a {
523
+
524
+
525
+
526
+ display: block;
527
+
528
+ font-family: 'Arial';
529
+
530
+ padding: 10px;
531
+
532
+ text-decoration: none;
533
+
534
+
535
+
536
+ }
537
+
538
+
539
+
540
+ .mobmenu_content ul {
541
+
542
+
543
+
544
+ margin: auto;
545
+
546
+
547
+
548
+ }
549
+
550
+
551
+
552
+
553
+
554
+ .mobmenu_content li {
555
+
556
+
557
+
558
+ list-style: none;
559
+
560
+
561
+
562
+ }
563
+
564
+
565
+
566
+
567
+
568
+ .mob_menu_footer_div ul{
569
+
570
+
571
+
572
+ list-style:none;
573
+
574
+ margin-top: 0px;
575
+
576
+
577
+
578
+ }
579
+
580
+
581
+
582
+ .mob_menu_footer_div li a{
583
+
584
+
585
+
586
+ display: block;
587
+
588
+
589
+
590
+ }
591
+
592
+
593
+
594
+ .mob_menu_footer_div li{
595
+
596
+
597
+
598
+ float:left;
599
+
600
+ text-align: center;
601
+
602
+ position: relative;
603
+
604
+
605
+
606
+ }
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+ .mob_menu_left_panel_anim{
616
+
617
+
618
+
619
+ -webkit-transition: all .30s ease-in-out !important;
620
+
621
+ transition: all .30s ease-in-out !important;
622
+
623
+ transform: translate(0px) !important;
624
+
625
+ -ms-transform: translate(0px) !important;
626
+
627
+ -webkit-transform: translate(0px) !important;
628
+
629
+
630
+
631
+ }
632
+
633
+
634
+
635
+
636
+
637
+ .mob_menu_right_panel_anim{
638
+
639
+
640
+
641
+ background-color: #565550 !important;
642
+
643
+ -webkit-transition: all .30s ease-in-out !important;
644
+
645
+ transition: all .30s ease-in-out !important;
646
+
647
+ transform: translate(0px) !important;
648
+
649
+ -ms-transform: translate(0px) !important;
650
+
651
+ -webkit-transform: translate(0px) !important;
652
+
653
+
654
+
655
+ }
656
+
657
+
658
+
659
+
660
+
661
+ .mobmenul-container{
662
+
663
+
664
+
665
+ left: 25px;
666
+
667
+ position: absolute;
668
+
669
+
670
+
671
+ }
672
+
673
+
674
+
675
+
676
+
677
+ .mobmenur-container{
678
+
679
+
680
+
681
+ position: absolute;
682
+
683
+ right: 0px;
684
+
685
+
686
+
687
+ }
688
+
689
+
690
+
691
+ .mob_menu_left_panel{
692
+
693
+
694
+
695
+ width: 230px;
696
+
697
+ height: 100%;
698
+
699
+ position: fixed;
700
+
701
+ top: 0px;
702
+
703
+ left: 0px;
704
+
705
+ z-index: 99999999;
706
+
707
+ transform: translate(-230px);
708
+
709
+ -ms-transform: translate(-230px);
710
+
711
+ -webkit-transform: translate(-230px);
712
+
713
+ transition: all .30s ease-in-out !important;
714
+
715
+ -webkit-transition: all .30s ease-in-out !important;
716
+
717
+ overflow:hidden;
718
+
719
+
720
+
721
+ }
722
+
723
+
724
+
725
+
726
+
727
+ .leftmbottom h2{
728
+
729
+
730
+
731
+ font-weight: bold;
732
+
733
+ background-color: gray;
734
+
735
+ padding-left: 5px;
736
+
737
+ color: #fff;
738
+
739
+
740
+
741
+ }
742
+
743
+
744
+
745
+
746
+ }
747
+
748
+ @media only screen and (min-width:<?php echo get_option('mobmenu_opt_res_trigger'); ?>px){
749
+
750
+ .mob_menu, .mob_menu_left_panel, .mob_menu_right_panel{
751
+
752
+ display: none;
753
+
754
+
755
+
756
+ }
757
+ }
758
+
759
+
760
+
761
+ </style>
762
+
763
+
js/mobmenu-admin.js ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ jQuery(document).ready(function() {
3
+
4
+
5
+
6
+
7
+ jQuery('.wp-color-picker-field').wpColorPicker();
8
+ jQuery("#mobmenu-admin-tabs").tabs();
9
+
10
+
11
+ jQuery('#upload_image_licon').click(function(e) {
12
+
13
+ e.preventDefault();
14
+ mob_menu_save_image('#mobmenu_left_icon');
15
+
16
+ //If the uploader object has already been created, reopen the dialog
17
+ /*
18
+ if (custom_uploader) {
19
+ custom_uploader.open();
20
+ return;
21
+ }*/
22
+ /*
23
+ //Extend the wp.media object
24
+ custom_uploader = wp.media.frames.file_frame = wp.media({
25
+ title: 'Choose Image',
26
+ button: {
27
+ text: 'Choose Image'
28
+ },
29
+ multiple: false
30
+ });
31
+
32
+ attachment = null;
33
+
34
+ //When a file is selected, grab the URL and set it as the text field's value
35
+ custom_uploader.on('select', function() {
36
+ attachment = custom_uploader.state().get('selection').first().toJSON();
37
+ jQuery('#mobmenu_left_icon').val(attachment.url);
38
+ });
39
+
40
+ //Open the uploader dialog
41
+ custom_uploader.open();
42
+ */
43
+ });
44
+
45
+
46
+
47
+
48
+
49
+ jQuery('#upload_image_ft_1sticon').click(function(e) {
50
+
51
+ e.preventDefault();
52
+ mob_menu_save_image('#mobmenu_footer_1sticon');
53
+ /*
54
+ //Extend the wp.media object
55
+ custom_uploader = wp.media.frames.file_frame = wp.media({
56
+ title: 'Choose Image',
57
+ button: {
58
+ text: 'Choose Image'
59
+ },
60
+ multiple: false
61
+ });
62
+
63
+ attachment = null;
64
+
65
+ //When a file is selected, grab the URL and set it as the text field's value
66
+ custom_uploader.on('select', function() {
67
+ attachment = custom_uploader.state().get('selection').first().toJSON();
68
+ jQuery('#mobmenu_footer_1sticon').val(attachment.url);
69
+ });
70
+
71
+ //Open the uploader dialog
72
+ custom_uploader.open();
73
+ */
74
+ });
75
+
76
+ jQuery('#upload_image_ft_2ndicon').click(function(e) {
77
+
78
+ e.preventDefault();
79
+ mob_menu_save_image('#mobmenu_footer_2ndicon');
80
+
81
+ /*
82
+ //Extend the wp.media object
83
+ custom_uploader = wp.media.frames.file_frame = wp.media({
84
+ title: 'Choose Image',
85
+ button: {
86
+ text: 'Choose Image'
87
+ },
88
+ multiple: false
89
+ });
90
+
91
+ attachment = null;
92
+ //When a file is selected, grab the URL and set it as the text field's value
93
+ custom_uploader.on('select', function() {
94
+ attachment = custom_uploader.state().get('selection').first().toJSON();
95
+ jQuery('#mobmenu_footer_2ndicon').val(attachment.url);
96
+ });
97
+
98
+ //Open the uploader dialog
99
+ custom_uploader.open();
100
+ */
101
+ });
102
+
103
+
104
+
105
+ jQuery('#upload_image_ft_3rdicon').click(function(e) {
106
+
107
+ e.preventDefault();
108
+ mob_menu_save_image('#mobmenu_footer_3rdicon');
109
+
110
+ /*
111
+ //Extend the wp.media object
112
+ custom_uploader = wp.media.frames.file_frame = wp.media({
113
+ title: 'Choose Image',
114
+ button: {
115
+ text: 'Choose Image'
116
+ },
117
+ multiple: false
118
+ });
119
+
120
+ attachment = null;
121
+
122
+ //When a file is selected, grab the URL and set it as the text field's value
123
+ custom_uploader.on('select', function() {
124
+ attachment = custom_uploader.state().get('selection').first().toJSON();
125
+ jQuery('#mobmenu_footer_3rdicon').val(attachment.url);
126
+ });
127
+
128
+ //Open the uploader dialog
129
+ custom_uploader.open();
130
+ */
131
+ });
132
+
133
+
134
+ jQuery('#upload_image_ft_4thicon').click(function(e) {
135
+
136
+ e.preventDefault();
137
+ mob_menu_save_image('#mobmenu_footer_4thicon');
138
+
139
+ /*
140
+ //Extend the wp.media object
141
+ custom_uploader = wp.media.frames.file_frame = wp.media({
142
+ title: 'Choose Image',
143
+ button: {
144
+ text: 'Choose Image'
145
+ },
146
+ multiple: false
147
+ });
148
+
149
+ attachment = null;
150
+
151
+ //When a file is selected, grab the URL and set it as the text field's value
152
+ custom_uploader.on('select', function() {
153
+ attachment = custom_uploader.state().get('selection').first().toJSON();
154
+ jQuery('#mobmenu_footer_3rdicon').val(attachment.url);
155
+ });
156
+
157
+ //Open the uploader dialog
158
+ custom_uploader.open();
159
+ */
160
+ });
161
+
162
+
163
+
164
+
165
+
166
+
167
+ jQuery('#upload_image_ricon').click(function(e) {
168
+
169
+ e.preventDefault();
170
+ mob_menu_save_image('#mobmenu_right_icon');
171
+ /*
172
+ //Extend the wp.media object
173
+ custom_uploader = wp.media.frames.file_frame = wp.media({
174
+ title: 'Choose Image',
175
+ button: {
176
+ text: 'Choose Image'
177
+ },
178
+ multiple: false
179
+ });
180
+
181
+ attachment = null;
182
+
183
+ //When a file is selected, grab the URL and set it as the text field's value
184
+ custom_uploader.on('select', function() {
185
+ attachment = custom_uploader.state().get('selection').first().toJSON();
186
+ jQuery('#mobmenu_right_icon').val(attachment.url);
187
+ });
188
+
189
+ //Open the uploader dialog
190
+ custom_uploader.open();
191
+ */
192
+ });
193
+
194
+
195
+ jQuery('#upload_image_button').click(function(e) {
196
+
197
+ e.preventDefault();
198
+ mob_menu_save_image('#mobmenu_site_logo_img');
199
+
200
+ /*
201
+
202
+ //Extend the wp.media object
203
+ custom_uploader = wp.media.frames.file_frame = wp.media({
204
+ title: 'Choose Image',
205
+ button: {
206
+ text: 'Choose Image'
207
+ },
208
+ multiple: false
209
+ });
210
+
211
+ attachment = null;
212
+
213
+ //When a file is selected, grab the URL and set it as the text field's value
214
+ custom_uploader.on('select', function() {
215
+ attachment = custom_uploader.state().get('selection').first().toJSON();
216
+ jQuery('#mobmenu_site_logo_img').val(attachment.url);
217
+ });
218
+
219
+ //Open the uploader dialog
220
+ custom_uploader.open();
221
+ */
222
+ });
223
+
224
+
225
+
226
+ });
227
+
228
+ function mob_menu_save_image(targetvar){
229
+
230
+   var custom_uploader;
231
+
232
+ custom_uploader = wp.media.frames.file_frame = wp.media({
233
+ title: 'Choose Image',
234
+ button: {
235
+ text: 'Choose Image'
236
+ },
237
+ multiple: false
238
+ });
239
+
240
+ attachment = null;
241
+
242
+ //When a file is selected, grab the URL and set it as the text field's value
243
+ custom_uploader.on('select', function() {
244
+ attachment = custom_uploader.state().get('selection').first().toJSON();
245
+ jQuery(targetvar).val(attachment.url);
246
+ });
247
+
248
+ //Open the uploader dialog
249
+ custom_uploader.open();
250
+ }
js/mobmenu.js ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+
5
+
6
+
7
+ jQuery(document).ready(function() {
8
+
9
+
10
+
11
+
12
+
13
+ jQuery('#mobmenu-center').click(function(e){
14
+
15
+
16
+
17
+
18
+
19
+ jQuery('.mob_menu_left_panel').toggleClass('mob_menu_left_panel_anim');
20
+
21
+ jQuery('.mob_menu_right_panel').removeClass('mob_menu_right_panel_anim');
22
+
23
+
24
+
25
+ e.preventDefault();
26
+
27
+ e.stopPropagation();
28
+
29
+
30
+
31
+ });
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ jQuery('body').click(function(e){
40
+
41
+
42
+
43
+ jQuery('.mob_menu_right_panel').removeClass('mob_menu_right_panel_anim');
44
+
45
+ jQuery('.mob_menu_left_panel').removeClass('mob_menu_left_panel_anim');
46
+
47
+
48
+
49
+ });
50
+
51
+
52
+
53
+ jQuery('.mob_menu_right_panel, .mob_menu_left_panel').click(function(e){
54
+
55
+
56
+
57
+ jQuery('.mob_menu_right_panel').removeClass('mob_menu_right_panel_anim');
58
+
59
+ jQuery('.mob_menu_left_panel').removeClass('mob_menu_left_panel_anim');
60
+
61
+ e.stopPropagation();
62
+
63
+
64
+
65
+ });
66
+
67
+
68
+
69
+ jQuery('#mobmenu-right').click(function(e){
70
+
71
+
72
+
73
+ jQuery('.mob_menu_right_panel').toggleClass('mob_menu_right_panel_anim');
74
+
75
+ jQuery('.mob_menu_left_panel').removeClass('mob_menu_left_panel_anim');
76
+
77
+
78
+
79
+ e.preventDefault();
80
+
81
+ e.stopPropagation();
82
+
83
+ });
84
+
85
+
86
+
87
+
88
+
89
+ });
90
+
91
+
92
+
93
+
94
+
mobmenu-admin.php ADDED
@@ -0,0 +1,774 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Saving Mobile Menu Admin settings form data
4
+ if($_POST['mobmenu_update_settings'] == 'Y') {
5
+
6
+ //Save Enable Header/Footer Option
7
+ update_option('mobmenu_opt_enabled', $_POST['mobmenu_enabled']);
8
+
9
+ //Save Resolution Trigger Option
10
+ update_option('mobmenu_opt_res_trigger', $_POST['mobmenu_res_trigger']);
11
+
12
+ //Save Enable Left Menu
13
+ update_option('mobmenu_opt_left_menu_enabled', $_POST['mobmenu_enabled_left_menu']);
14
+
15
+ //Save Enable Right Menu
16
+ update_option('mobmenu_opt_right_menu_enabled', $_POST['mobmenu_enabled_right_menu']);
17
+
18
+ //Save Header Text Option
19
+ update_option('mobmenu_opt_header_text', $_POST['mobmenu_header_text']);
20
+
21
+ //Save Header Text Option
22
+ update_option('mobmenu_opt_header_font_size', $_POST['mobmenu_header_font_size']);
23
+
24
+ //Save Header Height Option
25
+ update_option('mobmenu_opt_header_height', $_POST['mobmenu_header_height']);
26
+
27
+ //Save Site Logo Option
28
+ update_option('mobmenu_opt_site_logo', $_POST['mobmenu_site_logo']);
29
+
30
+ //Save Site Logo Image
31
+ update_option('mobmenu_opt_site_logo_img', $_POST['mobmenu_site_logo_img']);
32
+
33
+ //Save Html Hide Elements
34
+ update_option('mobmenu_opt_hide_selectors', $_POST['mobmenu_hide_selectors']);
35
+
36
+ //Header Background Color
37
+ update_option('mobmenu_opt_header_bgcolor', $_POST['mobmenu_header_bgcolor']);
38
+
39
+ //Header Text Color
40
+ update_option('mobmenu_opt_header_textcolor', $_POST['mobmenu_header_textcolor']);
41
+
42
+ //Footer Background Color
43
+ update_option('mobmenu_opt_footer_bgcolor', $_POST['mobmenu_footer_bgcolor']);
44
+
45
+ //Left Menu Background Color
46
+ update_option('mobmenu_opt_left_menu_bgcolor', $_POST['mobmenu_left_menu_bgcolor']);
47
+
48
+ //Right Menu Background Color
49
+ update_option('mobmenu_opt_right_menu_bgcolor', $_POST['mobmenu_right_menu_bgcolor']);
50
+
51
+ //Menu Left Text Color
52
+ update_option('mobmenu_opt_left_text_color', $_POST['mobmenu_left_text_color']);
53
+
54
+ //Menu Right Text Color
55
+ update_option('mobmenu_opt_right_text_color', $_POST['mobmenu_right_text_color']);
56
+
57
+ //Left Menu Text Color on Hover
58
+ update_option('mobmenu_opt_left_text_color_hover', $_POST['mobmenu_left_text_color_hover']);
59
+
60
+ //Right Menu Text Color on Hover
61
+ update_option('mobmenu_opt_right_text_color_hover', $_POST['mobmenu_right_text_color_hover']);
62
+
63
+ //Left Menu
64
+ update_option('mobmenu_opt_left_menu', $_POST['mobmenu_left_menu']);
65
+
66
+ //Right Menu
67
+ update_option('mobmenu_opt_right_menu', $_POST['mobmenu_right_menu']);
68
+
69
+ //Left Menu Icon
70
+ update_option('mobmenu_opt_left_icon', $_POST['mobmenu_left_icon']);
71
+
72
+ //Left Menu Icon Top Margin
73
+ update_option('mobmenu_opt_left_icon_topmargin', $_POST['mobmenu_left_icon_topmargin']);
74
+
75
+ //Logo Top Margin
76
+ update_option('mobmenu_opt_header_logo_topmargin', $_POST['mobmenu_header_logo_topmargin']);
77
+
78
+ //Right Menu Icon
79
+ update_option('mobmenu_opt_right_icon', $_POST['mobmenu_right_icon']);
80
+
81
+ //Right Menu Icon Top Margin
82
+ update_option('mobmenu_opt_right_icon_topmargin', $_POST['mobmenu_right_icon_topmargin']);
83
+
84
+ //Footer Height Menu Icon Top Margin
85
+ update_option('mobmenu_opt_footer_height', $_POST['mobmenu_footer_height']);
86
+
87
+ //Enable Footer 1st Link
88
+ update_option('mobmenu_opt_enabled_1stlink', $_POST['mobmenu_enabled_1stlink']);
89
+
90
+ //Enable Footer 2nd Link
91
+ update_option('mobmenu_opt_enabled_2ndlink', $_POST['mobmenu_enabled_2ndlink']);
92
+
93
+ //Enable Footer 3rd Link
94
+ update_option('mobmenu_opt_enabled_3rdlink', $_POST['mobmenu_enabled_3rdlink']);
95
+
96
+ //Enable Footer 4th Link
97
+ update_option('mobmenu_opt_enabled_4thlink', $_POST['mobmenu_enabled_4thlink']);
98
+
99
+ //Footer 1st Icon
100
+ update_option('mobmenu_opt_footer_1sticon', $_POST['mobmenu_footer_1sticon']);
101
+
102
+ //Footer 2nd Icon
103
+ update_option('mobmenu_opt_footer_2ndicon', $_POST['mobmenu_footer_2ndicon']);
104
+
105
+ //Footer 3rd Icon
106
+ update_option('mobmenu_opt_footer_3rdicon', $_POST['mobmenu_footer_3rdicon']);
107
+
108
+ //Footer 4th Icon
109
+ update_option('mobmenu_opt_footer_4thicon', $_POST['mobmenu_footer_4thicon']);
110
+
111
+ //Footer 1st Link Url
112
+ update_option('mobmenu_opt_ft1stlinkurl', $_POST['mobmenu_ft1stlinkurl']);
113
+
114
+ //Footer 2nd Link Url
115
+ update_option('mobmenu_opt_ft2ndlinkurl', $_POST['mobmenu_ft2ndlinkurl']);
116
+
117
+ //Footer 3rd Link Url
118
+ update_option('mobmenu_opt_ft3rdlinkurl', $_POST['mobmenu_ft3rdlinkurl']);
119
+
120
+ //Footer 4th Link Url
121
+ update_option('mobmenu_opt_ft4thlinkurl', $_POST['mobmenu_ft4thlinkurl']);
122
+
123
+ //Footer 1st Link Url Target
124
+ update_option('mobmenu_opt_ft1stlinknwindow', $_POST['mobmenu_ft1stlinknwindow']);
125
+
126
+ //Footer 2nd Link Url Target
127
+ update_option('mobmenu_opt_ft2ndlinknwindow', $_POST['mobmenu_ft2ndlinknwindow']);
128
+
129
+ //Footer 3rd Link Url Target
130
+ update_option('mobmenu_opt_ft3rdlinknwindow', $_POST['mobmenu_ft3rdlinknwindow']);
131
+
132
+ //Footer 4th Link Url Target
133
+ update_option('mobmenu_opt_ft4thlinknwindow', $_POST['mobmenu_ft4thlinknwindow']);
134
+
135
+ //Header Menus Enabled
136
+ update_option('mobmenu_opt_header_menus', $_POST['mobmenu_header_menus']);
137
+
138
+ //Footer Menus Enabled
139
+ update_option('mobmenu_opt_footer_menus', $_POST['mobmenu_footer_menus']);
140
+
141
+
142
+
143
+
144
+ unset($_POST['mobmenu_update_settings']);
145
+
146
+ ?>
147
+
148
+ <div class="updated">
149
+
150
+ <p><strong><?php _e('Options saved.' ); ?></strong></p>
151
+
152
+ </div>
153
+
154
+ <?php
155
+
156
+ } else {
157
+
158
+ $mobiletheme = get_option('mobiletheme');
159
+
160
+ }
161
+
162
+ ?>
163
+
164
+ <div class="wrap">
165
+
166
+
167
+ <div>
168
+
169
+ <div class="icon32">
170
+ <img src="<?php echo plugins_url( 'images/mobile_32.png', __FILE__ ); ?>">
171
+ </div>
172
+
173
+ <h2><?php echo __( 'Mobile Menu Settings', 'jv_mobiletheme' ); ?></h2>
174
+ <br>
175
+ </div>
176
+
177
+ <!-- Mobile Menu Options Form -->
178
+ <form name="mobiletheme_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
179
+
180
+ <div id="mobmenu-admin-tabs">
181
+ <ul>
182
+ <li><a href="#mobmenu-tabs-1">General Settings</a></li>
183
+ <li><a href="#mobmenu-tabs-2">Header Settings</a></li>
184
+ <li><a href="#mobmenu-tabs-3">Footer Settings</a></li>
185
+ <li><a href="#mobmenu-tabs-4">Color Settings</a></li>
186
+ </ul>
187
+
188
+ <!-- General Settings Tab -->
189
+ <div id="mobmenu-tabs-1">
190
+ <table class="widefat fixed">
191
+
192
+ <!-- Option - Enable/Disable Mobile Menu -->
193
+ <tr>
194
+ <td class="firstcol">
195
+ Enable Mobile Menu:
196
+ </td>
197
+ <td class="forminp">
198
+
199
+ <select name="mobmenu_enabled" id="mobmenu_enabled">
200
+
201
+ <option value="true" <?php if ( get_option('mobmenu_opt_enabled') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
202
+ <option value="false" <?php if ( get_option('mobmenu_opt_enabled') == 'false' ) echo "selected='selected'"; ?>>No</option>
203
+
204
+ </select><br />
205
+ </td>
206
+ </tr>
207
+ <!-- Option - Minimun Width Resolution that displays the Mobile Menu -->
208
+ <tr>
209
+ <td>
210
+ Width Resolution to display Menu:
211
+ </td>
212
+ <td class="forminp">
213
+
214
+ <input type="text" name="mobmenu_res_trigger" id="mobmenu_res_trigger" maxlength="4" size="3" value="<?php echo get_option('mobmenu_opt_res_trigger');?>">px
215
+
216
+
217
+ </td>
218
+ </tr>
219
+
220
+ <!-- Option - Html Elements to Hide -->
221
+ <tr valign="top">
222
+ <td>Hide Html elements (Navigation, Sidebar, Slider, etc)</td>
223
+ <td><label for="mobmenu_hide_selectors">
224
+
225
+ <input id="mobmenu_hide_selectors" type="text" size="56" name="mobmenu_hide_selectors" value="<?php echo get_option("mobmenu_opt_hide_selectors"); ?>" />
226
+ <br /> You can use css class or IDs. Example: .menu , #nav
227
+ </label>
228
+ </td>
229
+ </tr>
230
+
231
+ <!-- Option - Enable Header Menus Toolbar -->
232
+ <tr>
233
+
234
+ <td class="firstcol">
235
+ Enable Header Menu:
236
+ </td>
237
+
238
+ <td class="forminp">
239
+
240
+ <select name="mobmenu_header_menus" id="mobmenu_header_menus">
241
+
242
+ <option value="yes" <?php if ( get_option('mobmenu_opt_header_menus') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
243
+ <option value="no" <?php if ( get_option('mobmenu_opt_header_menus') == 'no' ) echo "selected='selected'"; ?>>No</option>
244
+
245
+ </select><br />
246
+ </td>
247
+ </tr>
248
+ <!-- Option - Enable/Disable Left Menu -->
249
+ <tr>
250
+ <td class="firstcol">
251
+ Enable Left Menu:
252
+ </td>
253
+ <td class="forminp">
254
+
255
+ <select name="mobmenu_enabled_left_menu" id="mobmenu_enabled_left_menu">
256
+
257
+ <option value="true" <?php if ( get_option('mobmenu_opt_left_menu_enabled') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
258
+ <option value="false" <?php if ( get_option('mobmenu_opt_left_menu_enabled') == 'false' ) echo "selected='selected'"; ?>>No</option>
259
+
260
+ </select><br />
261
+ </td>
262
+ </tr>
263
+ <!-- Option - Enable/Disable Mobile Menu -->
264
+ <tr>
265
+ <td class="firstcol">
266
+ Enable Right Menu:
267
+ </td>
268
+ <td class="forminp">
269
+
270
+ <select name="mobmenu_enabled_right_menu" id="mobmenu_enabled_right_menu">
271
+
272
+ <option value="true" <?php if ( get_option('mobmenu_opt_right_menu_enabled') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
273
+ <option value="false" <?php if ( get_option('mobmenu_opt_right_menu_enabled') == 'false' ) echo "selected='selected'"; ?>>No</option>
274
+
275
+ </select><br />
276
+ </td>
277
+ </tr>
278
+
279
+ <!-- Option - Enable Footer Menu Toolbar -->
280
+ <tr>
281
+
282
+ <td class="firstcol">Enable Footer Menu:</td>
283
+
284
+ <td class="forminp">
285
+
286
+ <select name="mobmenu_footer_menus" id="mobmenu_footer_menus">
287
+
288
+ <option value="yes" <?php if ( get_option('mobmenu_opt_footer_menus') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
289
+ <option value="no" <?php if ( get_option('mobmenu_opt_footer_menus') == 'no' ) echo "selected='selected'"; ?>>No</option>
290
+
291
+ </select><br />
292
+ </td>
293
+ </tr>
294
+
295
+
296
+
297
+ </table>
298
+ </div>
299
+
300
+ <!-- Header Settings Tab -->
301
+ <div id="mobmenu-tabs-2">
302
+ <table class="widefat fixed">
303
+
304
+
305
+
306
+ <!-- Option - Enable Site logo -->
307
+ <tr>
308
+
309
+ <td class="firstcol">
310
+ Enable Site Logo:
311
+ </td>
312
+
313
+ <td class="forminp">
314
+
315
+ <select name="mobmenu_site_logo" id="mobmenu_site_logo">
316
+
317
+ <option value="yes" <?php if ( get_option('mobmenu_opt_site_logo') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
318
+ <option value="no" <?php if ( get_option('mobmenu_opt_site_logo') == 'no' ) echo "selected='selected'"; ?>>No</option>
319
+
320
+ </select><br />
321
+ </td>
322
+ </tr>
323
+
324
+ <!-- Option - Mobile Site Logo -->
325
+ <tr valign="top">
326
+ <td>Site Logo</td>
327
+ <td><label for="upload_image">
328
+
329
+ <input id="mobmenu_site_logo_img" type="text" size="56" name="mobmenu_site_logo_img" value="<?php echo get_option("mobmenu_opt_site_logo_img"); ?>" />
330
+ <input id="upload_image_button" type="button" class="button" value="Upload Image" />
331
+ <br />Enter an URL or upload an image for the Header Image/Logo.
332
+ </label>
333
+ </td>
334
+ </tr>
335
+
336
+
337
+
338
+ <!-- Option - Header Text -->
339
+ <tr>
340
+
341
+ <td> Header Text: </td>
342
+
343
+ <td class="forminp">
344
+ <input type="text" id="mobmenu_header_text" maxlength="15" name="mobmenu_header_text" value="<?php echo get_option('mobmenu_opt_header_text');?>"></input>
345
+ </td>
346
+
347
+ </tr>
348
+
349
+ <!-- Option - Header Font Size -->
350
+ <tr>
351
+
352
+ <td> Header Text Font Size: </td>
353
+
354
+ <td class="forminp">
355
+ <input type="text" id="mobmenu_header_font_size" maxlength="2" size="2" name="mobmenu_header_font_size" value="<?php echo get_option('mobmenu_opt_header_font_size');?>">px</input>
356
+ </td>
357
+
358
+ </tr>
359
+
360
+ <!-- Option - Header Height -->
361
+ <tr>
362
+
363
+ <td> Header Height: </td>
364
+
365
+ <td class="forminp">
366
+ <input type="text" id="mobmenu_header_height" maxlength="3" size="3" name="mobmenu_header_height" value="<?php echo get_option('mobmenu_opt_header_height');?>">px</input>
367
+ </td>
368
+
369
+ </tr>
370
+
371
+ <!-- Option - Header Logo Top Margin -->
372
+ <tr>
373
+
374
+ <td>
375
+ Header Logo Top Margin:
376
+ </td>
377
+
378
+ <td class="forminp">
379
+ <input type="text" id="mobmenu_header_logo_topmargin" maxlength="3" size="3" name="mobmenu_header_logo_topmargin" value="<?php echo get_option('mobmenu_opt_header_logo_topmargin');?>">px</input>
380
+ </td>
381
+
382
+ </tr>
383
+
384
+ <tr><td colspan="2"><hr></td></tr>
385
+
386
+
387
+
388
+ <!-- Option - Left Menu -->
389
+ <tr>
390
+
391
+ <td>
392
+ Left Menu:
393
+ </td>
394
+
395
+ <td class="forminp">
396
+
397
+ <?php $menus = get_terms( 'nav_menu', array( 'hide_empty' => true ) ); ?>
398
+
399
+ <select name="mobmenu_left_menu" id="mobmenu_left_menu">
400
+
401
+ <!-- Display all Wordpress Menus -->
402
+ <?php foreach( $menus as $menu ){ ?>
403
+
404
+ <option value="<?php echo $menu->name; ?>" <?php if( get_option('mobmenu_opt_left_menu')==$menu->name) echo "selected";?> >
405
+ <?php echo $menu->name; ?>
406
+ </option>
407
+
408
+ <?php } ?>
409
+ </select>
410
+
411
+ </td>
412
+ </tr>
413
+
414
+ <!-- Option - Left Menu Icon -->
415
+ <tr valign="top">
416
+ <td>Left Menu Icon</td>
417
+ <td><label for="upload_image">
418
+
419
+ <input id="mobmenu_left_icon" type="text" size="56" name="mobmenu_left_icon" value="<?php echo get_option("mobmenu_opt_left_icon"); ?>" />
420
+ <input id="upload_image_licon" type="button" class="button" value="Upload Image" />
421
+ <br />Enter an URL or upload an image for the Left Menu Icon.
422
+ </label>
423
+ </td>
424
+ </tr>
425
+
426
+ <!-- Option - Left Menu Icon Top Margin -->
427
+ <tr>
428
+
429
+ <td>
430
+ Left Menu Icon Top Margin:
431
+ </td>
432
+
433
+ <td class="forminp">
434
+ <input type="text" id="mobmenu_left_icon_topmargin" maxlength="3" size="3" name="mobmenu_left_icon_topmargin" value="<?php echo get_option('mobmenu_opt_left_icon_topmargin');?>">px</input>
435
+ </td>
436
+
437
+ </tr>
438
+
439
+
440
+ <tr><td colspan="2"><hr></td></tr>
441
+
442
+
443
+ <!-- Option -Right Menu -->
444
+ <tr>
445
+
446
+ <td>
447
+ Right Menu:
448
+ </td>
449
+
450
+ <td class="forminp">
451
+
452
+ <?php $menus = get_terms( 'nav_menu', array( 'hide_empty' => true ) ); ?>
453
+
454
+ <select name="mobmenu_right_menu" id="mobmenu_right_menu">
455
+
456
+ <!-- Display all Wordpress Menus -->
457
+ <?php foreach( $menus as $menu ){ ?>
458
+
459
+ <option value="<?php echo $menu->name; ?>" <?php if( get_option('mobmenu_opt_right_menu')==$menu->name) echo "selected";?> >
460
+ <?php echo $menu->name; ?>
461
+ </option>
462
+
463
+ <?php } ?>
464
+ </select>
465
+
466
+ </td>
467
+ </tr>
468
+
469
+ <!-- Option - Right Menu Icon -->
470
+ <tr valign="top">
471
+ <td>Right Menu Icon</td>
472
+ <td><label for="upload_image">
473
+
474
+ <input id="mobmenu_right_icon" type="text" size="56" name="mobmenu_right_icon" value="<?php echo get_option("mobmenu_opt_right_icon"); ?>" />
475
+ <input id="upload_image_ricon" type="button" class="button" value="Upload Image" />
476
+ <br />Enter an URL or upload an image for the Right Menu Icon.
477
+ </label>
478
+ </td>
479
+ </tr>
480
+
481
+ <!-- Option - Right Menu Icon Top Margin -->
482
+ <tr>
483
+
484
+ <td>
485
+ Right Menu Icon Top Margin:
486
+ </td>
487
+
488
+ <td class="forminp">
489
+ <input type="text" id="mobmenu_right_icon_topmargin" maxlength="3" size="3" name="mobmenu_right_icon_topmargin" value="<?php echo get_option('mobmenu_opt_right_icon_topmargin');?>">px</input>
490
+ </td>
491
+
492
+ </tr>
493
+
494
+ </table>
495
+ </div>
496
+
497
+ <!-- Footer Settings Tab -->
498
+ <div id="mobmenu-tabs-3">
499
+ <table class="widefat fixed">
500
+
501
+ <tr>
502
+ <td class="firstcol">Footer Height</td>
503
+ <td class="forminp">
504
+ <input type="text" id="mobmenu_footer_height" maxlength="3" size="3" name="mobmenu_footer_height" value="<?php echo get_option('mobmenu_opt_footer_height');?>"></input>px
505
+ </td>
506
+
507
+ </tr>
508
+
509
+ <tr><td colspan="2"><hr></td></tr>
510
+
511
+ <!-- Option - Enable/Disable First Link -->
512
+ <tr>
513
+ <td>
514
+ Enable First Link:
515
+ </td>
516
+ <td class="forminp">
517
+
518
+ <select name="mobmenu_enabled_1stlink" id="mobmenu_enabled_1stlink">
519
+
520
+ <option value="true" <?php if ( get_option('mobmenu_opt_enabled_1stlink') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
521
+ <option value="false" <?php if ( get_option('mobmenu_opt_enabled_1stlink') == 'false' ) echo "selected='selected'"; ?>>No</option>
522
+
523
+ </select><br />
524
+ </td>
525
+ </tr>
526
+
527
+
528
+ </tr>
529
+ <!-- Option - 1st Link Icon -->
530
+ <tr valign="top">
531
+ <td>1st Link Icon</td>
532
+ <td><label for="upload_image">
533
+
534
+ <input id="mobmenu_footer_1sticon" type="text" size="56" name="mobmenu_footer_1sticon" value="<?php echo get_option("mobmenu_opt_footer_1sticon"); ?>" />
535
+ <input id="upload_image_ft_1sticon" type="button" class="button" value="Upload Image" />
536
+ <br />Enter an URL or upload an image for the 1st Link Icon.
537
+ </label>
538
+ </td>
539
+ </tr>
540
+ <!-- Option - 1st Link Url -->
541
+ <tr>
542
+ <td>1st Link Url</td>
543
+ <td>
544
+ <input type="text" id="mobmenu_ft1stlinkurl" size="80" name="mobmenu_ft1stlinkurl" value="<?php echo get_option("mobmenu_opt_ft1stlinkurl");?>" /></td>
545
+ </tr>
546
+ <tr>
547
+ <td>Open 1st Link in a new Window</td>
548
+ <td>
549
+ <select name="mobmenu_ft1stlinknwindow" id="mobmenu_ft1stlinknwindow">
550
+ <option value="no" <?php if ( get_option('mobmenu_opt_ft1stlinknwindow') == 'no' ) echo "selected='selected'"; ?>>No</option>
551
+ <option value="yes" <?php if ( get_option('mobmenu_opt_ft1stlinknwindow') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
552
+
553
+
554
+ </select><br /></td>
555
+ </tr>
556
+
557
+ <tr><td colspan="2"><hr></td></tr>
558
+
559
+ <!-- Option - Enable/Disable Second Link -->
560
+ <tr>
561
+ <td>
562
+ Enable Second Link:
563
+ </td>
564
+ <td class="forminp">
565
+
566
+ <select name="mobmenu_enabled_2ndlink" id="mobmenu_enabled_2ndlink">
567
+
568
+ <option value="true" <?php if ( get_option('mobmenu_opt_enabled_2ndlink') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
569
+ <option value="false" <?php if ( get_option('mobmenu_opt_enabled_2ndlink') == 'false' ) echo "selected='selected'"; ?>>No</option>
570
+
571
+ </select><br />
572
+ </td>
573
+ </tr>
574
+
575
+ <!-- Option - 2nd Link Icon -->
576
+ <tr valign="top">
577
+ <td>2nd Link Icon</td>
578
+ <td><label for="upload_image">
579
+
580
+ <input id="mobmenu_footer_2ndicon" type="text" size="56" name="mobmenu_footer_2ndicon" value="<?php echo get_option("mobmenu_opt_footer_2ndicon"); ?>" />
581
+ <input id="upload_image_ft_2ndicon" type="button" class="button" value="Upload Image" />
582
+ <br />Enter an URL or upload an image for the 2nd Link Icon.
583
+ </label>
584
+ </td>
585
+ </tr>
586
+ <!-- Option - 2nd Link Url -->
587
+ <tr>
588
+ <td>2nd Link Url</td>
589
+ <td>
590
+ <input type="text" id="mobmenu_ft2ndlinkurl" size="80" name="mobmenu_ft2ndlinkurl" value="<?php echo get_option("mobmenu_opt_ft2ndlinkurl");?>" /></td>
591
+ </tr>
592
+ <tr>
593
+ <td>Open 2nd Link in a new Window</td>
594
+ <td>
595
+ <select name="mobmenu_ft2ndlinknwindow" id="mobmenu_ft2ndlinknwindow">
596
+ <option value="no" <?php if ( get_option('mobmenu_opt_ft2ndlinknwindow') == 'no' ) echo "selected='selected'"; ?>>No</option>
597
+ <option value="yes" <?php if ( get_option('mobmenu_opt_ft2ndlinknwindow') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
598
+
599
+
600
+ </select><br /></td>
601
+ </tr>
602
+
603
+ <tr><td colspan="2"><hr></td></tr>
604
+
605
+ <!-- Option - Enable/Disable Third Link -->
606
+ <tr>
607
+ <td>
608
+ Enable Third Link:
609
+ </td>
610
+ <td class="forminp">
611
+
612
+ <select name="mobmenu_enabled_3rdlink" id="mobmenu_enabled_3rdlink">
613
+
614
+ <option value="true" <?php if ( get_option('mobmenu_opt_enabled_3rdlink') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
615
+ <option value="false" <?php if ( get_option('mobmenu_opt_enabled_3rdlink') == 'false' ) echo "selected='selected'"; ?>>No</option>
616
+
617
+ </select><br />
618
+ </td>
619
+ </tr>
620
+
621
+ <!-- Option - 3rd Link Icon -->
622
+ <tr valign="top">
623
+ <td>3rd Link Icon</td>
624
+ <td><label for="upload_image">
625
+
626
+ <input id="mobmenu_footer_3rdicon" type="text" size="56" name="mobmenu_footer_3rdicon" value="<?php echo get_option("mobmenu_opt_footer_3rdicon"); ?>" />
627
+ <input id="upload_image_ft_3rdicon" type="button" class="button" value="Upload Image" />
628
+ <br />Enter an URL or upload an image for the 3rd Link Icon.
629
+ </label>
630
+ </td>
631
+ </tr>
632
+ <!-- Option - 3rd Link Url -->
633
+ <tr>
634
+ <td>3rd Link Url</td>
635
+ <td>
636
+ <input type="text" id="mobmenu_ft3rdlinkurl" size="80" name="mobmenu_ft3rdlinkurl" value="<?php echo get_option("mobmenu_opt_ft3rdlinkurl");?>" /></td>
637
+ </tr>
638
+ <tr>
639
+ <td>Open 3rd Link in a new Window</td>
640
+ <td>
641
+ <select name="mobmenu_ft3rdlinknwindow" id="mobmenu_ft3rdlinknwindow">
642
+ <option value="no" <?php if ( get_option('mobmenu_opt_ft3rdlinknwindow') == 'no' ) echo "selected='selected'"; ?>>No</option>
643
+ <option value="yes" <?php if ( get_option('mobmenu_opt_ft3rdlinknwindow') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
644
+
645
+
646
+ </select><br /></td>
647
+ </tr>
648
+
649
+ <tr><td colspan="2"><hr></td></tr>
650
+
651
+ <!-- Option - Enable/Disable Fourth Link -->
652
+ <tr>
653
+ <td>
654
+ Enable Fourth Link:
655
+ </td>
656
+ <td class="forminp">
657
+
658
+ <select name="mobmenu_enabled_4thlink" id="mobmenu_enabled_4thlink">
659
+
660
+ <option value="true" <?php if ( get_option('mobmenu_opt_enabled_4thlink') == 'true' ) echo "selected='selected'"; ?>>Yes</option>
661
+ <option value="false" <?php if ( get_option('mobmenu_opt_enabled_4thlink') == 'false' ) echo "selected='selected'"; ?>>No</option>
662
+
663
+ </select><br />
664
+ </td>
665
+ </tr>
666
+
667
+ <!-- Option - 4th Link Icon -->
668
+ <tr valign="top">
669
+ <td>4th Link Icon</td>
670
+ <td><label for="upload_image">
671
+
672
+ <input id="mobmenu_footer_4thicon" type="text" size="56" name="mobmenu_footer_4thicon" value="<?php echo get_option("mobmenu_opt_footer_4thicon"); ?>" />
673
+ <input id="upload_image_ft_4thicon" type="button" class="button" value="Upload Image" />
674
+ <br />Enter an URL or upload an image for the 4th Link Icon.
675
+ </label>
676
+ </td>
677
+ </tr>
678
+ <!-- Option - 4th Link Url -->
679
+ <tr>
680
+ <td>4th Link Url</td>
681
+ <td>
682
+ <input type="text" id="mobmenu_ft4thlinkurl" size="80" name="mobmenu_ft4thlinkurl" value="<?php echo get_option("mobmenu_opt_ft4thlinkurl");?>" /></td>
683
+ </tr>
684
+ <tr>
685
+ <td>Open 4th Link in a new Window</td>
686
+ <td>
687
+ <select name="mobmenu_ft4thlinknwindow" id="mobmenu_ft4thlinknwindow">
688
+ <option value="no" <?php if ( get_option('mobmenu_opt_ft4thlinknwindow') == 'no' ) echo "selected='selected'"; ?>>No</option>
689
+ <option value="yes" <?php if ( get_option('mobmenu_opt_ft4thlinknwindow') == 'yes' ) echo "selected='selected'"; ?>>Yes</option>
690
+
691
+
692
+ </select><br /></td>
693
+ </tr>
694
+
695
+
696
+
697
+ </table>
698
+ </div>
699
+
700
+ <!-- Color Settings Tab -->
701
+ <div id="mobmenu-tabs-4">
702
+ <table class="widefat fixed">
703
+ <tr>
704
+ <td class="firstcol">Header Background Color:</td>
705
+ <td>
706
+ <input type="text" id="mobmenu_header_bgcolor" name="mobmenu_header_bgcolor" value="<?php echo get_option("mobmenu_opt_header_bgcolor");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
707
+ </tr>
708
+
709
+ <tr>
710
+ <td>Header Text Color:</td>
711
+ <td>
712
+ <input type="text" id="mobmenu_header_textcolor" name="mobmenu_header_textcolor" value="<?php echo get_option("mobmenu_opt_header_textcolor");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
713
+ </tr>
714
+
715
+ <tr><td colspan="2"><hr></td></tr>
716
+
717
+ <tr>
718
+ <td>Left Menu Panel Background Color:</td>
719
+ <td>
720
+ <input type="text" id="mobmenu_left_menu_bgcolor" name="mobmenu_left_menu_bgcolor" value="<?php echo get_option("mobmenu_opt_left_menu_bgcolor");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
721
+ </tr>
722
+
723
+ <tr>
724
+ <td>Left Menu Text Color:</td>
725
+ <td>
726
+ <input type="text" id="mobmenu_left_text_color" name="mobmenu_left_text_color" value="<?php echo get_option("mobmenu_opt_left_text_color");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
727
+ </tr>
728
+
729
+ <tr>
730
+ <td>Left Menu Text Color on Hover: </td>
731
+ <td>
732
+ <input type="text" id="mobmenu_left_text_color_hover" name="mobmenu_left_text_color_hover" value="<?php echo get_option("mobmenu_opt_left_text_color_hover");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
733
+ </tr>
734
+
735
+
736
+ <tr><td colspan="2"><hr></td></tr>
737
+
738
+ <tr>
739
+ <td>Right Menu Panel Background Color:</td>
740
+ <td>
741
+ <input type="text" id="mobmenu_right_menu_bgcolor" name="mobmenu_right_menu_bgcolor" value="<?php echo get_option("mobmenu_opt_right_menu_bgcolor");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
742
+ </tr>
743
+
744
+ <tr>
745
+ <td>Right Menu Text Color:</td>
746
+ <td>
747
+ <input type="text" id="mobmenu_right_text_color" name="mobmenu_right_text_color" value="<?php echo get_option("mobmenu_opt_right_text_color");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
748
+ </tr>
749
+
750
+ <tr>
751
+ <td>Right Menu Text Color on Hover: </td>
752
+ <td>
753
+ <input type="text" id="mobmenu_right_text_color_hover" name="mobmenu_right_text_color_hover" value="<?php echo get_option("mobmenu_opt_right_text_color_hover");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
754
+ </tr>
755
+
756
+ <tr><td colspan="2"><hr></td></tr>
757
+
758
+ <tr>
759
+ <td>Footer Background Color:</td>
760
+ <td>
761
+ <input type="text" id="mobmenu_footer_bgcolor" name="mobmenu_footer_bgcolor" value="<?php echo get_option("mobmenu_opt_footer_bgcolor");?>" class="wp-color-picker-field" data-default-color="#ffffff" /></td>
762
+ </tr>
763
+ </table>
764
+ </div>
765
+
766
+ </div>
767
+
768
+ <input type="hidden" name="mobmenu_update_settings" value="Y" />
769
+
770
+ <p><input type="submit" value="Save settings" class="button-primary"/></p>
771
+
772
+ </form>
773
+
774
+ </div>
mobmenu.php ADDED
@@ -0,0 +1,771 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+
5
+
6
+
7
+ Plugin Name: Mobile Menu
8
+
9
+ Plugin URI: http://mobilemenu.jedipress.com/
10
+
11
+ Description: Transform your website with a user friendly, dedicated and responsive mobile menu.
12
+
13
+ Version: 1.0
14
+
15
+ Author: Takanakui
16
+
17
+ Author URI: http://www.jedipress.com
18
+
19
+ License: GPLv2
20
+
21
+
22
+
23
+ */
24
+
25
+
26
+
27
+ register_activation_hook( __FILE__,'mobmenu_install');
28
+
29
+
30
+
31
+ // Filters
32
+
33
+
34
+
35
+ add_filter('wp_head', 'mob_menu_dynamic_css_style');
36
+
37
+
38
+
39
+
40
+
41
+ //Hooks
42
+
43
+
44
+
45
+ // Admin Scripts
46
+
47
+ add_action( 'admin_enqueue_scripts', 'mobmenu_enqueue_admin_scripts' );
48
+
49
+ // Frontend Scripts
50
+
51
+ add_action('wp_enqueue_scripts', 'mobmenu_enqueue_scripts',100);
52
+
53
+ // Sidebar Menu Widgets
54
+
55
+ add_action( 'wp_loaded', 'mob_menu_register_sidebar' );
56
+
57
+ //Add admin option into the admin menu
58
+
59
+ add_action('admin_menu', 'mob_menu_admin_actions');
60
+
61
+
62
+
63
+ if ( !is_admin() && (get_option('mobmenu_opt_enabled') == 'true') ){
64
+
65
+
66
+
67
+ //Include the Html structure needed to built the Mobile Menu
68
+
69
+ add_action("wp_footer","mob_menu_markup");
70
+
71
+
72
+
73
+ }
74
+
75
+
76
+
77
+
78
+
79
+ function mob_menu_dynamic_css_style() {
80
+
81
+
82
+
83
+ include_once('includes/style.php');
84
+
85
+
86
+
87
+ }
88
+
89
+
90
+
91
+ //Initialization of Mobile Menu Admin Options
92
+
93
+ function mobmenu_install(){
94
+
95
+
96
+
97
+ update_option('mobmenu_opt_enabled', 'no');
98
+
99
+ update_option('mobmenu_opt_site_logo', 'no');
100
+
101
+ update_option('mobmenu_opt_header_text', 'Header Text');
102
+
103
+ update_option('mobmenu_opt_header_font_size', '23');
104
+
105
+ update_option('mobmenu_opt_header_height', '40');
106
+
107
+ update_option('mobmenu_opt_header_logo_topmargin', '7');
108
+
109
+ update_option('mobmenu_opt_header_bgcolor', '#4486bf');
110
+
111
+ update_option('mobmenu_opt_footer_bgcolor', '#4486bf');
112
+
113
+ update_option('mobmenu_opt_header_textcolor', '#FFF');
114
+
115
+ update_option('mobmenu_opt_res_trigger', '600');
116
+
117
+ update_option('mobmenu_opt_left_text_color', '#001d60');
118
+
119
+ update_option('mobmenu_opt_right_text_color', '#001d60');
120
+
121
+ update_option('mobmenu_opt_left_text_color_hover', '#1e73be');
122
+
123
+ update_option('mobmenu_opt_right_text_color_hover', '#1e73be');
124
+
125
+ update_option('mobmenu_opt_left_menu_bgcolor', '#f7f7f7');
126
+
127
+ update_option('mobmenu_opt_right_menu_bgcolor', '#f7f7f7');
128
+
129
+ update_option('mobmenu_opt_header_logo_topmargin', '0');
130
+
131
+ update_option('mobmenu_opt_left_icon_topmargin', '0');
132
+
133
+ update_option('mobmenu_opt_right_icon_topmargin', '0');
134
+
135
+ update_option('mobmenu_opt_footer_height', '40');
136
+
137
+ update_option('mobmenu_opt_enabled_1stlink', 'false');
138
+
139
+ update_option('mobmenu_opt_enabled_2ndlink', 'false');
140
+
141
+ update_option('mobmenu_opt_enabled_3rdlink', 'false');
142
+
143
+ update_option('mobmenu_opt_enabled_4thlink', 'false');
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+ }
152
+
153
+
154
+
155
+
156
+
157
+ //Admin Scripts
158
+
159
+ function mobmenu_enqueue_admin_scripts( ) {
160
+
161
+
162
+
163
+ wp_enqueue_style( 'wp-color-picker' );
164
+
165
+ wp_enqueue_media();
166
+
167
+ wp_enqueue_script( 'wp-color-picker-script', plugins_url('/js/mobmenu-admin.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
168
+
169
+ wp_enqueue_style('cssmobmenu-admin',plugins_url('css/mobmenu-admin.css', __FILE__ ));
170
+
171
+ wp_register_style('mobmenu-jquery-ui-style', 'http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css');
172
+
173
+ wp_enqueue_style('mobmenu-jquery-ui-style');
174
+
175
+ wp_enqueue_script('jquery-ui', 'http://code.jquery.com/ui/1.10.3/jquery-ui.min.js', array('jquery'), '1.10.3');
176
+
177
+
178
+
179
+ }
180
+
181
+
182
+
183
+ //Frontend Scripts
184
+
185
+ function mobmenu_enqueue_scripts(){
186
+
187
+
188
+ wp_register_script('mobmenujs',plugins_url('js/mobmenu.js',__FILE__), array( 'jquery' ) );
189
+ wp_enqueue_script('mobmenujs');
190
+
191
+
192
+
193
+ }
194
+
195
+
196
+
197
+ //Register Sidebar Menu Widgets
198
+
199
+ function mob_menu_register_sidebar(){
200
+
201
+
202
+
203
+ $args = array(
204
+
205
+ 'name' => 'Left Menu Top',
206
+
207
+ 'id' => 'mobmlefttop',
208
+
209
+ 'description' => '',
210
+
211
+ 'before_widget' => '<li id="%1$s" class="widget %2$s">',
212
+
213
+ 'after_widget' => '</li>',
214
+
215
+ 'before_title' => '<h2 class="widgettitle">',
216
+
217
+ 'after_title' => '</h2>' );
218
+
219
+
220
+
221
+ register_sidebar( $args );
222
+
223
+
224
+
225
+ $args = array(
226
+
227
+ 'name' => 'Left Menu Bottom',
228
+
229
+ 'id' => 'mobmleftbottom',
230
+
231
+ 'description' => '',
232
+
233
+ 'before_widget' => '<li id="%1$s" class="widget %2$s">',
234
+
235
+ 'after_widget' => '</li>',
236
+
237
+ 'before_title' => '<h2 class="widgettitle">',
238
+
239
+ 'after_title' => '</h2>' );
240
+
241
+
242
+
243
+ register_sidebar( $args );
244
+
245
+
246
+
247
+
248
+
249
+ $args = array(
250
+
251
+ 'name' => 'Right Menu Top',
252
+
253
+ 'id' => 'mobmrighttop',
254
+
255
+ 'description' => '',
256
+
257
+ 'before_widget' => '',
258
+
259
+ 'after_widget' => '',
260
+
261
+ 'before_title' => '<h2 class="widgettitle">',
262
+
263
+ 'after_title' => '</h2>' );
264
+
265
+
266
+
267
+ register_sidebar( $args );
268
+
269
+
270
+
271
+ $args = array(
272
+
273
+ 'name' => 'Right Menu Bottom',
274
+
275
+ 'id' => 'mobmrightbottom',
276
+
277
+ 'description' => '',
278
+
279
+ 'before_widget' => '<li id="%1$s" class="widget %2$s">',
280
+
281
+ 'after_widget' => '</li>',
282
+
283
+ 'before_title' => '<h2 class="widgettitle">',
284
+
285
+ 'after_title' => '</h2>' );
286
+
287
+
288
+
289
+ register_sidebar( $args );
290
+
291
+
292
+
293
+ }
294
+
295
+
296
+
297
+ //Build the Mobile Menu Html Markup
298
+
299
+ function mob_menu_markup(){
300
+
301
+
302
+
303
+ // Check if Header Menu Toolbar is enabled
304
+
305
+ if ( 'yes' == get_option('mobmenu_opt_header_menus') ){
306
+
307
+
308
+
309
+ ?>
310
+
311
+
312
+
313
+ <!-- Header Menu Structure -->
314
+
315
+ <div class="mob_menu_header_div mob_menu">
316
+
317
+
318
+
319
+ <!-- If enabled displays the left menu -->
320
+
321
+ <?php if( 'true' == get_option('mobmenu_opt_left_menu_enabled') ){ ?>
322
+
323
+
324
+
325
+ <!-- Left Menu Button -->
326
+
327
+ <div class="mobmenul-container">
328
+
329
+ <a href="#" id="mobmenu-center">
330
+
331
+ <img src="<?php echo get_option("mobmenu_opt_left_icon"); ?>" alt="Left Menu Icon">
332
+
333
+ </a>
334
+
335
+ </div>
336
+
337
+
338
+
339
+ <?php } ?>
340
+
341
+
342
+
343
+ <!-- Center Logo/Text -->
344
+
345
+ <div class="logoPlace">
346
+
347
+ <a href="<?php echo get_bloginfo("url"); ?>" class="headertext">
348
+
349
+
350
+
351
+ <?php if ( "yes" == get_option("mobmenu_opt_site_logo") ) {?>
352
+
353
+
354
+
355
+ <img src="<?php echo get_option("mobmenu_opt_site_logo_img"); ?>" alt="Logo Header Menu">
356
+
357
+
358
+
359
+ <?php }else { echo get_option("mobmenu_opt_header_text"); }?>
360
+
361
+
362
+
363
+ </a>
364
+
365
+ </div>
366
+
367
+
368
+
369
+ <?php if( 'true' == get_option('mobmenu_opt_right_menu_enabled') ){ ?>
370
+
371
+
372
+
373
+ <!-- Right Menu Button -->
374
+
375
+ <div class="mobmenur-container">
376
+
377
+ <a href='#' id='mobmenu-right'>
378
+
379
+ <img src="<?php echo get_option("mobmenu_opt_right_icon"); ?>" alt="Right Menu Icon">
380
+
381
+ </a>
382
+
383
+ </div>
384
+
385
+
386
+
387
+ <?php } ?>
388
+
389
+
390
+
391
+ </div>
392
+
393
+ <?php } //End of Header Menu Bar
394
+
395
+
396
+
397
+
398
+
399
+ // Check if Header Menu Toolbar are enabled
400
+
401
+ if ( 'yes' == get_option('mobmenu_opt_footer_menus') ){?>
402
+
403
+
404
+
405
+ <!-- Footer Menu Structure -->
406
+
407
+ <div class="mob_menu_footer_div mob_menu">
408
+
409
+
410
+
411
+ <ul>
412
+
413
+
414
+
415
+ <!-- 1ST Footer Link Button -->
416
+
417
+ <?php if( 'true' == get_option('mobmenu_opt_enabled_1stlink') ){
418
+
419
+
420
+
421
+ if( 'yes' == get_option('mobmenu_opt_ft1stlinknwindow') )
422
+
423
+ $urltarget="_blank";
424
+
425
+ else
426
+
427
+ $urltarget="_self";
428
+
429
+ ?>
430
+
431
+
432
+
433
+ <li class="footmenu">
434
+
435
+ <a href="<?php echo get_option('mobmenu_opt_ft1stlinkurl'); ?>" target="<?php echo $urltarget; ?>">
436
+
437
+ <img src="<?php echo get_option("mobmenu_opt_footer_1sticon"); ?>">
438
+
439
+ </a>
440
+
441
+ </li>
442
+
443
+
444
+
445
+ <?php } ?>
446
+
447
+
448
+
449
+ <!-- 2ND Footer Link Button -->
450
+
451
+ <?php if( 'true' == get_option('mobmenu_opt_enabled_2ndlink') ){
452
+
453
+
454
+
455
+ if( 'yes' == get_option('mobmenu_opt_ft2ndlinknwindow') )
456
+
457
+ $urltarget="_blank";
458
+
459
+ else
460
+
461
+ $urltarget="_self";
462
+
463
+ ?>
464
+
465
+
466
+
467
+ <li class="footmenu">
468
+
469
+ <a href="<?php echo get_option('mobmenu_opt_ft2ndlinkurl'); ?>" target="<?php echo $urltarget; ?>">
470
+
471
+ <img src="<?php echo get_option("mobmenu_opt_footer_2ndicon"); ?>">
472
+
473
+ </a>
474
+
475
+ </li>
476
+
477
+
478
+
479
+ <?php } ?>
480
+
481
+
482
+
483
+ <!-- 3RD Footer Link Button -->
484
+
485
+ <?php if( 'true' == get_option('mobmenu_opt_enabled_3rdlink') ){
486
+
487
+
488
+
489
+ if( 'yes' == get_option('mobmenu_opt_ft3rdlinknwindow') )
490
+
491
+ $urltarget="_blank";
492
+
493
+ else
494
+
495
+ $urltarget="_self";
496
+
497
+ ?>
498
+
499
+
500
+
501
+ <li class="footmenu">
502
+
503
+ <a href="<?php echo get_option('mobmenu_opt_ft3rdlinkurl'); ?>" target="<?php echo $urltarget; ?>">
504
+
505
+ <img src="<?php echo get_option("mobmenu_opt_footer_3rdicon"); ?>">
506
+
507
+ </a>
508
+
509
+ </li>
510
+
511
+
512
+
513
+ <?php } ?>
514
+
515
+
516
+
517
+ <!-- 4TH Footer Link Button -->
518
+
519
+ <?php if( 'true' == get_option('mobmenu_opt_enabled_4thlink') ){
520
+
521
+
522
+
523
+ if( 'yes' == get_option('mobmenu_opt_ft4thlinknwindow') )
524
+
525
+ $urltarget="_blank";
526
+
527
+ else
528
+
529
+ $urltarget="_self";
530
+
531
+ ?>
532
+
533
+
534
+
535
+ <li class="footmenu">
536
+
537
+ <a href="<?php echo get_option('mobmenu_opt_ft4thlinkurl'); ?>" target="<?php echo $urltarget; ?>">
538
+
539
+ <img src="<?php echo get_option("mobmenu_opt_footer_4thicon"); ?>">
540
+
541
+ </a>
542
+
543
+ </li>
544
+
545
+
546
+
547
+ <?php } ?>
548
+
549
+
550
+
551
+ </ul>
552
+
553
+
554
+
555
+ </div>
556
+
557
+ <?php } //End of Footer Menu Bar?>
558
+
559
+
560
+
561
+ <!-- Left Panel Structure -->
562
+
563
+ <div class="mob_menu_left_panel">
564
+
565
+
566
+
567
+ <div class="mobmenu_content">
568
+
569
+
570
+
571
+ <!-- Left Menu Top Widget -->
572
+
573
+ <div class="leftmtop">
574
+
575
+ <?php dynamic_sidebar( 'Left Menu Top' ); ?>
576
+
577
+ </div>
578
+
579
+
580
+
581
+ <ul id="mobmenuleft">
582
+
583
+
584
+
585
+ <?php wp_nav_menu( array(
586
+
587
+
588
+
589
+ 'menu' => get_option('mobmenu_opt_left_menu'),
590
+
591
+
592
+
593
+ 'items_wrap' => '<li>%3$s</li>',
594
+
595
+
596
+
597
+ 'container_class' => 'menu rounded',
598
+
599
+
600
+
601
+ 'container' => '',
602
+
603
+
604
+
605
+ 'fallback_cb' => false,
606
+
607
+
608
+
609
+ 'depth' => 2
610
+
611
+
612
+
613
+ ) );
614
+
615
+
616
+
617
+ ?>
618
+
619
+
620
+
621
+ </ul>
622
+
623
+
624
+
625
+ <!-- Left Menu Bottom Widget -->
626
+
627
+ <div class="leftmbottom">
628
+
629
+ <?php dynamic_sidebar( 'Left Menu Bottom' ); ?>
630
+
631
+ </div>
632
+
633
+
634
+
635
+ </div>
636
+
637
+ </div>
638
+
639
+
640
+
641
+
642
+
643
+ <!-- Right Panel Structure -->
644
+
645
+ <div class="mob_menu_right_panel">
646
+
647
+
648
+
649
+ <div class="mobmenu_content">
650
+
651
+
652
+
653
+ <!-- Right Menu Top Widget -->
654
+
655
+ <div class="rightmtop">
656
+
657
+ <?php dynamic_sidebar( 'Right Menu Top' ); ?>
658
+
659
+ </div>
660
+
661
+
662
+
663
+ <!-- Right Menu Content -->
664
+
665
+ <ul id="mobmenuright">
666
+
667
+
668
+
669
+ <?php wp_nav_menu( array(
670
+
671
+
672
+
673
+ 'menu' => get_option('mobmenu_opt_right_menu'),
674
+
675
+
676
+
677
+ 'items_wrap' => '<li>%3$s</li>',
678
+
679
+
680
+
681
+ 'container_class' => 'menu rounded',
682
+
683
+
684
+
685
+ 'container' => '',
686
+
687
+
688
+
689
+ 'fallback_cb' => false,
690
+
691
+
692
+
693
+ 'depth' => 2
694
+
695
+
696
+
697
+ ) );
698
+
699
+
700
+
701
+ ?>
702
+
703
+ </ul>
704
+
705
+ <br>
706
+
707
+ <!-- Right Menu Bottom Widget -->
708
+
709
+ <div class="rightmbottom">
710
+
711
+ <?php dynamic_sidebar( 'Right Menu Bottom' ); ?>
712
+
713
+ </div>
714
+
715
+
716
+
717
+ </div>
718
+
719
+ </div>
720
+
721
+
722
+
723
+
724
+
725
+ <?php
726
+
727
+ }
728
+
729
+
730
+
731
+ //Add Admin options - Mobile Menu
732
+
733
+ function mob_menu_admin_actions() {
734
+
735
+
736
+
737
+ if (current_user_can('manage_options')) {
738
+
739
+
740
+
741
+ add_menu_page("Mobile Menu", "Mobile Menu", 'manage_options', "mobile-menu", "mob_menu_show_admin",plugins_url( 'images/mobile_icon.png', __FILE__ ),'100');
742
+
743
+
744
+
745
+
746
+
747
+ }
748
+
749
+
750
+
751
+ }
752
+
753
+
754
+
755
+ //Include Mobile Menu admin code
756
+
757
+ function mob_menu_show_admin(){
758
+
759
+
760
+
761
+ include('mobmenu-admin.php');
762
+
763
+ }
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+ ?>
readme.txt ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === WP Mobile Menu ===
2
+ Contributors: Takanakui
3
+ link: http://profiles.wordpress.org/takanakui
4
+ Donate link: http://www.jedipress.com/donate
5
+ Tags: theme, mobile, menu, slide, addition, hide, show, widget, responsive, woocommerce
6
+ Requires at least: 3.0.1
7
+ Tested up to: 3.8
8
+ Stable tag: 1.0
9
+ License: GPLv2
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+
13
+ == Description ==
14
+
15
+ WP Mobile Menu is a Wordpress Plugin that allows you to have a specific Responsive Header and Footer Bars with several Menus that will only appear at a specific resolution determined by you. This way you can build extra menus when your website visitors access through Mobile Devices.
16
+
17
+ The Menu Panels have Widgetized areas, this way you can add your own content above and bellow the Worpdress Menus.
18
+
19
+ Check the demo at: http://mobilemenu.jedipress.com/
20
+ You must resize your browser window to a lower resolution to see the plugin in action.
21
+
22
+ == Installation ==
23
+
24
+ Install the .zip file using Wordpress
25
+
26
+ -or-
27
+
28
+ 1. Unzip and upload the `mob-menu` directory into the `/wp-content/plugins/` directory
29
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
30
+ 3. Done!
31
+
32
+ == Frequently Asked Questions ==
33
+ Not available at the moment
34
+
35
+ == Upgrade Notice ==
36
+ Not available at the moment
37
+
38
+ == Changelog ==
39
+
40
+ = 1.0 =
41
+ * Initial Version
42
+
43
+
44
+ == Screenshots ==
45
+ 1. General Settings
46
+ 2. Header Settings
47
+ 3. Color Settings
48
+ 4. Footer Settings
49
+ 5. Widget Settings
uninstall.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //if uninstall not called from WordPress exit
4
+ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
5
+ exit();
6
+
7
+ delete_option('mobmenu_opt_enabled');
8
+ delete_option('mobmenu_opt_res_trigger');
9
+ delete_option('mobmenu_opt_left_menu_enabled');
10
+ delete_option('mobmenu_opt_right_menu_enabled');
11
+ delete_option('mobmenu_opt_header_text');
12
+ delete_option('mobmenu_opt_header_font_size');
13
+ delete_option('mobmenu_opt_header_height');
14
+ delete_option('mobmenu_opt_site_logo');
15
+ delete_option('mobmenu_opt_site_logo_img');
16
+ delete_option('mobmenu_opt_hide_selectors');
17
+ delete_option('mobmenu_opt_header_bgcolor');
18
+ delete_option('mobmenu_opt_header_textcolor');
19
+ delete_option('mobmenu_opt_footer_bgcolor');
20
+ delete_option('mobmenu_opt_left_menu_bgcolor');
21
+ delete_option('mobmenu_opt_right_menu_bgcolor');
22
+ delete_option('mobmenu_opt_left_text_color');
23
+ delete_option('mobmenu_opt_right_text_color');
24
+ delete_option('mobmenu_opt_left_text_color_hover');
25
+ delete_option('mobmenu_opt_right_text_color_hover');
26
+ delete_option('mobmenu_opt_left_menu');
27
+ delete_option('mobmenu_opt_right_menu');
28
+ delete_option('mobmenu_opt_left_icon');
29
+ delete_option('mobmenu_opt_left_icon_topmargin');
30
+ delete_option('mobmenu_opt_header_logo_topmargin');
31
+ delete_option('mobmenu_opt_right_icon');
32
+ delete_option('mobmenu_opt_right_icon_topmargin');
33
+ delete_option('mobmenu_opt_footer_height');
34
+ delete_option('mobmenu_opt_enabled_1stlink');
35
+ delete_option('mobmenu_opt_enabled_2ndlink');
36
+ delete_option('mobmenu_opt_enabled_3rdlink');
37
+ delete_option('mobmenu_opt_enabled_4thlink');
38
+ delete_option('mobmenu_opt_footer_1sticon');
39
+ delete_option('mobmenu_opt_footer_2ndicon');
40
+ delete_option('mobmenu_opt_footer_3rdicon');
41
+ delete_option('mobmenu_opt_footer_4thicon');
42
+ delete_option('mobmenu_opt_ft1stlinkurl');
43
+ delete_option('mobmenu_opt_ft2ndlinkurl');
44
+ delete_option('mobmenu_opt_ft3rdlinkurl');
45
+ delete_option('mobmenu_opt_ft4thlinkurl');
46
+ delete_option('mobmenu_opt_ft1stlinknwindow');
47
+ delete_option('mobmenu_opt_ft2ndlinknwindow');
48
+ delete_option('mobmenu_opt_ft3rdlinknwindow');
49
+ delete_option('mobmenu_opt_ft4thlinknwindow');
50
+ delete_option('mobmenu_opt_header_menus');
51
+ delete_option('mobmenu_opt_footer_menus');
52
+
53
+
54
+
55
+ ?>