Version Description
- 2018-11-20 =
- Enhancement: hide banner.
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.1.15 |
Comparing to | |
See all releases |
Code changes from version 1.1.14 to 1.1.15
- classes/class-loginpress-notifications.php +52 -10
- css/style-review.css +36 -0
- loginpress.php +2 -2
- readme.txt +5 -2
classes/class-loginpress-notifications.php
CHANGED
@@ -8,6 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
* Handling all the Notification calls in LoginPress.
|
9 |
*
|
10 |
* @since 1.1.14
|
|
|
11 |
* @class LoginPress_Notification
|
12 |
*/
|
13 |
|
@@ -237,12 +238,10 @@ if ( ! class_exists( 'LoginPress_Notification' ) ) :
|
|
237 |
add_site_option( 'loginpress_friday_sale_active_time', $activation_time );
|
238 |
endif;
|
239 |
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
// endif;
|
245 |
-
|
246 |
}
|
247 |
|
248 |
/**
|
@@ -266,17 +265,60 @@ if ( ! class_exists( 'LoginPress_Notification' ) ) :
|
|
266 |
</div>
|
267 |
<div class="loginpress-alert-text black_friday">
|
268 |
<img src="<?php echo plugins_url( '../img/black-friday.png', __FILE__ ) ?>" alt="">
|
269 |
-
|
270 |
<div class="loginpress-alert-button-section black_friday_sale_btn">
|
271 |
-
<a href="https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=freepluginbanner-button&utm_campaign=blackfriday2018" class="loginpress-alert-button" target="_blank"><?php _e( '
|
272 |
-
</div>
|
273 |
</div>
|
274 |
</a>
|
275 |
-
|
276 |
</div>
|
277 |
<?php
|
278 |
}
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
/**
|
281 |
* Check and Dismiss addon message.
|
282 |
*
|
8 |
* Handling all the Notification calls in LoginPress.
|
9 |
*
|
10 |
* @since 1.1.14
|
11 |
+
* @version 1.1.15
|
12 |
* @class LoginPress_Notification
|
13 |
*/
|
14 |
|
238 |
add_site_option( 'loginpress_friday_sale_active_time', $activation_time );
|
239 |
endif;
|
240 |
|
241 |
+
if ( ! has_action( 'loginpress_pro_add_template' ) ) :
|
242 |
+
// add_action( 'admin_notices' , array( $this, 'loginpress_friday_sale_notice_text' ) );
|
243 |
+
add_action( 'admin_notices', array( $this, 'new_loginpress_friday_sale_notice_text' ) );
|
244 |
+
endif;
|
|
|
|
|
245 |
}
|
246 |
|
247 |
/**
|
265 |
</div>
|
266 |
<div class="loginpress-alert-text black_friday">
|
267 |
<img src="<?php echo plugins_url( '../img/black-friday.png', __FILE__ ) ?>" alt="">
|
268 |
+
|
269 |
<div class="loginpress-alert-button-section black_friday_sale_btn">
|
270 |
+
<a href="https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=freepluginbanner-button&utm_campaign=blackfriday2018" class="loginpress-alert-button" target="_blank"><?php _e( 'FLAT 51% OFF', 'loginpress' ) ?></a>
|
271 |
+
</div>
|
272 |
</div>
|
273 |
</a>
|
274 |
+
|
275 |
</div>
|
276 |
<?php
|
277 |
}
|
278 |
|
279 |
+
/**
|
280 |
+
* [new_loginpress_friday_sale_notice_text description]
|
281 |
+
* @return [type] [description]
|
282 |
+
* @since 1.1.15
|
283 |
+
*/
|
284 |
+
function new_loginpress_friday_sale_notice_text() {
|
285 |
+
|
286 |
+
$scheme = ( parse_url( $_SERVER['REQUEST_URI'], PHP_URL_QUERY ) ) ? '&' : '?';
|
287 |
+
$url = $_SERVER['REQUEST_URI'] . $scheme . 'loginpress_friday_sale_dismiss=yes';
|
288 |
+
$dismiss_url = wp_nonce_url( $url, 'loginpress-friday-sale-nonce' );
|
289 |
+
|
290 |
+
if ( current_user_can( 'install_plugins' ) && ! has_action( 'loginpress_pro_add_template' ) ) {
|
291 |
+
|
292 |
+
wp_enqueue_style( 'loginpress_review_stlye', plugins_url( '../css/style-review.css', __FILE__ ), array(), LOGINPRESS_VERSION );
|
293 |
+
|
294 |
+
$message = '<p> ';
|
295 |
+
$message .= sprintf (__( '<strong>Biggest Winter Deal</strong> in the WordPress Universe! Get <strong>LoginPress Pro and all Premium Add-ons</strong> with <strong>51%% OFF</strong> [Limited Availability].<a href="https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=freepluginbanner-button&utm_campaign=blackfriday2018" target="_blank" style="text-decoration: none;"><span class="dashicons dashicons-smiley" style="margin-left: 10px;"></span> Grab The Deal</a>
|
296 |
+
<a href="%1$s" style="text-decoration: none; margin-left: 10px;"><span class="dashicons dashicons-dismiss"></span> I\'m good with free version</a>' ), $dismiss_url );
|
297 |
+
$message .= "</p>";
|
298 |
+
$class = 'loginpress-notice-success';
|
299 |
+
$this->loginpress_admin_notice( $message, $class );
|
300 |
+
}
|
301 |
+
}
|
302 |
+
|
303 |
+
/**
|
304 |
+
* Add custom admin notice
|
305 |
+
* @param string $message Custom Message
|
306 |
+
* @param string $class loginpress-notice-success,loginpress-notice-danger
|
307 |
+
*
|
308 |
+
* @since 1.1.15
|
309 |
+
*/
|
310 |
+
function loginpress_admin_notice( $message, $class = 'loginpress-notice-success' ) {
|
311 |
+
echo '<div class="loginpress-notification '. $class .'">
|
312 |
+
<a class="" href="#" aria-label="Dismiss the welcome panel"></a>
|
313 |
+
<div class="loginpress-notice-logo">
|
314 |
+
<img src="' . plugins_url( '../img/thumbnail/gray-loginpress.png', __FILE__ ) . '" alt="">
|
315 |
+
</div>
|
316 |
+
<div class="loginpress-notice-discription">
|
317 |
+
<p>' . $message .'</p>
|
318 |
+
</div>
|
319 |
+
</div>';
|
320 |
+
}
|
321 |
+
|
322 |
/**
|
323 |
* Check and Dismiss addon message.
|
324 |
*
|
css/style-review.css
CHANGED
@@ -192,6 +192,38 @@ font-weight: bold;
|
|
192 |
flex: 1;
|
193 |
text-decoration: none;
|
194 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
@media screen and (max-width: 1300px) {
|
196 |
.loginpress-alert-thumbnail{
|
197 |
width: 200px;
|
@@ -237,4 +269,8 @@ font-weight: bold;
|
|
237 |
.loginpress-alert-notice .notice-dismiss:before{
|
238 |
color: #fff;
|
239 |
}
|
|
|
|
|
|
|
|
|
240 |
}
|
192 |
flex: 1;
|
193 |
text-decoration: none;
|
194 |
}
|
195 |
+
.loginpress-notice-logo{
|
196 |
+
width: 72px;
|
197 |
+
text-align: center;
|
198 |
+
position: relative;
|
199 |
+
margin: 10px;
|
200 |
+
}
|
201 |
+
.loginpress-notice-logo img{
|
202 |
+
width: 50px;
|
203 |
+
vertical-align: middle;
|
204 |
+
}
|
205 |
+
|
206 |
+
.loginpress-notice-discription{
|
207 |
+
overflow: hidden;
|
208 |
+
width: calc(100% - 50px);
|
209 |
+
}
|
210 |
+
.loginpress-notification.loginpress-notice-success{
|
211 |
+
border:1px solid #6ab074;
|
212 |
+
background: #e6f0e8;
|
213 |
+
margin: 36px 20px 0 0;
|
214 |
+
display: -webkit-box;
|
215 |
+
display: -ms-flexbox;
|
216 |
+
display: flex;
|
217 |
+
-webkit-box-align: center;
|
218 |
+
-ms-flex-align: center;
|
219 |
+
align-items: center;
|
220 |
+
}
|
221 |
+
.loginpress-notice-success .loginpress-notice-discription p{
|
222 |
+
color: #21573a;
|
223 |
+
}
|
224 |
+
.loginpress-notification.loginpress-notice-success .loginpress-notification-close:before{
|
225 |
+
color: #21573a;
|
226 |
+
}
|
227 |
@media screen and (max-width: 1300px) {
|
228 |
.loginpress-alert-thumbnail{
|
229 |
width: 200px;
|
269 |
.loginpress-alert-notice .notice-dismiss:before{
|
270 |
color: #fff;
|
271 |
}
|
272 |
+
.black_friday_sale_btn .loginpress-alert-button{
|
273 |
+
width: 310px;
|
274 |
+
text-align: center;
|
275 |
+
}
|
276 |
}
|
loginpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login
|
4 |
* Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
|
5 |
* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/
|
9 |
* Text Domain: loginpress
|
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public $version = '1.1.
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login
|
4 |
* Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
|
5 |
* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
|
6 |
+
* Version: 1.1.15
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/
|
9 |
* Text Domain: loginpress
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.1.15';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 4.9
|
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -205,6 +205,9 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
|
|
205 |
|
206 |
== Changelog ==
|
207 |
|
|
|
|
|
|
|
208 |
= 1.1.14 - 2018-11-20 =
|
209 |
* New Feature: Detect CapsLock ON.
|
210 |
* Bugfix: Jetpack captcha input field conflict.
|
@@ -429,5 +432,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
|
|
429 |
|
430 |
== Upgrade Notice ==
|
431 |
|
432 |
-
= 1.1.
|
433 |
* Important Security Release, upgrade immediately.
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
|
7 |
+
Stable tag: 1.1.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
205 |
|
206 |
== Changelog ==
|
207 |
|
208 |
+
= 1.1.15 - 2018-11-20 =
|
209 |
+
* Enhancement: hide banner.
|
210 |
+
|
211 |
= 1.1.14 - 2018-11-20 =
|
212 |
* New Feature: Detect CapsLock ON.
|
213 |
* Bugfix: Jetpack captcha input field conflict.
|
432 |
|
433 |
== Upgrade Notice ==
|
434 |
|
435 |
+
= 1.1.15 =
|
436 |
* Important Security Release, upgrade immediately.
|