Version Description
Download this release
Release Info
Developer | weblizar |
Plugin | Admin Custom Login |
Version | 3.2.9 |
Comparing to | |
See all releases |
Code changes from version 3.2.8 to 3.2.9
- admin-custom-login.php +2 -2
- css/custom.css +41 -1
- includes/dashboard/dashboard.php +5 -3
- includes/settings/page-settings.php +1 -1
- init.php +11 -5
- js/dashboard.js +12 -1
- js/inlinejs/pagesettings.js +1 -1
- readme.txt +6 -2
admin-custom-login.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Admin Custom Login
|
4 |
-
* Version: 3.2.
|
5 |
* Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
|
6 |
* Author: Weblizar
|
7 |
* Author URI: https://weblizar.com/plugins/
|
8 |
-
* Plugin URI: https://
|
9 |
* Text Domain: admin-custom-login
|
10 |
* Domain Path: /languages
|
11 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Admin Custom Login
|
4 |
+
* Version: 3.2.9
|
5 |
* Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
|
6 |
* Author: Weblizar
|
7 |
* Author URI: https://weblizar.com/plugins/
|
8 |
+
* Plugin URI: https://wordpress.org/plugins/admin-custom-login/
|
9 |
* Text Domain: admin-custom-login
|
10 |
* Domain Path: /languages
|
11 |
*/
|
css/custom.css
CHANGED
@@ -158,7 +158,7 @@ font-family: 'Nanum Gothic', sans-serif;
|
|
158 |
.bg-color img{
|
159 |
margin-right: auto;
|
160 |
}
|
161 |
-
.dialog-button1,.dialog-close-button11{
|
162 |
display:none;
|
163 |
}
|
164 |
.dialog{
|
@@ -1605,4 +1605,44 @@ a.view-demo {
|
|
1605 |
text-align: center;
|
1606 |
}
|
1607 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1608 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
.bg-color img{
|
159 |
margin-right: auto;
|
160 |
}
|
161 |
+
.dialog-button1,.dialog-close-button11,.dialog-button4,.dialog-button10{
|
162 |
display:none;
|
163 |
}
|
164 |
.dialog{
|
1605 |
text-align: center;
|
1606 |
}
|
1607 |
|
1608 |
+
#snackbar {
|
1609 |
+
visibility: hidden;
|
1610 |
+
min-width: 250px;
|
1611 |
+
margin-left: -125px;
|
1612 |
+
background-color: #333;
|
1613 |
+
color: #fff;
|
1614 |
+
text-align: center;
|
1615 |
+
border-radius: 2px;
|
1616 |
+
padding: 16px;
|
1617 |
+
position: fixed;
|
1618 |
+
z-index: 1;
|
1619 |
+
left: 50%;
|
1620 |
+
bottom: 30px;
|
1621 |
+
font-size: 17px;
|
1622 |
+
}
|
1623 |
+
|
1624 |
+
#snackbar.show {
|
1625 |
+
visibility: visible;
|
1626 |
+
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
1627 |
+
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
1628 |
+
}
|
1629 |
+
|
1630 |
+
@-webkit-keyframes fadein {
|
1631 |
+
from {bottom: 0; opacity: 0;}
|
1632 |
+
to {bottom: 30px; opacity: 1;}
|
1633 |
+
}
|
1634 |
+
|
1635 |
+
@keyframes fadein {
|
1636 |
+
from {bottom: 0; opacity: 0;}
|
1637 |
+
to {bottom: 30px; opacity: 1;}
|
1638 |
+
}
|
1639 |
|
1640 |
+
@-webkit-keyframes fadeout {
|
1641 |
+
from {bottom: 30px; opacity: 1;}
|
1642 |
+
to {bottom: 0; opacity: 0;}
|
1643 |
+
}
|
1644 |
+
|
1645 |
+
@keyframes fadeout {
|
1646 |
+
from {bottom: 30px; opacity: 1;}
|
1647 |
+
to {bottom: 0; opacity: 0;}
|
1648 |
+
}
|
includes/dashboard/dashboard.php
CHANGED
@@ -57,8 +57,10 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
57 |
<pre><span id="login_form_image" style="color:#ef4238"><?php echo wp_login_url(); ?></span></pre>
|
58 |
|
59 |
<a style="color: #555;" href="javascript:void(0);" onclick="window.open('<?php echo wp_login_url(); ?>')">
|
60 |
-
<button type="button" class="preview_btn_custom" id="preview_btn_custom"><?php esc_html_e('Preview', WEBLIZAR_ACL)?></button>
|
61 |
-
</a>
|
|
|
|
|
62 |
</td>
|
63 |
</tr>
|
64 |
</table>
|
@@ -145,4 +147,4 @@ if(isset($_POST['Action'])) {
|
|
145 |
}
|
146 |
}
|
147 |
}
|
148 |
-
?>
|
57 |
<pre><span id="login_form_image" style="color:#ef4238"><?php echo wp_login_url(); ?></span></pre>
|
58 |
|
59 |
<a style="color: #555;" href="javascript:void(0);" onclick="window.open('<?php echo wp_login_url(); ?>')">
|
60 |
+
<button type="button" class="preview_btn_custom btn btn-primary" id="preview_btn_custom"><?php esc_html_e('Preview', WEBLIZAR_ACL)?></button>
|
61 |
+
</a>
|
62 |
+
<button type="button" class="preview_btn_custom_copy btn btn-success" id="preview_btn_custom_copy" value="<?php echo wp_login_url(); ?>"><?php esc_html_e('Copy', WEBLIZAR_ACL)?></button>
|
63 |
+
<div id="snackbar"><?php esc_html_e('Copied', WEBLIZAR_ACL)?></div>
|
64 |
</td>
|
65 |
</tr>
|
66 |
</table>
|
147 |
}
|
148 |
}
|
149 |
}
|
150 |
+
?>
|
includes/settings/page-settings.php
CHANGED
@@ -155,7 +155,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
155 |
</div>
|
156 |
</div>
|
157 |
</div>
|
158 |
-
<button data-dialog10="somedialog10" class="dialog-button10"
|
159 |
<div id="somedialog10" class="dialog">
|
160 |
<div class="dialog__overlay"></div>
|
161 |
<div class="dialog__content">
|
155 |
</div>
|
156 |
</div>
|
157 |
</div>
|
158 |
+
<button data-dialog10="somedialog10" class="dialog-button10"><?php esc_html_e('Open Dialog', WEBLIZAR_ACL)?></button>
|
159 |
<div id="somedialog10" class="dialog">
|
160 |
<div class="dialog__overlay"></div>
|
161 |
<div class="dialog__content">
|
init.php
CHANGED
@@ -287,9 +287,11 @@ function acl_footer_func()
|
|
287 |
<?php }?>
|
288 |
|
289 |
<?php
|
290 |
-
$g_page
|
291 |
-
$site_key
|
292 |
-
|
|
|
|
|
293 |
?>
|
294 |
|
295 |
<?php if ($top_page['top_bg_type'] == "slider-background"){ ?>
|
@@ -598,9 +600,13 @@ function acl_export_settings()
|
|
598 |
$social_telegram_link = $Social_page['social_telegram_link'];
|
599 |
$social_whatsapp_link = $Social_page['social_whatsapp_link'];
|
600 |
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
601 |
-
$site_key = $g_page['site_key'];
|
|
|
|
|
|
|
602 |
$secret_key = $g_page['secret_key'];
|
603 |
-
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha']
|
|
|
604 |
if (isset($g_page['acl_gcaptcha_theme'])) {
|
605 |
$acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme'];
|
606 |
} else {
|
287 |
<?php }?>
|
288 |
|
289 |
<?php
|
290 |
+
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
291 |
+
$site_key = (array_key_exists("site_key",$g_page)) ? $g_page['site_key'] : '';
|
292 |
+
$secret_key = (array_key_exists("secret_key",$g_page)) ? $g_page['secret_key'] : '';
|
293 |
+
/*$site_key = $g_page['site_key'];*/
|
294 |
+
/*$secret_key = $g_page['secret_key'];*/
|
295 |
?>
|
296 |
|
297 |
<?php if ($top_page['top_bg_type'] == "slider-background"){ ?>
|
600 |
$social_telegram_link = $Social_page['social_telegram_link'];
|
601 |
$social_whatsapp_link = $Social_page['social_whatsapp_link'];
|
602 |
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
603 |
+
$site_key = (array_key_exists("site_key",$g_page)) ? $g_page['site_key'] : '';
|
604 |
+
$secret_key = (array_key_exists("secret_key",$g_page)) ? $g_page['secret_key'] : '';
|
605 |
+
$login_enable_gcaptcha = (array_key_exists("login_enable_gcaptcha",$g_page)) ? $g_page['login_enable_gcaptcha'] : 'light';
|
606 |
+
/*$site_key = $g_page['site_key'];
|
607 |
$secret_key = $g_page['secret_key'];
|
608 |
+
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];*/
|
609 |
+
|
610 |
if (isset($g_page['acl_gcaptcha_theme'])) {
|
611 |
$acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme'];
|
612 |
} else {
|
js/dashboard.js
CHANGED
@@ -130,4 +130,15 @@ function Custom_login_dashboard(Action, id) {
|
|
130 |
function Acl_show_login_form_Image() {
|
131 |
var img_src= document.getElementById("login_form_image").value;
|
132 |
jQuery("#top_form_img_prev").attr('src',img_src);
|
133 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
function Acl_show_login_form_Image() {
|
131 |
var img_src= document.getElementById("login_form_image").value;
|
132 |
jQuery("#top_form_img_prev").attr('src',img_src);
|
133 |
+
}
|
134 |
+
|
135 |
+
jQuery('document').ready(function(){
|
136 |
+
jQuery('#preview_btn_custom_copy').click(function(){
|
137 |
+
var copyText = jQuery('#preview_btn_custom_copy');
|
138 |
+
var clipval = jQuery('#preview_btn_custom_copy').val();
|
139 |
+
navigator.clipboard.writeText(clipval);
|
140 |
+
var x = document.getElementById("snackbar");
|
141 |
+
x.className = "show";
|
142 |
+
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
|
143 |
+
});
|
144 |
+
});
|
js/inlinejs/pagesettings.js
CHANGED
@@ -94,7 +94,7 @@ function Custom_login_logo(Action, id){
|
|
94 |
logo_url : logo_url,
|
95 |
logo_url_title : logo_url_title,
|
96 |
},
|
97 |
-
complete : function() {
|
98 |
success: function(data) {
|
99 |
// Save message box open
|
100 |
jQuery(".dialog-button4").click();
|
94 |
logo_url : logo_url,
|
95 |
logo_url_title : logo_url_title,
|
96 |
},
|
97 |
+
complete : function() { },
|
98 |
success: function(data) {
|
99 |
// Save message box open
|
100 |
jQuery(".dialog-button4").click();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.weblizar.com/
|
|
4 |
Tags: admin login page, custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 3.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -189,10 +189,14 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/admin-c
|
|
189 |
|
190 |
For more information, see [Weblizar](http://www.weblizar.com/)
|
191 |
|
|
|
|
|
|
|
|
|
|
|
192 |
3.2.8 = [25-July-2021]
|
193 |
* Tested: upto wordpress 5.8
|
194 |
* Code updated
|
195 |
-
* Tested: upto wordpress 5.8
|
196 |
|
197 |
3.2.7 = [14-July-2021]
|
198 |
* Minor changes
|
4 |
Tags: admin login page, custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 3.2.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
189 |
|
190 |
For more information, see [Weblizar](http://www.weblizar.com/)
|
191 |
|
192 |
+
3.2.9 = [04-September-2021]
|
193 |
+
* Add Copy button for copy admin login page url in dashboard setting
|
194 |
+
* Undefined variable bug fixed
|
195 |
+
* Tested with PHP 8.0.9
|
196 |
+
|
197 |
3.2.8 = [25-July-2021]
|
198 |
* Tested: upto wordpress 5.8
|
199 |
* Code updated
|
|
|
200 |
|
201 |
3.2.7 = [14-July-2021]
|
202 |
* Minor changes
|