Version Description
New and easy UI, you can now select your menu from a dropdown
Download this release
Release Info
Developer | galdub |
Plugin | myStickymenu |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.1
- css/mystickymenu-admin.css +1328 -8
- images/rpt_recommended.png +0 -0
- js/detectmobilebrowser.js +7 -0
- js/iris-script.js +15 -1
- js/mystickymenu-admin.js +88 -66
- js/mystickymenu.js +14 -8
- js/mystickymenu.min.js +1 -1
- mystickymenu.php +614 -953
- readme.txt +160 -20
- uninstall.php +1 -1
css/mystickymenu-admin.css
CHANGED
@@ -1,10 +1,1330 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
@media screen and (max-width: 782px) {
|
9 |
-
.main-content, .main-sidebar {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
jQuery(document).ready(function($){
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
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 |
-
|
12 |
-
|
13 |
-
|
|
|
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";
|
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 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
|
14 |
defined('ABSPATH') or die("Cannot access pages directly.");
|
15 |
-
define( 'MYSTICKY_VERSION', '2.
|
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 |
-
|
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 |
-
|
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 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
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 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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><
|
196 |
-
<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 |
-
|
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'
|
500 |
-
'
|
501 |
-
'
|
502 |
-
'
|
503 |
-
'
|
504 |
-
'
|
505 |
-
'
|
506 |
-
'
|
507 |
-
'
|
508 |
-
'
|
509 |
-
'
|
|
|
|
|
510 |
);
|
511 |
|
512 |
-
if ( get_option('mysticky_option_name') == false ) {
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
if(isset($_POST['reset'])) {
|
518 |
update_option( 'mysticky_option_name', $default );
|
519 |
}
|
520 |
-
|
521 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
}
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
|
528 |
|
529 |
-
public function print_section_info()
|
530 |
-
{
|
531 |
-
echo __(" ", 'mystickymenu');
|
532 |
-
}
|
533 |
|
534 |
-
|
535 |
-
|
536 |
-
printf(
|
537 |
-
'<p class="description"><input type="text" size="18" id="mysticky_class_selector" class="mystickyinput" name="mysticky_option_name[mysticky_class_selector]" value="%s" /> ',
|
538 |
-
isset( $this->options['mysticky_class_selector'] ) ? esc_attr( $this->options['mysticky_class_selector']) : ''
|
539 |
-
);
|
540 |
-
echo __("menu or header element class or id.", 'mystickymenu');
|
541 |
-
echo '</p>';
|
542 |
-
}
|
543 |
-
|
544 |
-
public function myfixed_zindex_callback()
|
545 |
-
{
|
546 |
-
printf(
|
547 |
-
'<p class="description"><input type="number" min="0" max="2147483647" step="1" id="myfixed_zindex" name="mysticky_option_name[myfixed_zindex]" value="%s" /></p>',
|
548 |
-
isset( $this->options['myfixed_zindex'] ) ? esc_attr( $this->options['myfixed_zindex']) : ''
|
549 |
-
);
|
550 |
-
}
|
551 |
|
552 |
-
public function
|
553 |
{
|
554 |
-
|
555 |
-
|
556 |
-
isset( $this->options['myfixed_bgcolor'] ) ? esc_attr( $this->options['myfixed_bgcolor']) : ''
|
557 |
-
);
|
558 |
}
|
559 |
|
560 |
-
public function
|
561 |
-
{
|
562 |
-
printf(
|
563 |
-
'<p class="description"><input type="number" class="small-text" min="0" step="1" max="100" id="myfixed_opacity" name="mysticky_option_name[myfixed_opacity]" value="%s" /> ',
|
564 |
-
isset( $this->options['myfixed_opacity'] ) ? esc_attr( $this->options['myfixed_opacity']) : ''
|
565 |
-
);
|
566 |
-
echo __("numbers 1-100.", 'mystickymenu');
|
567 |
-
echo '</p>';
|
568 |
-
}
|
569 |
|
570 |
-
|
571 |
-
{
|
572 |
-
printf(
|
573 |
-
'<p class="description"><input type="number" class="small-text" min="0" step="0.1" id="myfixed_transition_time" name="mysticky_option_name[myfixed_transition_time]" value="%s" /> ',
|
574 |
-
isset( $this->options['myfixed_transition_time'] ) ? esc_attr( $this->options['myfixed_transition_time']) : ''
|
575 |
-
);
|
576 |
-
echo __("in seconds.", 'mystickymenu');
|
577 |
-
echo '</p>';
|
578 |
-
}
|
579 |
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
echo __("less than", 'mystickymenu');
|
586 |
-
printf(
|
587 |
-
' <input type="number" class="small-text" min="0" step="1" id="myfixed_disable_small_screen" name="mysticky_option_name[myfixed_disable_small_screen]" value="%s" />',
|
588 |
-
isset( $this->options['myfixed_disable_small_screen'] ) ? esc_attr( $this->options['myfixed_disable_small_screen']) : ''
|
589 |
-
);
|
590 |
-
echo __("px width, 0 to disable.", 'mystickymenu');
|
591 |
-
echo '</p>';
|
592 |
-
}
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
public function myfixed_disable_large_screen_callback()
|
597 |
-
{
|
598 |
-
printf(
|
599 |
-
'<p class="description">'
|
600 |
-
);
|
601 |
-
echo __("more than", 'mystickymenu');
|
602 |
-
printf(
|
603 |
-
' <input type="number" class="small-text" min="0" step="1" id="myfixed_disable_large_screen" name="mysticky_option_name[myfixed_disable_large_screen]" value="%s" />',
|
604 |
-
isset( $this->options['myfixed_disable_large_screen'] ) ? esc_attr( $this->options['myfixed_disable_large_screen']) : ''
|
605 |
-
);
|
606 |
-
echo __("px width, 0 to disable.", 'mystickymenu');
|
607 |
-
echo '</p>';
|
608 |
-
}
|
609 |
-
|
610 |
-
|
611 |
|
612 |
-
|
613 |
-
{
|
614 |
-
printf(
|
615 |
-
'<p class="description">'
|
616 |
-
);
|
617 |
-
echo __("after", 'mystickymenu');
|
618 |
-
printf(
|
619 |
-
' <input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height" name="mysticky_option_name[mysticky_active_on_height]" value="%s" />',
|
620 |
-
isset( $this->options['mysticky_active_on_height'] ) ? esc_attr( $this->options['mysticky_active_on_height']) : ''
|
621 |
-
);
|
622 |
-
echo __("px. If set to 0 auto calculate will be used.", 'mystickymenu');
|
623 |
-
echo '</p>';
|
624 |
-
}
|
625 |
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
'<p class="description">'
|
630 |
-
);
|
631 |
-
echo __("after", 'mystickymenu');
|
632 |
-
printf(
|
633 |
-
' <input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height_home" name="mysticky_option_name[mysticky_active_on_height_home]" value="%s" />',
|
634 |
-
isset( $this->options['mysticky_active_on_height_home'] ) ? esc_attr( $this->options['mysticky_active_on_height_home']) : ''
|
635 |
-
);
|
636 |
-
echo __("px. If set to 0 it will use initial Make visible on Scroll value.", 'mystickymenu');
|
637 |
-
echo '</p>';
|
638 |
-
}
|
639 |
|
640 |
-
public function myfixed_fade_callback()
|
641 |
-
{
|
642 |
-
printf(
|
643 |
-
'<p class="description"><input id="%1$s" name="mysticky_option_name[myfixed_fade]" type="checkbox" %2$s /> ',
|
644 |
-
'myfixed_fade',
|
645 |
-
checked( isset( $this->options['myfixed_fade'] ), true, false )
|
646 |
-
);
|
647 |
-
echo __("Checked is slide, unchecked is fade.", 'mystickymenu');
|
648 |
-
echo '</p>';
|
649 |
-
|
650 |
-
printf(
|
651 |
-
'<p class="description"><input id="%1$s" name="mysticky_option_name[myfixed_disable_scroll_down]" type="checkbox" %2$s /> ',
|
652 |
-
'myfixed_disable_scroll_down',
|
653 |
-
checked( isset( $this->options['myfixed_disable_scroll_down'] ), true, false )
|
654 |
-
);
|
655 |
-
echo __("Disable sticky menu at scroll down", 'mystickymenu');
|
656 |
-
echo '</p>';
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
}
|
662 |
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
'<textarea type="text" rows="4" cols="60" id="myfixed_cssstyle" name="mysticky_option_name[myfixed_cssstyle]">%s</textarea> <br />',
|
672 |
-
isset( $this->options['myfixed_cssstyle'] ) ? esc_attr( $this->options['myfixed_cssstyle']) : ''
|
673 |
-
);
|
674 |
-
|
675 |
-
echo '<p>';
|
676 |
-
echo __("CSS ID's and Classes to use:", 'mystickymenu');
|
677 |
-
echo'</p>';
|
678 |
-
|
679 |
-
echo '<pre>#mysticky-wrap { }<br>';
|
680 |
-
echo '#mysticky-nav.wrapfixed { }<br>';
|
681 |
-
echo '#mysticky-nav.wrapfixed.up { }<br>';
|
682 |
-
echo '#mysticky-nav.wrapfixed.down { }<br>';
|
683 |
-
echo '#mysticky-nav ';
|
684 |
-
printf (
|
685 |
-
isset( $this->options['mysticky_class_selector'] ) ? esc_attr( $this->options['mysticky_class_selector']) : ''
|
686 |
-
);
|
687 |
-
echo ' { }<br>#mysticky-nav ';
|
688 |
-
printf (
|
689 |
-
isset( $this->options['mysticky_class_selector'] ) ? esc_attr( $this->options['mysticky_class_selector']) : ''
|
690 |
-
);
|
691 |
-
echo '.myfixed { }</pre>';
|
692 |
-
echo '<p class="description">';
|
693 |
-
echo __("Find examples <a href='http://wordpress.transformnews.com/tutorials/mystickymenu-extended-style-functionality-using-myfixed-sticky-class-403'>here</a>.", 'mystickymenu');
|
694 |
-
echo'</p>';
|
695 |
-
}
|
696 |
-
|
697 |
-
public function disable_css_callback()
|
698 |
-
{
|
699 |
-
printf(
|
700 |
-
'<p class="description"><input id="%1$s" name="mysticky_option_name[disable_css]" type="checkbox" %2$s /> ',
|
701 |
-
'disable_css',
|
702 |
-
checked( isset( $this->options['disable_css'] ), true, false )
|
703 |
-
);
|
704 |
-
echo __("Use this option if you plan to include CSS Style manually", 'mystickymenu');
|
705 |
-
echo '</p>';
|
706 |
-
}
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
public function mysticky_enable_callback()
|
721 |
-
{
|
722 |
-
|
723 |
-
|
724 |
-
printf(
|
725 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_front_home]" type="checkbox" %2$s /> ',
|
726 |
-
'mysticky_disable_at_front_home',
|
727 |
-
checked( isset( $this->options['mysticky_disable_at_front_home'] ), true, false )
|
728 |
-
) ;
|
729 |
-
_e('<span>front page </span>', 'mystickymenu');
|
730 |
-
printf('</div>');
|
731 |
-
printf(
|
732 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_blog]" type="checkbox" %2$s /> ',
|
733 |
-
'mysticky_disable_at_blog',
|
734 |
-
checked( isset( $this->options['mysticky_disable_at_blog'] ), true, false )
|
735 |
-
);
|
736 |
-
_e('<span>blog page </span>', 'mystickymenu');
|
737 |
-
printf('</div>');
|
738 |
-
|
739 |
-
printf(
|
740 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_page]" type="checkbox" %2$s /> ',
|
741 |
-
'mysticky_disable_at_page',
|
742 |
-
checked( isset( $this->options['mysticky_disable_at_page'] ), true, false )
|
743 |
-
);
|
744 |
-
_e('<span>pages </span>', 'mystickymenu');
|
745 |
-
printf('</div>');
|
746 |
-
|
747 |
-
printf(
|
748 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_tag]" type="checkbox" %2$s /> ',
|
749 |
-
'mysticky_disable_at_tag',
|
750 |
-
checked( isset( $this->options['mysticky_disable_at_tag'] ), true, false )
|
751 |
-
);
|
752 |
-
_e('<span>tags </span>', 'mystickymenu');
|
753 |
-
printf('</div>');
|
754 |
-
|
755 |
-
printf(
|
756 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_category]" type="checkbox" %2$s /> ',
|
757 |
-
'mysticky_disable_at_category',
|
758 |
-
checked( isset( $this->options['mysticky_disable_at_category'] ), true, false )
|
759 |
-
);
|
760 |
-
_e('<span>categories </span>', 'mystickymenu');
|
761 |
-
printf('</div>');
|
762 |
-
|
763 |
-
printf(
|
764 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_single]" type="checkbox" %2$s /> ',
|
765 |
-
'mysticky_disable_at_single',
|
766 |
-
checked( isset( $this->options['mysticky_disable_at_single'] ), true, false )
|
767 |
-
);
|
768 |
-
_e('<span>posts </span>', 'mystickymenu');
|
769 |
-
printf('</div>');
|
770 |
-
|
771 |
-
printf(
|
772 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_archive]" type="checkbox" %2$s /> ',
|
773 |
-
'mysticky_disable_at_archive',
|
774 |
-
checked( isset( $this->options['mysticky_disable_at_archive'] ), true, false )
|
775 |
-
);
|
776 |
-
_e('<span>archives </span>', 'mystickymenu');
|
777 |
-
printf('</div>');
|
778 |
-
|
779 |
-
printf(
|
780 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_search]" type="checkbox" %2$s /> ',
|
781 |
-
'mysticky_disable_at_search',
|
782 |
-
checked( isset( $this->options['mysticky_disable_at_search'] ), true, false )
|
783 |
-
);
|
784 |
-
_e('<span>search </span>', 'mystickymenu');
|
785 |
-
printf('</div>');
|
786 |
-
|
787 |
-
printf(
|
788 |
-
'<div><input id="%1$s" name="mysticky_option_name[mysticky_disable_at_404]" type="checkbox" %2$s /> ',
|
789 |
-
'mysticky_disable_at_404',
|
790 |
-
checked( isset( $this->options['mysticky_disable_at_404'] ), true, false )
|
791 |
-
);
|
792 |
-
_e('<span>404 </span>', 'mystickymenu');
|
793 |
-
printf('</div>');
|
794 |
-
|
795 |
-
if (isset ( $this->options['mysticky_disable_at_page'] ) == true ) {
|
796 |
-
|
797 |
-
echo '<p> </p> <hr />';
|
798 |
-
_e('<span class="">Except for this pages: </span>', 'mystickymenu');
|
799 |
-
|
800 |
-
printf(
|
801 |
-
'<input type="text" size="26" id="mysticky_enable_at_pages" name="mysticky_option_name[mysticky_enable_at_pages]" value="%s" /> ',
|
802 |
-
isset( $this->options['mysticky_enable_at_pages'] ) ? esc_attr( $this->options['mysticky_enable_at_pages']) : ''
|
803 |
-
);
|
804 |
-
|
805 |
-
_e('<span class="description">Comma separated list of pages to enable. It should be page name, id or slug. Example: about-us, 1134, Contact Us. Leave blank if you realy want to disable sticky menu for all pages.</span>', 'mystickymenu');
|
806 |
-
|
807 |
-
}
|
808 |
-
|
809 |
-
if (isset ( $this->options['mysticky_disable_at_single'] ) == true ) {
|
810 |
-
|
811 |
-
echo '<p> </p> <hr />';
|
812 |
-
_e('<span class="">Except for this posts: </span>', 'mystickymenu');
|
813 |
-
|
814 |
-
printf(
|
815 |
-
'<input type="text" size="26" id="mysticky_enable_at_posts" name="mysticky_option_name[mysticky_enable_at_posts]" value="%s" /> ',
|
816 |
-
isset( $this->options['mysticky_enable_at_posts'] ) ? esc_attr( $this->options['mysticky_enable_at_posts']) : ''
|
817 |
-
);
|
818 |
-
|
819 |
-
_e('<span class="description">Comma separated list of posts to enable. It should be post name, id or slug. Example: about-us, 1134, Contact Us. Leave blank if you realy want to disable sticky menu for all posts.</span>', 'mystickymenu');
|
820 |
-
|
821 |
}
|
822 |
-
|
823 |
}
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
}
|
839 |
-
|
840 |
|
|
|
841 |
|
842 |
-
|
843 |
-
{
|
844 |
-
|
845 |
-
public function __construct()
|
846 |
-
{
|
847 |
-
|
848 |
-
add_action( 'wp_head', array( $this, 'mysticky_build_stylesheet_content' ) );
|
849 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'mysticky_disable_at' ) );
|
850 |
-
|
851 |
-
}
|
852 |
-
|
853 |
-
public function mysticky_build_stylesheet_content()
|
854 |
-
|
855 |
-
{
|
856 |
-
|
857 |
-
$mysticky_options = get_option( 'mysticky_option_name' );
|
858 |
-
|
859 |
-
if (isset($mysticky_options['disable_css']))
|
860 |
-
|
861 |
-
{
|
862 |
-
|
863 |
-
//do nothing
|
864 |
-
|
865 |
-
} else {
|
866 |
-
|
867 |
-
$mysticky_options['disable_css'] = false;
|
868 |
-
|
869 |
-
};
|
870 |
-
|
871 |
-
if ($mysticky_options ['disable_css'] == false )
|
872 |
-
|
873 |
-
{
|
874 |
-
|
875 |
-
echo '<style id="mystickymenu" type="text/css">';
|
876 |
-
echo '#mysticky-nav { width:100%; position: static; }';
|
877 |
-
echo '#mysticky-nav.wrapfixed { position:fixed; left: 0px; margin-top:0px; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:' . $mysticky_options ['myfixed_opacity'] / 100 . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . ';}';
|
878 |
-
|
879 |
|
880 |
-
|
|
|
|
|
|
|
|
|
881 |
|
882 |
-
//echo '@media (max-width: '.$mysticky_options['myfixed_disable_small_screen'].'px) {#mysticky-nav.wrapfixed {position: static;} }';
|
883 |
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
echo $mysticky_options ['myfixed_cssstyle'];
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
echo '</style>';
|
897 |
-
}
|
898 |
-
}
|
899 |
|
900 |
-
// add_action('wp_head', 'mysticky_build_stylesheet_content');
|
901 |
|
902 |
-
|
903 |
-
|
904 |
-
$mysticky_options = get_option( 'mysticky_option_name' );
|
905 |
-
|
906 |
-
if ( is_admin_bar_showing() ) {
|
907 |
-
$top = "true";
|
908 |
-
} else {
|
909 |
-
$top = "false";
|
910 |
-
}
|
911 |
-
|
912 |
-
|
913 |
-
// needed for update 1.7 => 1.8 ... will be removed in the future ()
|
914 |
-
if (isset($mysticky_options['mysticky_active_on_height_home'])){
|
915 |
-
//do nothing
|
916 |
-
} else {
|
917 |
-
$mysticky_options['mysticky_active_on_height_home'] = $mysticky_options['mysticky_active_on_height'];
|
918 |
-
};
|
919 |
-
|
920 |
-
|
921 |
-
if ($mysticky_options['mysticky_active_on_height_home'] == 0 ){
|
922 |
$mysticky_options['mysticky_active_on_height_home'] = $mysticky_options['mysticky_active_on_height'];
|
923 |
-
}
|
924 |
-
|
925 |
-
|
926 |
if ( is_front_page() && is_home() ) {
|
927 |
-
|
928 |
$mysticky_options['mysticky_active_on_height'] = $mysticky_options['mysticky_active_on_height_home'];
|
929 |
-
|
930 |
} elseif ( is_front_page()){
|
931 |
-
|
932 |
$mysticky_options['mysticky_active_on_height'] = $mysticky_options['mysticky_active_on_height_home'];
|
933 |
-
|
934 |
}
|
|
|
|
|
935 |
|
936 |
-
|
937 |
-
|
938 |
|
939 |
$myfixed_disable_scroll_down = isset($mysticky_options['myfixed_disable_scroll_down']) ? $mysticky_options['myfixed_disable_scroll_down'] : 'false';
|
940 |
$mystickyTransition = isset($mysticky_options['myfixed_fade']) ? $mysticky_options['myfixed_fade'] : 'fade';
|
941 |
$mystickyDisableLarge = isset($mysticky_options['myfixed_disable_large_screen']) ? $mysticky_options['myfixed_disable_large_screen'] : '0';
|
942 |
-
|
943 |
-
$
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
'
|
948 |
-
'
|
949 |
-
'
|
950 |
-
'
|
951 |
-
|
952 |
-
|
|
|
|
|
|
|
|
|
953 |
);
|
954 |
-
|
955 |
-
wp_localize_script( 'mystickymenu', 'option', $mysticky_translation_array );
|
956 |
}
|
957 |
|
958 |
-
//add_action( 'wp_enqueue_scripts', 'mystickymenu_script' );
|
959 |
-
|
960 |
-
|
961 |
public function mysticky_disable_at() {
|
962 |
-
|
963 |
-
|
964 |
-
$mysticky_options = get_option( 'mysticky_option_name' );
|
965 |
-
|
966 |
$mysticky_disable_at_front_home = isset($mysticky_options['mysticky_disable_at_front_home']);
|
967 |
$mysticky_disable_at_blog = isset($mysticky_options['mysticky_disable_at_blog']);
|
968 |
$mysticky_disable_at_page = isset($mysticky_options['mysticky_disable_at_page']);
|
@@ -974,118 +666,87 @@ class MyStickyMenuFrontend
|
|
974 |
$mysticky_disable_at_404 = isset($mysticky_options['mysticky_disable_at_404']);
|
975 |
$mysticky_enable_at_pages = isset($mysticky_options['mysticky_enable_at_pages']) ? $mysticky_options['mysticky_enable_at_pages'] : '';
|
976 |
$mysticky_enable_at_posts = isset($mysticky_options['mysticky_enable_at_posts']) ? $mysticky_options['mysticky_enable_at_posts'] : '';
|
977 |
-
|
978 |
// Trim input to ignore empty spaces
|
979 |
$mysticky_enable_at_pages_exp = array_map('trim', explode(',', $mysticky_enable_at_pages));
|
980 |
$mysticky_enable_at_posts_exp = array_map('trim', explode(',', $mysticky_enable_at_posts));
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
if ( is_front_page() && is_home() ) {
|
986 |
-
|
987 |
-
if ( $mysticky_disable_at_front_home == false ) {
|
988 |
-
$this->mystickymenu_script();
|
989 |
-
|
990 |
-
};
|
991 |
-
|
992 |
-
|
993 |
-
} elseif ( is_front_page()){
|
994 |
-
//Static homepage
|
995 |
-
if ( $mysticky_disable_at_front_home == false ) {
|
996 |
$this->mystickymenu_script();
|
997 |
-
}
|
998 |
-
|
999 |
|
1000 |
-
|
1001 |
-
|
1002 |
-
//Blog page
|
1003 |
-
if ( $mysticky_disable_at_blog == false ) {
|
1004 |
$this->mystickymenu_script();
|
1005 |
-
}
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
//Single page
|
1011 |
-
if ( $mysticky_disable_at_page == false ) {
|
1012 |
$this->mystickymenu_script();
|
1013 |
-
};
|
1014 |
-
|
1015 |
-
if ( is_page( $mysticky_enable_at_pages_exp ) ){
|
1016 |
-
$this->mystickymenu_script();
|
1017 |
}
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
//Tag page
|
1023 |
-
if ( $mysticky_disable_at_tag == false ) {
|
1024 |
$this->mystickymenu_script();
|
1025 |
-
}
|
1026 |
-
|
1027 |
-
} elseif ( is_category()){
|
1028 |
-
|
1029 |
-
//Category page
|
1030 |
-
if ( $mysticky_disable_at_category == false ) {
|
1031 |
$this->mystickymenu_script();
|
1032 |
-
}
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
//Single post
|
1038 |
-
if ( $mysticky_disable_at_single == false ) {
|
1039 |
$this->mystickymenu_script();
|
1040 |
-
}
|
1041 |
-
|
1042 |
-
|
|
|
|
|
1043 |
$this->mystickymenu_script();
|
1044 |
}
|
1045 |
-
|
1046 |
-
} elseif (
|
1047 |
-
|
1048 |
-
|
1049 |
-
if ( $mysticky_disable_at_archive == false ) {
|
1050 |
$this->mystickymenu_script();
|
1051 |
-
}
|
1052 |
|
1053 |
-
|
1054 |
-
|
1055 |
-
//Search
|
1056 |
-
if ( $mysticky_disable_at_search == false ) {
|
1057 |
$this->mystickymenu_script();
|
1058 |
-
}
|
1059 |
|
1060 |
-
} elseif (
|
1061 |
-
|
1062 |
-
|
1063 |
-
if ( $mysticky_disable_at_404 == false ) {
|
1064 |
$this->mystickymenu_script();
|
1065 |
-
}
|
1066 |
|
1067 |
-
}
|
1068 |
-
|
1069 |
|
1070 |
-
|
|
|
|
|
1071 |
|
|
|
1072 |
|
|
|
|
|
|
|
|
|
1073 |
|
|
|
1074 |
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
}
|
1081 |
|
1082 |
if( is_admin() ) {
|
1083 |
-
|
1084 |
new MyStickyMenuBackend();
|
1085 |
-
|
1086 |
} else {
|
1087 |
-
|
1088 |
new MyStickyMenuFrontend();
|
1089 |
-
|
1090 |
-
}
|
1091 |
-
?>
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: myStickymenu
|
4 |
+
Plugin URI: https://premio.io/
|
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.1
|
7 |
+
Author: Premio
|
8 |
+
Author URI: https://premio.io/
|
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.1' );
|
16 |
|
17 |
class MyStickyMenuBackend
|
18 |
{
|
|
|
19 |
private $options;
|
|
|
|
|
20 |
|
21 |
public function __construct()
|
22 |
+
{
|
|
|
|
|
23 |
add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
|
24 |
add_action( 'admin_init', array( $this, 'mysticky_load_transl') );
|
25 |
+
|
26 |
add_action( 'admin_init', array( $this, 'mysticky_default_options' ) );
|
|
|
|
|
27 |
//add_action( 'admin_head', array( $this, 'mysticky_admin_script' ) );
|
28 |
add_action( 'admin_enqueue_scripts', array( $this, 'mysticky_admin_script' ) );
|
29 |
+
|
30 |
add_filter( 'plugin_action_links_mystickymenu/mystickymenu.php', array( $this, 'mystickymenu_settings_link' ) );
|
31 |
|
32 |
+
add_action( 'activated_plugin', array( $this, 'mystickymenu_activation_redirect' ) );
|
33 |
}
|
34 |
|
35 |
+
public function mystickymenu_settings_link($links){
|
36 |
+
$settings_link = '<a href="options-general.php?page=my-stickymenu-settings">Settings</a>';
|
37 |
+
array_unshift($links, $settings_link);
|
38 |
+
return $links;
|
39 |
}
|
40 |
|
41 |
+
public function mystickymenu_activation_redirect( $plugin) {
|
42 |
+
if( $plugin == plugin_basename( __FILE__ ) ) {
|
43 |
+
wp_redirect( admin_url( 'options-general.php?page=my-stickymenu-settings' ) ) ;
|
44 |
+
exit;
|
45 |
+
}
|
46 |
+
}
|
47 |
|
48 |
public function mysticky_admin_script($hook) {
|
49 |
if ($hook != 'settings_page_my-stickymenu-settings') {
|
50 |
return;
|
51 |
+
}
|
52 |
+
|
53 |
+
wp_enqueue_script('jquery-ui-slider');
|
54 |
+
wp_enqueue_script('jquery-ui-js' ,'https://code.jquery.com/ui/1.12.1/jquery-ui.js',array( 'jquery' ), MYSTICKY_VERSION);
|
55 |
wp_register_script('mystickymenuAdminScript', plugins_url('/js/mystickymenu-admin.js', __FILE__), array( 'jquery' ), MYSTICKY_VERSION);
|
56 |
wp_enqueue_script('mystickymenuAdminScript');
|
|
|
|
|
|
|
57 |
|
|
|
|
|
|
|
58 |
|
59 |
+
wp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css?family=Poppins:400,600,700' );
|
60 |
+
wp_enqueue_style('jquery-ui-css', 'https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css' );
|
61 |
+
//wp_enqueue_style('jquery-mobile-css', plugins_url('/css/jquery.mobile.min.css', __FILE__) );
|
62 |
+
wp_register_style('mystickymenuAdminStyle', plugins_url('/css/mystickymenu-admin.css', __FILE__), array(), MYSTICKY_VERSION );
|
63 |
+
wp_enqueue_style('mystickymenuAdminStyle');
|
|
|
|
|
64 |
|
65 |
+
wp_enqueue_style( 'wp-color-picker' );
|
66 |
+
wp_enqueue_script( 'my-script-handle', plugins_url('js/iris-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
67 |
+
}
|
68 |
|
|
|
|
|
69 |
public function mysticky_load_transl(){
|
70 |
load_plugin_textdomain('mystickymenu', FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
|
71 |
}
|
72 |
+
|
73 |
public function add_plugin_page(){
|
74 |
// This page will be under "Settings"
|
75 |
add_options_page(
|
76 |
+
'Settings Admin',
|
77 |
+
'myStickymenu',
|
78 |
+
'manage_options',
|
79 |
+
'my-stickymenu-settings',
|
80 |
array( $this, 'create_admin_page' )
|
81 |
);
|
82 |
}
|
83 |
|
84 |
public function create_admin_page(){
|
85 |
// Set class property
|
86 |
+
if ( isset($_POST['mysticky_option_name']) && !empty($_POST['mysticky_option_name']) ) {
|
87 |
+
update_option( 'mysticky_option_name', $_POST['mysticky_option_name']);
|
88 |
+
|
89 |
+
echo '<div class="updated settings-error notice is-dismissible "><p><strong>' . esc_html__('Settings saved.','mystickymenu'). '</p></strong></div>';
|
90 |
+
}
|
91 |
+
|
92 |
+
$mysticky_options = get_option( 'mysticky_option_name');
|
93 |
+
$is_old = get_option("has_sticky_header_old_version");
|
94 |
+
$is_old = ($is_old == "no")?false:true;
|
95 |
?>
|
96 |
+
<div id="mystickymenu" class="wrap mystickymenu">
|
97 |
+
<div class="sticky-header-menu">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
<ul>
|
99 |
+
<li><a href="#sticky-header-settings" class="active"><?php _e('Settings', 'mystickymenu'); ?></a></li>
|
100 |
+
<li><a href="#sticky-header-upgrade"><?php _e('Upgrade to Pro', 'mystickymenu'); ?></a></li>
|
|
|
|
|
|
|
|
|
101 |
</ul>
|
102 |
</div>
|
103 |
+
<div style="display: block" id="sticky-header-settings" class="sticky-header-content">
|
104 |
+
<div class="mystickymenu-heading">
|
105 |
+
<div class="myStickymenu-header-title">
|
106 |
+
<h3><?php _e('How To Make a Sticky Header', 'mystickymenu'); ?></h3>
|
107 |
+
</div>
|
108 |
+
<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>
|
109 |
+
</div>
|
110 |
+
|
111 |
+
<form class="mysticky-form" method="post" action="#">
|
112 |
+
<div class="mystickymenu-content-section sticky-class-sec">
|
113 |
+
<table>
|
114 |
+
<tr>
|
115 |
+
<td>
|
116 |
+
<label class="mysticky_title"><?php _e("Sticky Class", 'mystickymenu')?></label>
|
117 |
+
<br /><br />
|
118 |
+
<?php $nav_menus = wp_get_nav_menus();
|
119 |
+
$menu_locations = get_nav_menu_locations();
|
120 |
+
$locations = get_registered_nav_menus();
|
121 |
+
?>
|
122 |
+
<select name="mysticky_option_name[mysticky_class_id_selector]" id="mystickymenu-select">
|
123 |
+
<option value=""><?php _e( 'Select Sticky Menu', 'mystickymenu' ); ?></option>
|
124 |
+
|
125 |
+
<?php foreach ( (array) $nav_menus as $_nav_menu ) : ?>
|
126 |
+
<option value="<?php echo esc_attr( $_nav_menu->slug ); ?>" <?php selected( $_nav_menu->slug, $mysticky_options['mysticky_class_id_selector'] ); ?>>
|
127 |
+
<?php
|
128 |
+
echo esc_html( $_nav_menu->name );
|
129 |
+
|
130 |
+
if ( ! empty( $menu_locations ) && in_array( $_nav_menu->term_id, $menu_locations ) ) {
|
131 |
+
$locations_assigned_to_this_menu = array();
|
132 |
+
foreach ( array_keys( $menu_locations, $_nav_menu->term_id ) as $menu_location_key ) {
|
133 |
+
if ( isset( $locations[ $menu_location_key ] ) ) {
|
134 |
+
$locations_assigned_to_this_menu[] = $locations[ $menu_location_key ];
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Filters the number of locations listed per menu in the drop-down select.
|
140 |
+
*
|
141 |
+
* @since 3.6.0
|
142 |
+
*
|
143 |
+
* @param int $locations Number of menu locations to list. Default 3.
|
144 |
+
*/
|
145 |
+
$assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) );
|
146 |
+
|
147 |
+
// Adds ellipses following the number of locations defined in $assigned_locations.
|
148 |
+
if ( ! empty( $assigned_locations ) ) {
|
149 |
+
printf(
|
150 |
+
' (%1$s%2$s)',
|
151 |
+
implode( ', ', $assigned_locations ),
|
152 |
+
count( $locations_assigned_to_this_menu ) > count( $assigned_locations ) ? ' …' : ''
|
153 |
+
);
|
154 |
+
}
|
155 |
+
}
|
156 |
+
?>
|
157 |
+
</option>
|
158 |
+
<?php endforeach; ?>
|
159 |
+
<option value="custom" <?php selected( 'custom', $mysticky_options['mysticky_class_id_selector'] ); ?>><?php esc_html_e( 'Other Class Or ID', 'mystickymenu' );?></option>
|
160 |
+
</select>
|
161 |
+
|
162 |
+
<input type="text" size="18" id="mysticky_class_selector" class="mystickyinput" name="mysticky_option_name[mysticky_class_selector]" value="<?php echo $mysticky_options['mysticky_class_selector'];?>" />
|
163 |
+
|
164 |
+
<p class="description"><?php _e("menu or header element class or id.", 'mystickymenu')?></p>
|
165 |
+
</td>
|
166 |
+
<td>
|
167 |
+
<div class="mysticky_device_upgrade">
|
168 |
+
<label class="mysticky_title"><?php _e("Devices", 'mystickymenu')?></label>
|
169 |
+
<span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
|
170 |
+
<ul class="mystickymenu-input-multicheckbox">
|
171 |
+
<li>
|
172 |
+
<label>
|
173 |
+
<input id="disable_css" name="mysticky_option_name[device_desktop]" type="checkbox" checked disabled />
|
174 |
+
<?php _e( 'Desktop', 'mystickymenu' );?>
|
175 |
+
<label>
|
176 |
+
</li>
|
177 |
+
<li>
|
178 |
+
<label>
|
179 |
+
<input id="disable_css" name="mysticky_option_name[device_mobile]" type="checkbox" checked disabled />
|
180 |
+
<?php _e( 'Mobile', 'mystickymenu' );?>
|
181 |
+
<label>
|
182 |
+
</li>
|
183 |
+
</ul>
|
184 |
+
</div>
|
185 |
+
</td>
|
186 |
+
</tr>
|
187 |
+
</table>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
|
191 |
+
<div class="mystickymenu-content-section">
|
192 |
+
<h3><?php esc_html_e( 'Settings', 'mystickymenu' );?></h3>
|
193 |
+
<table class="form-table">
|
194 |
+
<tr>
|
195 |
+
<td>
|
196 |
+
<label for="myfixed_zindex" class="mysticky_title"><?php _e("Sticky z-index", 'mystickymenu')?></label>
|
197 |
+
</td>
|
198 |
+
<td>
|
199 |
+
<input type="number" min="0" max="2147483647" step="1" class="mysticky-number" id="myfixed_zindex" name="mysticky_option_name[myfixed_zindex]" value="<?php echo $mysticky_options['myfixed_zindex'];?>" />
|
200 |
+
</td>
|
201 |
+
<td>
|
202 |
+
<label class="mysticky_title myssticky-remove-hand"><?php _e("Fade or slide effect", 'mystickymenu')?></label>
|
203 |
+
</td>
|
204 |
+
<td>
|
205 |
+
<label>
|
206 |
+
<input name="mysticky_option_name[myfixed_fade]" value= "slide" type="radio" <?php checked( $mysticky_options['myfixed_fade'], 'slide' );?> />
|
207 |
+
<?php _e("Slide", 'mystickymenu'); ?>
|
208 |
+
</label>
|
209 |
+
<label>
|
210 |
+
<input name="mysticky_option_name[myfixed_fade]" value="fade" type="radio" <?php checked( $mysticky_options['myfixed_fade'], 'fade' );?> />
|
211 |
+
<?php _e("Fade", 'mystickymenu'); ?>
|
212 |
+
</label>
|
213 |
+
</td>
|
214 |
+
</tr>
|
215 |
+
<tr>
|
216 |
+
<td>
|
217 |
+
<label for="myfixed_disable_small_screen" class="mysticky_title"><?php _e("Disable at Small Screen Sizes", 'mystickymenu')?></label>
|
218 |
+
<p class="description"><?php _e('Less than chosen screen width, set 0 to disable','mystickymenu');?></p>
|
219 |
+
</td>
|
220 |
+
<td>
|
221 |
+
<div class="px-wrap">
|
222 |
+
<input type="number" class="" min="0" step="1" id="myfixed_disable_small_screen" name="mysticky_option_name[myfixed_disable_small_screen]" value="<?php echo $mysticky_options['myfixed_disable_small_screen'];?>" />
|
223 |
+
<span class="input-px">PX</span>
|
224 |
+
</div>
|
225 |
+
</td>
|
226 |
+
<td>
|
227 |
+
<label for="mysticky_active_on_height" class="mysticky_title"><?php _e("Make visible on Scroll", 'mystickymenu')?></label>
|
228 |
+
<p class="description"><?php _e('If set to 0 auto calculate will be used.','mystickymenu');?></p>
|
229 |
+
</td>
|
230 |
+
<td>
|
231 |
+
<div class="px-wrap">
|
232 |
+
<input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height" name="mysticky_option_name[mysticky_active_on_height]" value="<?php echo $mysticky_options['mysticky_active_on_height'];?>" />
|
233 |
+
<span class="input-px">PX</span>
|
234 |
+
</div>
|
235 |
+
</td>
|
236 |
+
</tr>
|
237 |
+
<tr>
|
238 |
+
<td>
|
239 |
+
<label for="mysticky_active_on_height_home" class="mysticky_title"><?php _e("Make visible on Scroll at homepage", 'mystickymenu')?></label>
|
240 |
+
<p class="description"><?php _e( 'If set to 0 it will use initial Make visible on Scroll value.', 'mystickymenu' );?></p>
|
241 |
+
</td>
|
242 |
+
<td>
|
243 |
+
<div class="px-wrap">
|
244 |
+
<input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height_home" name="mysticky_option_name[mysticky_active_on_height_home]" value="<?php echo $mysticky_options['mysticky_active_on_height_home'];?>" />
|
245 |
+
<span class="input-px">PX</span>
|
246 |
+
</div>
|
247 |
+
</td>
|
248 |
+
<td>
|
249 |
+
<label for="myfixed_bgcolor" class="mysticky_title myssticky-remove-hand"><?php _e("Sticky Background Color", 'mystickymenu')?></label>
|
250 |
+
</td>
|
251 |
+
<td>
|
252 |
+
<input type="text" id="myfixed_bgcolor" name="mysticky_option_name[myfixed_bgcolor]" class="my-color-field" value="<?php echo $mysticky_options['myfixed_bgcolor'];?>" />
|
253 |
+
|
254 |
+
</td>
|
255 |
+
</tr>
|
256 |
+
<tr>
|
257 |
+
<td>
|
258 |
+
<label for="myfixed_transition_time" class="mysticky_title"><?php _e("Sticky Transition Time", 'mystickymenu')?></label>
|
259 |
+
</td>
|
260 |
+
<td>
|
261 |
+
<input type="number" class="small-text" min="0" step="0.1" id="myfixed_transition_time" name="mysticky_option_name[myfixed_transition_time]" value="<?php echo $mysticky_options['myfixed_transition_time'];?>" />
|
262 |
+
</td>
|
263 |
+
<td>
|
264 |
+
<label for="myfixed_opacity" class="mysticky_title myssticky-remove-hand"><?php _e("Sticky Opacity", 'mystickymenu')?></label>
|
265 |
+
<p class="description"><?php _e( 'numbers 1-100.', 'mystickymenu');?></p>
|
266 |
+
</td>
|
267 |
+
<td>
|
268 |
+
<input type="hidden" class="small-text mysticky-slider" min="0" step="1" max="100" id="myfixed_opacity" name="mysticky_option_name[myfixed_opacity]" value="<?php echo $mysticky_options['myfixed_opacity'];?>" />
|
269 |
+
<div id="slider">
|
270 |
+
<div id="custom-handle" class="ui-slider-handle"><?php //echo $mysticky_options['myfixed_opacity'];?></div>
|
271 |
+
</div>
|
272 |
+
|
273 |
+
</td>
|
274 |
+
</tr>
|
275 |
+
</table>
|
276 |
+
</div>
|
277 |
+
|
278 |
+
<div class="mystickymenu-content-section <?php echo !$is_old?"mystickymenu-content-upgrade":""?>" >
|
279 |
+
|
280 |
+
<div class="mystickymenu-content-option">
|
281 |
+
<label class="mysticky_title css-style-title"><?php _e("Hide on Scroll Down", 'mystickymenu'); ?></label>
|
282 |
+
<?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
|
283 |
+
<p>
|
284 |
+
<label class="mysticky_text">
|
285 |
+
<input id="myfixed_disable_scroll_down" name="mysticky_option_name[myfixed_disable_scroll_down]" type="checkbox" <?php checked( $mysticky_options['myfixed_disable_scroll_down'], 'on' );?> <?php echo !$is_old?"disabled":"" ?> />
|
286 |
+
<?php _e("Disable sticky menu at scroll down", 'mystickymenu'); ?>
|
287 |
+
</label>
|
288 |
+
</p>
|
289 |
+
</div>
|
290 |
+
<div class="mystickymenu-content-option">
|
291 |
+
<label class="mysticky_title css-style-title"><?php _e("CSS style", 'mystickymenu'); ?></label>
|
292 |
+
<span class="mysticky_text"><?php _e( 'Add/edit CSS style. Leave it blank for default style.', 'mystickymenu');?></span>
|
293 |
+
<div class="mystickymenu-input-section">
|
294 |
+
<textarea type="text" rows="4" cols="60" id="myfixed_cssstyle" name="mysticky_option_name[myfixed_cssstyle]" <?php echo !$is_old?"disabled":"" ?> ><?php echo $mysticky_options['myfixed_cssstyle'];?></textarea>
|
295 |
+
</div>
|
296 |
+
<p><?php esc_html_e( "CSS ID's and Classes to use:", "mystickymenu" );?></p>
|
297 |
+
<p>
|
298 |
+
#mysticky-wrap { }<br/>
|
299 |
+
#mysticky-nav.wrapfixed { }<br/>
|
300 |
+
#mysticky-nav.wrapfixed.up { }<br/>
|
301 |
+
#mysticky-nav.wrapfixed.down { }<br/>
|
302 |
+
#mysticky-nav .navbar { }<br/>
|
303 |
+
#mysticky-nav .navbar.myfixed { }<br/>
|
304 |
+
</p>
|
305 |
+
</div>
|
306 |
+
|
307 |
+
<div class="mystickymenu-content-option">
|
308 |
+
<label class="mysticky_title" for="disable_css"><?php _e("Disable CSS style", 'mystickymenu'); ?></label>
|
309 |
+
<div class="mystickymenu-input-section">
|
310 |
+
<label>
|
311 |
+
<input id="disable_css" name="mysticky_option_name[disable_css]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['disable_css'], 'on' );?> />
|
312 |
+
<?php _e( 'Use this option if you plan to include CSS Style manually', 'mystickymenu' );?>
|
313 |
+
<label>
|
314 |
+
</div>
|
315 |
+
<p></p>
|
316 |
+
</div>
|
317 |
+
|
318 |
+
<div class="mystickymenu-content-option">
|
319 |
+
<label class="mysticky_title"><?php _e("Disable at", 'mystickymenu'); ?></label>
|
320 |
+
<?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
|
321 |
+
<div class="mystickymenu-input-section">
|
322 |
+
<ul class="mystickymenu-input-multicheckbox">
|
323 |
+
<li>
|
324 |
+
<label>
|
325 |
+
<input id="mysticky_disable_at_front_home" name="mysticky_option_name[mysticky_disable_at_front_home]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_front_home'], 'on' );?>/>
|
326 |
+
<span><?php _e('front page', 'mystickymenu' );?></span>
|
327 |
+
</label>
|
328 |
+
</li>
|
329 |
+
<li>
|
330 |
+
<label>
|
331 |
+
<input id="mysticky_disable_at_blog" name="mysticky_option_name[mysticky_disable_at_blog]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_blog'], 'on' );?>/>
|
332 |
+
<span><?php _e('blog page', 'mystickymenu' );?></span>
|
333 |
+
</label>
|
334 |
+
</li>
|
335 |
+
<li>
|
336 |
+
<label>
|
337 |
+
<input id="mysticky_disable_at_page" name="mysticky_option_name[mysticky_disable_at_page]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_page'], 'on' );?> />
|
338 |
+
<span><?php _e('pages', 'mystickymenu' );?> </span>
|
339 |
+
</label>
|
340 |
+
</li>
|
341 |
+
<li>
|
342 |
+
<label>
|
343 |
+
<input id="mysticky_disable_at_tag" name="mysticky_option_name[mysticky_disable_at_tag]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_tag'], 'on' );?> />
|
344 |
+
<span><?php _e('tags', 'mystickymenu' );?> </span>
|
345 |
+
</label>
|
346 |
+
</li>
|
347 |
+
<li>
|
348 |
+
<label>
|
349 |
+
<input id="mysticky_disable_at_category" name="mysticky_option_name[mysticky_disable_at_category]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_category'], 'on' );?>/>
|
350 |
+
<span><?php _e('categories', 'mystickymenu' );?></span>
|
351 |
+
</label>
|
352 |
+
</li>
|
353 |
+
<li>
|
354 |
+
<label>
|
355 |
+
<input id="mysticky_disable_at_single" name="mysticky_option_name[mysticky_disable_at_single]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_single'], 'on' );?> />
|
356 |
+
<span><?php _e('posts', 'mystickymenu' );?> </span>
|
357 |
+
</label>
|
358 |
+
</li>
|
359 |
+
<li>
|
360 |
+
<label>
|
361 |
+
<input id="mysticky_disable_at_archive" name="mysticky_option_name[mysticky_disable_at_archive]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_archive'], 'on' );?> />
|
362 |
+
<span><?php _e('archives', 'mystickymenu' );?> </span>
|
363 |
+
</label>
|
364 |
+
</li>
|
365 |
+
<li>
|
366 |
+
<label>
|
367 |
+
<input id="mysticky_disable_at_search" name="mysticky_option_name[mysticky_disable_at_search]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_search'], 'on' );?> />
|
368 |
+
<span><?php _e('search', 'mystickymenu' );?> </span>
|
369 |
+
</label>
|
370 |
+
</li>
|
371 |
+
<li>
|
372 |
+
<label>
|
373 |
+
<input id="mysticky_disable_at_404" name="mysticky_option_name[mysticky_disable_at_404]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( $mysticky_options['mysticky_disable_at_404'], 'on' );?>/>
|
374 |
+
<span><?php _e('404', 'mystickymenu' );?> </span>
|
375 |
+
</label>
|
376 |
+
</li>
|
377 |
+
</ul>
|
378 |
+
|
379 |
+
<?php
|
380 |
+
if (isset ( $mysticky_options['mysticky_disable_at_page'] ) == true ) {
|
381 |
+
echo '<div class="mystickymenu-input-section">';
|
382 |
+
_e('<span class="description"><strong>Except for this pages:</strong> </span>', 'mystickymenu');
|
383 |
+
|
384 |
+
printf(
|
385 |
+
'<input type="text" size="26" class="mystickymenu_normal_text" id="mysticky_enable_at_pages" name="mysticky_option_name[mysticky_enable_at_pages]" value="%s" /> ',
|
386 |
+
isset( $mysticky_options['mysticky_enable_at_pages'] ) ? esc_attr( $mysticky_options['mysticky_enable_at_pages']) : ''
|
387 |
+
);
|
388 |
+
|
389 |
+
_e('<span class="description">Comma separated list of pages to enable. It should be page name, id or slug. Example: about-us, 1134, Contact Us. Leave blank if you realy want to disable sticky menu for all pages.</span>', 'mystickymenu');
|
390 |
+
echo '</div>';
|
391 |
+
}
|
392 |
+
|
393 |
+
if (isset ( $mysticky_options['mysticky_disable_at_single'] ) == true ) {
|
394 |
+
|
395 |
+
echo '<div class="mystickymenu-input-section">';
|
396 |
+
_e('<span class="description"><strong>Except for this posts:</strong> </span>', 'mystickymenu');
|
397 |
+
|
398 |
+
printf(
|
399 |
+
'<input type="text" size="26" class="mystickymenu_normal_text" id="mysticky_enable_at_posts" name="mysticky_option_name[mysticky_enable_at_posts]" value="%s" /> ',
|
400 |
+
isset( $mysticky_options['mysticky_enable_at_posts'] ) ? esc_attr( $mysticky_options['mysticky_enable_at_posts']) : ''
|
401 |
+
);
|
402 |
+
|
403 |
+
_e('<span class="description">Comma separated list of posts to enable. It should be post name, id or slug. Example: about-us, 1134, Contact Us. Leave blank if you realy want to disable sticky menu for all posts.</span>', 'mystickymenu');
|
404 |
+
echo '</div>';
|
405 |
+
|
406 |
+
}
|
407 |
+
?>
|
408 |
+
<p></p>
|
409 |
+
</div>
|
410 |
+
</div>
|
411 |
+
</div>
|
412 |
+
<p class="submit">
|
413 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save', 'mystickymenu');?>">
|
414 |
+
</p>
|
415 |
+
|
416 |
+
</form>
|
417 |
+
<form class="mysticky-hideformreset" method="post" action="">
|
418 |
+
<input name="reset" class="button button-secondary confirm" type="submit" value="<?php _e('Reset', 'mystickymenu');?>" >
|
419 |
+
<input type="hidden" name="action" value="reset" />
|
420 |
+
</form>
|
421 |
+
<p class="myStickymenu-review"><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><?php _e('Leave a review','mystickymenu'); ?></a></p>
|
422 |
+
</div>
|
423 |
+
<div id="sticky-header-upgrade" class="sticky-header-content">
|
424 |
+
<div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
|
425 |
+
<div class="">
|
426 |
+
<div class="rpt_plan rpt_plan_0 ">
|
427 |
+
<div style="text-align:left;" class="rpt_title rpt_title_0">Basic</div>
|
428 |
+
<div class="rpt_head rpt_head_0">
|
429 |
+
<div class="rpt_recurrence rpt_recurrence_0">For small website owners</div>
|
430 |
+
<div class="rpt_price rpt_price_0">$9</div>
|
431 |
+
<div class="rpt_description rpt_description_0">Per year. Renewals for 50% off</div>
|
432 |
+
<div style="clear:both;"></div>
|
433 |
+
</div>
|
434 |
+
<div class="rpt_features rpt_features_0">
|
435 |
+
<div class="rpt_feature rpt_feature_0-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 1 domain</span>1 website<span class="rpt_tooltip_plus" > +</span></a></div>
|
436 |
+
<div class="rpt_feature rpt_feature_0-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
|
437 |
+
<div class="rpt_feature rpt_feature_0-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
|
438 |
+
<div class="rpt_feature rpt_feature_0-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
|
439 |
+
<div class="rpt_feature rpt_feature_0-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Exclude pages you don't want to have sticky menu</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
|
440 |
+
<div class="rpt_feature rpt_feature_0-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
|
441 |
+
<div class="rpt_feature rpt_feature_0-6">Updates and support for 1 year</div>
|
442 |
+
</div>
|
443 |
+
<div style="clear:both;"></div>
|
444 |
+
<a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=1" class="rpt_foot rpt_foot_0">Buy now</a>
|
445 |
+
</div>
|
446 |
+
<div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
|
447 |
+
<div style="text-align:left;" class="rpt_title rpt_title_1">Pro<img class="rpt_recommended" src="<?php echo plugins_url("") ?>/mystickymenu/images/rpt_recommended.png" style="top: 27px;"></div>
|
448 |
+
<div class="rpt_head rpt_head_1">
|
449 |
+
<div class="rpt_recurrence rpt_recurrence_1">For businesses with multiple websites</div>
|
450 |
+
<div class="rpt_price rpt_price_1">$25</div>
|
451 |
+
<div class="rpt_description rpt_description_1">Per year. Renewals for 50% off</div>
|
452 |
+
<div style="clear:both;"></div>
|
453 |
+
</div>
|
454 |
+
<div class="rpt_features rpt_features_1">
|
455 |
+
<div class="rpt_feature rpt_feature_1-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 5 domains</span>5 websites<span class="rpt_tooltip_plus" > +</span></a></div>
|
456 |
+
<div class="rpt_feature rpt_feature_1-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
|
457 |
+
<div class="rpt_feature rpt_feature_1-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
|
458 |
+
<div class="rpt_feature rpt_feature_1-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
|
459 |
+
<div class="rpt_feature rpt_feature_1-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Exclude pages you don't want to have sticky menu</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
|
460 |
+
<div class="rpt_feature rpt_feature_1-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
|
461 |
+
<div class="rpt_feature rpt_feature_1-6">Updates and support for 1 year</div>
|
462 |
+
</div>
|
463 |
+
<div style="clear:both;"></div>
|
464 |
+
<a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=2" class="rpt_foot rpt_foot_1">Buy now</a>
|
465 |
+
</div>
|
466 |
+
<div class="rpt_plan rpt_plan_2 ">
|
467 |
+
<div style="text-align:left;" class="rpt_title rpt_title_2">Agency</div>
|
468 |
+
<div class="rpt_head rpt_head_2">
|
469 |
+
<div class="rpt_recurrence rpt_recurrence_2">For agencies who manage clients</div>
|
470 |
+
<div class="rpt_price rpt_price_2">$49</div>
|
471 |
+
<div class="rpt_description rpt_description_2">Per year. Renewals for 50% off</div>
|
472 |
+
<div style="clear:both;"></div>
|
473 |
+
</div>
|
474 |
+
<div class="rpt_features rpt_features_2">
|
475 |
+
<div class="rpt_feature rpt_feature_2-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 20 domains</span>20 websites<span class="rpt_tooltip_plus" > +</span></a></div>
|
476 |
+
<div class="rpt_feature rpt_feature_2-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
|
477 |
+
<div class="rpt_feature rpt_feature_2-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
|
478 |
+
<div class="rpt_feature rpt_feature_2-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
|
479 |
+
<div class="rpt_feature rpt_feature_2-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Exclude pages you don't want to have sticky menu</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
|
480 |
+
<div class="rpt_feature rpt_feature_2-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
|
481 |
+
<div class="rpt_feature rpt_feature_2-6">Updates and support for 1 year</div>
|
482 |
+
</div>
|
483 |
+
<div style="clear:both;"></div>
|
484 |
+
<a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=3" class="rpt_foot rpt_foot_2">Buy now</a>
|
485 |
+
</div>
|
486 |
+
</div>
|
487 |
+
</div>
|
488 |
</div>
|
489 |
</div>
|
490 |
<?php
|
491 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
public function mysticky_default_options() {
|
493 |
|
494 |
global $options;
|
495 |
+
$menu_locations = get_nav_menu_locations();
|
496 |
+
$menu_object = wp_get_nav_menu_object( $menu_locations['menu-1'] );
|
497 |
+
|
498 |
+
if ( is_object($menu_object) && $menu_object->slug != '' ) {
|
499 |
+
$mysticky_class_id_selector = $menu_object->slug;
|
500 |
+
} else {
|
501 |
+
$mysticky_class_id_selector = 'custom';
|
502 |
+
}
|
503 |
$default = array(
|
504 |
+
'mysticky_class_id_selector' => $mysticky_class_id_selector,
|
505 |
+
'mysticky_class_selector' => '.navbar',
|
506 |
+
'device_desktop' => 'on',
|
507 |
+
'device_mobile' => 'on',
|
508 |
+
'myfixed_zindex' => '99990',
|
509 |
+
'myfixed_bgcolor' => '#f7f5e7',
|
510 |
+
'myfixed_opacity' => '90',
|
511 |
+
'myfixed_transition_time' => '0.3',
|
512 |
+
'myfixed_disable_small_screen' => '0',
|
513 |
+
'myfixed_disable_large_screen' => '0',
|
514 |
+
'mysticky_active_on_height' => '0',
|
515 |
+
'mysticky_active_on_height_home'=> '0',
|
516 |
+
'myfixed_fade' => 'slide',
|
517 |
+
'myfixed_cssstyle' => '#mysticky-nav .myfixed { margin:0 auto; float:none; border:0px; background:none; max-width:100%; }'
|
518 |
);
|
519 |
|
520 |
+
if ( get_option('mysticky_option_name') == false ) {
|
521 |
+
$status = get_option("sticky_header_status");
|
522 |
+
if($status == false) {
|
523 |
+
update_option("sticky_header_status", "done");
|
524 |
+
update_option("has_sticky_header_old_version", "no");
|
525 |
+
}
|
526 |
+
update_option( 'mysticky_option_name', $default );
|
527 |
+
} else {
|
528 |
+
$status = get_option("sticky_header_status");
|
529 |
+
if($status == false) {
|
530 |
+
update_option("sticky_header_status", "done");
|
531 |
+
update_option("has_sticky_header_old_version", "yes");
|
532 |
+
}
|
533 |
+
}
|
534 |
+
|
535 |
if(isset($_POST['reset'])) {
|
536 |
update_option( 'mysticky_option_name', $default );
|
537 |
}
|
|
|
538 |
|
539 |
+
if ( !get_option( 'update_mysticky_version_2_6') ) {
|
540 |
+
$mysticky_option_name = get_option( 'mysticky_option_name' );
|
541 |
+
$mysticky_option_name['mysticky_class_id_selector'] = 'custom';
|
542 |
+
if ($mysticky_option_name['myfixed_fade'] == 'on'){
|
543 |
+
$mysticky_option_name['myfixed_fade'] = 'slide';
|
544 |
+
}else{
|
545 |
+
$mysticky_option_name['myfixed_fade'] = 'fade';
|
546 |
+
}
|
547 |
+
update_option( 'mysticky_option_name', $mysticky_option_name );
|
548 |
+
update_option( 'update_mysticky_version_2_6', true );
|
549 |
+
}
|
550 |
}
|
551 |
+
}
|
|
|
|
|
|
|
552 |
|
553 |
|
|
|
|
|
|
|
|
|
554 |
|
555 |
+
class MyStickyMenuFrontend
|
556 |
+
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
557 |
|
558 |
+
public function __construct()
|
559 |
{
|
560 |
+
add_action( 'wp_head', array( $this, 'mysticky_build_stylesheet_content' ) );
|
561 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'mysticky_disable_at' ) );
|
|
|
|
|
562 |
}
|
563 |
|
564 |
+
public function mysticky_build_stylesheet_content() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
|
566 |
+
$mysticky_options = get_option( 'mysticky_option_name' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
|
568 |
+
if (isset($mysticky_options['disable_css'])) {
|
569 |
+
//do nothing
|
570 |
+
} else {
|
571 |
+
$mysticky_options['disable_css'] = false;
|
572 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
|
574 |
+
if ($mysticky_options ['disable_css'] == false ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
|
576 |
+
echo '<style id="mystickymenu" type="text/css">';
|
577 |
+
echo '#mysticky-nav { width:100%; position: static; }';
|
578 |
+
echo '#mysticky-nav.wrapfixed { position:fixed; left: 0px; margin-top:0px; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:' . $mysticky_options ['myfixed_opacity'] / 100 . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . ';}';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
|
581 |
+
if ($mysticky_options ['myfixed_disable_small_screen'] > 0 ){
|
582 |
+
//echo '@media (max-width: '.$mysticky_options['myfixed_disable_small_screen'].'px) {#mysticky-nav.wrapfixed {position: static;} }';
|
583 |
+
};
|
584 |
+
if ( $mysticky_options['myfixed_cssstyle'] == "" ) {
|
585 |
+
echo '#mysticky-nav .myfixed { margin:0 auto; float:none; border:0px; background:none; max-width:100%; }';
|
586 |
+
}
|
587 |
+
echo $mysticky_options ['myfixed_cssstyle'];
|
588 |
+
echo '</style>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
}
|
|
|
590 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
591 |
|
592 |
+
public function mystickymenu_script() {
|
593 |
|
594 |
+
$mysticky_options = get_option( 'mysticky_option_name' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
|
596 |
+
if ( is_admin_bar_showing() ) {
|
597 |
+
$top = "true";
|
598 |
+
} else {
|
599 |
+
$top = "false";
|
600 |
+
}
|
601 |
|
|
|
602 |
|
603 |
+
// needed for update 1.7 => 1.8 ... will be removed in the future ()
|
604 |
+
if (isset($mysticky_options['mysticky_active_on_height_home'])) {
|
605 |
+
//do nothing
|
606 |
+
} else {
|
607 |
+
$mysticky_options['mysticky_active_on_height_home'] = $mysticky_options['mysticky_active_on_height'];
|
608 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
|
|
|
610 |
|
611 |
+
if ($mysticky_options['mysticky_active_on_height_home'] == 0 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
612 |
$mysticky_options['mysticky_active_on_height_home'] = $mysticky_options['mysticky_active_on_height'];
|
613 |
+
}
|
614 |
+
|
615 |
+
|
616 |
if ( is_front_page() && is_home() ) {
|
617 |
+
|
618 |
$mysticky_options['mysticky_active_on_height'] = $mysticky_options['mysticky_active_on_height_home'];
|
619 |
+
|
620 |
} elseif ( is_front_page()){
|
621 |
+
|
622 |
$mysticky_options['mysticky_active_on_height'] = $mysticky_options['mysticky_active_on_height_home'];
|
623 |
+
|
624 |
}
|
625 |
+
wp_register_script('detectmobilebrowser', plugins_url( 'js/detectmobilebrowser.js', __FILE__ ), array('jquery'), MYSTICKY_VERSION, true);
|
626 |
+
wp_enqueue_script( 'detectmobilebrowser' );
|
627 |
|
628 |
+
wp_register_script('mystickymenu', plugins_url( 'js/mystickymenu.min.js', __FILE__ ), array('jquery'), MYSTICKY_VERSION, true);
|
629 |
+
wp_enqueue_script( 'mystickymenu' );
|
630 |
|
631 |
$myfixed_disable_scroll_down = isset($mysticky_options['myfixed_disable_scroll_down']) ? $mysticky_options['myfixed_disable_scroll_down'] : 'false';
|
632 |
$mystickyTransition = isset($mysticky_options['myfixed_fade']) ? $mysticky_options['myfixed_fade'] : 'fade';
|
633 |
$mystickyDisableLarge = isset($mysticky_options['myfixed_disable_large_screen']) ? $mysticky_options['myfixed_disable_large_screen'] : '0';
|
634 |
+
|
635 |
+
$mystickyClass = ( $mysticky_options['mysticky_class_id_selector'] != 'custom') ? '.menu-' . $mysticky_options['mysticky_class_id_selector'] .'-container' : $mysticky_options['mysticky_class_selector'];
|
636 |
+
|
637 |
+
$mysticky_translation_array = array(
|
638 |
+
'mystickyClass' => $mystickyClass,
|
639 |
+
'activationHeight' => $mysticky_options['mysticky_active_on_height'],
|
640 |
+
'disableWidth' => $mysticky_options['myfixed_disable_small_screen'],
|
641 |
+
'disableLargeWidth' => $mystickyDisableLarge,
|
642 |
+
'adminBar' => $top,
|
643 |
+
'device_desktop' => true,
|
644 |
+
'device_mobile' => true,
|
645 |
+
'mystickyTransition' => $mystickyTransition,
|
646 |
+
'mysticky_disable_down' => $myfixed_disable_scroll_down,
|
647 |
+
|
648 |
+
|
649 |
);
|
650 |
+
wp_localize_script( 'mystickymenu', 'option', $mysticky_translation_array );
|
|
|
651 |
}
|
652 |
|
|
|
|
|
|
|
653 |
public function mysticky_disable_at() {
|
654 |
+
|
655 |
+
|
656 |
+
$mysticky_options = get_option( 'mysticky_option_name' );
|
657 |
+
|
658 |
$mysticky_disable_at_front_home = isset($mysticky_options['mysticky_disable_at_front_home']);
|
659 |
$mysticky_disable_at_blog = isset($mysticky_options['mysticky_disable_at_blog']);
|
660 |
$mysticky_disable_at_page = isset($mysticky_options['mysticky_disable_at_page']);
|
666 |
$mysticky_disable_at_404 = isset($mysticky_options['mysticky_disable_at_404']);
|
667 |
$mysticky_enable_at_pages = isset($mysticky_options['mysticky_enable_at_pages']) ? $mysticky_options['mysticky_enable_at_pages'] : '';
|
668 |
$mysticky_enable_at_posts = isset($mysticky_options['mysticky_enable_at_posts']) ? $mysticky_options['mysticky_enable_at_posts'] : '';
|
669 |
+
|
670 |
// Trim input to ignore empty spaces
|
671 |
$mysticky_enable_at_pages_exp = array_map('trim', explode(',', $mysticky_enable_at_pages));
|
672 |
$mysticky_enable_at_posts_exp = array_map('trim', explode(',', $mysticky_enable_at_posts));
|
673 |
+
|
674 |
+
|
675 |
+
|
676 |
+
|
677 |
+
if ( is_front_page() && is_home() ) { /* Default homepage */
|
678 |
+
|
679 |
+
if ( $mysticky_disable_at_front_home == false ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
680 |
$this->mystickymenu_script();
|
681 |
+
}
|
682 |
+
} elseif ( is_front_page()){ /* Static homepage */
|
683 |
|
684 |
+
if ( $mysticky_disable_at_front_home == false ) {
|
|
|
|
|
|
|
685 |
$this->mystickymenu_script();
|
686 |
+
}
|
687 |
+
|
688 |
+
} elseif ( is_home()){ /* Blog page */
|
689 |
+
|
690 |
+
if ( $mysticky_disable_at_blog == false ) {
|
|
|
|
|
691 |
$this->mystickymenu_script();
|
|
|
|
|
|
|
|
|
692 |
}
|
693 |
+
|
694 |
+
} elseif ( is_page() ){ /* Single page*/
|
695 |
+
|
696 |
+
if ( $mysticky_disable_at_page == false ) {
|
|
|
|
|
697 |
$this->mystickymenu_script();
|
698 |
+
}
|
699 |
+
if ( is_page( $mysticky_enable_at_pages_exp ) ){
|
|
|
|
|
|
|
|
|
700 |
$this->mystickymenu_script();
|
701 |
+
}
|
702 |
+
|
703 |
+
} elseif ( is_tag()){ /* Tag page */
|
704 |
+
|
705 |
+
if ( $mysticky_disable_at_tag == false ) {
|
|
|
|
|
706 |
$this->mystickymenu_script();
|
707 |
+
}
|
708 |
+
|
709 |
+
} elseif ( is_category()){ /* Category page */
|
710 |
+
|
711 |
+
if ( $mysticky_disable_at_category == false ) {
|
712 |
$this->mystickymenu_script();
|
713 |
}
|
714 |
+
|
715 |
+
} elseif ( is_single()){ /* Single post */
|
716 |
+
|
717 |
+
if ( $mysticky_disable_at_single == false ) {
|
|
|
718 |
$this->mystickymenu_script();
|
719 |
+
}
|
720 |
|
721 |
+
if ( is_single( $mysticky_enable_at_posts_exp ) ){
|
|
|
|
|
|
|
722 |
$this->mystickymenu_script();
|
723 |
+
}
|
724 |
|
725 |
+
} elseif ( is_archive()){ /* Archive */
|
726 |
+
|
727 |
+
if ( $mysticky_disable_at_archive == false ) {
|
|
|
728 |
$this->mystickymenu_script();
|
729 |
+
}
|
730 |
|
731 |
+
} elseif ( is_search()){ /* Search */
|
|
|
732 |
|
733 |
+
if ( $mysticky_disable_at_search == false ) {
|
734 |
+
$this->mystickymenu_script();
|
735 |
+
}
|
736 |
|
737 |
+
} elseif ( is_404()){ /* 404 */
|
738 |
|
739 |
+
if ( $mysticky_disable_at_404 == false ) {
|
740 |
+
$this->mystickymenu_script();
|
741 |
+
}
|
742 |
+
}
|
743 |
|
744 |
+
}
|
745 |
|
|
|
|
|
|
|
|
|
|
|
746 |
}
|
747 |
|
748 |
if( is_admin() ) {
|
|
|
749 |
new MyStickyMenuBackend();
|
|
|
750 |
} else {
|
|
|
751 |
new MyStickyMenuFrontend();
|
752 |
+
}
|
|
|
|
readme.txt
CHANGED
@@ -1,33 +1,174 @@
|
|
1 |
-
=== myStickymenu
|
2 |
-
Contributors:
|
3 |
-
|
4 |
-
Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
-
This
|
11 |
|
12 |
== Description ==
|
|
|
|
|
13 |
By default, sticky menu is designed to use element class ".navbar" as "Sticky Class". That value should be modified in plugin settings for different themes to make it work. Sticky Class is actually nothing more than an element class (or id) of the element that should become sticky.
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
|
|
20 |
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
[1]: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
|
25 |
-
[2]: http://wordpress.transformnews.com/tutorials/mystickymenu-theme-support-682
|
26 |
|
27 |
== Installation ==
|
28 |
Install like any other plugin. After install activate.
|
29 |
Go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id . Sticky Class should be HTML id or class of the HTML element desired to be sticky… Clear WordPress cache if exists.
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
== Frequently Asked Questions ==
|
33 |
|
@@ -48,12 +189,14 @@ In some cases you can use the whole header div and than just style it different
|
|
48 |
|
49 |
== Screenshots ==
|
50 |
|
51 |
-
1.
|
52 |
-
2.
|
53 |
-
3.
|
54 |
|
55 |
|
56 |
== Changelog ==
|
|
|
|
|
57 |
= 2.0.6 =
|
58 |
* Fixed: Enable / Disable at 404 page
|
59 |
= 2.0.5 =
|
@@ -205,7 +348,4 @@ In some cases you can use the whole header div and than just style it different
|
|
205 |
|
206 |
= 1.1 =
|
207 |
* Added administration options, now available through Dashboard / Settings / myStickymenu. Options are as follows: Sticky Class, Sticky z-index, Sticky Width, Sticky Background Color, Sticky Opacity, Sticky Transition Time.
|
208 |
-
* Old mystickymenu.css file is deprecated and not in use anymore.
|
209 |
-
|
210 |
-
|
211 |
-
|
1 |
+
===Sticky Menu on Scroll, Sticky Header for Any Theme - myStickymenu===
|
2 |
+
Contributors: tomeraharon, galdub, premio
|
3 |
+
Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu
|
|
|
4 |
Requires at least: 3.5.1
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 2.1
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
+
This sticky menu plugin will make your menu or header stick to the top of page, after desired number of pixels when scrolled down and up.
|
10 |
|
11 |
== Description ==
|
12 |
+
<strong>This sticky menu plugin will make your menu or header sticky on top of page, after desired number of pixels when scrolled. This lightweight plugin will help your visitors navigate easily and reach to the navigation menu without wasting time. Install My Sticky Menu and improve your website’s user experience! If you want to change the CSS style, disable on scroll down or disable on specific pages. check out the PRO version.</strong>
|
13 |
+
|
14 |
By default, sticky menu is designed to use element class ".navbar" as "Sticky Class". That value should be modified in plugin settings for different themes to make it work. Sticky Class is actually nothing more than an element class (or id) of the element that should become sticky.
|
15 |
|
16 |
+
With more than 60,000+ active installs and around 100 five-stars reviews, you can be sure that My Sticky Menu plugin is the right fit for your website.
|
17 |
+
|
18 |
+
= BENEFITS =
|
19 |
+
* Improve user experience by letting your visitors access the navigation menu and navigate to the pages they want when they want to.
|
20 |
+
* Make your website look more modern with sticky menu on desktop and mobile.
|
21 |
+
* Increase number of pageviews and
|
22 |
+
|
23 |
+
The sticky header function is localized (multi language support) and responsive (as far as your theme is). Also there is possibility to add custom css code which make this plugin very flexible, customizable and user friendly.
|
24 |
+
|
25 |
+
My Sticky Menu plugin is originally designed for Twenty Thirteen template but should work on any theme, like: OceanWP, Nirvana Template, Travelify, Twenty Sixteen, Twenty Ten, Twenty Eleven, Max Magazine, Graduate, Lawyer theme, Spacious, Suits and more.
|
26 |
+
|
27 |
+
= WITH MY STICKY MENU YOU CAN: =
|
28 |
+
* Show sticky header on scroll down/up
|
29 |
+
* Fade or slide effect
|
30 |
+
* Disable at small screen
|
31 |
+
* Choose when to make visible on scroll
|
32 |
+
* Change the background color
|
33 |
+
* Change the opacity
|
34 |
+
* Change the sticky transition time
|
35 |
+
* Define the z-index of the sticky header
|
36 |
+
|
37 |
+
= WHAT DO YOU GET IN THE PRO PLAN? =
|
38 |
+
* Disable floating menu on Desktop/Mobile
|
39 |
+
* Disable floating menu on scroll down
|
40 |
+
* Add CSS style to the floating header
|
41 |
+
* Disable floating header on specific pages
|
42 |
+
>> See Pro plans here
|
43 |
|
44 |
+
= Testimonials =
|
45 |
|
46 |
+
> "Works great.
|
47 |
+
One of the key element that i consider when choosing a theme is the sticky menu option. If the theme doesn't have it normally I don't use it. But now that’s not a problem for me anymore."<br><br>
|
48 |
|
49 |
+
> "This plugin rocks!
|
50 |
+
This plugin does exactly what it should. It is simple but powerful. I would suggest to anyone who wants to make their navigation menu sticky! I especially love the hide header on scroll down, show on scroll up feature that is built it. Great work!<br>
|
51 |
|
|
|
|
|
52 |
|
53 |
== Installation ==
|
54 |
Install like any other plugin. After install activate.
|
55 |
Go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id . Sticky Class should be HTML id or class of the HTML element desired to be sticky… Clear WordPress cache if exists.
|
56 |
|
57 |
+
For example:
|
58 |
+
|
59 |
+
Celestial-Lite (sticky header)
|
60 |
+
** Sticky Class => #branding
|
61 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .myfixed #site-navigation { margin-top:0px!important; } .myfixed #logo img {width: 200px;}
|
62 |
+
|
63 |
+
Church Theme
|
64 |
+
** Sticky Class => #menu-hauptnavi
|
65 |
+
|
66 |
+
Customizr Theme
|
67 |
+
** Sticky Class => .row-fluid (for header) or .nav (for menu)
|
68 |
+
|
69 |
+
CyberChimps
|
70 |
+
** Sticky Class => .navbar-inner
|
71 |
+
|
72 |
+
Decode
|
73 |
+
** Sticky Class => .header-menu
|
74 |
+
** Make visible when Scrolled after => 370
|
75 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; padding-top:5px; padding-bottom:5px; }
|
76 |
+
|
77 |
+
Genesis / Dynamik Theme
|
78 |
+
** Sticky Class(sticky header) =>.site-header
|
79 |
+
** Sticky Class(sticky menu) =>.nav-primary
|
80 |
+
|
81 |
+
Graduate
|
82 |
+
** Sticky Class => .main-navigation
|
83 |
+
|
84 |
+
Graphene
|
85 |
+
** Sticky Class => #header-menu-wrap
|
86 |
+
|
87 |
+
Illdy
|
88 |
+
** Sticky Class => .top-header
|
89 |
+
** Disable at Small Screen Sizes => 993
|
90 |
+
|
91 |
+
Illdy (mobile support)
|
92 |
+
** Sticky Class => .header-blog
|
93 |
+
** CSS Style => #mysticky-nav .myfixed { margin:0 auto; float:none; border:0px; background:none; max-width:100%; } .myfixed .bottom-header {display:none;}
|
94 |
+
|
95 |
+
Lawyer theme
|
96 |
+
** Sticky Class => .wrapper
|
97 |
+
** .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .myfixed { padding-left: 0px; padding-bottom: 0px; padding-top: 0px; } .wrapfixed { -webkit-box-shadow: 0 8px 6px -6px rgba(68,68,68,0.6); -moz-box-shadow: 0 8px 6px -6px rgba(68,68,68,0.6); box-shadow: 0 8px 6px -6px rgba(68,68,68,0.6); } .myfixed .logo img { max-height: 45px; } .myfixed .quick-info { display: none; } .myfixed .mainmenu { margin: 0px } .myfixed .mainmenu { padding-top: 7px; }
|
98 |
+
|
99 |
+
Max Magazine
|
100 |
+
** Sticky Class => #nav
|
101 |
+
** Make visible when Scrolled after => 250
|
102 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } #nav { min-height:40px!important; }
|
103 |
+
|
104 |
+
Naturo Lite
|
105 |
+
** Sticky Class => .header-inner
|
106 |
+
|
107 |
+
Nirvana Template
|
108 |
+
** Sticky Class => #access
|
109 |
+
|
110 |
+
OceanWP
|
111 |
+
** Sticky Class => #site-header
|
112 |
+
|
113 |
+
Responsive
|
114 |
+
** Sticky Class => .main-nav
|
115 |
+
** Make visible when Scrolled after => 250
|
116 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; max-width:100%!important;} .myfixed .menu { background:none!important;}
|
117 |
+
|
118 |
+
Spacious
|
119 |
+
** Sticky Class => #masthead (sticky header)
|
120 |
+
** Make visible when Scrolled after => 250
|
121 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; max-width:100%!important;} .myfixed #site-description { display:none;} .myfixed #site-title a { font-size: 24px; } .myfixed #header-text { padding:0px!important;} .myfixed .main-navigation { padding-top: 0px!important; }
|
122 |
+
|
123 |
+
Storefront
|
124 |
+
** Sticky Class => .main-navigation
|
125 |
+
|
126 |
+
Suits
|
127 |
+
** Sticky Class => .navbar
|
128 |
+
|
129 |
+
Tempera Template
|
130 |
+
** Sticky Class => .menu
|
131 |
+
|
132 |
+
Travelify
|
133 |
+
** Sticky Class => #main-nav
|
134 |
+
|
135 |
+
Twenty Sixteen
|
136 |
+
** Sticky Class => .site-header-main
|
137 |
+
|
138 |
+
Twenty Ten
|
139 |
+
** Sticky Class => .menu
|
140 |
+
** Make visible when Scrolled after => 370
|
141 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .menu {min-height:38px;}
|
142 |
+
|
143 |
+
Twenty Eleven
|
144 |
+
** Sticky Class => #access
|
145 |
+
** Make visible when Scrolled after => 600
|
146 |
+
** .myfixed css class => .myfixed { float:none!important; max-width:100%;}
|
147 |
+
.myfixed .menu { background-color:none; float:left; }
|
148 |
+
.myfixed div { margin: 0px!important ; padding: 0px 7.6%; }
|
149 |
+
|
150 |
+
Twenty Eleven (add search to sticky menu bar)
|
151 |
+
** Sticky Class => #branding
|
152 |
+
** Make visible when Scrolled after => 600
|
153 |
+
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .myfixed a {display:none;} #mysticky-wrap {min-height:500px;} .myfixed #site-title, .myfixed #site-description{display:none;} .myfixed #access { margin: 0px auto 0px; } .myfixed #searchform { top: 0.3em!important; }
|
154 |
+
|
155 |
+
Twenty Twelve
|
156 |
+
** Sticky Class => .nav-menu
|
157 |
+
** Make visible when Scrolled after => 250
|
158 |
+
|
159 |
+
Twenty Thirteen (sticky header – add your own custom logo image and edit to suite your needs)
|
160 |
+
** Sticky Class => #masthead
|
161 |
+
** .myfixed css class => .myfixed { margin:0 auto; max-width:1070px; width:100%!important;} .myfixed .search-form, .myfixed .site-description, .myfixed .site-title { display:none;} .myfixed .home-link { max-width: 55px; min-height: 38px; margin-left:20px; float:left; background-image: url('logo.png'); } .myfixed .navbar { max-width:645px; float:right;} .wrapfixed .navbar { background-color: transparent; } .wrapfixed ul { padding-right:0px; }
|
162 |
+
|
163 |
+
Webnus netStudio theme
|
164 |
+
** Sticky Class =>.nav-wrap2
|
165 |
+
|
166 |
+
Weblizar
|
167 |
+
** Sticky Class => .row
|
168 |
+
|
169 |
+
Wrock Metro Theme (entire header)
|
170 |
+
** Sticky Class =>#navigation
|
171 |
+
|
172 |
|
173 |
== Frequently Asked Questions ==
|
174 |
|
189 |
|
190 |
== Screenshots ==
|
191 |
|
192 |
+
1. You can choose your current menu from the dropdown or enter it ID or class manually
|
193 |
+
2. Add you custom CSS
|
194 |
+
3. This is how myStickymenu will actually look on your site
|
195 |
|
196 |
|
197 |
== Changelog ==
|
198 |
+
= 2.1 =
|
199 |
+
New and easy UI, you can now select your menu from a dropdown
|
200 |
= 2.0.6 =
|
201 |
* Fixed: Enable / Disable at 404 page
|
202 |
= 2.0.5 =
|
348 |
|
349 |
= 1.1 =
|
350 |
* Added administration options, now available through Dashboard / Settings / myStickymenu. Options are as follows: Sticky Class, Sticky z-index, Sticky Width, Sticky Background Color, Sticky Opacity, Sticky Transition Time.
|
351 |
+
* Old mystickymenu.css file is deprecated and not in use anymore.
|
|
|
|
|
|
uninstall.php
CHANGED
@@ -2,6 +2,6 @@
|
|
2 |
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
exit;
|
4 |
if ( get_option( 'mysticky_option_name' ) != false ) {
|
5 |
-
|
6 |
}
|
7 |
?>
|
2 |
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
exit;
|
4 |
if ( get_option( 'mysticky_option_name' ) != false ) {
|
5 |
+
|
6 |
}
|
7 |
?>
|