myStickymenu - Version 2.1

Version Description

New and easy UI, you can now select your menu from a dropdown

Download this release

Release Info

Developer galdub
Plugin Icon 128x128 myStickymenu
Version 2.1
Comparing to
See all releases

Code changes from version 2.0.6 to 2.1

css/mystickymenu-admin.css CHANGED
@@ -1,10 +1,1330 @@
1
- .mysticky-general,.mysticky-style,.mysticky-advanced,.mysticky-hideform,.mysticky-hideformreset{display:none;}
2
- .main-content {float:left;width:65%;}
3
- .main-sidebar {float:right;width:30%;background:#ffffff;border: 1px solid #e5e5e5;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);}
4
- .main-sidebar h3 {margin: 0;padding: 8px 12px;border-bottom: 1px solid #ececec;}
5
- .main-sidebar .inner {padding:10px;}
6
- .main-sidebar p {padding:8px;margin:0;border-top:solid 1px #e5e5e5;}
7
- .mystickyinput {padding-top: 6px;}
8
@media screen and (max-width: 782px) {
9
- .main-content, .main-sidebar { width:100%; float:none;clear:both;}
10
}
1
+ #custom-handle {
2
+ width: 3em;
3
+ height: 1.6em;
4
+ top: 50%;
5
+ margin-top: -.8em;
6
+ text-align: center;
7
+ line-height: 1.6em;
8
+ }
9
+
10
+ #mystickymenu {
11
+ font-family: 'Poppins', sans-serif;
12
+ }
13
+
14
+ .main-content {
15
+ float: left;
16
+ width: 65%;
17
+ }
18
+
19
+ .main-sidebar {
20
+ float: right;
21
+ width: 30%;
22
+ background: #ffffff;
23
+ border: 1px solid #e5e5e5;
24
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
25
+ }
26
+
27
+ .main-sidebar h3 {
28
+ margin: 0;
29
+ padding: 8px 12px;
30
+ border-bottom: 1px solid #ececec;
31
+ }
32
+
33
+ .main-sidebar .inner {
34
+ padding: 10px;
35
+ }
36
+
37
+ .main-sidebar p {
38
+ padding: 8px;
39
+ margin: 0;
40
+ border-top: solid 1px #e5e5e5;
41
+ }
42
+
43
+ /*.mystickyinput {padding-top: 6px;}*/
44
@media screen and (max-width: 782px) {
45
+ .main-content, .main-sidebar {
46
+ width: 100%;
47
+ float: none;
48
+ clear: both;
49
+ }
50
+ }
51
+
52
+ .myssticky-remove-hand {
53
+ cursor: default;
54
+ }
55
+
56
+ /* */
57
+ .mystickymenu-content-section input[type="number"]#myfixed_zindex {
58
+ -moz-appearance: textfield-multiline;
59
+ }
60
+
61
+ .mystickymenu-content-section input[type="number"] {
62
+ -moz-appearance: textfield;
63
+ }
64
+
65
+ .mystickymenu-content-section input[type="number"]::-webkit-inner-spin-button, .mystickymenu-content-section input[type="number"]::-webkit-outer-spin-button {
66
+ -webkit-appearance: none;
67
+ margin: 0;
68
+ }
69
+
70
+ .mystickymenu-content-section .mysticky-number {
71
+ display: inline-block;
72
+ margin: 0 0 10px;
73
+ position: relative;
74
+ }
75
+
76
+ #mystickymenu .mystickymenu-content-section .mysticky-number {
77
+ /*width: 90px;*/
78
+ }
79
+
80
+ #mystickymenu input[type=number] {
81
+ color: #A7A7A7;
82
+ border-radius: 21px;
83
+ background-color: #ffffff;
84
+ border: 1px solid #DCE2E2;
85
+ font-size: 14px;
86
+ font-weight: 400;
87
+ height: 42px;
88
+ padding: 0 10px 0 12px;
89
+ margin: 0;
90
+ width: 229px;
91
+ box-shadow: none;
92
+ }
93
+
94
+ .pt_number {
95
+ display: inline-block;
96
+ vertical-align: top;
97
+ margin-top: 7px;
98
+ }
99
+
100
+ .mystickymenu-content-section .mysticky-number:focus {
101
+ outline: 0;
102
+ }
103
+
104
+ .mystickymenu-content-section .mysticky-number .pt_number {
105
+ float: left;
106
+ position: relative;
107
+ height: 30px;
108
+ }
109
+
110
+ .mystickymenu-content-section .mysticky-number .pt_number .pt_numberbutton {
111
+ position: relative;
112
+ cursor: pointer;
113
+ border-left: 1px solid #b7b7b7;
114
+ width: 15px;
115
+ text-align: center;
116
+ color: #333;
117
+ font-size: 14px;
118
+ line-height: 1.1;
119
+ -webkit-transform: translateX(-100%);
120
+ transform: translateX(-100%);
121
+ -webkit-user-select: none;
122
+ -moz-user-select: none;
123
+ -ms-user-select: none;
124
+ user-select: none;
125
+ }
126
+
127
+ .mystickymenu-content-section .mysticky-number .pt_number .pt_numberbutton:active {
128
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
129
+ -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
130
+ }
131
+
132
+ .mystickymenu-content-section .mysticky-number .pt_number .pt_numberbutton.pt_numberup {
133
+ position: absolute;
134
+ height: 50%;
135
+ top: 0;
136
+ border-bottom: 1px solid #b7b7b7;
137
+ }
138
+
139
+ .mystickymenu-content-section .mysticky-number .pt_number .pt_numberbutton.pt_numberdown {
140
+ position: absolute;
141
+ bottom: 0px;
142
+ height: 50%;
143
+ }
144
+
145
+ /* */
146
+
147
+ input#mysticky_class_selector {
148
+ border-radius: 24px;
149
+ border: 1px solid #E6E5EC;
150
+ height: 46px;
151
+ padding: 0 26px;
152
+ width: 49%
153
+ }
154
+
155
+ .mystickymenu-content-section {
156
+ background-color: #F9FCFC;
157
+ border-radius: 7px;
158
+ margin-bottom: 20px;
159
+ border: 1px solid #E1E6E6;
160
+ }
161
+
162
+ input#myfixed_disable_small_screen {
163
+ border-radius: 21px;
164
+ }
165
+
166
+ input#mysticky_active_on_height_home {
167
+ border-radius: 21px;
168
+ }
169
+
170
+ textarea#myfixed_cssstyle {
171
+ width: 100%;
172
+ margin-top: 12px;
173
+ border-radius: 10px;
174
+ background-color: #fff;
175
+ height: 120px;
176
+ resize: none;
177
+ border: 1px solid #DCE2E2;
178
+ padding: 10px 10px;
179
+ }
180
+
181
+ label {
182
+ font-size: 15px;
183
+ }
184
+
185
+ .sticky-class-sec tr td {
186
+ width: 50%;
187
+ }
188
+
189
+ .px-wrap {
190
+ position: relative;
191
+ display: inline-block;
192
+ vertical-align: top;
193
+ }
194
+
195
+ .mystickymenu-content-option {
196
+ padding: 20px 20px 0;
197
+ }
198
+
199
+ .mystickymenu-heading {
200
+ padding-bottom: 20px;
201
+ }
202
+
203
+ .myStickymenu-header-title {
204
+ background-color: #B2D2FC;
205
+ padding: 13px 20px;
206
+ border-radius: 10px 10px 0 0;
207
+ }
208
+
209
+ .myStickymenu-header-title h3 {
210
+ margin: 0;
211
+ color: #1F4B84;
212
+ font-size: 18px;
213
+ font-weight: 600;
214
+ line-height: 1.2;
215
+ }
216
+
217
+ .mystickymenu-heading p {
218
+ background-color: #D6EFFF;
219
+ color: #1F4B84;
220
+ border-radius: 0 0 10px 10px;
221
+ padding: 13px 20px;
222
+ margin: 0;
223
+ font-size: 14px;
224
+ line-height: 28px;
225
+ }
226
+
227
+ .mystickynumber {
228
+ position: relative;
229
+ padding-left: 30px;
230
+ }
231
+
232
+ .pt_numberbutton.pt_numberup {
233
+ height: 25px;
234
+ width: 25px;
235
+ line-height: 25px;
236
+ background-color: #808080;
237
+ border-radius: 50%;
238
+ position: relative;
239
+ margin-left: 5px;
240
+ display: inline-block;
241
+ color: white;
242
+ font-size: 21px;
243
+ cursor: pointer;
244
+ text-align: center;
245
+ margin-top: 2px;
246
+ }
247
+
248
+ .pt_numberbutton.pt_numberdown {
249
+ height: 25px;
250
+ width: 25px;
251
+ line-height: 25px;
252
+ background-color: #808080;
253
+ border-radius: 50%;
254
+ position: absolute;
255
+ top: 8px;
256
+ left: 0;
257
+ display: inline-block;
258
+ color: white;
259
+ font-size: 21px;
260
+ cursor: pointer;
261
+ text-align: center;
262
+ }
263
+
264
+ span.input-px {
265
+ height: 42px;
266
+ width: 57px;
267
+ background-color: #808080;
268
+ position: absolute;
269
+ right: 0;
270
+ top: 0px;
271
+ display: inline-block;
272
+ vertical-align: top;
273
+ font-size: 14px;
274
+ border-radius: 0 21px 21px 0;
275
+ color: #fff;
276
+ line-height: 42px;
277
+ text-align: center;
278
+ }
279
+
280
+ .mysticky_device_upgrade {
281
+ background-color: #f0ecfb;
282
+ border-radius: 20px;
283
+ padding: 15px 40px 20px 20px;
284
+ }
285
+
286
+ .mystickymenu-content-section.mystickymenu-content-upgrade {
287
+ background-color: #f4f4fd;
288
+ }
289
+
290
+ .myStickymenu-upgrade {
291
+ background: #E1DAF6;
292
+ border-radius: 20px;
293
+ color: #7559C0;
294
+ padding-top: 6px;
295
+ padding-bottom: 6px;
296
+ padding-left: 10px;
297
+ padding-right: 10px;
298
+ font-weight: bold;
299
+ text-transform: uppercase;
300
+ font-size: 12px;
301
+ float: right;
302
+ }
303
+
304
+ .myStickymenu-upgrade:before {
305
+ content: "\f160";
306
+ font-family: dashicons;
307
+ position: relative;
308
+ top: 3px;
309
+ font-size: 16px;
310
+ }
311
+
312
+ .mystickymenu-input-section ul.mystickymenu-input-multicheckbox li {
313
+ display: inline-block;
314
+ width: 21%;
315
+ }
316
+
317
+ input#submit.button.button-primary {
318
+ background: #00c67c;
319
+ border-color: #00c67c;
320
+ text-transform: uppercase;
321
+ border-radius: 31px;
322
+ font-size: 26px;
323
+ padding-left: 23px;
324
+ padding-right: 23px;
325
+ height: 60px;
326
+ width: 200px;
327
+ border: 0;
328
+ box-shadow: none;
329
+ font-weight: 600;
330
+ text-shadow: none;
331
+ }
332
+
333
+ input.button.button-secondary.confirm {
334
+ background: #969696;
335
+ border-color: #969696;
336
+ text-transform: uppercase;
337
+ font-size: 26px;
338
+ padding-left: 23px;
339
+ padding-right: 23px;
340
+ float: right;
341
+ color: white;
342
+ margin-right: 10px;
343
+ height: 60px;
344
+ width: 200px;
345
+ border-radius: 31px;
346
+ font-weight: 600;
347
+ }
348
+
349
+ table ul.mystickymenu-input-multicheckbox {
350
+ width: 100%;
351
+ display: inline-flex;
352
+ }
353
+
354
+ p.myStickymenu-review a {
355
+ font-size: 20px;
356
+ }
357
+
358
+ table ul.mystickymenu-input-multicheckbox li {
359
+ padding-right: 21px;
360
+ }
361
+
362
+ table {
363
+ width: 100%;
364
+ }
365
+
366
+ #mystickymenu table tr td {
367
+ padding: 20px;
368
+ }
369
+
370
+ div#mystickymenu {
371
+ overflow-x: hidden;
372
+ }
373
+
374
+ label.mysticky_title {
375
+ font-weight: 500;
376
+ font-size: 18px;
377
+ line-height: 1.2;
378
+ color: #4F4F4F;
379
+ }
380
+
381
+ .mystickymenu-content-option p label.mysticky_text {
382
+ margin-left: 0px;
383
+ }
384
+
385
+ span.mysticky_text {
386
+ font-size: 14px;
387
+ color: #9E9E9E;
388
+ margin-left: 20px;
389
+ font-style: italic;
390
+ }
391
+
392
+ label.mysticky_text {
393
+ font-size: 14px;
394
+ /*color: #9E9E9E;*/
395
+ margin-left: 20px;
396
+ font-style: italic;
397
+ }
398
+
399
+ select#mystickymenu-select {
400
+ border-radius: 24px;
401
+ border: 1px solid #E6E5EC;
402
+ height: 46px;
403
+ box-shadow: none;
404
+ padding: 0 26px;
405
+ width: 49%;
406
+ display: inline-block;
407
+ vertical-align: top;
408
+ }
409
+
410
+ .mystickymenu-input-section {
411
+ margin-top: 9px;
412
+ }
413
+
414
+ label.mysticky_title.css-style-title {
415
+ font-size: 20px;
416
+ }
417
+
418
+ span.wp-color-result-text {
419
+ display: none;
420
+ }
421
+
422
+ button.button.wp-color-result {
423
+ border-radius: 50%;
424
+ height: 30px !important;
425
+ }
426
+
427
+ .mystickymenu-content-section h3 {
428
+ margin-left: 20px;
429
+ font-weight: 600;
430
+ font-size: 26px;
431
+ line-height: 1.2;
432
+ color: #4F4F4F;
433
+ margin: 0;
434
+ padding: 24px 20px;
435
+ }
436
+
437
+ .form-table {
438
+ margin-top: 0;
439
+ }
440
+
441
+ ul.mystickymenu-input-multicheckbox li span {
442
+ font-size: 16px;
443
+ color: #4F4F4F;
444
+ }
445
+
446
+ .mystickymenu-input-section label {
447
+ /*color: #9E9E9E;*/
448
+ font-size: 16px;
449
+ }
450
+ #mystickymenu .mystickymenu-input-section input.mystickymenu_normal_text{
451
+ border-radius: 0px;
452
+ height: 35px;
453
+ margin: 10px;
454
+ }
455
+ #mystickymenu .mystickymenu-input-section span.description{
456
+ font-style: normal;
457
+ font-size: 16px;
458
+ }
459
+ .myStickymenu-upgrade a {
460
+ text-decoration: none;
461
+ color: #7559C0;
462
+ }
463
+
464
+ #mystickymenu p.submit {
465
+ margin-top: 0;
466
+ padding-top: 0;
467
+ float: right;
468
+ }
469
+
470
+ td {
471
+ vertical-align: top !important;
472
+ }
473
+
474
+ p.description {
475
+ color: rgba(79, 79, 79, 0.5);
476
+ font-size: 12px;
477
+ line-height: 1.2;
478
+ margin: 5px 0 0;
479
+ }
480
+
481
+ div#slider.ui-slider {
482
+ width: 229px;
483
+ background-color: #DCE2E2;
484
+ height: 2px;
485
+ border: 0;
486
+ border-radius: 2px;
487
+ }
488
+
489
+ .mystickymenu-content-section .ui-state-active, .ui-widget-content .ui-state-active {
490
+ color: #454545;
491
+ }
492
+
493
+ #mystickymenu #custom-handle {
494
+ width: 1.6em;
495
+ border-radius: 50%;
496
+ background-color: #fff;
497
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.16);
498
+ border: 0;
499
+ }
500
+ .sticky-header-menu {
501
+ text-align: center;
502
+ padding: 0 0 20px 0;
503
+ }
504
+ .sticky-header-menu ul {
505
+ display: inline-block;
506
+ padding: 1px;
507
+ background-color: #D6EFFF;
508
+ -webkit-border-radius: 23px;
509
+ -moz-border-radius: 23px;
510
+ border-radius: 23px;
511
+ }
512
+ .sticky-header-menu ul li {
513
+ display: inline-block;
514
+ margin: 0;
515
+ }
516
+ .sticky-header-menu ul li a {
517
+ display: inline-block;
518
+ padding: 0 20px;
519
+ line-height: 40px;
520
+ height: 40px;
521
+ font-size: 16px;
522
+ text-decoration: none;
523
+ -webkit-border-radius: 20px;
524
+ -moz-border-radius: 20px;
525
+ border-radius: 20px;
526
+ }
527
+ .sticky-header-menu ul li a:hover {
528
+ background: #f0ecfb;
529
+ color: #7559C0;
530
+ }
531
+ .sticky-header-menu ul li a.active {
532
+ background: #E1DAF6;
533
+ color: #7559C0;
534
+ }
535
+ .sticky-header-content {
536
+ display: none;
537
+ }
538
+ @media only screen and (min-width: 1024px) and (max-width: 1200px) {
539
+ .pt_numberbutton.pt_numberdown {
540
+ position: relative;
541
+ margin-left: -75px;
542
+ top: -29px;
543
+ }
544
+
545
+ .pt_numberbutton.pt_numberup {
546
+ position: relative;
547
+ top: -29px;
548
+ left: 70px;
549
+ }
550
+
551
+ span.input-px {
552
+ position: relative;
553
+ left: 112px;
554
+ top: -24px !important;
555
+ margin-left: -20px;
556
+ }
557
+ }
558
+
559
+
560
+
561
+ #rpt_pricr {
562
+ width: 100%;
563
+ max-width: 1024px;
564
+ margin: 0 auto;
565
+ padding: 30px 0;
566
+ }
567
+ #rpt_pricr h2 {
568
+ padding: 50px 0 30px;
569
+ text-align: center;
570
+ font-size: 24px;
571
+ }
572
+ .rpt_plans .rpt_plan {
573
+ -moz-box-sizing: border-box;
574
+ -webkit-box-sizing: border-box
575
+ }
576
+
577
+ .rpt_2_plans .rpt_plan {
578
+ margin-right: 2%;
579
+ width: 49%;
580
+ float: left
581
+ }
582
+
583
+ .rpt_2_plans .rpt_plan:last-child {
584
+ margin-right: 0
585
+ }
586
+
587
+ .rpt_3_plans .rpt_plan {
588
+ margin-right: 2%;
589
+ width: 32%;
590
+ float: left
591
+ }
592
+
593
+ .rpt_3_plans .rpt_plan:last-child {
594
+ margin-right: 0
595
+ }
596
+
597
+ .rpt_4_plans .rpt_plan {
598
+ margin-right: 1%;
599
+ width: 24.25%;
600
+ float: left
601
+ }
602
+
603
+ .rpt_4_plans .rpt_plan:last-child {
604
+ margin-right: 0
605
+ }
606
+
607
+ .rpt_5_plans .rpt_plan {
608
+ margin-right: .5%;
609
+ width: 19.6%;
610
+ float: left
611
+ }
612
+
613
+ .rpt_5_plans .rpt_plan:last-child {
614
+ margin-right: 0
615
+ }
616
+
617
+ .rpt_style_bic .rpt_plan, .rpt_style_loc .rpt_plan {
618
+ -webkit-box-shadow: 1px 1px 3px 0 rgba(50, 50, 50, .19);
619
+ -moz-box-shadow: 1px 1px 3px 0 rgba(50, 50, 50, .19);
620
+ box-shadow: 1px 1px 3px 0 rgba(50, 50, 50, .19)
621
+ }
622
+
623
+ .rpt_plans .rpt_plan .rpt_title img {
624
+ margin-right: 10px;
625
+ position: relative;
626
+ vertical-align: middle
627
+ }
628
+
629
+ .rpt_plans .rpt_plan .rpt_title {
630
+ background: #B2D2FC;
631
+ font-weight: 300;
632
+ padding: 24px 18px;
633
+ font-size: 26px;
634
+ color: #fff;
635
+ line-height: 35px;
636
+ height: auto;
637
+ color: #444;
638
+ }
639
+
640
+ .rpt_plans .rpt_plan .rpt_title span {
641
+ display: inline-block;
642
+ position: relative;
643
+ top: -10px
644
+ }
645
+
646
+ .rpt_style_basic .rpt_plan .rpt_title {
647
+ border-bottom: #B2D2FC solid 1px;
648
+ border-top-left-radius: 8px;
649
+ border-top-right-radius: 8px;
650
+ }
651
+
652
+ .rpt_style_spec .rpt_plan .rpt_title {
653
+ color: #fff
654
+ }
655
+
656
+ .rpt_style_bic .rpt_plan .rpt_title, .rpt_style_loc .rpt_plan .rpt_title, .rpt_style_swl .rpt_plan .rpt_title {
657
+ background: #333
658
+ }
659
+
660
+ .rpt_plans .rpt_sm_title .rpt_plan .rpt_title {
661
+ font-size: 20px;
662
+ line-height: 18px
663
+ }
664
+
665
+ .rpt_plans .rpt_xsm_title .rpt_plan .rpt_title {
666
+ font-size: 15px;
667
+ line-height: 15px
668
+ }
669
+
670
+ .rpt_4_plans .rpt_plan .rpt_title {
671
+ font-size: 17px;
672
+ line-height: 15px
673
+ }
674
+
675
+ .rpt_4_plans .rpt_sm_title .rpt_plan .rpt_title {
676
+ font-size: 15px;
677
+ line-height: 13px
678
+ }
679
+
680
+ .rpt_4_plans .rpt_xsm_title .rpt_plan .rpt_title {
681
+ font-size: 13px;
682
+ line-height: 11px
683
+ }
684
+
685
+ .rpt_5_plans .rpt_plan .rpt_title {
686
+ font-size: 15px;
687
+ line-height: 13px
688
+ }
689
+
690
+ .rpt_5_plans .rpt_sm_title .rpt_plan .rpt_title {
691
+ font-size: 13px;
692
+ line-height: 11px
693
+ }
694
+
695
+ .rpt_5_plans .rpt_xsm_title .rpt_plan .rpt_title {
696
+ font-size: 12px;
697
+ line-height: 10px
698
+ }
699
+
700
+ .rpt_plans .rpt_recommended_plan .rpt_title {
701
+ background: #B2D2FC
702
+ }
703
+
704
+ .rpt_plans .rpt_plan .rpt_head .rpt_price .rpt_currency {
705
+ position: relative;
706
+ top: -44px;
707
+ left: -10px;
708
+ font-size: 35px;
709
+ line-height: 0
710
+ }
711
+
712
+ .rpt_4_plans .rpt_plan .rpt_head .rpt_price .rpt_currency {
713
+ top: -36px
714
+ }
715
+
716
+ .rpt_5_plans .rpt_plan .rpt_head .rpt_price .rpt_currency {
717
+ top: -26px
718
+ }
719
+
720
+ .rpt_sm_price .rpt_plan .rpt_head .rpt_price .rpt_currency {
721
+ font-size: 30px;
722
+ top: -44px;
723
+ left: -4px
724
+ }
725
+
726
+ .rpt_xsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency {
727
+ font-size: 25px;
728
+ top: -30px;
729
+ left: -4px
730
+ }
731
+
732
+ .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency {
733
+ font-size: 21px;
734
+ top: -14px;
735
+ left: -4px
736
+ }
737
+
738
+ .rpt_style_basic .rpt_plan .rpt_head {
739
+ background: #D6EFFF
740
+ }
741
+
742
+ .rpt_style_spec .rpt_plan .rpt_head {
743
+ background: #222
744
+ }
745
+
746
+ .rpt_style_swl .rpt_plan .rpt_head {
747
+ background: #fff
748
+ }
749
+
750
+ .rpt_plans .rpt_plan .rpt_head .rpt_price {
751
+ padding: 6px 10px;
752
+ font-size: 74px;
753
+ line-height: 80px;
754
+ font-weight: 300;
755
+ text-align: center;
756
+ color: #424242
757
+ }
758
+
759
+ .rpt_style_basic .rpt_plan .rpt_head .rpt_price, .rpt_style_spec .rpt_plan .rpt_head .rpt_price {
760
+ text-shadow: 1px 2px 7px rgba(0, 0, 0, .6)
761
+ }
762
+
763
+ .rpt_style_swl .rpt_plan .rpt_head .rpt_price {
764
+ color: #000
765
+ }
766
+
767
+ .rpt_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price {
768
+ font-size: 62px
769
+ }
770
+
771
+ .rpt_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price {
772
+ font-size: 56px
773
+ }
774
+
775
+ .rpt_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price {
776
+ font-size: 38px
777
+ }
778
+
779
+ .rpt_4_plans .rpt_plan .rpt_head .rpt_price {
780
+ font-size: 69px;
781
+ line-height: 80px
782
+ }
783
+
784
+ .rpt_4_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price {
785
+ font-size: 53px;
786
+ line-height: 65px
787
+ }
788
+
789
+ .rpt_4_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price {
790
+ font-size: 47px;
791
+ line-height: 64px
792
+ }
793
+
794
+ .rpt_4_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price {
795
+ font-size: 31px;
796
+ line-height: 60px
797
+ }
798
+
799
+ .rpt_5_plans .rpt_plan .rpt_head .rpt_price {
800
+ font-size: 59px;
801
+ line-height: 80px
802
+ }
803
+
804
+ .rpt_5_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price {
805
+ font-size: 44px;
806
+ line-height: 60px
807
+ }
808
+
809
+ .rpt_5_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price {
810
+ font-size: 37px;
811
+ line-height: 53px
812
+ }
813
+
814
+ .rpt_5_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price {
815
+ font-size: 24px;
816
+ line-height: 50px
817
+ }
818
+
819
+ .rpt_plans .rpt_recommended_plan .rpt_head .rpt_price {
820
+ font-size: 98px
821
+ }
822
+
823
+ .rpt_4_plans .rpt_recommended_plan .rpt_head .rpt_price {
824
+ font-size: 74px
825
+ }
826
+
827
+ .rpt_5_plans .rpt_recommended_plan .rpt_head .rpt_price {
828
+ font-size: 67px
829
+ }
830
+
831
+ .rpt_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price {
832
+ font-size: 83px
833
+ }
834
+
835
+ .rpt_4_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price {
836
+ font-size: 60px
837
+ }
838
+
839
+ .rpt_5_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price {
840
+ font-size: 54px
841
+ }
842
+
843
+ .rpt_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price {
844
+ font-size: 55px
845
+ }
846
+
847
+ .rpt_4_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price {
848
+ font-size: 49px
849
+ }
850
+
851
+ .rpt_5_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price {
852
+ font-size: 41px
853
+ }
854
+
855
+ .rpt_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price {
856
+ font-size: 42px
857
+ }
858
+
859
+ .rpt_4_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price {
860
+ font-size: 34px
861
+ }
862
+
863
+ .rpt_5_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price {
864
+ font-size: 26px
865
+ }
866
+
867
+ .rpt_plans .rpt_plan .rpt_head .rpt_recurrence {
868
+ font-size: 13px;
869
+ font-weight: 300;
870
+ line-height: 18px;
871
+ padding: 20px 40px 10px;
872
+ color: #444444;
873
+ text-align: center
874
+ }
875
+
876
+ .rpt_style_spec .rpt_plan .rpt_head .rpt_recurrence {
877
+ color: #d3d3d3
878
+ }
879
+
880
+ .rpt_style_bic .rpt_plan .rpt_head .rpt_recurrence, .rpt_style_loc .rpt_plan .rpt_head .rpt_recurrence {
881
+ color: #f5f5f5
882
+ }
883
+
884
+ .rpt_style_swl .rpt_plan .rpt_head .rpt_recurrence {
885
+ color: grey
886
+ }
887
+
888
+ .rpt_plans .rpt_sm_recurrence .rpt_plan .rpt_head .rpt_recurrence {
889
+ font-size: 11px;
890
+ padding: 20px 40px 4px
891
+ }
892
+
893
+ .rpt_plans .rpt_plan .rpt_head .rpt_subtitle {
894
+ font-size: 16px;
895
+ line-height: 20px;
896
+ font-weight: 300;
897
+ text-align: center;
898
+ padding: 10px 30px 20px
899
+ }
900
+
901
+ .rpt_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
902
+ font-size: 14px
903
+ }
904
+
905
+ .rpt_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
906
+ font-size: 12px
907
+ }
908
+
909
+ .rpt_4_plans .rpt_plan .rpt_head .rpt_subtitle {
910
+ font-size: 16px;
911
+ line-height: 18px;
912
+ padding: 10px 10px 20px
913
+ }
914
+
915
+ .rpt_4_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
916
+ font-size: 14px;
917
+ line-height: 17px
918
+ }
919
+
920
+ .rpt_4_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
921
+ font-size: 13px;
922
+ line-height: 16px
923
+ }
924
+
925
+ .rpt_5_plans .rpt_plan .rpt_head .rpt_subtitle {
926
+ font-size: 15px;
927
+ line-height: 18px;
928
+ padding: 10px 10px 20px
929
+ }
930
+
931
+ .rpt_5_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
932
+ font-size: 13px;
933
+ line-height: 17px
934
+ }
935
+
936
+ .rpt_5_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
937
+ font-size: 12px;
938
+ line-height: 16px
939
+ }
940
+
941
+ .rpt_plans .rpt_plan .rpt_head .rpt_description {
942
+ font-size: 14px;
943
+ line-height: 20px;
944
+ padding: 10px 20px;
945
+ font-weight: 300;
946
+ text-align: center;
947
+ color: #333333
948
+ }
949
+
950
+ .rpt_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description {
951
+ font-size: 12px
952
+ }
953
+
954
+ .rpt_style_bic .rpt_plan .rpt_head .rpt_description, .rpt_style_loc .rpt_plan .rpt_head .rpt_description {
955
+ color: #f5f5f5
956
+ }
957
+
958
+ .rpt_4_plans .rpt_plan .rpt_head .rpt_description {
959
+ font-size: 13px;
960
+ line-height: 18px
961
+ }
962
+
963
+ .rpt_4_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description {
964
+ font-size: 12px;
965
+ line-height: 17px
966
+ }
967
+
968
+ .rpt_5_plans .rpt_plan .rpt_head .rpt_description {
969
+ font-size: 12px;
970
+ line-height: 18px
971
+ }
972
+
973
+ .rpt_5_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description {
974
+ font-size: 11px;
975
+ line-height: 17px
976
+ }
977
+
978
+ .rpt_plans .rpt_plan .rpt_features {
979
+ padding: 20px;
980
+ background: #f0ecfb;
981
+ text-align: center
982
+ }
983
+
984
+ .rpt_plans .rpt_plan .rpt_features .rpt_feature {
985
+ font-size: 16px;
986
+ padding: 6px 16px;
987
+ border-bottom: 1px dotted #d3d3d3
988
+ }
989
+ .rpt_plans .rpt_plan .rpt_features .rpt_feature a {
990
+ color: #333333;
991
+ }
992
+
993
+ .rpt_plans .rpt_plan .rpt_features .rpt_feature:last-child {
994
+ border-bottom: none
995
+ }
996
+
997
+ .rpt_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature {
998
+ font-size: 14px
999
+ }
1000
+
1001
+ .rpt_style_bic .rpt_plan .rpt_features, .rpt_style_loc .rpt_plan .rpt_features, .rpt_style_swl .rpt_plan .rpt_features {
1002
+ background: #fff
1003
+ }
1004
+
1005
+ .rpt_style_swl .rpt_plan .rpt_features .rpt_feature {
1006
+ padding: 5px 16px
1007
+ }
1008
+
1009
+ .rpt_4_plans .rpt_plan .rpt_features .rpt_feature {
1010
+ padding: 6px 10px;
1011
+ font-size: 14px
1012
+ }
1013
+
1014
+ .rpt_4_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature {
1015
+ font-size: 12px
1016
+ }
1017
+
1018
+ .rpt_5_plans .rpt_plan .rpt_features .rpt_feature {
1019
+ padding: 6px 10px;
1020
+ font-size: 13px
1021
+ }
1022
+
1023
+ .rpt_5_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature {
1024
+ font-size: 11px
1025
+ }
1026
+
1027
+ .rpt_plans .rpt_plan .rpt_foot {
1028
+ display: block;
1029
+ padding: 10px 30px;
1030
+ border-top: #7559C0 solid 2px;
1031
+ background: #7559C0;
1032
+ text-align: center;
1033
+ color: #fff;
1034
+ font-size: 24px;
1035
+ text-decoration: none;
1036
+ font-weight: 300;
1037
+ transition: All .5s ease;
1038
+ -webkit-transition: All .5s ease;
1039
+ -moz-transition: All .5s ease;
1040
+ -o-transition: All .5s ease
1041
+ }
1042
+
1043
+ .rpt_plans .rpt_sm_button .rpt_plan .rpt_foot {
1044
+ font-size: 19px
1045
+ }
1046
+
1047
+ .rpt_style_basic .rpt_plan .rpt_foot {
1048
+ border-bottom-left-radius: 8px;
1049
+ border-bottom-right-radius: 8px
1050
+ }
1051
+
1052
+ .rpt_style_swl .rpt_plan .rpt_foot {
1053
+ border-top: none;
1054
+ padding: 10px 30px 20px;
1055
+ color: #000;
1056
+ background: #333
1057
+ }
1058
+
1059
+ .rpt_4_plans .rpt_plan .rpt_foot {
1060
+ padding: 4px 20px;
1061
+ font-size: 19px
1062
+ }
1063
+
1064
+ .rpt_4_plans .rpt_sm_button .rpt_plan .rpt_foot, .rpt_5_plans .rpt_plan .rpt_foot {
1065
+ padding: 4px 20px;
1066
+ font-size: 17px
1067
+ }
1068
+
1069
+ .rpt_5_plans .rpt_sm_button .rpt_plan .rpt_foot {
1070
+ font-size: 16px
1071
+ }
1072
+
1073
+ .rpt_plans .rpt_plan .rpt_foot:hover {
1074
+ opacity: .8
1075
+ }
1076
+
1077
+ .rpt_style_swl .rpt_plan .rpt_foot:hover {
1078
+ opacity: 1
1079
+ }
1080
+
1081
+ .rpt_plans .rpt_recommended_plan .rpt_foot {
1082
+ font-size: 30px;
1083
+ padding: 16px 0
1084
+ }
1085
+
1086
+ .rpt_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot {
1087
+ font-size: 26px
1088
+ }
1089
+
1090
+ .rpt_4_plans .rpt_recommended_plan .rpt_foot {
1091
+ font-size: 22px;
1092
+ font-weight: 300;
1093
+ padding: 10px 0
1094
+ }
1095
+
1096
+ .rpt_4_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot {
1097
+ font-size: 19px;
1098
+ padding: 10px 0
1099
+ }
1100
+
1101
+ .rpt_5_plans .rpt_recommended_plan .rpt_foot {
1102
+ font-size: 20px;
1103
+ font-weight: 300;
1104
+ padding: 10px 0
1105
+ }
1106
+
1107
+ .rpt_5_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot {
1108
+ font-size: 18px;
1109
+ padding: 10px 0
1110
+ }
1111
+
1112
+ .rpt_custom_btn {
1113
+ border-bottom-left-radius: 5px;
1114
+ border-bottom-right-radius: 5px;
1115
+ text-align: center;
1116
+ padding: 16px 20px
1117
+ }
1118
+
1119
+ .rpt_plans .rpt_recommended_plan {
1120
+ position: relative;
1121
+ top: -10px
1122
+ }
1123
+
1124
+ .rpt_recommended_plan img.rpt_recommended {
1125
+ position: absolute !important;
1126
+ right: 10px !important
1127
+ }
1128
+
1129
+ .rpt_style_bic .rpt_recommended_plan, .rpt_style_loc .rpt_recommended_plan {
1130
+ -webkit-box-shadow: 1px 1px 6px 0 rgba(50, 50, 50, .39);
1131
+ -moz-box-shadow: 1px 1px 6px 0 rgba(50, 50, 50, .39);
1132
+ box-shadow: 1px 1px 6px 0 rgba(50, 50, 50, .39)
1133
+ }
1134
+
1135
+ a.rpt_tooltip {
1136
+ display: block;
1137
+ outline: 0;
1138
+ position: relative
1139
+ }
1140
+
1141
+ a.rpt_tooltip strong {
1142
+ line-height: 30px
1143
+ }
1144
+
1145
+ a.rpt_tooltip > span.intool {
1146
+ width: 90%;
1147
+ padding: 10px;
1148
+ margin-top: 56px;
1149
+ opacity: 0;
1150
+ visibility: hidden;
1151
+ z-index: 10;
1152
+ position: absolute;
1153
+ top: -15px;
1154
+ display: block;
1155
+ color: #f5f5f5;
1156
+ font-size: 13px;
1157
+ line-height: 20px;
1158
+ background: #333;
1159
+ font-weight: 300;
1160
+ text-align: center
1161
+ }
1162
+
1163
+ a.rpt_tooltip:hover {
1164
+ cursor: zoom-in
1165
+ }
1166
+
1167
+ a.rpt_tooltip .rpt_tooltip_plus {
1168
+ text-decoration: none !important;
1169
+ display: inline;
1170
+ font-size: 12px;
1171
+ font-weight: 700;
1172
+ position: relative;
1173
+ top: -6px
1174
+ }
1175
+
1176
+ .rpt_feature:hover a.rpt_tooltip > span.intool {
1177
+ opacity: .98;
1178
+ text-decoration: none;
1179
+ visibility: visible;
1180
+ overflow: visible
1181
+ }
1182
+
1183
+ a.rpt_tooltip span.intool b {
1184
+ width: 10px;
1185
+ height: 10px;
1186
+ margin-left: 35%;
1187
+ margin-top: -15px;
1188
+ position: absolute;
1189
+ -webkit-transform: rotate(-45deg);
1190
+ -moz-transform: rotate(-45deg);
1191
+ -o-transform: rotate(-45deg);
1192
+ transform: rotate(-45deg);
1193
+ display: none \0/;
1194
+ background: #333
1195
+ }
1196
+
1197
+ .rpt_3_plans a.rpt_tooltip > span.intool {
1198
+ margin-left: -1%
1199
+ }
1200
+
1201
+ .rpt_4_plans a.rpt_tooltip > span.intool {
1202
+ margin-left: 0
1203
+ }
1204
+
1205
+ .rpt_5_plans a.rpt_tooltip > span.intool {
1206
+ margin-left: -2%
1207
+ }
1208
+
1209
+ .entry-content .rpt_plan a, .rpt_plan a {
1210
+ border-bottom: none !important;
1211
+ text-decoration: none;
1212
+ }
1213
+
1214
+ .rpt_plans .rpt_plan .rpt_icon {
1215
+ max-width: 30px;
1216
+ max-height: 30px
1217
+ }
1218
+
1219
+ .rpt_plans .rpt_plan img {
1220
+ display: inline;
1221
+ margin: 0 10px 0 0;
1222
+ padding: 0;
1223
+ -webkit-box-shadow: 0 0 0 0 transparent;
1224
+ -moz-box-shadow: 0 0 0 0 transparent;
1225
+ box-shadow: 0 0 0 0 transparent;
1226
+ border: none
1227
+ }
1228
+
1229
+ .folder-testimonial {
1230
+ position: relative;
1231
+ }
1232
+ .folder-testimonial .testimonial-data {
1233
+ position: relative;
1234
+ }
1235
+ .folder-testimonial .testimonial-data {
1236
+ position: relative;
1237
+ margin-left: 30px;
1238
+ padding: 10px 10px 10px 40px;
1239
+ background: #f5f5f5;
1240
+ font-size: 16px;
1241
+ line-height: 22px;
1242
+ }
1243
+ .folder-testimonial .testimonial-image {
1244
+ position: absolute;
1245
+ height: 60px;
1246
+ width: 60px;
1247
+ overflow: hidden;
1248
+ border-radius: 30px;
1249
+ top: 50%;
1250
+ margin-top: -30px;
1251
+ z-index: 1;
1252
+ }
1253
+ .folder-testimonial .testimonial-image img {
1254
+ width: 100%;
1255
+ height: auto;
1256
+ }
1257
+ .folder-testimonial-list {
1258
+ width: 100%;
1259
+ max-width: 1080px;
1260
+ margin: 30px auto;
1261
+ }
1262
+ .testimonial-title {
1263
+ font-weight: bold;
1264
+ font-size: 18px;
1265
+ padding: 0 0 5px 0;
1266
+ }
1267
+ .testimonial-author {
1268
+ font-size: 16px;
1269
+ font-style: italic;
1270
+ font-weight: 500;
1271
+ padding: 5px 0 0 0;
1272
+ }
1273
+ @media only screen and (max-width: 640px) {
1274
+ .rpt_plans .rpt_plan {
1275
+ width: 96%;
1276
+ margin: 10px 2% 20px !important
1277
+ }
1278
+
1279
+ .rpt_plans .rpt_plan .rpt_title {
1280
+ position: relative;
1281
+ font-size: 26px !important;
1282
+ line-height: 35px !important
1283
+ }
1284
+
1285
+ .rpt_plans .rpt_plan .rpt_head .rpt_price {
1286
+ font-size: 74px !important;
1287
+ line-height: 100px !important
1288
+ }
1289
+
1290
+ .rpt_plans .rpt_plan .rpt_head .rpt_subtitle {
1291
+ font-size: 17px !important;
1292
+ line-height: 28px !important;
1293
+ padding: 10px 40px 20px
1294
+ }
1295
+
1296
+ .rpt_plans .rpt_plan .rpt_head .rpt_description {
1297
+ font-size: 15px !important;
1298
+ line-height: 26px !important;
1299
+ padding: 0 40px 30px
1300
+ }
1301
+
1302
+ .rpt_plans .rpt_plan .rpt_features .rpt_feature {
1303
+ padding: 6px 16px;
1304
+ font-size: 14px !important
1305
+ }
1306
+
1307
+ .rpt_plans .rpt_plan .rpt_foot {
1308
+ padding: 10px 40px;
1309
+ text-align: center;
1310
+ color: #fff;
1311
+ font-size: 20px
1312
+ }
1313
+
1314
+ .rpt_plans .rpt_recommended_plan .rpt_foot {
1315
+ font-size: 30px;
1316
+ font-weight: 300;
1317
+ padding: 20px 0
1318
+ }
1319
+
1320
+ .rpt_plan .rpt_head .rpt_price .rpt_currency {
1321
+ top: -36px !important;
1322
+ left: -10px !important;
1323
+ font-size: 35px !important
1324
+ }
1325
+ }
1326
+
1327
+ #rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature, #rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature a, #rpt_pricr .rpt_plan_ori .rpt_foot, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_description, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_price, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_price .rpt_currency, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_recurrence, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_subtitle, #rpt_pricr .rpt_plan_ori .rpt_title {
1328
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
1329
+ font-weight: 300 !important
1330
}
images/rpt_recommended.png ADDED
Binary file
js/detectmobilebrowser.js ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * jQuery.browser.mobile (http://detectmobilebrowser.com/)
3
+ *
4
+ * jQuery.browser.mobile will be true if the browser is a mobile device
5
+ *
6
+ **/
7
+ (function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
js/iris-script.js CHANGED
@@ -1,3 +1,17 @@
1
jQuery(document).ready(function($){
2
- $('.my-color-field').wpColorPicker();
3
});
1
jQuery(document).ready(function($){
2
+ jQuery('.my-color-field').wpColorPicker();
3
+ jQuery(".sticky-header-menu ul li a").click(function(e){
4
+ e.preventDefault();
5
+ if(!jQuery(this).hasClass("active")) {
6
+ jQuery(".sticky-header-menu ul li a").removeClass("active");
7
+ jQuery(this).addClass("active");
8
+ thisHref = jQuery(this).attr("href");
9
+ jQuery(".sticky-header-content").hide();
10
+ jQuery(thisHref).show();
11
+ }
12
+ });
13
+ jQuery(".sticky-header-upgrade-now").click(function(e){
14
+ e.preventDefault();
15
+ jQuery(".sticky-header-menu ul li a:last").trigger("click");
16
+ });
17
});
js/mystickymenu-admin.js CHANGED
@@ -1,69 +1,91 @@
1
(function( $ ) {
2
- "use strict";
3
-
4
-
5
6
- jQuery(document).ready(function($){
7
-
8
9
- $("#myfixed_zindex,#myfixed_opacity,#myfixed_transition_time,#disable_css").parent().parent().parent().hide();
10
- $("#myfixed_bgcolor,#mysticky_disable_at_front_home").parent().parent().parent().hide();
11
- $("#myfixed_bgcolor").parent().parent().parent().parent().parent().parent().hide();
12
- $("#myfixed_cssstyle").parent().parent().hide();
13
- $(".mysticky-hideformreset").hide();
14
- $(".mysticky-hideform,.mysticky-general").fadeIn(300);
15
-
16
-
17
- $(".btn-general").click(function(){
18
- $(".btn-general").addClass("nav-tab-active");
19
- $(".btn-style,.btn-advanced").removeClass("nav-tab-active");
20
- $("#mysticky_class_selector,#myfixed_disable_small_screen,#myfixed_disable_large_screen,#mysticky_active_on_height,#mysticky_active_on_height_home,#myfixed_fade").parent().parent().parent().show();
21
- $("#myfixed_zindex,#myfixed_opacity,#myfixed_transition_time,#disable_css,#mysticky_disable_at_front_home").parent().parent().parent().hide();
22
- $("#myfixed_bgcolor").parent().parent().parent().parent().parent().parent().hide();
23
- $("#myfixed_cssstyle,#mysticky_disable_at_front_home").parent().parent().hide();
24
- $(".mysticky-general").fadeIn(300);
25
- $(".mysticky-style,.mysticky-advanced,.mysticky-hideformreset") .hide();
26
- });
27
-
28
- $(".btn-general,.btn-style,.btn-advanced").hover(function() {
29
- $(".btn-general,.btn-style,.btn-advanced").css("cursor","pointer");
30
- });
31
-
32
- $(".btn-style").click(function(){
33
- $(".btn-style").addClass("nav-tab-active");
34
- $(".btn-general,.btn-advanced").removeClass("nav-tab-active");
35
- $("#mysticky_class_selector,#myfixed_disable_small_screen,#myfixed_disable_large_screen,#mysticky_active_on_height,#mysticky_active_on_height_home,#myfixed_fade,#mysticky_disable_at_front_home").parent().parent().parent().hide();
36
- $("#myfixed_zindex,#myfixed_bgcolor,#myfixed_opacity,#myfixed_transition_time,#disable_css").parent().parent().parent().show();
37
- $("#myfixed_cssstyle").parent().parent().show();
38
- $("#mysticky_disable_at_front_home").parent().parent().hide();
39
- $("#myfixed_bgcolor").parent().parent().parent().parent().parent().parent().show();
40
- $(".mysticky-general").hide();
41
- $(".mysticky-hideformreset").hide();
42
- $(".mysticky-style") .fadeIn(300);
43
- $(".mysticky-advanced").hide();
44
- });
45
-
46
- $(".btn-advanced").click(function(){
47
- $(".btn-advanced").addClass("nav-tab-active");
48
- $(".btn-style,.btn-general").removeClass("nav-tab-active");
49
- $("#mysticky_class_selector,#myfixed_disable_small_screen,#myfixed_disable_large_screen,#mysticky_active_on_height,#mysticky_active_on_height_home,#myfixed_fade").parent().parent().parent().hide();
50
- $("#myfixed_zindex,#myfixed_opacity,#myfixed_transition_time,#disable_css").parent().parent().parent().hide();
51
- $("#myfixed_cssstyle").parent().parent().hide();
52
- $("#myfixed_bgcolor").parent().parent().parent().parent().parent().parent().hide();
53
- $("#mysticky_disable_at_front_home").parent().parent().parent().show();
54
- $("#mysticky_disable_at_front_home").parent().parent().show();
55
- $(".mysticky-hideformreset").fadeIn(300);
56
- $(".mysticky-general").hide();
57
- $(".mysticky-style") .hide();
58
- $(".mysticky-advanced").fadeIn(300);
59
- });
60
-
61
-
62
-
63
- $(".confirm").click(function() {
64
- return window.confirm("Reset to default settings?");
65
- });
66
-
67
- });
68
-
69
- })(jQuery);
1
(function( $ ) {
2
+ "use strict";
3
4
+ jQuery(document).ready(function($){
5
+
6
+ var handle = $( "#custom-handle" );
7
+ $( "#slider" ).slider({
8
+ create: function() {
9
+ handle.text( $( this ).slider( "value" ) );
10
+ handle.text( $('#myfixed_opacity').val() );
11
+ handle.css('left', $('#myfixed_opacity').val() + '%')
12
+ },
13
+ slide: function( event, ui ) {
14
+ $('#myfixed_opacity').val(ui.value);
15
+ handle.text( ui.value );
16
+ }
17
+ });
18
+ jQuery(
19
+ '<div class="pt_number"><div class="pt_numberbutton pt_numberup">+</div><div class="pt_numberbutton pt_numberdown">-</div></div>'
20
+ ).insertAfter("input.mysticky-number1");
21
+
22
+ jQuery(".mystickynumber1").each(function() {
23
+
24
+ var spinner = jQuery(this),
25
+ input = spinner.find('input[type="number"]'),
26
+ btnUp = spinner.find(".pt_numberup"),
27
+ btnDown = spinner.find(".pt_numberdown"),
28
+ min = input.attr("min"),
29
+ max = input.attr("max"),
30
+ valOfAmout = input.val(),
31
+ newVal = 0;
32
+
33
+ btnUp.on("click", function() {
34
+
35
+ var oldValue = parseFloat(input.val());
36
+
37
+ if (oldValue >= max) {
38
+ var newVal = oldValue;
39
+ } else {
40
+ var newVal = oldValue + 1;
41
+ }
42
+ spinner.find("input").val(newVal);
43
+ spinner.find("input").trigger("change");
44
+ console.log(newVal);
45
+ });
46
+ btnDown.on("click", function() {
47
+ var oldValue = parseFloat(input.val());
48
+ if (oldValue <= min) {
49
+ var newVal = oldValue;
50
+ } else {
51
+ var newVal = oldValue - 1;
52
+ }
53
+ spinner.find("input").val(newVal);
54
+ spinner.find("input").trigger("change");
55
+ });
56
+ });
57
+
58
+
59
+ $(".confirm").on( 'click', function() {
60
+ return window.confirm("Reset to default settings?");
61
+ });
62
+
63
+ var flag = 0;
64
+ $( "#mystickymenu-select option" ).each(function( i ) {
65
66
+ if ($('select#mystickymenu-select option:selected').val() !== '' ) {
67
+ flag = 1;
68
+ }
69
+ if( $('select#mystickymenu-select option:selected').val() == $(this).val() ){
70
+ $('#mysticky_class_selector').show();
71
+ }else {
72
+ $('#mysticky_class_selector').hide();
73
+ }
74
+ });
75
+ if ( flag === 0 ) {
76
+ $('#mysticky_class_selector').show();
77
+ $("select#mystickymenu-select option[value=custom]").attr('selected', 'selected');
78
+ }
79
+
80
+ $("#mystickymenu-select").on( 'change', function() {
81
+ if ($(this).val() == 'custom' ) {
82
+ $('#mysticky_class_selector').show();
83
+ }else {
84
+ $('#mysticky_class_selector').hide();
85
+ }
86
+
87
+ });
88
+
89
+ });
90
+
91
+ })(jQuery);
js/mystickymenu.js CHANGED
@@ -8,16 +8,22 @@
8
9
$(document).ready(function($){
10
11
- // get Sticky Class setting if class name existts
12
- if ($(option.mystickyClass) [0]){
13
- // Do nothing
14
}
15
- else {
16
- // Do something if class does not exist and stop
17
- console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");
18
- return;
19
- }
20
21
22
// Get class name
23
var mystickyClass = document.querySelector(option.mystickyClass);
8
9
$(document).ready(function($){
10
11
+ if ( jQuery.browser.mobile && !option.device_mobile) {
12
+ return false;
13
+ } else if ( !jQuery.browser.mobile && !option.device_desktop) {
14
+ return false;
15
}
16
17
+ // get Sticky Class setting if class name existts
18
+ if ($(option.mystickyClass) [0]){
19
+ // Do nothing
20
+ }
21
+ else {
22
+ // Do something if class does not exist and stop
23
+ console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");
24
+ return;
25
+ }
26
+
27
28
// Get class name
29
var mystickyClass = document.querySelector(option.mystickyClass);
js/mystickymenu.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";e(document).ready(function(e){if(e(option.mystickyClass)[0]){var t,i=document.querySelector(option.mystickyClass),o=parseInt(option.disableWidth),s=parseInt(option.disableLargeWidth),n=option.mystickyTransition,d=parseInt(option.activationHeight),a=option.adminBar,r=option.mysticky_disable_down;E();for(var l=i.parentNode,c=document.createElement("div"),p=0,f=0;f<l.childNodes.length;f++)if(l.childNodes[f]==i){p=f;break}c.id="mysticky-wrap",c.appendChild(i),l.insertBefore(c,l.childNodes[p]);var m,y,u=i.parentNode,h=document.createElement("div");if(h.id="mysticky-nav",u.replaceChild(h,i),h.appendChild(i),"0"==d)var w=!0;C(),B();var v,x=0;S(),H();var L=d;N(),I();var g="scrollY"in window,k=0;document.addEventListener("scroll",function(e){if(t>=o&&(0==s||t<=s)){var a=g?window.scrollY:document.documentElement.scrollTop;if(0<=a){if(a>=k)a>=d&&i.classList.add("myfixed"),a>=d&&h.classList.add("wrapfixed"),a>=d&&(c.style.height=m+"px"),a>=d&&(i.style.width=v+"px"),"on"==n&&("false"==r&&(h.style.top=a>=d+y-x?x+"px":"-"+y+"px"),m>y&&"false"==r&&(a<d+y&&(h.style.top="-"+m+"px"),a>=d+y&&(h.style.top=x+"px"))),h.classList.add("down"),h.classList.remove("up"),"on"==r&&(h.style.top="-"+(m+x)+"px");else{var l=g?window.scrollY:document.documentElement.scrollTop;!(l>L)&&(c.style.height=""),!(l>L)&&(i.style.width=""),"on"==n?(!(l>L)&&i.classList.remove("myfixed"),!(l>L)&&h.classList.remove("wrapfixed"),"false"==r&&l<L+y+200-x&&(h.style.top="-"+y+"px")):(!(l>L)&&i.classList.remove("myfixed"),!(l>L)&&h.classList.remove("wrapfixed")),h.classList.remove("down"),h.classList.add("up"),"on"==r&&(h.style.top=x+"px")}k=a}else h.classList.remove("up")}});var b=e(window).width();window.addEventListener("resize",W),window.addEventListener("orientationchange",W)}else console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");function E(e){e=window;var i="inner";"innerWidth"in window||(i="client",e=document.documentElement||document.body),t=e[i+"Width"]}function C(){m=i.offsetHeight,parseInt(e(i).css("marginBottom"))>0&&(c.style.marginBottom=e(i).css("marginBottom")),"0"==m&&e(i).children().filter(":visible").each(function(){m=e(this).outerHeight(!0)})}function B(){i.classList.add("myfixed"),"0"==(y=e(".myfixed").outerHeight())&&e(".myfixed").children().filter(":visible").each(function(){y=e(this).outerHeight(!0)}),i.classList.remove("myfixed")}function S(){x="true"==a&&t>600&&e("#wpadminbar")[0]?e("#wpadminbar").height():0,h.style.top="on"==n?"-"+y+"px":x+"px"}function H(){var t=e(i)[0].getBoundingClientRect();v=t.width}function N(){1==w&&("on"==n&&(d=e(i).offset().top+m-x,L=e(i).offset().top+m-x,"on"==r&&(L=e(i).offset().top-x)),"fade"==n&&("false"==r&&(d=e(i).offset().top-x,L=e(i).offset().top-x),"on"==r&&(d=e(i).offset().top-x+m,L=e(i).offset().top-x)))}function I(){1==w&&m>y&&("on"==n?(L=d,"on"==r&&(L=d-y)):(d=m,L=m))}function W(){e(window).width()!=b&&(h.classList.remove("up"),h.classList.remove("down"),e(".wrapfixed")[0]?(i.classList.remove("myfixed"),h.classList.remove("wrapfixed")):(C(),i.style.removeProperty("width"),H()),E(),S(),B(),N(),I())}})}(jQuery);
1
+ !function(e){"use strict";jQuery(document).ready(function(e){if(jQuery.browser.mobile&&!option.device_mobile)return!1;if(!jQuery.browser.mobile&&!option.device_desktop)return!1;if(e(option.mystickyClass)[0]){var t,i=document.querySelector(option.mystickyClass),o=parseInt(option.disableWidth),s=parseInt(option.disableLargeWidth),n=option.mystickyTransition,d=parseInt(option.activationHeight),r=option.adminBar,a=option.mysticky_disable_down;E();for(var l=i.parentNode,c=document.createElement("div"),p=0,m=0;m<l.childNodes.length;m++)if(l.childNodes[m]==i){p=m;break}c.id="mysticky-wrap",c.appendChild(i),l.insertBefore(c,l.childNodes[p]);var f,y,u=i.parentNode,w=document.createElement("div");if(w.id="mysticky-nav",u.replaceChild(w,i),w.appendChild(i),"0"==d)var h=!0;C(),B();var v,x=0;S(),H();var L=d;N(),I();var g="scrollY"in window,b=0;document.addEventListener("scroll",function(e){if(t>=o&&(0==s||t<=s)){var r=g?window.scrollY:document.documentElement.scrollTop;if(0<=r){if(r>=b)r>=d&&i.classList.add("myfixed"),r>=d&&w.classList.add("wrapfixed"),r>=d&&(c.style.height=f+"px"),r>=d&&(i.style.width=v+"px"),"on"==n&&("false"==a&&(w.style.top=r>=d+y-x?x+"px":"-"+y+"px"),f>y&&"false"==a&&(r<d+y&&(w.style.top="-"+f+"px"),r>=d+y&&(w.style.top=x+"px"))),w.classList.add("down"),w.classList.remove("up"),"on"==a&&(w.style.top="-"+(f+x)+"px");else{var l=g?window.scrollY:document.documentElement.scrollTop;!(l>L)&&(c.style.height=""),!(l>L)&&(i.style.width=""),"on"==n?(!(l>L)&&i.classList.remove("myfixed"),!(l>L)&&w.classList.remove("wrapfixed"),"false"==a&&l<L+y+200-x&&(w.style.top="-"+y+"px")):(!(l>L)&&i.classList.remove("myfixed"),!(l>L)&&w.classList.remove("wrapfixed")),w.classList.remove("down"),w.classList.add("up"),"on"==a&&(w.style.top=x+"px")}b=r}else w.classList.remove("up")}});var k=e(window).width();window.addEventListener("resize",W),window.addEventListener("orientationchange",W)}else console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");function E(e){e=window;var i="inner";"innerWidth"in window||(i="client",e=document.documentElement||document.body),t=e[i+"Width"]}function C(){f=i.offsetHeight,parseInt(e(i).css("marginBottom"))>0&&(c.style.marginBottom=e(i).css("marginBottom")),"0"==f&&e(i).children().filter(":visible").each(function(){f=e(this).outerHeight(!0)})}function B(){i.classList.add("myfixed"),"0"==(y=e(".myfixed").outerHeight())&&e(".myfixed").children().filter(":visible").each(function(){y=e(this).outerHeight(!0)}),i.classList.remove("myfixed")}function S(){x="true"==r&&t>600&&e("#wpadminbar")[0]?e("#wpadminbar").height():0,w.style.top="on"==n?"-"+y+"px":x+"px"}function H(){var t=e(i)[0].getBoundingClientRect();v=t.width}function N(){1==h&&("on"==n&&(d=e(i).offset().top+f-x,L=e(i).offset().top+f-x,"on"==a&&(L=e(i).offset().top-x)),"fade"==n&&("false"==a&&(d=e(i).offset().top-x,L=e(i).offset().top-x),"on"==a&&(d=e(i).offset().top-x+f,L=e(i).offset().top-x)))}function I(){1==h&&f>y&&("on"==n?(L=d,"on"==a&&(L=d-y)):(d=f,L=f))}function W(){e(window).width()!=k&&(w.classList.remove("up"),w.classList.remove("down"),e(".wrapfixed")[0]?(i.classList.remove("myfixed"),w.classList.remove("wrapfixed")):(C(),i.style.removeProperty("width"),H()),E(),S(),B(),N(),I())}})}();
mystickymenu.php CHANGED
</
@@ -1,968 +1,660 @@
1
- <?php
2
- /*
3
- Plugin Name: myStickymenu
4
- Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
5
- Description: Simple sticky (fixed on top) menu implementation for navigation menu. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
- Version: 2.0.6
7
- Author: m.r.d.a
8
- Author URI: http://wordpress.transformnews.com/
9
- Text Domain: mystickymenu
10
- Domain Path: /languages
11
- License: GPLv2 or later
12
- */
13
14
defined('ABSPATH') or die("Cannot access pages directly.");
15
- define( 'MYSTICKY_VERSION', '2.0.6' );
16
17
class MyStickyMenuBackend
18
{
19
-
20
private $options;
21
-
22
-
23
24
public function __construct()
25
- {
26
-
27
-
28
add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
29
add_action( 'admin_init', array( $this, 'mysticky_load_transl') );
30
- add_action( 'admin_init', array( $this, 'page_init' ) );
31
add_action( 'admin_init', array( $this, 'mysticky_default_options' ) );
32
-
33
- //add_action( 'admin_enqueue_scripts', array( $this, 'mysticky_enqueue_color_picker' ) );
34
//add_action( 'admin_head', array( $this, 'mysticky_admin_script' ) );
35
add_action( 'admin_enqueue_scripts', array( $this, 'mysticky_admin_script' ) );
36
-
37
add_filter( 'plugin_action_links_mystickymenu/mystickymenu.php', array( $this, 'mystickymenu_settings_link' ) );
38
39
-
40
}
41
42
- public function mystickymenu_settings_link($links){
43
- $settings_link = '<a href="options-general.php?page=my-stickymenu-settings">Settings</a>';
44
- array_unshift($links, $settings_link);
45
- return $links;
46
}
47
48
-
49
-
50
-
51
52
public function mysticky_admin_script($hook) {
53
if ($hook != 'settings_page_my-stickymenu-settings') {
54
return;
55
- }
56
-
57
wp_register_script('mystickymenuAdminScript', plugins_url('/js/mystickymenu-admin.js', __FILE__), array( 'jquery' ), MYSTICKY_VERSION);
58
wp_enqueue_script('mystickymenuAdminScript');
59
-
60
- wp_register_style('mystickymenuAdminStyle', plugins_url('/css/mystickymenu-admin.css', __FILE__) );
61
- wp_enqueue_style('mystickymenuAdminStyle');
62
63
- wp_enqueue_style( 'wp-color-picker' );
64
- wp_enqueue_script( 'my-script-handle', plugins_url('js/iris-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
65
- }
66
67
- /*
68
- public function mysticky_enqueue_color_picker( )
69
- {
70
- wp_enqueue_style( 'wp-color-picker' );
71
- wp_enqueue_script( 'my-script-handle', plugins_url('js/iris-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
72
-
73
- }
74
75
- */
76
77
-
78
-
79
public function mysticky_load_transl(){
80
load_plugin_textdomain('mystickymenu', FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
81
}
82
-
83
public function add_plugin_page(){
84
// This page will be under "Settings"
85
add_options_page(
86
- 'Settings Admin',
87
- 'myStickymenu',
88
- 'manage_options',
89
- 'my-stickymenu-settings',
90
array( $this, 'create_admin_page' )
91
);
92
}
93
94
public function create_admin_page(){
95
// Set class property
96
- $this->options = get_option( 'mysticky_option_name');
97
?>
98
- <div id="mystickymenu" class="wrap">
99
-
100
- <h2><?php _e('myStickymenu', 'mystickymenu'); ?></h2>
101
- <p><?php _e("Add sticky menu / header to any theme. <br />Simply change 'Sticky Class' to HTML element class desired to be sticky (div id can be used as well).", 'mystickymenu'); ?></p>
102
-
103
- <div class="main-content">
104
-
105
-
106
-
107
- <?php $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'mysticky-general'; ?>
108
-
109
- <h2 class="nav-tab-wrapper">
110
- <a class="nav-tab btn-general <?php echo $active_tab == 'mysticky-general' ? 'nav-tab-active' : ''; ?>">General Settings</a>
111
- <a class="nav-tab btn-style <?php echo $active_tab == 'mysticky-style' ? 'nav-tab-active' : ''; ?>">Style</a>
112
- <a class="nav-tab btn-advanced <?php echo $active_tab == 'mysticky-advanced' ? 'nav-tab-active' : ''; ?>">Advanced</a>
113
- </h2>
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- <form class="mysticky-hideform" method="post" action="options.php">
124
-
125
-
126
-
127
- <?php
128
-
129
-
130
- //we check if the page is visited by click on the tabs or on the menu button.
131
- //then we get the active tab.
132
-
133
- if(isset($_GET["tab"]))
134
- {
135
-
136
- if($_GET["tab"] == "mysticky-general")
137
- {
138
- echo '<div class="mysticky-general">';
139
- settings_fields( 'mysticky_option_group' );
140
- do_settings_sections( 'my-stickymenu-settings' );
141
- echo '</div>';
142
-
143
- }
144
- else if($_GET["tab"] == "mysticky-style")
145
- {
146
- echo '<div class="mysticky-style">';
147
- settings_fields( 'mysticky_option_group' );
148
- do_settings_sections( 'my-stickymenu-settings' );
149
- echo '</div>';
150
- }
151
-
152
- else if($_GET["tab"] == "mysticky-advanced")
153
- {
154
- echo '<div class="mysticky-advanced">';
155
- settings_fields( 'mysticky_option_group' );
156
- do_settings_sections( 'my-stickymenu-settings' );
157
- echo '</div>';
158
- }
159
-
160
-
161
- }
162
-
163
- else {
164
-
165
- // echo '<div class="mysticky-general">';
166
- settings_fields( 'mysticky_option_group' );
167
- do_settings_sections( 'my-stickymenu-settings' );
168
- // echo '</div>';
169
-
170
-
171
- }
172
-
173
-
174
- submit_button();
175
- ?>
176
-
177
-
178
- </form>
179
-
180
- <form class="mysticky-hideformreset" method="post" action="">
181
- <input name="reset" class="button button-secondary confirm" type="submit" value="Reset to default settings" >
182
- <input type="hidden" name="action" value="reset" />
183
- </form>
184
-
185
-
186
- </div>
187
-
188
-
189
- <div class="main-sidebar">
190
-
191
- <h3><?php _e('Plugin info','mystickymenu'); ?></h3>
192
-
193
- <div class="inner">
194
<ul>
195
- <li><strong><?php _e('Author:','mystickymenu'); ?></strong> <a href="http://wordpress.transformnews.com" target="_blank">m.r.d.a</a></li>
196
- <li><strong><?php _e('Version:','mystickymenu'); ?></strong> <?php echo MYSTICKY_VERSION; ?></li>
197
- <li><strong><?php _e('Documentation:','mystickymenu'); ?></strong> <a href="http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269" target="_blank">About Plugin</a> <a href="http://wordpress.transformnews.com/tutorials/mystickymenu-theme-support-682" target="_blank">Theme Support</a></li>
198
- <li><strong><?php _e('Support Forum','mystickymenu'); ?></strong>: <a href="https://wordpress.org/support/plugin/mystickymenu" target="_blank">WordPress.org</a></li>
199
- <!--<li><strong><?php _e('Donate:','mystickymenu'); ?></strong> <a href="" target="_blank">Soon</a></li>-->
200
-
201
</ul>
202
</div>
203
-
204
- <p><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><strong><?php _e('Add your own review','mystickymenu'); ?></strong></a></p>
205
-
206
</div>
207
</div>
208
<?php
209
}
210
-
211
- public function page_init()
212
- {
213
- global $id, $title, $callback, $page;
214
- register_setting(
215
- 'mysticky_option_group',
216
- 'mysticky_option_name',
217
- array( $this, 'sanitize' )
218
- );
219
-
220
-
221
-
222
-
223
- add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array() );
224
-
225
- add_settings_section(
226
- 'setting_section_id',
227
- __(" ", 'mystickymenu'),
228
- array( $this, 'print_section_info' ),
229
- 'my-stickymenu-settings'
230
-
231
- );
232
-
233
-
234
-
235
-
236
-
237
- add_settings_field(
238
- 'mysticky_class_selector',
239
- __("Sticky Class", 'mystickymenu'),
240
- array( $this, 'mysticky_class_selector_callback' ),
241
- 'my-stickymenu-settings',
242
- 'setting_section_id'
243
- );
244
-
245
- add_settings_field(
246
- 'myfixed_fade',
247
- __("Fade or slide effect", 'mystickymenu'),
248
- array( $this, 'myfixed_fade_callback' ),
249
- 'my-stickymenu-settings',
250
- 'setting_section_id'
251
- );
252
- add_settings_field(
253
- 'myfixed_zindex',
254
- __("Sticky z-index", 'mystickymenu'),
255
- array( $this, 'myfixed_zindex_callback' ),
256
- 'my-stickymenu-settings',
257
- 'setting_section_id'
258
- );
259
- add_settings_field(
260
- 'myfixed_bgcolor',
261
- __("Sticky Background Color", 'mystickymenu'),
262
- array( $this, 'myfixed_bgcolor_callback' ),
263
- 'my-stickymenu-settings',
264
- 'setting_section_id'
265
- );
266
- add_settings_field(
267
- 'myfixed_opacity',
268
- __("Sticky Opacity", 'mystickymenu'),
269
- array( $this, 'myfixed_opacity_callback' ),
270
- 'my-stickymenu-settings',
271
- 'setting_section_id'
272
- );
273
- add_settings_field(
274
- 'myfixed_transition_time',
275
- __("Sticky Transition Time", 'mystickymenu'),
276
- array( $this, 'myfixed_transition_time_callback' ),
277
- 'my-stickymenu-settings',
278
- 'setting_section_id'
279
- );
280
- add_settings_field(
281
- 'myfixed_disable_small_screen',
282
- __("Disable at Small Screen Sizes", 'mystickymenu'),
283
- array( $this, 'myfixed_disable_small_screen_callback' ),
284
- 'my-stickymenu-settings',
285
- 'setting_section_id'
286
- );
287
- add_settings_field(
288
- 'myfixed_disable_large_screen',
289
- __("Disable at Large Screen Sizes", 'mystickymenu'),
290
- array( $this, 'myfixed_disable_large_screen_callback' ),
291
- 'my-stickymenu-settings',
292
- 'setting_section_id'
293
- );
294
- add_settings_field(
295
- 'mysticky_active_on_height',
296
- __("Make visible on Scroll", 'mystickymenu'),
297
- array( $this, 'mysticky_active_on_height_callback' ),
298
- 'my-stickymenu-settings',
299
- 'setting_section_id'
300
- );
301
- add_settings_field(
302
- 'mysticky_active_on_height_home',
303
- __("Make visible on Scroll at homepage", 'mystickymenu'),
304
- array( $this, 'mysticky_active_on_height_home_callback' ),
305
- 'my-stickymenu-settings',
306
- 'setting_section_id'
307
- );
308
-
309
-
310
- add_settings_field(
311
- 'myfixed_disable_scroll_down',
312
- __("Disable on scroll down", 'mystickymenu'),
313
- 'my-stickymenu-settings',
314
- 'setting_section_id'
315
- );
316
-
317
- add_settings_field(
318
- 'myfixed_cssstyle',
319
- __("CSS style", 'mystickymenu'),
320
- array( $this, 'myfixed_cssstyle_callback' ),
321
- 'my-stickymenu-settings',
322
- 'setting_section_id'
323
- );
324
- add_settings_field(
325
- 'disable_css',
326
- __("Disable CSS style", 'mystickymenu'),
327
- array( $this, 'disable_css_callback' ),
328
- 'my-stickymenu-settings',
329
- 'setting_section_id'
330
- );
331
-
332
-
333
-
334
- add_settings_field(
335
- 'mysticky_disable_at_front_home',
336
- __("Disable at", 'mystickymenu'),
337
- array( $this, 'mysticky_enable_callback' ),
338
- 'my-stickymenu-settings',
339
- 'setting_section_id'
340
- );
341
- add_settings_field(
342
- 'mysticky_disable_at_blog',
343
- __("Disable at", 'mystickymenu'),
344
- 'my-stickymenu-settings',
345
- 'setting_section_id'
346
- );
347
- add_settings_field(
348
- 'mysticky_disable_at_page',
349
- __("Disable at", 'mystickymenu'),
350
- 'my-stickymenu-settings',
351
- 'setting_section_id'
352
- );
353
- add_settings_field(
354
- 'mysticky_disable_at_tag',
355
- __("Disable at", 'mystickymenu'),
356
- 'my-stickymenu-settings',
357
- 'setting_section_id'
358
- );
359
- add_settings_field(
360
- 'mysticky_disable_at_category',
361
- __("Disable at", 'mystickymenu'),
362
- 'my-stickymenu-settings',
363
- 'setting_section_id'
364
- );
365
- add_settings_field(
366
- 'mysticky_disable_at_single',
367
- __("Disable at", 'mystickymenu'),
368
- 'my-stickymenu-settings',
369
- 'setting_section_id'
370
- );
371
- add_settings_field(
372
- 'mysticky_disable_at_archive',
373
- __("Disable at", 'mystickymenu'),
374
- 'my-stickymenu-settings',
375
- 'setting_section_id'
376
- );
377
- add_settings_field(
378
- 'mysticky_enable_at_pages',
379
- __(" ", 'mystickymenu'),
380
- 'my-stickymenu-settings',
381
- 'setting_section_id'
382
- );
383
- add_settings_field(
384
- 'mysticky_enable_at_posts',
385
- __(" ", 'mystickymenu'),
386
- 'my-stickymenu-settings',
387
- 'setting_section_id'
388
- );
389
- add_settings_field(
390
- 'mysticky_disable_at_search',
391
- __("Disable at", 'mystickymenu'),
392
- 'my-stickymenu-settings',
393
- 'setting_section_id'
394
- );
395
- add_settings_field(
396
- 'mysticky_disable_at_404',
397
- __("Disable at", 'mystickymenu'),
398
- 'my-stickymenu-settings',
399
- 'setting_section_id'
400
- );
401
-
402
-
403
-
404
- }
405
- /**
406
- * Sanitize each setting field as needed
407
- *
408
- * @param array $input Contains all settings fields as array keys
409
- */
410
- public function sanitize( $input )
411
- {
412
- $new_input = array();
413
- if( isset( $input['mysticky_class_selector'] ) )
414
- $new_input['mysticky_class_selector'] = sanitize_text_field( $input['mysticky_class_selector'] );
415
-
416
- if( isset( $input['myfixed_zindex'] ) )
417
- $new_input['myfixed_zindex'] = absint( $input['myfixed_zindex'] );
418
-
419
- if( isset( $input['myfixed_bgcolor'] ) )
420
- $new_input['myfixed_bgcolor'] = sanitize_text_field( $input['myfixed_bgcolor'] );
421
-
422
- if( isset( $input['myfixed_opacity'] ) )
423
- $new_input['myfixed_opacity'] = absint( $input['myfixed_opacity'] );
424
-
425
- if( isset( $input['myfixed_transition_time'] ) )
426
- $new_input['myfixed_transition_time'] = sanitize_text_field( $input['myfixed_transition_time'] );
427
-
428
- if( isset( $input['myfixed_disable_small_screen'] ) )
429
- $new_input['myfixed_disable_small_screen'] = absint( $input['myfixed_disable_small_screen'] );
430
-
431
- if( isset( $input['myfixed_disable_large_screen'] ) )
432
- $new_input['myfixed_disable_large_screen'] = absint( $input['myfixed_disable_large_screen'] );
433
-
434
- if( isset( $input['mysticky_active_on_height'] ) )
435
- $new_input['mysticky_active_on_height'] = absint( $input['mysticky_active_on_height'] );
436
-
437
- if( isset( $input['mysticky_active_on_height_home'] ) )
438
- $new_input['mysticky_active_on_height_home'] = absint( $input['mysticky_active_on_height_home'] );
439
-
440
- if( isset( $input['myfixed_fade'] ) )
441
- $new_input['myfixed_fade'] = sanitize_text_field( $input['myfixed_fade'] );
442
-
443
- if( isset( $input['myfixed_disable_scroll_down'] ) )
444
- $new_input['myfixed_disable_scroll_down'] = sanitize_text_field( $input['myfixed_disable_scroll_down'] );
445
-
446
-
447
- if( isset( $input['myfixed_cssstyle'] ) )
448
- $new_input['myfixed_cssstyle'] = sanitize_text_field( $input['myfixed_cssstyle'] );
449
-
450
- if( isset( $input['disable_css'] ) )
451
- $new_input['disable_css'] = sanitize_text_field( $input['disable_css'] );
452
-
453
-
454
-
455
- if( isset( $input['mysticky_disable_at_front_home'] ) )
456
- $new_input['mysticky_disable_at_front_home'] = sanitize_text_field( $input['mysticky_disable_at_front_home'] );
457
-
458
- if( isset( $input['mysticky_disable_at_blog'] ) )
459
- $new_input['mysticky_disable_at_blog'] = sanitize_text_field( $input['mysticky_disable_at_blog'] );
460
-
461
- if( isset( $input['mysticky_disable_at_page'] ) )
462
- $new_input['mysticky_disable_at_page'] = sanitize_text_field( $input['mysticky_disable_at_page'] );
463
-
464
- if( isset( $input['mysticky_disable_at_tag'] ) )
465
- $new_input['mysticky_disable_at_tag'] = sanitize_text_field( $input['mysticky_disable_at_tag'] );
466
-
467
- if( isset( $input['mysticky_disable_at_category'] ) )
468
- $new_input['mysticky_disable_at_category'] = sanitize_text_field( $input['mysticky_disable_at_category'] );
469
-
470
- if( isset( $input['mysticky_disable_at_single'] ) )
471
- $new_input['mysticky_disable_at_single'] = sanitize_text_field( $input['mysticky_disable_at_single'] );
472
-
473
- if( isset( $input['mysticky_disable_at_archive'] ) )
474
- $new_input['mysticky_disable_at_archive'] = sanitize_text_field( $input['mysticky_disable_at_archive'] );
475
-
476
- if( isset( $input['mysticky_enable_at_pages'] ) )
477
- $new_input['mysticky_enable_at_pages'] = sanitize_text_field( $input['mysticky_enable_at_pages'] );
478
-
479
- if( isset( $input['mysticky_enable_at_posts'] ) )
480
- $new_input['mysticky_enable_at_posts'] = sanitize_text_field( $input['mysticky_enable_at_posts'] );
481
-
482
- if( isset( $input['mysticky_disable_at_search'] ) )
483
- $new_input['mysticky_disable_at_search'] = sanitize_text_field( $input['mysticky_disable_at_search'] );
484
-
485
- if( isset( $input['mysticky_disable_at_404'] ) )
486
- $new_input['mysticky_disable_at_404'] = sanitize_text_field( $input['mysticky_disable_at_404'] );
487
-
488
-
489
-
490
-
491
- return $new_input;
492
- }
493
-
494
public function mysticky_default_options() {
495
496
global $options;
497
$default = array(
498
-
499
- 'mysticky_class_selector' => '.navbar',
500
- 'myfixed_zindex' => '99990',
501
- 'myfixed_bgcolor' => '#f7f5e7',
502
- 'myfixed_opacity' => '90',
503
- 'myfixed_transition_time' => '0.3',
504
- 'myfixed_disable_small_screen' => '0',
505
- 'myfixed_disable_large_screen' => '0',
506
- 'mysticky_active_on_height' => '0',