PluginProbe
Loginizer / 2.1.2
Loginizer v2.1.2
2.1.2 2.1.1 2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 All 76 releases
← All changes | main/admin.php +50 -49 2.0.6 → 2.1.2 View file →
@@ -554,12 +554,17 @@
554 554 add_submenu_page('loginizer', __('Brute Force Settings', 'loginizer'), __('Brute Force', 'loginizer'), 'activate_plugins', 'loginizer_brute_force', 'loginizer_brute_force_settings');
555 555
556 556 if(defined('LOGINIZER_PREMIUM')){
557 557 // WAF Security Firewall
558 - $expiry_date = strtotime('2026-03-01');
559 - $tag_new = time() < $expiry_date ? '<span style="display: inline-block; margin-left: 10px; padding: 0px 5px; color: #fff; background-color: #d63638; border-radius: 2px;">'.__('New', 'loginizer').'</span>' : '';
558 + $new_badge = '<span style="display: inline-block; font-size:10px; margin-left: 3px; padding: 0px 5px; color: #fff; background-color: #d63638; border-radius: 5px;">'.__('New', 'loginizer').'</span>';
559 + $tag_new = time() < strtotime('2026-03-01') ? $new_badge : '';
560 560
561 561 add_submenu_page('loginizer', __('Country Block', 'loginizer'), __('Country Block', 'loginizer').' '.$tag_new, 'activate_plugins', 'loginizer_firewall', 'loginizer_firewall_settings');
562 +
563 + // Login Page Branding, the check keeps an older Pro from fataling on a newer Free
564 + if(defined('LOGINIZER_PRO_DIR') && file_exists(LOGINIZER_PRO_DIR . 'main/settings/loginbranding.php')){
565 + add_submenu_page('loginizer', __('Login Page Branding', 'loginizer'), __('Login Branding', 'loginizer').(time() < strtotime('2026-11-06') ? ' '.$new_badge : ''), 'activate_plugins', 'loginizer_login_branding', 'loginizer_login_branding_settings');
566 + }
562 567 }
563 568
564 569 // PasswordLess
565 570 add_submenu_page('loginizer', __($loginizer['prefix'].'PasswordLess Settings', 'loginizer'), __('PasswordLess', 'loginizer'), 'activate_plugins', 'loginizer_passwordless', 'loginizer_passwordless_settings');
@@ -616,68 +621,60 @@
616 621 function loginizer_promo(){
617 622
618 623 echo '
619 624 <style>
620 -.lz_button {
621 -background-color: #4CAF50; /* Green */
622 -border: none;
623 -color: white;
624 -padding: 8px 16px;
625 -text-align: center;
626 -text-decoration: none;
627 -display: inline-block;
628 -font-size: 16px;
629 -margin: 4px 2px;
630 --webkit-transition-duration: 0.4s; /* Safari */
631 -transition-duration: 0.4s;
632 -cursor: pointer;
633 -}
634 -
635 -.lz_button:focus{
636 -border: none;
637 -color: white;
638 -}
639 -
640 -.lz_button1 {
641 -color: white;
625 +.wp-core-ui .lz_button1 {
642 626 background-color: #4CAF50;
643 -border:3px solid #4CAF50;
627 +border-color: transparent;
628 +border-radius: 2px;
629 +color: #fff;
644 630 }
645 631
646 -.lz_button1:hover {
647 -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
648 -color: white;
649 -border:3px solid #4CAF50;
632 +.wp-core-ui .lz_button1:hover {
633 +background-color:#3b963f;
634 +border-color: transparent;
635 +border-radius: 2px;
636 +color: #fff;
650 637 }
651 638
652 -.lz_button2 {
653 -color: white;
639 +.wp-core-ui .lz_button2 {
654 640 background-color: #0085ba;
641 +border-color: transparent;
642 +border-radius: 2px;
643 +color: #fff;
655 644 }
656 645
657 -.lz_button2:hover {
658 -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
659 -color: white;
646 +.wp-core-ui .lz_button2:hover {
647 +background-color: #0175a3;
648 +border-color: transparent;
649 +border-radius: 2px;
650 +color: #fff;
660 651 }
661 652
662 -.lz_button3 {
663 -color: white;
653 +.wp-core-ui .lz_button3 {
664 654 background-color: #365899;
655 +border-color: transparent;
656 +border-radius: 2px;
657 +color: #fff;
665 658 }
666 659
667 -.lz_button3:hover {
668 -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
669 -color: white;
660 +.wp-core-ui .lz_button3:hover {
661 +border-color: transparent;
662 +background-color: #274785;
663 +color:#fff;
670 664 }
671 665
672 -.lz_button4 {
673 -color: white;
674 -background-color: rgb(66, 184, 221);
666 +.wp-core-ui .lz_button4 {
667 +background-color: #14171A;
668 +border-color: transparent;
669 +border-radius: 2px;
670 +color: #fff;
675 671 }
676 672
677 -.lz_button4:hover {
678 -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
679 -color: white;
673 +.wp-core-ui .lz_button4:hover {
674 +background-color: #24292E;
675 +color: #fff;
676 +border-color: transparent;
680 677 }
681 678
682 679 .loginizer_promo-close{
683 680 float:right;
@@ -714,12 +711,12 @@
714 711 </a>
715 712 <img src="'.LOGINIZER_URL.'/assets/images/loginizer-200.png" style="float:left; margin:10px 20px 10px 10px" width="100" />
716 713 <p style="font-size:16px">We are glad you like Loginizer and have been using it since the past few days. It is time to take the next step </p>
717 714 <p>
718 - <a class="lz_button lz_button1" target="_blank" href="https://loginizer.com/features">Upgrade to Pro</a>
719 - <a class="lz_button lz_button2" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/loginizer">Rate it 5★\'s</a>
720 - <a class="lz_button lz_button3" target="_blank" href="https://www.facebook.com/Loginizer-815504798591884/">Like Us on Facebook</a>
721 - <a class="lz_button lz_button4" target="_blank" href="https://twitter.com/home?status='.rawurlencode('I use @loginizer to secure my #WordPress site - https://loginizer.com').'">Tweet about Loginizer</a>
715 + <a class="button lz_button1" target="_blank" href="https://loginizer.com/features">'.esc_html__('Upgrade to Pro', 'loginizer').'</a>
716 + <a class="button lz_button2" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/loginizer">Rate it 5★\'s</a>
717 + <a class="button lz_button3" target="_blank" href="https://www.facebook.com/Loginizer-815504798591884/">'.esc_html__('Like Us on Facebook', 'loginizer').'</a>
718 + <a class="button lz_button4" target="_blank" href="https://x.com/intent/tweet?text='.rawurlencode('I use @loginizer to secure my #WordPress site - https://loginizer.com').'">'.esc_html__('Post on X about Loginizer', 'loginizer').'</a>
722 719 </p>
723 720 </div>';
724 721
725 722 }
@@ -774,8 +771,12 @@
774 771
775 772 function loginizer_firewall_settings(){
776 773 include_once LOGINIZER_PRO_DIR . 'main/settings/waf.php';
777 774 loginizer_pro_firewall();
775 +}
776 +
777 +function loginizer_login_branding_settings(){
778 + \LoginizerPro\Settings\LoginBranding::page();
778 779 }
779 780
780 781 // Hides the interim login poup after successful login.
781 782 function loginizer_social_interim_js(){