Version Description
2022-02-02 =
* BugFix: Apply escaping at redirect-page
attribute on the optin page.
* Bugfix: Apply check to restrict method name duplication. (Fix for WP-CLI)
* Compatibility: Compatible with WordPress 5.9.
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.5.12 |
Comparing to | |
See all releases |
Code changes from version 1.5.11 to 1.5.12
- classes/control-presets.php +277 -275
- classes/control-promo.php +61 -57
- include/loginpress-optin-form.php +11 -1
- loginpress.php +4 -4
- readme.txt +15 -9
classes/control-presets.php
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
* Class for Presets.
|
5 |
*
|
6 |
* @since 1.0.9
|
|
|
7 |
* @access public
|
8 |
*/
|
9 |
class LoginPress_Presets extends WP_Customize_Control {
|
@@ -91,283 +92,284 @@ class LoginPress_Presets extends WP_Customize_Control {
|
|
91 |
|
92 |
|
93 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
}
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
}
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
position: relative;
|
162 |
-
border: 5px solid transparent;
|
163 |
-
-webkit-transition:all 0.2s ease-in-out;
|
164 |
-
-moz-transition:all 0.2s ease-in-out;
|
165 |
-
-ms-transition:all 0.2s ease-in-out;
|
166 |
-
transition:all 0.2s ease-in-out;
|
167 |
-
}
|
168 |
-
#customize-control-customize_presets_settings .loginpress_thumbnail:nth-child(odd){
|
169 |
-
float: left;
|
170 |
-
}
|
171 |
-
#customize-control-customize_presets_settings .loginpress_thumbnail:nth-child(even){
|
172 |
-
float: right;
|
173 |
-
}
|
174 |
-
#customize-control-customize_presets_settings .image:after{
|
175 |
-
content: '';
|
176 |
-
display: table;
|
177 |
-
clear: both;
|
178 |
-
}
|
179 |
-
#customize-control-customize_presets_settings h3{
|
180 |
-
margin: 0;
|
181 |
-
font: 400 14px 'Open Sans', Arial, Helvetica, sans-serif;
|
182 |
-
line-height: 1.1;
|
183 |
-
padding: 3px;
|
184 |
-
text-align: center;
|
185 |
-
background: #eee;
|
186 |
-
color: #777777;
|
187 |
-
}
|
188 |
-
#customize-control-customize_presets_settings label .loginpress_thumbnail_img:after {
|
189 |
-
content: '';
|
190 |
-
width: 20px;
|
191 |
-
height: 20px;
|
192 |
-
border-radius: 50%;
|
193 |
-
background: #2EB150;
|
194 |
-
position: absolute;
|
195 |
-
top: -5px;
|
196 |
-
left: -5px;
|
197 |
-
border-radius: 50%;
|
198 |
-
visibility: hidden;
|
199 |
-
}
|
200 |
-
#customize-control-customize_presets_settings label .loginpress_thumbnail_img:before {
|
201 |
-
height: 6px;
|
202 |
-
width: 3px;
|
203 |
-
-webkit-transform-origin: left top;
|
204 |
-
-moz-transform-origin: left top;
|
205 |
-
-ms-transform-origin: left top;
|
206 |
-
-o-transform-origin: left top;
|
207 |
-
transform-origin: left top;
|
208 |
-
border-right: 3px solid white;
|
209 |
-
border-top: 3px solid white;
|
210 |
-
border-radius: 2.5px !important;
|
211 |
-
content: '';
|
212 |
-
position: absolute;
|
213 |
-
z-index: 2;
|
214 |
-
opacity: 0;
|
215 |
-
margin-top: 0px;
|
216 |
-
margin-left: -7px;
|
217 |
-
top: 5px;
|
218 |
-
left: 4px;
|
219 |
-
}
|
220 |
-
#customize-control-customize_presets_settings .loginpress_thumbnail_img{
|
221 |
-
display: block;
|
222 |
-
position: relative;
|
223 |
-
}
|
224 |
-
#customize-control-customize_presets_settings input[type="radio"]:checked + label .loginpress_thumbnail_img:before {
|
225 |
-
-webkit-animation-delay: 100ms;
|
226 |
-
-moz-animation-delay: 100ms;
|
227 |
-
animation-delay: 100ms;
|
228 |
-
-webkit-animation-duration: 1s;
|
229 |
-
-moz-animation-duration: 1s;
|
230 |
-
animation-duration: 1s;
|
231 |
-
-webkit-animation-timing-function: ease;
|
232 |
-
-moz-animation-timing-function: ease;
|
233 |
-
animation-timing-function: ease;
|
234 |
-
-webkit-animation-name: checkmark;
|
235 |
-
-moz-animation-name: checkmark;
|
236 |
-
animation-name: checkmark;
|
237 |
-
-webkit-transform: scaleX(-1) rotate(135deg);
|
238 |
-
-moz-transform: scaleX(-1) rotate(135deg);
|
239 |
-
-ms-transform: scaleX(-1) rotate(135deg);
|
240 |
-
-o-transform: scaleX(-1) rotate(135deg);
|
241 |
-
transform: scaleX(-1) rotate(135deg);
|
242 |
-
-webkit-animation-fill-mode: forwards;
|
243 |
-
-moz-animation-fill-mode: forwards;
|
244 |
-
animation-fill-mode: forwards;
|
245 |
-
z-index: 2;
|
246 |
-
}
|
247 |
-
#customize-control-customize_presets_settings input[type="radio"]:checked + label .loginpress_thumbnail_img:after{
|
248 |
-
visibility: visible;
|
249 |
-
}
|
250 |
-
/*#customize-control-customize_presets_settings input[type="radio"]:disabled + label .loginpress_thumbnail_img:before{
|
251 |
-
visibility: hidden;
|
252 |
-
}
|
253 |
-
#customize-control-customize_presets_settings input[type="radio"]:disabled + label .loginpress_thumbnail_img:after{
|
254 |
-
visibility: hidden;
|
255 |
-
}*/
|
256 |
-
#customize-control-customize_presets_settings img{
|
257 |
-
margin-bottom: 0;
|
258 |
-
}
|
259 |
-
#customize-control-customize_presets_settings input[type="radio"]:checked + label img{
|
260 |
-
opacity: 1;
|
261 |
-
}
|
262 |
-
.no-available{
|
263 |
-
top: 0;
|
264 |
-
left: 0;
|
265 |
-
background: rgba(204, 204, 204, 0.8);
|
266 |
-
content: '';
|
267 |
-
position: absolute;
|
268 |
-
bottom: 0;
|
269 |
-
right: 0;
|
270 |
-
z-index: 100;
|
271 |
-
/* padding-top: 20px; */
|
272 |
-
text-align: center;
|
273 |
-
font-weight: bold;
|
274 |
-
color: #000;
|
275 |
-
-webkit-transition: all 0.2s ease-in-out;
|
276 |
-
-moz-transition: all 0.2s ease-in-out;
|
277 |
-
-ms-transition: all 0.2s ease-in-out;
|
278 |
-
transition: all 0.2s ease-in-out;
|
279 |
-
opacity: 0;
|
280 |
-
visibility: hidden;
|
281 |
-
-webkit-transform: scale(.5);
|
282 |
-
-moz-transform: scale(.5);
|
283 |
-
-ms-transform: scale(.5);
|
284 |
-
transform: scale(.5);
|
285 |
-
text-decoration: none !important;
|
286 |
-
display: flex;
|
287 |
-
align-items: center;
|
288 |
-
}
|
289 |
-
#customize-control-customize_presets_settings .loginpress_thumbnail:hover input[type="radio"]:disabled ~ .no-available{
|
290 |
-
opacity: 1;
|
291 |
-
visibility: visible;
|
292 |
-
color: #000;
|
293 |
-
-webkit-transform: scale(1);
|
294 |
-
-moz-transform: scale(1);
|
295 |
-
-ms-transform: scale(1);
|
296 |
-
transform: scale(1);
|
297 |
-
}
|
298 |
-
#customize-control-customize_presets_settings .loginpress_thumbnail:hover{
|
299 |
-
border-color: #ccc;
|
300 |
-
}
|
301 |
-
|
302 |
-
@-webkit-keyframes checkmark {
|
303 |
-
0% {
|
304 |
-
height: 0;
|
305 |
-
width: 0;
|
306 |
-
opacity: 1;
|
307 |
-
}
|
308 |
-
20% {
|
309 |
-
height: 0;
|
310 |
-
width: 5px;
|
311 |
-
opacity: 1;
|
312 |
-
}
|
313 |
-
40% {
|
314 |
-
height: 10px;
|
315 |
-
width: 5px;
|
316 |
-
opacity: 1;
|
317 |
-
}
|
318 |
-
100% {
|
319 |
-
height: 10px;
|
320 |
-
width: 5px;
|
321 |
-
opacity: 1;
|
322 |
-
}
|
323 |
-
}
|
324 |
-
@-moz-keyframes checkmark {
|
325 |
-
0% {
|
326 |
-
height: 0;
|
327 |
-
width: 0;
|
328 |
-
opacity: 1;
|
329 |
-
}
|
330 |
-
20% {
|
331 |
-
height: 0;
|
332 |
-
width: 5px;
|
333 |
-
opacity: 1;
|
334 |
-
}
|
335 |
-
40% {
|
336 |
-
height: 10px;
|
337 |
-
width: 5px;
|
338 |
-
opacity: 1;
|
339 |
-
}
|
340 |
-
100% {
|
341 |
-
height: 10px;
|
342 |
-
width: 5px;
|
343 |
-
opacity: 1;
|
344 |
-
}
|
345 |
-
}
|
346 |
-
@keyframes checkmark {
|
347 |
-
0% {
|
348 |
-
height: 0;
|
349 |
-
width: 0;
|
350 |
-
opacity: 1;
|
351 |
-
}
|
352 |
-
20% {
|
353 |
-
height: 0;
|
354 |
-
width: 5px;
|
355 |
-
opacity: 1;
|
356 |
-
}
|
357 |
-
40% {
|
358 |
-
height: 10px;
|
359 |
-
width: 5px;
|
360 |
-
opacity: 1;
|
361 |
-
}
|
362 |
-
100% {
|
363 |
-
height: 10px;
|
364 |
-
width: 5px;
|
365 |
-
opacity: 1;
|
366 |
-
}
|
367 |
-
}
|
368 |
|
369 |
-
|
370 |
-
|
|
|
371 |
}
|
372 |
add_action( 'customize_controls_print_styles', 'loginpress_presets_control_css' );
|
373 |
?>
|
4 |
* Class for Presets.
|
5 |
*
|
6 |
* @since 1.0.9
|
7 |
+
* @version 1.5.12
|
8 |
* @access public
|
9 |
*/
|
10 |
class LoginPress_Presets extends WP_Customize_Control {
|
92 |
|
93 |
|
94 |
}
|
95 |
+
if ( ! function_exists( 'loginpress_presets_control_css' ) ) {
|
96 |
+
function loginpress_presets_control_css() {
|
97 |
+
?>
|
98 |
+
<style>
|
99 |
+
#customize-theme-controls #accordion-section-customize_presets .accordion-section-title{
|
100 |
+
background-color: #FFD700;
|
101 |
+
}
|
102 |
+
#customize-controls #accordion-section-customize_presets:hover>.accordion-section-title{
|
103 |
+
background-color: #FFD700;
|
104 |
+
}
|
105 |
+
.customize-control-checkbox-multiple .image.ui-buttonset input[type=radio] {
|
106 |
+
height: auto;
|
107 |
+
}
|
108 |
+
.customize-control-checkbox-multiple .image.ui-buttonset label {
|
109 |
+
display: inline-block;
|
110 |
+
margin-right: 5px;
|
111 |
+
margin-bottom: 5px;
|
112 |
+
}
|
113 |
+
.customize-control-checkbox-multiple .image.ui-buttonset label.ui-state-active {
|
114 |
+
background: none;
|
115 |
+
}
|
116 |
+
.customize-control-checkbox-multiple .customize-control-radio-buttonset label {
|
117 |
+
padding: 5px 10px;
|
118 |
+
background: #f7f7f7;
|
119 |
+
border-left: 1px solid #dedede;
|
120 |
+
line-height: 35px;
|
121 |
+
}
|
122 |
+
.customize-control-checkbox-multiple label img {
|
123 |
+
border: 1px solid #bbb;
|
124 |
+
opacity: 0.5;
|
125 |
+
}
|
126 |
+
#customize-controls .customize-control-checkbox-multiple label img {
|
127 |
+
max-width: 250px;
|
128 |
+
height: auto;
|
129 |
+
width: 100%;
|
130 |
+
margin-bottom: 0;
|
131 |
+
border: 0;
|
132 |
+
display: block;
|
133 |
+
}
|
134 |
+
.customize-control-checkbox-multiple label.ui-state-active img {
|
135 |
+
background: #dedede;
|
136 |
+
border-color: #000;
|
137 |
+
opacity: 1;
|
138 |
+
margin-bottom: 0;
|
139 |
+
}
|
140 |
+
.customize-control-checkbox-multiple label.ui-state-hover img {
|
141 |
+
opacity: 0.9;
|
142 |
+
border-color: #999;
|
143 |
+
}
|
144 |
+
.customize-control-radio-buttonset label.ui-corner-left {
|
145 |
+
border-radius: 3px 0 0 3px;
|
146 |
+
border-left: 0;
|
147 |
+
}
|
148 |
+
.customize-control-radio-buttonset label.ui-corner-right {
|
149 |
+
border-radius: 0 3px 3px 0;
|
150 |
+
}
|
151 |
+
#customize-control-customize_presets_settings input[type=radio]{
|
152 |
+
display: none;
|
153 |
+
}
|
154 |
+
#customize-control-customize_presets_settings label{
|
155 |
+
display: block;
|
156 |
+
position: relative;
|
157 |
+
width: 100%;
|
158 |
+
}
|
159 |
+
#customize-control-customize_presets_settings .loginpress_thumbnail{
|
160 |
+
width: calc(50% - 10px);
|
161 |
+
margin-bottom: 10px;
|
162 |
+
position: relative;
|
163 |
+
border: 5px solid transparent;
|
164 |
+
-webkit-transition:all 0.2s ease-in-out;
|
165 |
+
-moz-transition:all 0.2s ease-in-out;
|
166 |
+
-ms-transition:all 0.2s ease-in-out;
|
167 |
+
transition:all 0.2s ease-in-out;
|
168 |
+
}
|
169 |
+
#customize-control-customize_presets_settings .loginpress_thumbnail:nth-child(odd){
|
170 |
+
float: left;
|
171 |
+
}
|
172 |
+
#customize-control-customize_presets_settings .loginpress_thumbnail:nth-child(even){
|
173 |
+
float: right;
|
174 |
+
}
|
175 |
+
#customize-control-customize_presets_settings .image:after{
|
176 |
+
content: '';
|
177 |
+
display: table;
|
178 |
+
clear: both;
|
179 |
+
}
|
180 |
+
#customize-control-customize_presets_settings h3{
|
181 |
+
margin: 0;
|
182 |
+
font: 400 14px 'Open Sans', Arial, Helvetica, sans-serif;
|
183 |
+
line-height: 1.1;
|
184 |
+
padding: 3px;
|
185 |
+
text-align: center;
|
186 |
+
background: #eee;
|
187 |
+
color: #777777;
|
188 |
+
}
|
189 |
+
#customize-control-customize_presets_settings label .loginpress_thumbnail_img:after {
|
190 |
+
content: '';
|
191 |
+
width: 20px;
|
192 |
+
height: 20px;
|
193 |
+
border-radius: 50%;
|
194 |
+
background: #2EB150;
|
195 |
+
position: absolute;
|
196 |
+
top: -5px;
|
197 |
+
left: -5px;
|
198 |
+
border-radius: 50%;
|
199 |
+
visibility: hidden;
|
200 |
+
}
|
201 |
+
#customize-control-customize_presets_settings label .loginpress_thumbnail_img:before {
|
202 |
+
height: 6px;
|
203 |
+
width: 3px;
|
204 |
+
-webkit-transform-origin: left top;
|
205 |
+
-moz-transform-origin: left top;
|
206 |
+
-ms-transform-origin: left top;
|
207 |
+
-o-transform-origin: left top;
|
208 |
+
transform-origin: left top;
|
209 |
+
border-right: 3px solid white;
|
210 |
+
border-top: 3px solid white;
|
211 |
+
border-radius: 2.5px !important;
|
212 |
+
content: '';
|
213 |
+
position: absolute;
|
214 |
+
z-index: 2;
|
215 |
+
opacity: 0;
|
216 |
+
margin-top: 0px;
|
217 |
+
margin-left: -7px;
|
218 |
+
top: 5px;
|
219 |
+
left: 4px;
|
220 |
+
}
|
221 |
+
#customize-control-customize_presets_settings .loginpress_thumbnail_img{
|
222 |
+
display: block;
|
223 |
+
position: relative;
|
224 |
+
}
|
225 |
+
#customize-control-customize_presets_settings input[type="radio"]:checked + label .loginpress_thumbnail_img:before {
|
226 |
+
-webkit-animation-delay: 100ms;
|
227 |
+
-moz-animation-delay: 100ms;
|
228 |
+
animation-delay: 100ms;
|
229 |
+
-webkit-animation-duration: 1s;
|
230 |
+
-moz-animation-duration: 1s;
|
231 |
+
animation-duration: 1s;
|
232 |
+
-webkit-animation-timing-function: ease;
|
233 |
+
-moz-animation-timing-function: ease;
|
234 |
+
animation-timing-function: ease;
|
235 |
+
-webkit-animation-name: checkmark;
|
236 |
+
-moz-animation-name: checkmark;
|
237 |
+
animation-name: checkmark;
|
238 |
+
-webkit-transform: scaleX(-1) rotate(135deg);
|
239 |
+
-moz-transform: scaleX(-1) rotate(135deg);
|
240 |
+
-ms-transform: scaleX(-1) rotate(135deg);
|
241 |
+
-o-transform: scaleX(-1) rotate(135deg);
|
242 |
+
transform: scaleX(-1) rotate(135deg);
|
243 |
+
-webkit-animation-fill-mode: forwards;
|
244 |
+
-moz-animation-fill-mode: forwards;
|
245 |
+
animation-fill-mode: forwards;
|
246 |
+
z-index: 2;
|
247 |
+
}
|
248 |
+
#customize-control-customize_presets_settings input[type="radio"]:checked + label .loginpress_thumbnail_img:after{
|
249 |
+
visibility: visible;
|
250 |
+
}
|
251 |
+
/*#customize-control-customize_presets_settings input[type="radio"]:disabled + label .loginpress_thumbnail_img:before{
|
252 |
+
visibility: hidden;
|
253 |
+
}
|
254 |
+
#customize-control-customize_presets_settings input[type="radio"]:disabled + label .loginpress_thumbnail_img:after{
|
255 |
+
visibility: hidden;
|
256 |
+
}*/
|
257 |
+
#customize-control-customize_presets_settings img{
|
258 |
+
margin-bottom: 0;
|
259 |
+
}
|
260 |
+
#customize-control-customize_presets_settings input[type="radio"]:checked + label img{
|
261 |
+
opacity: 1;
|
262 |
+
}
|
263 |
+
.no-available{
|
264 |
+
top: 0;
|
265 |
+
left: 0;
|
266 |
+
background: rgba(204, 204, 204, 0.8);
|
267 |
+
content: '';
|
268 |
+
position: absolute;
|
269 |
+
bottom: 0;
|
270 |
+
right: 0;
|
271 |
+
z-index: 100;
|
272 |
+
/* padding-top: 20px; */
|
273 |
+
text-align: center;
|
274 |
+
font-weight: bold;
|
275 |
+
color: #000;
|
276 |
+
-webkit-transition: all 0.2s ease-in-out;
|
277 |
+
-moz-transition: all 0.2s ease-in-out;
|
278 |
+
-ms-transition: all 0.2s ease-in-out;
|
279 |
+
transition: all 0.2s ease-in-out;
|
280 |
+
opacity: 0;
|
281 |
+
visibility: hidden;
|
282 |
+
-webkit-transform: scale(.5);
|
283 |
+
-moz-transform: scale(.5);
|
284 |
+
-ms-transform: scale(.5);
|
285 |
+
transform: scale(.5);
|
286 |
+
text-decoration: none !important;
|
287 |
+
display: flex;
|
288 |
+
align-items: center;
|
289 |
+
}
|
290 |
+
#customize-control-customize_presets_settings .loginpress_thumbnail:hover input[type="radio"]:disabled ~ .no-available{
|
291 |
+
opacity: 1;
|
292 |
+
visibility: visible;
|
293 |
+
color: #000;
|
294 |
+
-webkit-transform: scale(1);
|
295 |
+
-moz-transform: scale(1);
|
296 |
+
-ms-transform: scale(1);
|
297 |
+
transform: scale(1);
|
298 |
+
}
|
299 |
+
#customize-control-customize_presets_settings .loginpress_thumbnail:hover{
|
300 |
+
border-color: #ccc;
|
301 |
+
}
|
302 |
|
303 |
+
@-webkit-keyframes checkmark {
|
304 |
+
0% {
|
305 |
+
height: 0;
|
306 |
+
width: 0;
|
307 |
+
opacity: 1;
|
308 |
+
}
|
309 |
+
20% {
|
310 |
+
height: 0;
|
311 |
+
width: 5px;
|
312 |
+
opacity: 1;
|
313 |
+
}
|
314 |
+
40% {
|
315 |
+
height: 10px;
|
316 |
+
width: 5px;
|
317 |
+
opacity: 1;
|
318 |
+
}
|
319 |
+
100% {
|
320 |
+
height: 10px;
|
321 |
+
width: 5px;
|
322 |
+
opacity: 1;
|
323 |
+
}
|
324 |
+
}
|
325 |
+
@-moz-keyframes checkmark {
|
326 |
+
0% {
|
327 |
+
height: 0;
|
328 |
+
width: 0;
|
329 |
+
opacity: 1;
|
330 |
+
}
|
331 |
+
20% {
|
332 |
+
height: 0;
|
333 |
+
width: 5px;
|
334 |
+
opacity: 1;
|
335 |
+
}
|
336 |
+
40% {
|
337 |
+
height: 10px;
|
338 |
+
width: 5px;
|
339 |
+
opacity: 1;
|
340 |
+
}
|
341 |
+
100% {
|
342 |
+
height: 10px;
|
343 |
+
width: 5px;
|
344 |
+
opacity: 1;
|
345 |
+
}
|
346 |
+
}
|
347 |
+
@keyframes checkmark {
|
348 |
+
0% {
|
349 |
+
height: 0;
|
350 |
+
width: 0;
|
351 |
+
opacity: 1;
|
352 |
+
}
|
353 |
+
20% {
|
354 |
+
height: 0;
|
355 |
+
width: 5px;
|
356 |
+
opacity: 1;
|
357 |
+
}
|
358 |
+
40% {
|
359 |
+
height: 10px;
|
360 |
+
width: 5px;
|
361 |
+
opacity: 1;
|
362 |
+
}
|
363 |
+
100% {
|
364 |
+
height: 10px;
|
365 |
+
width: 5px;
|
366 |
+
opacity: 1;
|
367 |
+
}
|
368 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
|
370 |
+
</style>
|
371 |
+
<?php
|
372 |
+
}
|
373 |
}
|
374 |
add_action( 'customize_controls_print_styles', 'loginpress_presets_control_css' );
|
375 |
?>
|
classes/control-promo.php
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
* Class for Promotion.
|
5 |
*
|
6 |
* @since 1.0.17
|
|
|
7 |
* @access public
|
8 |
*/
|
9 |
class LoginPress_Promo extends WP_Customize_Control {
|
@@ -91,63 +92,66 @@ class LoginPress_Promo extends WP_Customize_Control {
|
|
91 |
|
92 |
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
151 |
}
|
152 |
add_action( 'customize_controls_print_styles', 'loginpress_promo_control_css' );
|
153 |
?>
|
4 |
* Class for Promotion.
|
5 |
*
|
6 |
* @since 1.0.17
|
7 |
+
* @version 1.5.12
|
8 |
* @access public
|
9 |
*/
|
10 |
class LoginPress_Promo extends WP_Customize_Control {
|
92 |
|
93 |
|
94 |
}
|
95 |
+
|
96 |
+
if ( !function_exists( 'loginpress_promo_control_css' ) ) {
|
97 |
+
function loginpress_promo_control_css() {
|
98 |
+
?>
|
99 |
+
<style>
|
100 |
+
.loginpress_promo_thumbnail a{
|
101 |
+
display: inline-block;
|
102 |
+
position: relative;
|
103 |
+
border:5px solid transparent;
|
104 |
+
}
|
105 |
+
.loginpress_promo_thumbnail a .customizer-promo-overlay{
|
106 |
+
position: absolute;
|
107 |
+
top: 0;
|
108 |
+
left: 0;
|
109 |
+
width: 100%;
|
110 |
+
height: 100%;
|
111 |
+
background: rgba(204, 204, 204, 0.8);
|
112 |
+
content: '';
|
113 |
+
-webkit-transition: all 0.2s ease-in-out;
|
114 |
+
-moz-transition: all 0.2s ease-in-out;
|
115 |
+
-ms-transition: all 0.2s ease-in-out;
|
116 |
+
transition: all 0.2s ease-in-out;
|
117 |
+
opacity: 0;
|
118 |
+
visibility: hidden;
|
119 |
+
-webkit-transform: scale(.5);
|
120 |
+
-moz-transform: scale(.5);
|
121 |
+
-ms-transform: scale(.5);
|
122 |
+
transform: scale(.5);
|
123 |
+
}
|
124 |
+
.customizer-promo-text{
|
125 |
+
line-height:1.2;
|
126 |
+
position: absolute;
|
127 |
+
top: 50%;
|
128 |
+
left: 50%;
|
129 |
+
-webkit-transform:translate(-50%, -50%);
|
130 |
+
transform:translate(-50%, -50%);
|
131 |
+
width: 100%;
|
132 |
+
font-size: 25px;
|
133 |
+
color: #000;
|
134 |
+
z-index: 100;
|
135 |
+
text-align: center;
|
136 |
+
opacity: 0;
|
137 |
+
}
|
138 |
+
.loginpress_promo_thumbnail a:hover{
|
139 |
+
border-color: #ccc;
|
140 |
+
}
|
141 |
+
.loginpress_promo_thumbnail a:hover .customizer-promo-text{
|
142 |
+
opacity: 1;
|
143 |
+
}
|
144 |
+
.loginpress_promo_thumbnail a:hover .customizer-promo-overlay{
|
145 |
+
opacity: 1;
|
146 |
+
visibility: visible;
|
147 |
+
-webkit-transform: scale(1);
|
148 |
+
-moz-transform: scale(1);
|
149 |
+
-ms-transform: scale(1);
|
150 |
+
transform: scale(1);
|
151 |
+
}
|
152 |
+
</style>
|
153 |
+
<?php
|
154 |
+
}
|
155 |
}
|
156 |
add_action( 'customize_controls_print_styles', 'loginpress_promo_control_css' );
|
157 |
?>
|
include/loginpress-optin-form.php
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<style media="screen">
|
2 |
#wpwrap {
|
3 |
background-color: #fdfdfd
|
@@ -290,7 +300,7 @@ $website = get_site_url();
|
|
290 |
$default_login_press_redirect = 'loginpress-settings';
|
291 |
|
292 |
if ( isset( $_GET['redirect-page'] ) ) {
|
293 |
-
$default_login_press_redirect = sanitize_text_field( wp_unslash( $_GET['redirect-page'] ) );
|
294 |
}
|
295 |
|
296 |
echo '<form method="post" action="' . admin_url( 'admin.php?page=' . $default_login_press_redirect ) . '">';
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Structure for Optin Form.
|
5 |
+
*
|
6 |
+
* @since 1.0.9
|
7 |
+
* @version 1.5.12
|
8 |
+
* @access public
|
9 |
+
*/
|
10 |
+
?>
|
11 |
<style media="screen">
|
12 |
#wpwrap {
|
13 |
background-color: #fdfdfd
|
300 |
$default_login_press_redirect = 'loginpress-settings';
|
301 |
|
302 |
if ( isset( $_GET['redirect-page'] ) ) {
|
303 |
+
$default_login_press_redirect = esc_attr( sanitize_text_field( wp_unslash( $_GET['redirect-page'] ) ) );
|
304 |
}
|
305 |
|
306 |
echo '<form method="post" action="' . admin_url( 'admin.php?page=' . $default_login_press_redirect ) . '">';
|
loginpress.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/**
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login Screen.
|
4 |
* Plugin URI: https://loginpress.pro/?utm_source=loginpress-lite&utm_medium=plugin-inside&utm_campaign=pro-upgrade&utm_content=plugin_uri
|
5 |
-
* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com
|
6 |
-
* Version: 1.5.
|
7 |
* Author: WPBrigade
|
8 |
-
* Author URI: https://WPBrigade.com
|
9 |
* Text Domain: loginpress
|
10 |
* Domain Path: /languages
|
11 |
*
|
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public $version = '1.5.
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
2 |
/**
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login Screen.
|
4 |
* Plugin URI: https://loginpress.pro/?utm_source=loginpress-lite&utm_medium=plugin-inside&utm_campaign=pro-upgrade&utm_content=plugin_uri
|
5 |
+
* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/?utm_source=loginpress-lite">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
|
6 |
+
* Version: 1.5.12
|
7 |
* Author: WPBrigade
|
8 |
+
* Author URI: https://WPBrigade.com/?utm_source=loginpress-lite
|
9 |
* Text Domain: loginpress
|
10 |
* Domain Path: /languages
|
11 |
*
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.5.12';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.9
|
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com/?utm_source=loginpress-lite&utm_medium=author-url-link
|
6 |
Tags: wp-login, login, login customizer, custom login, wordpress login,
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -36,15 +36,15 @@ LoginPress plugin is built using The Customizer API which is getting popular for
|
|
36 |
We have a collection of great Free and Pro addons that makes LoginPress more powerful. Upgrade to Pro package and enjoy the show.
|
37 |
|
38 |
* [Login Logout Menu (FREE)](https://wordpress.org/plugins/login-logout-menu/)
|
39 |
-
* Social Login
|
40 |
-
* Login Widget
|
41 |
-
* Login Redirects
|
42 |
-
* Limit Login Attempts
|
43 |
-
* Hide Login
|
44 |
-
* Auto Login
|
45 |
|
46 |
|
47 |
-
**Features:**
|
48 |
|
49 |
* Logo: Can change the login logo {image, width, height, padding, URL and Title}.
|
50 |
|
@@ -124,6 +124,7 @@ If you like this plugin, then consider checking out our other amazing plugins:
|
|
124 |
* <a href="https://wordpress.org/plugins/related-posts-thumbnails/" rel="friend" title="Related Posts">WordPress Related Posts</a> - Best Related Posts Plugin
|
125 |
* <a href="https://simplesocialbuttons.com?utm_source=loginpress&utm_medium=readme&utm_campaign=pro-upgrade" rel="friend" title="Simple Social Buttons">Simple Social Buttons</a> - Simple Social Sharing WordPress Plugin
|
126 |
* [Under Construction, Coming Soon & Maintenance Mode](https://wpbrigade.com/recommend/maintenance-mode?utm_source=loginpress&utm_medium=readme&utm_campaign=pro-upgrade) - Plugin for Under construction & Coming soon page
|
|
|
127 |
|
128 |
|
129 |
== Notes ==
|
@@ -220,6 +221,11 @@ Please visit <a target="_blank" rel="friend" href="https://loginpress.pro?utm_so
|
|
220 |
|
221 |
== Changelog ==
|
222 |
|
|
|
|
|
|
|
|
|
|
|
223 |
= 1.5.11 – 2022-01-31 =
|
224 |
* New Feature: Introducing Language Switcher (Enable / Disable) settings on Login wp-login Page.
|
225 |
* Enhancement: Code refactoring.
|
@@ -636,5 +642,5 @@ Please visit <a target="_blank" rel="friend" href="https://loginpress.pro?utm_so
|
|
636 |
|
637 |
== Upgrade Notice ==
|
638 |
|
639 |
-
= 1.5.
|
640 |
* Important Release, upgrade immediately. Compatible with 5.9
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com/?utm_source=loginpress-lite&utm_medium=author-url-link
|
6 |
Tags: wp-login, login, login customizer, custom login, wordpress login,
|
7 |
+
Stable tag: 1.5.12
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
36 |
We have a collection of great Free and Pro addons that makes LoginPress more powerful. Upgrade to Pro package and enjoy the show.
|
37 |
|
38 |
* [Login Logout Menu (FREE)](https://wordpress.org/plugins/login-logout-menu/)
|
39 |
+
* [Social Login](https://loginpress.pro/add-ons/?utm_source=loginpress-lite)
|
40 |
+
* [Login Widget](https://loginpress.pro/add-ons/?utm_source=loginpress-lite)
|
41 |
+
* [Login Redirects](https://loginpress.pro/add-ons/?utm_source=loginpress-lite)
|
42 |
+
* [Limit Login Attempts](https://loginpress.pro/add-ons/?utm_source=loginpress-lite)
|
43 |
+
* [Hide Login](https://loginpress.pro/add-ons/?utm_source=loginpress-lite)
|
44 |
+
* [Auto Login](https://loginpress.pro/add-ons/?utm_source=loginpress-lite)
|
45 |
|
46 |
|
47 |
+
**LoginPress Features:**
|
48 |
|
49 |
* Logo: Can change the login logo {image, width, height, padding, URL and Title}.
|
50 |
|
124 |
* <a href="https://wordpress.org/plugins/related-posts-thumbnails/" rel="friend" title="Related Posts">WordPress Related Posts</a> - Best Related Posts Plugin
|
125 |
* <a href="https://simplesocialbuttons.com?utm_source=loginpress&utm_medium=readme&utm_campaign=pro-upgrade" rel="friend" title="Simple Social Buttons">Simple Social Buttons</a> - Simple Social Sharing WordPress Plugin
|
126 |
* [Under Construction, Coming Soon & Maintenance Mode](https://wpbrigade.com/recommend/maintenance-mode?utm_source=loginpress&utm_medium=readme&utm_campaign=pro-upgrade) - Plugin for Under construction & Coming soon page
|
127 |
+
* [Insert Scripts in Headers and Footers](https://wordpress.org/plugins/wp-headers-and-footers/)
|
128 |
|
129 |
|
130 |
== Notes ==
|
221 |
|
222 |
== Changelog ==
|
223 |
|
224 |
+
= 1.5.12 – 2022-02-02 =
|
225 |
+
* BugFix: Apply escaping at `redirect-page` attribute on the optin page.
|
226 |
+
* Bugfix: Apply check to restrict method name duplication. (Fix for WP-CLI)
|
227 |
+
* Compatibility: Compatible with WordPress 5.9.
|
228 |
+
|
229 |
= 1.5.11 – 2022-01-31 =
|
230 |
* New Feature: Introducing Language Switcher (Enable / Disable) settings on Login wp-login Page.
|
231 |
* Enhancement: Code refactoring.
|
642 |
|
643 |
== Upgrade Notice ==
|
644 |
|
645 |
+
= 1.5.12 =
|
646 |
* Important Release, upgrade immediately. Compatible with 5.9
|