Version Description
- Add Offer Image at dashboard
- Change main menu position
Download this release
Release Info
Developer | weblizar |
Plugin | Admin Custom Login |
Version | 2.6.9 |
Comparing to | |
See all releases |
Code changes from version 2.6.8 to 2.6.9
- admin-custom-login.php +18 -782
- admin/WL_ACL_FREE_Menu.php +19 -0
- admin/inc/admin_menu.php +22 -0
- admin/inc/css/admin_menu.css +235 -0
- admin/inc/images/logo.png +0 -0
- admin/index.php +4 -0
- css/acl-custom.css +46 -1
- images/aclp.jpg +0 -0
- includes/dashboard/dashboard.php +100 -28
- init.php +796 -0
- readme.txt +7 -2
admin-custom-login.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Admin Custom Login
|
4 |
-
* Version: 2.6.
|
5 |
* Description: Customize Your WordPress Login Screen Amazingly
|
6 |
* Author: Weblizar
|
7 |
* Author URI: https://weblizar.com/plugins/
|
@@ -13,56 +13,30 @@
|
|
13 |
// Exit if accessed directly
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
define("WEBLIZAR_NALF_PLUGIN_URL", plugin_dir_url(__FILE__));
|
|
|
16 |
define("WEBLIZAR_ACL", "admin-custom-login", true);
|
17 |
|
18 |
-
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
19 |
-
if(isset($g_page['login_enable_gcaptcha'])){
|
20 |
-
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
21 |
-
if($login_enable_gcaptcha=="yes"){
|
22 |
-
// Gcaptcha code
|
23 |
-
include('acl-gcaptcha.php');
|
24 |
-
}
|
25 |
-
}
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
* @return string
|
34 |
-
*/
|
35 |
-
function ACL_login_redirect( $redirect_to, $request, $user ) {
|
36 |
-
//is there a user to check?
|
37 |
-
if ( isset( $user->roles ) && is_array( $user->roles ) ) {
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
//check for admins
|
44 |
-
if ( in_array( 'administrator', $user->roles ) ) {
|
45 |
-
// redirect admin to the default place
|
46 |
-
return $redirect_to;
|
47 |
-
} else {
|
48 |
-
// redirect users to another place
|
49 |
-
if($login_redirect_user != "") {
|
50 |
-
return $login_redirect_user;
|
51 |
-
} else {
|
52 |
-
return $redirect_to;
|
53 |
-
}
|
54 |
}
|
55 |
-
|
56 |
-
return $redirect_to;
|
57 |
}
|
58 |
-
}
|
59 |
-
add_filter( 'login_redirect', 'ACL_login_redirect', 10, 3 );
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
load_plugin_textdomain(WEBLIZAR_ACL, FALSE, dirname( plugin_basename(__FILE__)).'/languages/' );
|
65 |
}
|
|
|
|
|
66 |
|
67 |
/**
|
68 |
* Admin Custom Login installation script
|
@@ -72,745 +46,7 @@ function ACL_WeblizarDoInstallation() {
|
|
72 |
require_once('installation.php');
|
73 |
}
|
74 |
|
75 |
-
/**
|
76 |
-
* Admin Custom Login menu
|
77 |
-
*/
|
78 |
-
require_once("login-form-screen.php");
|
79 |
-
add_action('admin_menu','acl_weblizar_admin_custom_login_menu');
|
80 |
-
function acl_weblizar_admin_custom_login_menu() {
|
81 |
-
if(current_user_can('administrator')){
|
82 |
-
//plugin menu page under the settings page
|
83 |
-
// $acl_menu = add_menu_page('Admin custom Login', 'Admin custom Login','administrator', 'admin_custom_login','acl_admin_custom_login_content');
|
84 |
-
$acl_menu = add_submenu_page( 'options-general.php','Admin Custom Login', 'Admin Custom Login','administrator', 'admin_custom_login','acl_admin_custom_login_content' );
|
85 |
-
add_action( 'admin_print_styles-' . $acl_menu, 'acl_admin_custom_login_css' );
|
86 |
-
}
|
87 |
-
}
|
88 |
-
|
89 |
-
function acl_admin_custom_login_css() {
|
90 |
-
// load CSS Files only With Admin Custom Login Menu Page
|
91 |
-
if(strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
|
92 |
-
wp_enqueue_style('dashboard');
|
93 |
-
wp_enqueue_style('wp-color-picker');
|
94 |
-
wp_enqueue_style('thickbox');
|
95 |
-
wp_enqueue_style('acl-bootstrap-css', WEBLIZAR_NALF_PLUGIN_URL.'css/bootstrap.min.css');
|
96 |
-
wp_enqueue_style('acl-isotop-css', WEBLIZAR_NALF_PLUGIN_URL.'css/isotope_css.css');
|
97 |
-
wp_enqueue_style('acl-smartech-css', WEBLIZAR_NALF_PLUGIN_URL.'css/smartech.css');
|
98 |
-
wp_enqueue_style('acl-jquery-ui-css', WEBLIZAR_NALF_PLUGIN_URL.'css/jquery-ui.css');
|
99 |
-
wp_enqueue_style('acl-font-awesome_min', WEBLIZAR_NALF_PLUGIN_URL.'font-awesome-latest/css/fontawesome-all.min.css');
|
100 |
-
wp_enqueue_style('acl-font-animate', WEBLIZAR_NALF_PLUGIN_URL.'css/animate.css');
|
101 |
-
wp_enqueue_style('acl-fontawesome-iconpicker', WEBLIZAR_NALF_PLUGIN_URL.'css/fontawesome-iconpicker.css');
|
102 |
-
wp_enqueue_style('acl-recom', WEBLIZAR_NALF_PLUGIN_URL.'css/recom.css');
|
103 |
-
|
104 |
-
wp_enqueue_style('acl-dialog', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog.css');
|
105 |
-
wp_enqueue_style('acl-dialog-box-style', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog-box-style.css');
|
106 |
-
wp_enqueue_style('acl-dialog-jamie', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog-jamie.css');
|
107 |
-
wp_enqueue_style('acl-custom-css', WEBLIZAR_NALF_PLUGIN_URL.'css/custom.css');
|
108 |
-
|
109 |
-
wp_enqueue_style('acl-googleapis-css_01', 'https://fonts.googleapis.com/css?family=Dosis:600,700,800');
|
110 |
-
wp_enqueue_style('acl-googleapis-css_02', 'https://fonts.googleapis.com/css?family=Lato:400,300,300italic,400italic,700,700italic,900');
|
111 |
-
wp_enqueue_style('acl-googleapis-css_03', 'https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic|Montserrat:400,700');
|
112 |
-
}
|
113 |
-
}
|
114 |
-
|
115 |
-
add_action( 'admin_print_scripts', 'acl_admin_custom_login_js' );
|
116 |
-
function acl_admin_custom_login_js() {
|
117 |
-
// load JS Files only With Admin Custom Login Menu Page
|
118 |
-
if(strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
|
119 |
-
wp_enqueue_script('theme-preview');
|
120 |
-
wp_enqueue_script('jquery');
|
121 |
-
wp_enqueue_script('acl-media-uploads',WEBLIZAR_NALF_PLUGIN_URL.'js/acl-media-upload-script.js',array('media-upload','thickbox','jquery'));
|
122 |
-
wp_enqueue_script('acl-color-picker-script', WEBLIZAR_NALF_PLUGIN_URL.'js/acl-color-picker-script.js', array( 'wp-color-picker' ), false, true );
|
123 |
-
wp_enqueue_script('acl-bootstrap-min-js',WEBLIZAR_NALF_PLUGIN_URL.'js/bootstrap.min.js');
|
124 |
-
wp_enqueue_script('acl-metisMenu',WEBLIZAR_NALF_PLUGIN_URL.'js/plugins/metisMenu/metisMenu.min.js');
|
125 |
-
wp_enqueue_script('aclsmartech',WEBLIZAR_NALF_PLUGIN_URL.'js/smartech.js',array('jquery'));
|
126 |
-
wp_enqueue_script('acl-nalf-sidebar-nav',WEBLIZAR_NALF_PLUGIN_URL.'js/nalf_sidebar_nav.js');
|
127 |
-
wp_enqueue_script('acl-media-upload-script-2-js',WEBLIZAR_NALF_PLUGIN_URL.'js/acl-media-upload-script-2.js');
|
128 |
-
wp_enqueue_script('acl-font-icon-picker-js',WEBLIZAR_NALF_PLUGIN_URL.'js/fontawesome-iconpicker.js');
|
129 |
-
|
130 |
-
wp_enqueue_script('acl-snap-svg-min',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/snap.svg-min.js');
|
131 |
-
wp_enqueue_script('acl-modernizr-custom',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/modernizr.custom.js');
|
132 |
-
wp_enqueue_script('acl-classie',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/classie.js');
|
133 |
-
wp_enqueue_script('acl-dialogFx',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/dialogFx.js');
|
134 |
-
}
|
135 |
-
}
|
136 |
-
|
137 |
-
function acl_advanced_login_form_plugin() {
|
138 |
-
wp_enqueue_script('jquery');
|
139 |
-
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
140 |
-
$top_page = unserialize(get_option('Admin_custome_login_top'));
|
141 |
-
if($top_page['top_bg_type'] == "slider-background" && $dashboard_page['dashboard_status'] == "enable"){
|
142 |
-
wp_enqueue_script('modernizr',WEBLIZAR_NALF_PLUGIN_URL.'js/modernizr.custom.86080.js');
|
143 |
-
wp_enqueue_style('demo', WEBLIZAR_NALF_PLUGIN_URL.'css/demo.css');
|
144 |
-
}
|
145 |
-
wp_enqueue_style('font-awesome_min', WEBLIZAR_NALF_PLUGIN_URL.'font-awesome-latest/css/fontawesome-all.min.css');
|
146 |
-
wp_enqueue_style('custom-css', WEBLIZAR_NALF_PLUGIN_URL.'css/acl-custom.css');
|
147 |
-
}
|
148 |
-
add_action('login_enqueue_scripts', 'acl_advanced_login_form_plugin');
|
149 |
-
|
150 |
-
function acl_footer_func() {
|
151 |
-
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
|
152 |
-
$user_input_icon = $text_and_color_page['user_input_icon'];
|
153 |
-
$password_input_icon = $text_and_color_page['password_input_icon'];
|
154 |
-
$enable_inputbox_icon = $text_and_color_page['enable_inputbox_icon'];
|
155 |
-
$heading_font_color = $text_and_color_page['heading_font_color'];
|
156 |
-
$heading_font_size = $text_and_color_page['heading_font_size'];
|
157 |
-
$input_font_size = $text_and_color_page['input_font_size'];
|
158 |
-
$top_page = unserialize(get_option('Admin_custome_login_top'));
|
159 |
-
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
|
160 |
-
|
161 |
-
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
162 |
-
if(isset($login_page['user_cust_lbl'])){ $user_cust_lbl= $login_page['user_cust_lbl']; } else { $user_cust_lbl = "Type Username or Email"; }
|
163 |
-
if(isset($login_page['pass_cust_lbl'])){ $pass_cust_lbl= $login_page['pass_cust_lbl']; } else { $pass_cust_lbl = "Type Password"; }
|
164 |
-
|
165 |
-
?>
|
166 |
-
<script>
|
167 |
-
jQuery(document).ready(function(){
|
168 |
-
jQuery('html body').attr('id', 'screen');
|
169 |
-
jQuery('#loginform label[for="user_login"]').attr('id', 'log_input_lable');
|
170 |
-
jQuery('#loginform label[for="user_pass"]').attr('id', 'pwd_input_lable');
|
171 |
-
|
172 |
-
<?php if($enable_inputbox_icon=='yes'){ ?>
|
173 |
-
if (jQuery('#log_input_lable').length) {
|
174 |
-
document.getElementById("log_input_lable").innerHTML="<?php _e('Username or Email', WEBLIZAR_ACL); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo $user_input_icon; ?>'></i></div> <input id='user_login' name='log' class='input' type='text' placeholder='<?php echo $user_cust_lbl; ?>'></div>";
|
175 |
-
document.getElementById("pwd_input_lable").innerHTML="<?php _e('Password', WEBLIZAR_ACL); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo $password_input_icon; ?>'></i></div> <input id='user_pass' name='pwd' class='input' type='password' placeholder='<?php echo $pass_cust_lbl; ?>'></div>";
|
176 |
-
jQuery('body.login div#login form .input, .login input[type="text"]').css('padding','5px 5px 5px 45px');
|
177 |
-
}
|
178 |
-
<?php } else { ?>
|
179 |
-
if (jQuery('#log_input_lable').length) {
|
180 |
-
jQuery('#loginform #user_login').attr('placeholder', '<?php echo $user_cust_lbl; ?>');
|
181 |
-
jQuery('#loginform #user_pass').attr('placeholder', '<?php echo $pass_cust_lbl; ?>');
|
182 |
-
jQuery('body.login div#login form .input, .login input[type="text"]').css('padding','5px 5px 5px 5px');
|
183 |
-
}
|
184 |
-
<?php }?>
|
185 |
-
|
186 |
-
<?php
|
187 |
-
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
188 |
-
$site_key = $g_page['site_key'];
|
189 |
-
$secret_key = $g_page['secret_key'];
|
190 |
-
?>
|
191 |
-
|
192 |
-
<?php if ($top_page['top_bg_type'] == "slider-background"){ ?>
|
193 |
-
jQuery('#screen').prepend('<ul class="cb-slideshow"> <li><span>Image 01</span></li> <li><span>Image 02</span></li> <li><span>Image 03</span></li> <li><span>Image 04</span></li> <li><span>Image 05</span></li> <li><span>Image 06</span></li></ul>')
|
194 |
-
<?php } ?>
|
195 |
-
|
196 |
-
//enable Social Icon In inner login form
|
197 |
-
<?php if($Social_page['enable_social_icon'] == "inner" || $Social_page['enable_social_icon'] == "both") {?>
|
198 |
-
jQuery( ".forgetmenot, #lostpasswordform" ).append('<div class="acl-social-inner" style="padding-top:16px"><div class="acl-social-text" style="color:<?php echo $heading_font_color; ?>; font-size:<?php echo $heading_font_size;?>px; "><?php _e('Find Us On Social Media',WEBLIZAR_ACL); ?></div><div style="padding-top:5px"><?php if($Social_page['social_twitter_link']!=''){ ?><a href="<?php echo $Social_page['social_twitter_link'];?>" class="icon-button twitter"><i class="fab fa-twitter"></i><span></span></a><?php } if($Social_page['social_facebook_link']!=''){ ?> <a href="<?php echo $Social_page['social_facebook_link'];?>" class="icon-button facebook"><i class="fab fa-facebook-f"></i><span></span></a> <?php } if($Social_page['social_google_plus_link']!=''){ ?> <a href="<?php echo $Social_page['social_google_plus_link'];?>" class="icon-button google-plus"><i class="fab fa-google-plus-g"></i><span></span></a><?php } if($Social_page['social_linkedin_link']!=''){ ?> <a href="<?php echo $Social_page['social_linkedin_link'];?>" class="icon-button linkedin"> <i class="fab fa-linkedin-in"> </i> <span></span> </a> <?php } if($Social_page['social_pinterest_link']!=''){ ?><a href="<?php echo $Social_page['social_pinterest_link'];?>" class="icon-button pinterest"><i class="fab fa-pinteres-p"></i><span></span></a><?php } if($Social_page['social_digg_link']!=''){ ?><a href="<?php echo $Social_page['social_digg_link'];?>" class="icon-button digg"><i class="fab fa-digg"></i><span></span></a><?php } if($Social_page['social_youtube_link']!=''){ ?><a href="<?php echo $Social_page['social_youtube_link'];?>" class="icon-button youtube"><i class="fab fa-youtube-square"></i><span></span></a><?php } if($Social_page['social_flickr_link']!=''){ ?><a href="<?php echo $Social_page['social_flickr_link'];?>" class="icon-button flickr"><i class="fab fa-flickr"></i><span></span></a><?php } if($Social_page['social_tumblr_link']!=''){ ?><a href="<?php echo $Social_page['social_tumblr_link'];?>" class="icon-button tumblr"><i class="fab fa-tumblr"></i><span></span></a><?php } if($Social_page['social_skype_link']!=''){ ?><a href="<?php echo $Social_page['social_skype_link'];?>" class="icon-button skype"><i class="fab fa-skype"></i><span></span></a><?php } if($Social_page['social_instagram_link']!=''){ ?><a href="<?php echo $Social_page['social_instagram_link'];?>" class="icon-button instagram"><i class="fab fa-instagram"></i><span></span></a><?php } if($Social_page['social_telegram_link']!=''){ ?><a href="<?php echo $Social_page['social_telegram_link'];?>" class="icon-button telegram"><i class="fab fa-telegram-plane"></i><span></span></a><?php }if($Social_page['social_whatsapp_link']!=''){ ?><a href="<?php echo $Social_page['social_whatsapp_link'];?>" class="icon-button whatsapp"><i class="fab fa-whatsapp"></i><span></span></a><?php } ?><div></div>' );
|
199 |
-
<?php } ?>
|
200 |
-
//enable Social Icon In outer login form
|
201 |
-
<?php if($Social_page['enable_social_icon'] == "outer" || $Social_page['enable_social_icon'] == "both") {?>
|
202 |
-
jQuery( "#backtoblog" ).append('<div class="divsocial"><?php if($Social_page['social_twitter_link']!=''){?> <a href="<?php echo $Social_page['social_twitter_link']; ?>" class="icon-button twitter"><i class="fab fa-twitter"></i><span></span></a><?php } if($Social_page['social_facebook_link']!=''){?><a href="<?php echo $Social_page['social_facebook_link']; ?>" class="icon-button facebook"><i class="fab fa-facebook-f"></i><span></span></a> <?php } if($Social_page['social_google_plus_link']!=''){?><a href="<?php echo $Social_page['social_google_plus_link']; ?>" class="icon-button google-plus"><i class="fab fa-google-plus-g"></i><span></span></a><?php } if($Social_page['social_linkedin_link']!=''){?><a href="<?php echo $Social_page['social_linkedin_link']; ?>" class="icon-button linkedin"><i class="fab fa-linkedin-in"></i><span></span></a><?php } if($Social_page['social_pinterest_link']!=''){?><a href="<?php echo $Social_page['social_pinterest_link']; ?>" class="icon-button pinterest"><i class="fab fa-pinterest-p"></i><span></span></a><?php } if($Social_page['social_digg_link']!=''){?> <a href="<?php echo $Social_page['social_digg_link']; ?>" class="icon-button digg"><i class="fab fa-digg"></i><span></span></a><?php } if($Social_page['social_youtube_link']!=''){?><a href="<?php echo $Social_page['social_youtube_link']; ?>" class="icon-button youtube"><i class="fab fa-youtube-square"></i><span></span></a><?php } if($Social_page['social_flickr_link']!=''){?><a href="<?php echo $Social_page['social_flickr_link']; ?>" class="icon-button flickr"><i class="fab fa-flickr"></i><span></span></a><?php } if($Social_page['social_tumblr_link']!=''){?><a href="<?php echo $Social_page['social_tumblr_link']; ?>" class="icon-button tumblr"><i class="fab fa-tumblr"></i><span></span></a><?php } if($Social_page['social_skype_link']!=''){?><a href="<?php echo $Social_page['social_skype_link']; ?>" class="icon-button skype"><i class="fab fa-skype"></i><span></span></a><?php } if($Social_page['social_instagram_link']!=''){?><a href="<?php echo $Social_page['social_instagram_link']; ?>" class="icon-button instagram"><i class="fab fa-instagram"></i><span></span></a><?php }if($Social_page['social_telegram_link']!=''){ ?><a href="<?php echo $Social_page['social_telegram_link'];?>" class="icon-button telegram"><i class="fab fa-telegram-plane"></i><span></span></a><?php }if($Social_page['social_whatsapp_link']!=''){ ?><a href="<?php echo $Social_page['social_whatsapp_link'];?>" class="icon-button whatsapp"><i class="fab fa-whatsapp"></i><span></span></a><?php } ?></div>');
|
203 |
-
<?php }
|
204 |
-
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
205 |
-
if(isset($login_page['tagline_msg'])){
|
206 |
-
$tagline_msg = $login_page['tagline_msg'];
|
207 |
-
$edit_tagline_msg = stripslashes($tagline_msg);
|
208 |
-
} else {
|
209 |
-
$edit_tagline_msg = "";
|
210 |
-
}
|
211 |
-
?>
|
212 |
-
jQuery( "#backtoblog" ).append('<div class="divfooter"><?php echo html_entity_decode($edit_tagline_msg);?></div>');
|
213 |
-
})
|
214 |
-
</script>
|
215 |
-
<?php
|
216 |
-
}
|
217 |
-
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
218 |
-
if($dashboard_page['dashboard_status'] == "enable") {
|
219 |
-
add_action('login_head', 'acl_footer_func');
|
220 |
-
}
|
221 |
-
|
222 |
-
function acl_admin_custom_login_content() {
|
223 |
-
require_once('includes/content.php');
|
224 |
-
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Process a settings export that generates a .json file of the shop settings
|
228 |
-
*/
|
229 |
-
function acl_export_settings() {
|
230 |
-
|
231 |
-
if( empty( $_POST['acl_action'] ) || 'export_settings' != $_POST['acl_action'] )
|
232 |
-
return;
|
233 |
-
|
234 |
-
if( ! wp_verify_nonce( $_POST['acl_export_nonce'], 'acl_export_nonce' ) )
|
235 |
-
return;
|
236 |
-
|
237 |
-
if( ! current_user_can( 'manage_options' ) )
|
238 |
-
return;
|
239 |
-
|
240 |
-
// Get value of Dashboard page
|
241 |
-
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
242 |
-
$dashboard_status = $dashboard_page['dashboard_status'];
|
243 |
|
244 |
-
|
245 |
-
$top_page = unserialize(get_option('Admin_custome_login_top'));
|
246 |
-
$top_bg_type = $top_page['top_bg_type'];
|
247 |
-
$top_color = $top_page['top_color'];
|
248 |
-
$top_image = $top_page['top_image'];
|
249 |
-
$top_cover = $top_page['top_cover'];
|
250 |
-
$top_repeat = $top_page['top_repeat'];
|
251 |
-
$top_position = $top_page['top_position'];
|
252 |
-
$top_attachment = $top_page['top_attachment'];
|
253 |
-
global $top_slideshow_no ;
|
254 |
-
$top_slideshow_no = $top_page['top_slideshow_no'];
|
255 |
-
$top_bg_slider_animation = $top_page['top_bg_slider_animation'];
|
256 |
|
257 |
-
// Get value of Login page
|
258 |
-
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
259 |
-
$login_form_left = $login_page['login_form_left'];
|
260 |
-
$login_form_top = $login_page['login_form_top'];
|
261 |
-
$login_bg_type = $login_page['login_bg_type'];
|
262 |
-
$login_bg_color = $login_page['login_bg_color'];
|
263 |
-
$login_bg_effect = $login_page['login_bg_effect'];
|
264 |
-
$login_bg_image = $login_page['login_bg_image'];
|
265 |
-
$login_form_opacity = $login_page['login_form_opacity'];
|
266 |
-
$login_form_width = $login_page['login_form_width'];
|
267 |
-
$login_form_radius = $login_page['login_form_radius'];
|
268 |
-
$login_border_style = $login_page['login_border_style'];
|
269 |
-
$login_border_thikness = $login_page['login_border_thikness'];
|
270 |
-
$login_border_color = $login_page['login_border_color'];
|
271 |
-
$login_bg_repeat = $login_page['login_bg_repeat'];
|
272 |
-
$login_bg_position = $login_page['login_bg_position'];
|
273 |
-
$login_enable_shadow = $login_page['login_enable_shadow'];
|
274 |
-
$login_shadow_color = $login_page['login_shadow_color'];
|
275 |
-
$log_form_above_msg = $login_page['log_form_above_msg'];
|
276 |
-
$login_msg_fontsize = $login_page['login_msg_fontsize'];
|
277 |
-
$login_msg_font_color = $login_page['login_msg_font_color'];
|
278 |
-
$tagline_msg = $login_page['tagline_msg'];
|
279 |
-
$user_cust_lbl = $login_page['user_cust_lbl'];
|
280 |
-
$pass_cust_lbl = $login_page['pass_cust_lbl'];
|
281 |
-
|
282 |
-
|
283 |
-
// Get value of Text and Color page
|
284 |
-
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
|
285 |
-
$heading_font_color = $text_and_color_page['heading_font_color'];
|
286 |
-
$input_font_color = $text_and_color_page['input_font_color'];
|
287 |
-
$link_color = $text_and_color_page['link_color'];
|
288 |
-
$button_color = $text_and_color_page['button_color'];
|
289 |
-
$heading_font_size = $text_and_color_page['heading_font_size'];
|
290 |
-
$input_font_size = $text_and_color_page['input_font_size'];
|
291 |
-
$link_size = $text_and_color_page['link_size'];
|
292 |
-
$button_font_size = $text_and_color_page['button_font_size'];
|
293 |
-
$enable_link_shadow = $text_and_color_page['enable_link_shadow'];
|
294 |
-
$link_shadow_color = $text_and_color_page['link_shadow_color'];
|
295 |
-
$heading_font_style = $text_and_color_page['heading_font_style'];
|
296 |
-
$input_font_style = $text_and_color_page['input_font_style'];
|
297 |
-
$link_font_style = $text_and_color_page['link_font_style'];
|
298 |
-
$button_font_style = $text_and_color_page['button_font_style'];
|
299 |
-
$enable_inputbox_icon = $text_and_color_page['enable_inputbox_icon'];
|
300 |
-
$user_input_icon = $text_and_color_page['user_input_icon'];
|
301 |
-
$password_input_icon = $text_and_color_page['password_input_icon'];
|
302 |
-
|
303 |
-
// Get value of Logo page
|
304 |
-
$logo_page = unserialize(get_option('Admin_custome_login_logo'));
|
305 |
-
$logo_image = $logo_page['logo_image'];
|
306 |
-
$logo_width = $logo_page['logo_width'];
|
307 |
-
$logo_height = $logo_page['logo_height'];
|
308 |
-
$logo_url = $logo_page['logo_url'];
|
309 |
-
$logo_url_title = $logo_page['logo_url_title'];
|
310 |
-
|
311 |
-
// Get value of Slidshow image
|
312 |
-
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
|
313 |
-
$Slidshow_image_1 = $Slidshow_image['Slidshow_image_1'];
|
314 |
-
$Slidshow_image_2 = $Slidshow_image['Slidshow_image_2'];
|
315 |
-
$Slidshow_image_3 = $Slidshow_image['Slidshow_image_3'];
|
316 |
-
$Slidshow_image_4 = $Slidshow_image['Slidshow_image_4'];
|
317 |
-
$Slidshow_image_5 = $Slidshow_image['Slidshow_image_5'];
|
318 |
-
$Slidshow_image_6 = $Slidshow_image['Slidshow_image_6'];
|
319 |
-
|
320 |
-
$Slidshow_image_label_1 = $Slidshow_image['Slidshow_image_label_1'];
|
321 |
-
$Slidshow_image_label_2 = $Slidshow_image['Slidshow_image_label_2'];
|
322 |
-
$Slidshow_image_label_3 = $Slidshow_image['Slidshow_image_label_3'];
|
323 |
-
$Slidshow_image_label_4 = $Slidshow_image['Slidshow_image_label_4'];
|
324 |
-
$Slidshow_image_label_5 = $Slidshow_image['Slidshow_image_label_5'];
|
325 |
-
$Slidshow_image_label_6 = $Slidshow_image['Slidshow_image_label_6'];
|
326 |
-
|
327 |
-
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
|
328 |
-
$enable_social_icon = $Social_page['enable_social_icon'];
|
329 |
-
$social_icon_size = $Social_page['social_icon_size'];
|
330 |
-
$social_icon_layout = $Social_page['social_icon_layout'];
|
331 |
-
$social_icon_color = $Social_page['social_icon_color'];
|
332 |
-
$social_icon_color_onhover = $Social_page['social_icon_color_onhover'];
|
333 |
-
$social_icon_bg = $Social_page['social_icon_bg'];
|
334 |
-
$social_icon_bg_onhover = $Social_page['social_icon_bg_onhover'];
|
335 |
-
$social_facebook_link = $Social_page['social_facebook_link'];
|
336 |
-
$social_twitter_link = $Social_page['social_twitter_link'];
|
337 |
-
$social_linkedin_link = $Social_page['social_linkedin_link'];
|
338 |
-
$social_google_plus_link = $Social_page['social_google_plus_link'];
|
339 |
-
$social_pinterest_link = $Social_page['social_pinterest_link'];
|
340 |
-
$social_digg_link = $Social_page['social_digg_link'];
|
341 |
-
$social_youtube_link = $Social_page['social_youtube_link'];
|
342 |
-
$social_flickr_link = $Social_page['social_flickr_link'];
|
343 |
-
$social_tumblr_link = $Social_page['social_tumblr_link'];
|
344 |
-
$social_skype_link = $Social_page['social_skype_link'];
|
345 |
-
$social_instagram_link = $Social_page['social_instagram_link'];
|
346 |
-
$social_telegram_link = $Social_page['social_telegram_link'];
|
347 |
-
$social_whatsapp_link = $Social_page['social_whatsapp_link'];
|
348 |
-
|
349 |
-
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
350 |
-
$site_key = $g_page['site_key'];
|
351 |
-
$secret_key = $g_page['secret_key'];
|
352 |
-
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
353 |
-
if(isset($g_page['acl_gcaptcha_theme'])){ $acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme']; }else { $acl_gcaptcha_theme = 'light'; }
|
354 |
-
|
355 |
-
|
356 |
-
$ACL_ALL_Settings= serialize(array(
|
357 |
-
'dashboard_status' => $dashboard_status,
|
358 |
-
'top_bg_type' => $top_bg_type,
|
359 |
-
'top_color' => $top_color,
|
360 |
-
'top_image' => $top_image,
|
361 |
-
'top_cover' => $top_cover,
|
362 |
-
'top_repeat' => $top_repeat,
|
363 |
-
'top_position' => $top_position,
|
364 |
-
'top_attachment' => $top_attachment,
|
365 |
-
'top_slideshow_no' => $top_slideshow_no,
|
366 |
-
'top_bg_slider_animation' => $top_bg_slider_animation,
|
367 |
-
|
368 |
-
'login_form_left' => $login_form_left,
|
369 |
-
'login_form_top' => $login_form_top,
|
370 |
-
'login_bg_type' => $login_bg_type,
|
371 |
-
'login_bg_color' => $login_bg_color,
|
372 |
-
'login_bg_effect' => $login_bg_effect,
|
373 |
-
'login_bg_image' => $login_bg_image,
|
374 |
-
'login_form_opacity' => $login_form_opacity,
|
375 |
-
'login_form_width' => $login_form_width,
|
376 |
-
'login_form_radius' => $login_form_radius,
|
377 |
-
'login_border_style' => $login_border_style,
|
378 |
-
'login_border_thikness' => $login_border_thikness,
|
379 |
-
'login_border_color' => $login_border_color,
|
380 |
-
'login_bg_repeat' => $login_bg_repeat,
|
381 |
-
'login_bg_position' => $login_bg_position,
|
382 |
-
'login_enable_shadow' => $login_enable_shadow,
|
383 |
-
'login_shadow_color' => $login_shadow_color,
|
384 |
-
'log_form_above_msg' => $log_form_above_msg,
|
385 |
-
'login_msg_fontsize' => $login_msg_fontsize,
|
386 |
-
'login_msg_font_color' => $login_msg_font_color,
|
387 |
-
'tagline_msg' => $tagline_msg,
|
388 |
-
'user_cust_lbl' => $user_cust_lbl,
|
389 |
-
'pass_cust_lbl' => $pass_cust_lbl,
|
390 |
-
|
391 |
-
'heading_font_color' => $heading_font_color,
|
392 |
-
'input_font_color' => $input_font_color,
|
393 |
-
'link_color' => $link_color,
|
394 |
-
'button_color' => $button_color,
|
395 |
-
'heading_font_size' => $heading_font_size,
|
396 |
-
'input_font_size' => $input_font_size,
|
397 |
-
'link_size' => $link_size,
|
398 |
-
'button_font_size' => $button_font_size,
|
399 |
-
'enable_link_shadow' => $enable_link_shadow,
|
400 |
-
'link_shadow_color' => $link_shadow_color,
|
401 |
-
'heading_font_style' => $heading_font_style,
|
402 |
-
'input_font_style' => $input_font_style,
|
403 |
-
'link_font_style' => $link_font_style,
|
404 |
-
'button_font_style' => $button_font_style,
|
405 |
-
'enable_inputbox_icon' => $enable_inputbox_icon,
|
406 |
-
'user_input_icon' => $user_input_icon,
|
407 |
-
'password_input_icon' => $password_input_icon,
|
408 |
-
|
409 |
-
'logo_image' => $logo_image,
|
410 |
-
'logo_width' => $logo_width,
|
411 |
-
'logo_height' => $logo_height,
|
412 |
-
'logo_url' => $logo_url,
|
413 |
-
'logo_url_title' => $logo_url_title,
|
414 |
-
|
415 |
-
'enable_social_icon' => $enable_social_icon,
|
416 |
-
'social_icon_size' => $social_icon_size ,
|
417 |
-
'social_icon_layout' => $social_icon_layout ,
|
418 |
-
'social_icon_color' => $social_icon_color ,
|
419 |
-
'social_icon_color_onhover' => $social_icon_color_onhover ,
|
420 |
-
'social_icon_bg' => $social_icon_bg,
|
421 |
-
'social_icon_bg_onhover' => $social_icon_bg_onhover ,
|
422 |
-
'social_facebook_link' => $social_facebook_link ,
|
423 |
-
'social_twitter_link' => $social_twitter_link,
|
424 |
-
'social_linkedin_link' => $social_linkedin_link,
|
425 |
-
'social_google_plus_link' => $social_google_plus_link,
|
426 |
-
'social_pinterest_link' => $social_pinterest_link,
|
427 |
-
'social_digg_link' => $social_digg_link,
|
428 |
-
'social_youtube_link' => $social_youtube_link,
|
429 |
-
'social_flickr_link' => $social_flickr_link,
|
430 |
-
'social_tumblr_link' => $social_tumblr_link,
|
431 |
-
'social_skype_link' => $social_skype_link,
|
432 |
-
'social_instagram_link' => $social_instagram_link,
|
433 |
-
'social_telegram_link' => $social_telegram_link,
|
434 |
-
'social_whatsapp_link' => $social_whatsapp_link,
|
435 |
-
|
436 |
-
'Slidshow_image_1' => $Slidshow_image_1,
|
437 |
-
'Slidshow_image_2' => $Slidshow_image_2,
|
438 |
-
'Slidshow_image_3' => $Slidshow_image_3,
|
439 |
-
'Slidshow_image_4' => $Slidshow_image_4,
|
440 |
-
'Slidshow_image_5' => $Slidshow_image_5,
|
441 |
-
'Slidshow_image_6' => $Slidshow_image_6,
|
442 |
-
'Slidshow_image_label_1' => $Slidshow_image_label_1,
|
443 |
-
'Slidshow_image_label_2' => $Slidshow_image_label_2,
|
444 |
-
'Slidshow_image_label_3' => $Slidshow_image_label_3,
|
445 |
-
'Slidshow_image_label_4' => $Slidshow_image_label_4,
|
446 |
-
'Slidshow_image_label_5' => $Slidshow_image_label_5,
|
447 |
-
'Slidshow_image_label_6' => $Slidshow_image_label_6,
|
448 |
-
|
449 |
-
'site_key' => $site_key,
|
450 |
-
'secret_key' => $secret_key,
|
451 |
-
'login_enable_gcaptcha' => $login_enable_gcaptcha,
|
452 |
-
'acl_gcaptcha_theme' => $acl_gcaptcha_theme
|
453 |
-
));
|
454 |
-
|
455 |
-
ignore_user_abort( true );
|
456 |
-
|
457 |
-
nocache_headers();
|
458 |
-
header( 'Content-Type: application/json; charset=utf-8' );
|
459 |
-
header( 'Content-Disposition: attachment; filename=acl-settings-export-' . date( 'm-d-Y' ) . '.json' );
|
460 |
-
header( "Expires: 0" );
|
461 |
-
|
462 |
-
echo json_encode( $ACL_ALL_Settings );
|
463 |
-
exit;
|
464 |
-
}
|
465 |
-
add_action( 'admin_init', 'acl_export_settings' );
|
466 |
-
|
467 |
-
/**
|
468 |
-
* Process a settings import from a json file
|
469 |
-
*/
|
470 |
-
function acl_import_settings() {
|
471 |
-
|
472 |
-
if( empty( $_POST['acl_action'] ) || 'import_settings' != $_POST['acl_action'] )
|
473 |
-
return;
|
474 |
-
|
475 |
-
if( ! wp_verify_nonce( $_POST['acl_import_nonce'], 'acl_import_nonce' ) )
|
476 |
-
return;
|
477 |
-
|
478 |
-
if( ! current_user_can( 'manage_options' ) )
|
479 |
-
return;
|
480 |
-
|
481 |
-
list($oteher_extension, $extension) = explode(".", $_FILES['import_file']['name']);
|
482 |
-
//$extension = end( explode( '.', $_FILES['import_file']['name'] ) );
|
483 |
-
|
484 |
-
if( $extension != 'json' ) {
|
485 |
-
wp_die( __( 'Please upload a valid .json file' ) );
|
486 |
-
}
|
487 |
-
|
488 |
-
$import_file = $_FILES['import_file']['tmp_name'];
|
489 |
-
|
490 |
-
if( empty( $import_file ) ) {
|
491 |
-
wp_die( __( 'Please upload a file to import' ) );
|
492 |
-
}
|
493 |
-
|
494 |
-
// Retrieve the settings from the file.
|
495 |
-
$settings = json_decode( file_get_contents( $import_file ) );
|
496 |
-
|
497 |
-
$ACL_Settings = unserialize($settings);
|
498 |
-
|
499 |
-
$dashboard_status = $ACL_Settings['dashboard_status'];
|
500 |
-
|
501 |
-
$top_bg_type = $ACL_Settings['top_bg_type'];
|
502 |
-
$top_color = $ACL_Settings['top_color'];
|
503 |
-
$top_image = $ACL_Settings['top_image'];
|
504 |
-
$top_cover = $ACL_Settings['top_cover'];
|
505 |
-
$top_repeat = $ACL_Settings['top_repeat'];
|
506 |
-
$top_position = $ACL_Settings['top_position'];
|
507 |
-
$top_attachment = $ACL_Settings['top_attachment'];
|
508 |
-
$top_slideshow_no = $ACL_Settings['top_slideshow_no'];
|
509 |
-
$top_bg_slider_animation = $ACL_Settings['top_bg_slider_animation'];
|
510 |
-
|
511 |
-
$login_form_left = $ACL_Settings['login_form_left'];
|
512 |
-
$login_form_top = $ACL_Settings['login_form_top'];
|
513 |
-
$login_bg_type = $ACL_Settings['login_bg_type'];
|
514 |
-
$login_bg_color = $ACL_Settings['login_bg_color'];
|
515 |
-
$login_bg_effect = $ACL_Settings['login_bg_effect'];
|
516 |
-
$login_bg_image = $ACL_Settings['login_bg_image'];
|
517 |
-
$login_form_opacity = $ACL_Settings['login_form_opacity'];
|
518 |
-
$login_form_width = $ACL_Settings['login_form_width'];
|
519 |
-
$login_form_radius = $ACL_Settings['login_form_radius'];
|
520 |
-
$login_border_style = $ACL_Settings['login_border_style'];
|
521 |
-
$login_border_thikness = $ACL_Settings['login_border_thikness'];
|
522 |
-
$login_border_color = $ACL_Settings['login_border_color'];
|
523 |
-
$login_bg_repeat = $ACL_Settings['login_bg_repeat'];
|
524 |
-
$login_bg_position = $ACL_Settings['login_bg_position'];
|
525 |
-
$login_enable_shadow = $ACL_Settings['login_enable_shadow'];
|
526 |
-
$login_shadow_color = $ACL_Settings['login_shadow_color'];
|
527 |
-
$log_form_above_msg = $ACL_Settings['log_form_above_msg'];
|
528 |
-
$login_msg_fontsize = $ACL_Settings['login_msg_fontsize'];
|
529 |
-
$login_msg_font_color = $ACL_Settings['login_msg_font_color'];
|
530 |
-
$tagline_msg = $ACL_Settings['tagline_msg'];
|
531 |
-
$user_cust_lbl = $ACL_Settings['user_cust_lbl'];
|
532 |
-
$pass_cust_lbl = $ACL_Settings['pass_cust_lbl'];
|
533 |
-
|
534 |
-
$heading_font_color = $ACL_Settings['heading_font_color'];
|
535 |
-
$input_font_color = $ACL_Settings['input_font_color'];
|
536 |
-
$link_color = $ACL_Settings['link_color'];
|
537 |
-
$button_color = $ACL_Settings['button_color'];
|
538 |
-
$heading_font_size = $ACL_Settings['heading_font_size'];
|
539 |
-
$input_font_size = $ACL_Settings['input_font_size'];
|
540 |
-
$link_size = $ACL_Settings['link_size'];
|
541 |
-
$button_font_size = $ACL_Settings['button_font_size'];
|
542 |
-
$enable_link_shadow = $ACL_Settings['enable_link_shadow'];
|
543 |
-
$link_shadow_color = $ACL_Settings['link_shadow_color'];
|
544 |
-
$heading_font_style = $ACL_Settings['heading_font_style'];
|
545 |
-
$input_font_style = $ACL_Settings['input_font_style'];
|
546 |
-
$link_font_style = $ACL_Settings['link_font_style'];
|
547 |
-
$button_font_style = $ACL_Settings['button_font_style'];
|
548 |
-
$enable_inputbox_icon = $ACL_Settings['enable_inputbox_icon'];
|
549 |
-
$user_input_icon = $ACL_Settings['user_input_icon'];
|
550 |
-
$password_input_icon = $ACL_Settings['password_input_icon'];
|
551 |
-
|
552 |
-
$logo_image = $ACL_Settings['logo_image'];
|
553 |
-
$logo_width = $ACL_Settings['logo_width'];
|
554 |
-
$logo_height = $ACL_Settings['logo_height'];
|
555 |
-
$logo_url = $ACL_Settings['logo_url'];
|
556 |
-
$logo_url_title = $ACL_Settings['logo_url_title'];
|
557 |
-
|
558 |
-
$Slidshow_image_1 = $ACL_Settings['Slidshow_image_1'];
|
559 |
-
$Slidshow_image_2 = $ACL_Settings['Slidshow_image_2'];
|
560 |
-
$Slidshow_image_3 = $ACL_Settings['Slidshow_image_3'];
|
561 |
-
$Slidshow_image_4 = $ACL_Settings['Slidshow_image_4'];
|
562 |
-
$Slidshow_image_5 = $ACL_Settings['Slidshow_image_5'];
|
563 |
-
$Slidshow_image_6 = $ACL_Settings['Slidshow_image_6'];
|
564 |
-
|
565 |
-
$Slidshow_image_label_1 = $ACL_Settings['Slidshow_image_label_1'];
|
566 |
-
$Slidshow_image_label_2 = $ACL_Settings['Slidshow_image_label_2'];
|
567 |
-
$Slidshow_image_label_3 = $ACL_Settings['Slidshow_image_label_3'];
|
568 |
-
$Slidshow_image_label_4 = $ACL_Settings['Slidshow_image_label_4'];
|
569 |
-
$Slidshow_image_label_5 = $ACL_Settings['Slidshow_image_label_5'];
|
570 |
-
$Slidshow_image_label_6 = $ACL_Settings['Slidshow_image_label_6'];
|
571 |
-
|
572 |
-
$enable_social_icon = $ACL_Settings['enable_social_icon'];
|
573 |
-
$social_icon_size = $ACL_Settings['social_icon_size'];
|
574 |
-
$social_icon_layout = $ACL_Settings['social_icon_layout'];
|
575 |
-
$social_icon_color = $ACL_Settings['social_icon_color'];
|
576 |
-
$social_icon_color_onhover= $ACL_Settings['social_icon_color_onhover'];
|
577 |
-
$social_icon_bg = $ACL_Settings['social_icon_bg'];
|
578 |
-
$social_icon_bg_onhover = $ACL_Settings['social_icon_bg_onhover'];
|
579 |
-
$social_facebook_link = $ACL_Settings['social_facebook_link'];
|
580 |
-
$social_twitter_link = $ACL_Settings['social_twitter_link'];
|
581 |
-
$social_linkedin_link = $ACL_Settings['social_linkedin_link'];
|
582 |
-
$social_google_plus_link= $ACL_Settings['social_google_plus_link'];
|
583 |
-
$social_pinterest_link = $ACL_Settings['social_pinterest_link'];
|
584 |
-
$social_digg_link = $ACL_Settings['social_digg_link'];
|
585 |
-
$social_youtube_link = $ACL_Settings['social_youtube_link'];
|
586 |
-
$social_flickr_link = $ACL_Settings['social_flickr_link'];
|
587 |
-
$social_tumblr_link = $ACL_Settings['social_tumblr_link'];
|
588 |
-
$social_vkontakte_link = $ACL_Settings['social_vkontakte_link'];
|
589 |
-
$social_skype_link = $ACL_Settings['social_skype_link'];
|
590 |
-
$social_instagram_link = $ACL_Settings['social_instagram_link'];
|
591 |
-
$social_telegram_link = $ACL_Settings['social_telegram_link'];
|
592 |
-
$social_whatsapp_link = $ACL_Settings['social_whatsapp_link'];
|
593 |
-
|
594 |
-
$site_key = $ACL_Settings['site_key'];
|
595 |
-
$secret_key = $ACL_Settings['secret_key'];
|
596 |
-
$login_enable_gcaptcha = $ACL_Settings['login_enable_gcaptcha'];
|
597 |
-
$acl_gcaptcha_theme = $ACL_Settings['acl_gcaptcha_theme'];
|
598 |
-
|
599 |
-
$upload_dir = wp_upload_dir();
|
600 |
-
$plugins_dir = plugins_url();
|
601 |
-
|
602 |
-
// Top Background Image
|
603 |
-
$data = $top_image;
|
604 |
-
if (strpos($data,'uploads') == true) {
|
605 |
-
list($oteher_path, $image_path) = explode("uploads", $data);
|
606 |
-
$top_image = $upload_dir['baseurl']. $image_path;
|
607 |
-
}else if (strpos($data,'plugins') == true){
|
608 |
-
list($oteher_path, $image_path) = explode("plugins", $data);
|
609 |
-
$top_image = $plugins_dir. $image_path;
|
610 |
-
}
|
611 |
-
|
612 |
-
// Login From Background Image
|
613 |
-
$data1 = $login_bg_image;
|
614 |
-
if (strpos($data1,'uploads') == true) {
|
615 |
-
list($oteher_path1, $image_path1) = explode("uploads", $data1);
|
616 |
-
$login_bg_image = $upload_dir['baseurl']. $image_path1;
|
617 |
-
}else if (strpos($data1,'plugins') == true){
|
618 |
-
list($oteher_path1, $image_path1) = explode("plugins", $data1);
|
619 |
-
$login_bg_image = $plugins_dir. $image_path1;
|
620 |
-
}
|
621 |
-
|
622 |
-
// Login From Background Image
|
623 |
-
$data2 = $logo_image;
|
624 |
-
if (strpos($data2,'uploads') == true) {
|
625 |
-
list($oteher_path2, $image_path2) = explode("uploads", $data2);
|
626 |
-
$logo_image = $upload_dir['baseurl']. $image_path2;
|
627 |
-
}else if (strpos($data2,'plugins') == true){
|
628 |
-
list($oteher_path2, $image_path2) = explode("plugins", $data2);
|
629 |
-
$logo_image = $plugins_dir. $image_path2;
|
630 |
-
}
|
631 |
-
|
632 |
-
// Slider Image 1
|
633 |
-
$Slidshow_image_url_1 = $Slidshow_image_1;
|
634 |
-
if (strpos($Slidshow_image_url_1,'uploads') == true) {
|
635 |
-
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_1);
|
636 |
-
$Slidshow_image_1 = $upload_dir['baseurl']. $image_path;
|
637 |
-
}else if (strpos($Slidshow_image_url_1,'plugins') == true){
|
638 |
-
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_1);
|
639 |
-
$Slidshow_image_1 = $plugins_dir. $image_path;
|
640 |
-
}
|
641 |
-
|
642 |
-
// Slider Image 2
|
643 |
-
$Slidshow_image_url_2 = $Slidshow_image_2;
|
644 |
-
if (strpos($Slidshow_image_url_2,'uploads') == true) {
|
645 |
-
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_2);
|
646 |
-
$Slidshow_image_2 = $upload_dir['baseurl']. $image_path;
|
647 |
-
}else if (strpos($Slidshow_image_url_2,'plugins') == true){
|
648 |
-
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_2);
|
649 |
-
$Slidshow_image_2 = $plugins_dir. $image_path;
|
650 |
-
}
|
651 |
-
|
652 |
-
// Slider Image 3
|
653 |
-
$Slidshow_image_url_3 = $Slidshow_image_3;
|
654 |
-
if (strpos($Slidshow_image_url_3,'uploads') == true) {
|
655 |
-
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_3);
|
656 |
-
$Slidshow_image_3 = $upload_dir['baseurl']. $image_path;
|
657 |
-
}else if (strpos($Slidshow_image_url_3,'plugins') == true){
|
658 |
-
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_3);
|
659 |
-
$Slidshow_image_3 = $plugins_dir. $image_path;
|
660 |
-
}
|
661 |
-
|
662 |
-
// Slider Image 4
|
663 |
-
$Slidshow_image_url_4 = $Slidshow_image_4;
|
664 |
-
if (strpos($Slidshow_image_url_4,'uploads') == true) {
|
665 |
-
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_4);
|
666 |
-
$Slidshow_image_4 = $upload_dir['baseurl']. $image_path;
|
667 |
-
}else if (strpos($Slidshow_image_url_4,'plugins') == true){
|
668 |
-
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_4);
|
669 |
-
$Slidshow_image_4 = $plugins_dir. $image_path;
|
670 |
-
}
|
671 |
-
|
672 |
-
// Slider Image 5
|
673 |
-
$Slidshow_image_url_5 = $Slidshow_image_5;
|
674 |
-
if (strpos($Slidshow_image_url_5,'uploads') == true) {
|
675 |
-
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_5);
|
676 |
-
$Slidshow_image_5 = $upload_dir['baseurl']. $image_path;
|
677 |
-
}else if (strpos($Slidshow_image_url_5,'plugins') == true){
|
678 |
-
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_5);
|
679 |
-
$Slidshow_image_5 = $plugins_dir. $image_path;
|
680 |
-
}
|
681 |
-
|
682 |
-
// Slider Image 6
|
683 |
-
$Slidshow_image_url_6 = $Slidshow_image_6;
|
684 |
-
if (strpos($Slidshow_image_url_6,'uploads') == true) {
|
685 |
-
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_6);
|
686 |
-
$Slidshow_image_6 = $upload_dir['baseurl']. $image_path;
|
687 |
-
}else if (strpos($Slidshow_image_url_6,'plugins') == true){
|
688 |
-
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_6);
|
689 |
-
$Slidshow_image_6 = $plugins_dir. $image_path;
|
690 |
-
}
|
691 |
-
|
692 |
-
$dashboard_page= serialize(array(
|
693 |
-
'dashboard_status' => $dashboard_status
|
694 |
-
));
|
695 |
-
update_option('Admin_custome_login_dashboard', $dashboard_page);
|
696 |
-
|
697 |
-
$top_page= serialize(array(
|
698 |
-
'top_bg_type' => $top_bg_type ,
|
699 |
-
'top_color' => $top_color ,
|
700 |
-
'top_image' => $top_image,
|
701 |
-
'top_cover' => $top_cover,
|
702 |
-
'top_repeat' => $top_repeat ,
|
703 |
-
'top_position' => $top_position ,
|
704 |
-
'top_attachment' => $top_attachment,
|
705 |
-
'top_slideshow_no' => $top_slideshow_no,
|
706 |
-
'top_bg_slider_animation' => $top_bg_slider_animation
|
707 |
-
));
|
708 |
-
update_option('Admin_custome_login_top', $top_page);
|
709 |
-
|
710 |
-
$login_page= serialize(array(
|
711 |
-
'login_form_left' => $login_form_left,
|
712 |
-
'login_form_top' => $login_form_top,
|
713 |
-
'login_bg_type' => $login_bg_type,
|
714 |
-
'login_bg_color' => $login_bg_color,
|
715 |
-
'login_bg_effect' => $login_bg_effect,
|
716 |
-
'login_bg_image' => $login_bg_image,
|
717 |
-
'login_form_opacity' => $login_form_opacity,
|
718 |
-
'login_form_width' => $login_form_width,
|
719 |
-
'login_form_radius' => $login_form_radius,
|
720 |
-
'login_border_style' => $login_border_style,
|
721 |
-
'login_border_thikness' => $login_border_thikness,
|
722 |
-
'login_border_color' => $login_border_color,
|
723 |
-
'login_bg_repeat' => $login_bg_repeat,
|
724 |
-
'login_bg_position' => $login_bg_position,
|
725 |
-
'login_enable_shadow' => $login_enable_shadow,
|
726 |
-
'login_shadow_color' => $login_shadow_color,
|
727 |
-
'log_form_above_msg' => $log_form_above_msg,
|
728 |
-
'login_msg_fontsize' => $login_msg_fontsize,
|
729 |
-
'login_msg_font_color' => $login_msg_font_color,
|
730 |
-
'tagline_msg' => $tagline_msg,
|
731 |
-
'user_cust_lbl' => $user_cust_lbl,
|
732 |
-
'pass_cust_lbl' => $pass_cust_lbl
|
733 |
-
));
|
734 |
-
update_option('Admin_custome_login_login', $login_page);
|
735 |
-
|
736 |
-
$text_and_color_page= serialize(array(
|
737 |
-
'heading_font_color' => $heading_font_color,
|
738 |
-
'input_font_color' => $input_font_color,
|
739 |
-
'link_color' => $link_color,
|
740 |
-
'button_color' => $button_color,
|
741 |
-
'heading_font_size' => $heading_font_size,
|
742 |
-
'input_font_size' => $input_font_size,
|
743 |
-
'link_size' => $link_size,
|
744 |
-
'button_font_size' => $button_font_size,
|
745 |
-
'enable_link_shadow' => $enable_link_shadow,
|
746 |
-
'link_shadow_color' => $link_shadow_color,
|
747 |
-
'heading_font_style' => $heading_font_style,
|
748 |
-
'input_font_style' => $input_font_style,
|
749 |
-
'link_font_style' => $link_font_style,
|
750 |
-
'button_font_style' => $button_font_style,
|
751 |
-
'enable_inputbox_icon' => $enable_inputbox_icon,
|
752 |
-
'user_input_icon' => $user_input_icon,
|
753 |
-
'password_input_icon' => $password_input_icon
|
754 |
-
));
|
755 |
-
update_option('Admin_custome_login_text', $text_and_color_page);
|
756 |
-
|
757 |
-
$logo_page= serialize(array(
|
758 |
-
'logo_image' => $logo_image,
|
759 |
-
'logo_width' => $logo_width,
|
760 |
-
'logo_height' => $logo_height,
|
761 |
-
'logo_url' => $logo_url,
|
762 |
-
'logo_url_title' => $logo_url_title
|
763 |
-
));
|
764 |
-
update_option('Admin_custome_login_logo', $logo_page);
|
765 |
-
|
766 |
-
$Social_page= serialize(array(
|
767 |
-
'enable_social_icon' => $enable_social_icon ,
|
768 |
-
'social_icon_size' => $social_icon_size ,
|
769 |
-
'social_icon_layout' => $social_icon_layout ,
|
770 |
-
'social_icon_color' => $social_icon_color ,
|
771 |
-
'social_icon_color_onhover'=> $social_icon_color_onhover ,
|
772 |
-
'social_icon_bg' => $social_icon_bg,
|
773 |
-
'social_icon_bg_onhover'=> $social_icon_bg_onhover ,
|
774 |
-
'social_facebook_link' => $social_facebook_link ,
|
775 |
-
'social_twitter_link' => $social_twitter_link,
|
776 |
-
'social_linkedin_link' => $social_linkedin_link ,
|
777 |
-
'social_google_plus_link'=> $social_google_plus_link ,
|
778 |
-
'social_pinterest_link' => $social_pinterest_link,
|
779 |
-
'social_digg_link' => $social_digg_link,
|
780 |
-
'social_youtube_link' => $social_youtube_link,
|
781 |
-
'social_flickr_link' => $social_flickr_link,
|
782 |
-
'social_tumblr_link' => $social_tumblr_link,
|
783 |
-
'social_vkontakte_link' => $social_vkontakte_link,
|
784 |
-
'social_skype_link' => $social_skype_link,
|
785 |
-
'social_instagram_link' => $social_instagram_link,
|
786 |
-
));
|
787 |
-
update_option('Admin_custome_login_Social', $Social_page);
|
788 |
-
|
789 |
-
$Slidshow_image= serialize(array(
|
790 |
-
'Slidshow_image_1' => $Slidshow_image_1 ,
|
791 |
-
'Slidshow_image_2' => $Slidshow_image_2 ,
|
792 |
-
'Slidshow_image_3' => $Slidshow_image_3 ,
|
793 |
-
'Slidshow_image_4' => $Slidshow_image_4 ,
|
794 |
-
'Slidshow_image_5' => $Slidshow_image_5 ,
|
795 |
-
'Slidshow_image_6' => $Slidshow_image_6 ,
|
796 |
-
'Slidshow_image_label_1'=> $Slidshow_image_label_1 ,
|
797 |
-
'Slidshow_image_label_2'=> $Slidshow_image_label_2 ,
|
798 |
-
'Slidshow_image_label_3'=> $Slidshow_image_label_3 ,
|
799 |
-
'Slidshow_image_label_4'=> $Slidshow_image_label_4 ,
|
800 |
-
'Slidshow_image_label_5'=> $Slidshow_image_label_5 ,
|
801 |
-
'Slidshow_image_label_6'=> $Slidshow_image_label_6
|
802 |
-
));
|
803 |
-
update_option('Admin_custome_login_Slidshow', $Slidshow_image);
|
804 |
-
|
805 |
-
$g_page= serialize(array(
|
806 |
-
'site_key' => $site_key,
|
807 |
-
'secret_key' => $secret_key,
|
808 |
-
'login_enable_gcaptcha' => $login_enable_gcaptcha,
|
809 |
-
'acl_gcaptcha_theme' => $acl_gcaptcha_theme
|
810 |
-
));
|
811 |
-
update_option('Admin_custome_login_gcaptcha', $g_page);
|
812 |
-
|
813 |
-
//wp_safe_redirect( admin_url( 'options-general.php?page=admin_custom_login' ) ); exit;
|
814 |
-
}
|
815 |
-
add_action( 'admin_init', 'acl_import_settings' );
|
816 |
?>
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Admin Custom Login
|
4 |
+
* Version: 2.6.9
|
5 |
* Description: Customize Your WordPress Login Screen Amazingly
|
6 |
* Author: Weblizar
|
7 |
* Author URI: https://weblizar.com/plugins/
|
13 |
// Exit if accessed directly
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
define("WEBLIZAR_NALF_PLUGIN_URL", plugin_dir_url(__FILE__));
|
16 |
+
define("WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE", plugin_dir_path(__FILE__));
|
17 |
define("WEBLIZAR_ACL", "admin-custom-login", true);
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
final class WL_ACL_FREE {
|
21 |
+
private static $instance = null;
|
22 |
+
|
23 |
+
private function __construct() {
|
24 |
+
$this->initialize_hooks();
|
25 |
+
}
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
public static function get_instance() {
|
28 |
+
if ( is_null( self::$instance ) ) {
|
29 |
+
self::$instance = new self();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
+
return self::$instance;
|
|
|
32 |
}
|
|
|
|
|
33 |
|
34 |
+
private function initialize_hooks() {
|
35 |
+
require_once( 'admin/index.php' );
|
36 |
+
}
|
|
|
37 |
}
|
38 |
+
WL_ACL_FREE::get_instance();
|
39 |
+
|
40 |
|
41 |
/**
|
42 |
* Admin Custom Login installation script
|
46 |
require_once('installation.php');
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
+
require_once( WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE . '/init.php' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
?>
|
admin/WL_ACL_FREE_Menu.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
defined( 'ABSPATH' ) or die();
|
3 |
+
|
4 |
+
class WL_ACL_FREE_Menu {
|
5 |
+
public static function create_menu() {
|
6 |
+
$wl_admin_menu = add_menu_page( __( 'Admin Custom Login', WEBLIZAR_ACL ), __( 'Admin Custom Login', WEBLIZAR_ACL ), 'manage_options', 'admin-custom-login-main-menu', array( 'WL_ACL_FREE_Menu', 'admin_menu' ), 'dashicons-calendar', 10 );
|
7 |
+
add_action( 'admin_print_styles-' . $wl_admin_menu, array( 'WL_ACL_FREE_Menu', 'admin_menu_assets' ) );
|
8 |
+
|
9 |
+
}
|
10 |
+
|
11 |
+
public static function admin_menu() {
|
12 |
+
require_once( 'inc/admin_menu.php' );
|
13 |
+
}
|
14 |
+
|
15 |
+
public static function admin_menu_assets() {
|
16 |
+
wp_enqueue_style( 'wp_acl_lc', WEBLIZAR_NALF_PLUGIN_URL . '/admin/inc/css/admin_menu.css' );
|
17 |
+
}
|
18 |
+
}
|
19 |
+
?>
|
admin/inc/admin_menu.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php defined( 'ABSPATH' ) or die(); ?>
|
2 |
+
<div class="wrap license-container">
|
3 |
+
<div class="panel panel-primary panel-default content-panel ">
|
4 |
+
<div class="panel-body">
|
5 |
+
<img src="<?php echo WEBLIZAR_NALF_PLUGIN_URL; ?>/images/aclp.jpg" class="img-responsive">
|
6 |
+
</div>
|
7 |
+
</div>
|
8 |
+
<div class="clearfix"></div>
|
9 |
+
<div class="column-6-right">
|
10 |
+
<div class="Configuration_btn">
|
11 |
+
<a class="conf_btn" href="<?php echo get_admin_url(); ?>admin.php?page=admin_custom_login"><?php _e( "Plugin Configuration Click Here", WEBLIZAR_ACL ); ?></a>
|
12 |
+
<a class="conf_btn" href="https://weblizar.com/plugins/admin-custom-login-pro/" target="_blank"><?php _e( "Buy Pro $25", WEBLIZAR_ACL ); ?></a>
|
13 |
+
<a class="conf_btn" href="http://demo.weblizar.com/admin-custom-login-pro/wp-login.php" target="_blank"><?php _e( "Admin Demo", WEBLIZAR_ACL ); ?></a>
|
14 |
+
</div>
|
15 |
+
</div>
|
16 |
+
</div>
|
17 |
+
<style type="text/css">
|
18 |
+
.Configuration_btn {
|
19 |
+
margin-top: 10px;
|
20 |
+
text-align: center;
|
21 |
+
}
|
22 |
+
</style>
|
admin/inc/css/admin_menu.css
ADDED
@@ -0,0 +1,235 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.license-container .Configuration_btn .conf_btn, .column-6 input.button.button-primary {
|
2 |
+
margin-top: 0%;
|
3 |
+
color: #fff;
|
4 |
+
background-color: #33a018;
|
5 |
+
font-size: 18px;
|
6 |
+
border-radius: 4px;
|
7 |
+
height: auto;
|
8 |
+
padding: 15px 20px;
|
9 |
+
box-shadow: 3px 5px 17px #c5c5c5;
|
10 |
+
margin-right: 8px !important;
|
11 |
+
float: left;
|
12 |
+
display: block;
|
13 |
+
text-decoration: none;
|
14 |
+
}
|
15 |
+
.column-6 input.button.button-primary {
|
16 |
+
margin-top: 15px;
|
17 |
+
padding: 10px;
|
18 |
+
border: 0;
|
19 |
+
text-shadow: none;
|
20 |
+
color: #fff;
|
21 |
+
}
|
22 |
+
.license-container .Configuration_btn .conf_btn:hover {
|
23 |
+
text-decoration:none;
|
24 |
+
}
|
25 |
+
.license-container {
|
26 |
+
box-sizing: border-box;
|
27 |
+
min-height: 120px;
|
28 |
+
padding: 0 15px;
|
29 |
+
margin-right: 80px;
|
30 |
+
}
|
31 |
+
.license-container h1 {
|
32 |
+
margin: 32px 0 16px 0;
|
33 |
+
padding: 0;
|
34 |
+
color: #fff;
|
35 |
+
line-height: 1.5em;
|
36 |
+
font-size: 32px;
|
37 |
+
font-weight: 400;
|
38 |
+
}
|
39 |
+
.license-container .column-9, .license-container .column-3, .license-container .column-6 {
|
40 |
+
float: left;
|
41 |
+
}
|
42 |
+
.license-container .column-9 {
|
43 |
+
width: 75%;
|
44 |
+
}
|
45 |
+
.license-container .column-6 {
|
46 |
+
width: 50%;
|
47 |
+
}
|
48 |
+
.license-container .column-3 {
|
49 |
+
width: 25%;
|
50 |
+
display: -webkit-box;
|
51 |
+
}
|
52 |
+
.license-container .clearfix {
|
53 |
+
clear: both;
|
54 |
+
}
|
55 |
+
.license-container .logo {
|
56 |
+
max-width: 150px;
|
57 |
+
max-height: 91px;
|
58 |
+
float: right;
|
59 |
+
}
|
60 |
+
.license-container .logo-section {
|
61 |
+
padding-top: 30px;
|
62 |
+
margin: 0 auto;
|
63 |
+
}
|
64 |
+
.license-container .license_info {
|
65 |
+
margin: 0 0 16px 0;
|
66 |
+
color: #fff;
|
67 |
+
font-size: 16px;
|
68 |
+
line-height: 1.5em;
|
69 |
+
}
|
70 |
+
.top_head {
|
71 |
+
background: rgb(41, 153, 231);
|
72 |
+
display: flex;
|
73 |
+
padding: 15px 40px;
|
74 |
+
box-shadow: 0px -4px 22px #bdbcbc;
|
75 |
+
padding-bottom: 40px;
|
76 |
+
}
|
77 |
+
.license_info a{
|
78 |
+
color:#000;
|
79 |
+
}
|
80 |
+
.license_info a:hover{
|
81 |
+
color:#fff;
|
82 |
+
}
|
83 |
+
|
84 |
+
|
85 |
+
input#license_key {
|
86 |
+
height: 40px;
|
87 |
+
border-radius: 0;
|
88 |
+
margin-top: 10px;
|
89 |
+
}
|
90 |
+
input.button.button-primary {
|
91 |
+
display: block;
|
92 |
+
height: 38px;
|
93 |
+
font-size: 18px;
|
94 |
+
}
|
95 |
+
.license-container label {
|
96 |
+
margin: 16px 0;
|
97 |
+
padding: 0;
|
98 |
+
font-size: 14px;
|
99 |
+
line-height: 1.5em;
|
100 |
+
}
|
101 |
+
.license-container .weblizar-links {
|
102 |
+
margin-left: 90px;
|
103 |
+
float: left;
|
104 |
+
}
|
105 |
+
.license-container{
|
106 |
+
max-width: 70%;
|
107 |
+
margin-top:40px;
|
108 |
+
}
|
109 |
+
.license-section-inner {
|
110 |
+
padding: 20px 30px;
|
111 |
+
}
|
112 |
+
.license-section-inner>p {
|
113 |
+
border-bottom: 1px solid #e8e8e8;
|
114 |
+
padding-bottom: 20px;
|
115 |
+
}
|
116 |
+
.license-container .license-section {
|
117 |
+
background-color: #fff;
|
118 |
+
/* padding: 20px; */
|
119 |
+
display: block;
|
120 |
+
float: left;
|
121 |
+
width: 100%;
|
122 |
+
/* display: flex; */
|
123 |
+
padding-bottom: 50px;
|
124 |
+
position: relative;
|
125 |
+
box-shadow: 3px -9px 29px #17161633;
|
126 |
+
min-height: 4;
|
127 |
+
border: 1px solid #e5e5e5;
|
128 |
+
border-bottom: 1px solid #2999e7;
|
129 |
+
/* border-radius: 40px 40px 1px 1px; */
|
130 |
+
margin-bottom: 12px;
|
131 |
+
}
|
132 |
+
.license-container .button-primary {
|
133 |
+
margin-top: 10px;
|
134 |
+
}
|
135 |
+
.license-section-inner>h2 {
|
136 |
+
font-size: 24px;
|
137 |
+
color: #656262;
|
138 |
+
line-height:30px;
|
139 |
+
}
|
140 |
+
.license-message {
|
141 |
+
margin: 16px 0;
|
142 |
+
padding: 0;
|
143 |
+
color: #4d4f50;
|
144 |
+
line-height: 1em;
|
145 |
+
font-weight: 600;
|
146 |
+
}
|
147 |
+
.license-message span > a {
|
148 |
+
font-size: 13px;
|
149 |
+
margin-left: 5px;
|
150 |
+
color: #333;
|
151 |
+
font-weight: 500;
|
152 |
+
text-decoration: none;
|
153 |
+
}
|
154 |
+
.license-container .weblizar-links h4 {
|
155 |
+
font-weight: 400px;
|
156 |
+
line-height: 1.4em;
|
157 |
+
}
|
158 |
+
.license-container ul > li {
|
159 |
+
margin-bottom: 15px;
|
160 |
+
}
|
161 |
+
.license-container ul > li > a:hover{
|
162 |
+
color:#2999e7;
|
163 |
+
}
|
164 |
+
.license-container ul > li > a {
|
165 |
+
font-size: 14px;
|
166 |
+
text-decoration: none;
|
167 |
+
color: #3e3c3c;
|
168 |
+
}
|
169 |
+
ul.weblizar-links h3 {
|
170 |
+
color: #525050;
|
171 |
+
|
172 |
+
}
|
173 |
+
.license-container .weblizar-links i {
|
174 |
+
color: #82878c;
|
175 |
+
margin-right: 5px;
|
176 |
+
}
|
177 |
+
input.button.button-primary {
|
178 |
+
margin-left: 2px;
|
179 |
+
border-radius: 0;
|
180 |
+
}
|
181 |
+
|
182 |
+
@media(max-width: 1366px) {
|
183 |
+
.license-container .weblizar-links {
|
184 |
+
margin-left: 50px;
|
185 |
+
}
|
186 |
+
.license-container {
|
187 |
+
max-width: 84%;
|
188 |
+
}
|
189 |
+
@media(max-width: 1024px) {
|
190 |
+
.license-container {
|
191 |
+
max-width: 100%;
|
192 |
+
}
|
193 |
+
.column-6-right {
|
194 |
+
display: block;
|
195 |
+
float: left;
|
196 |
+
width: 100%;
|
197 |
+
}
|
198 |
+
}
|
199 |
+
@media(max-width: 768px) {
|
200 |
+
.license-container {
|
201 |
+
margin-right: 0px;
|
202 |
+
}
|
203 |
+
.license-container .logo-section {
|
204 |
+
float: none;
|
205 |
+
}
|
206 |
+
.license-container .column-6-right {
|
207 |
+
margin-top: 40px;
|
208 |
+
}
|
209 |
+
.license-container {
|
210 |
+
max-width: 100%;
|
211 |
+
margin-top: 40px;
|
212 |
+
}
|
213 |
+
.top_head {
|
214 |
+
display: block;
|
215 |
+
}
|
216 |
+
.license-container .license-section {
|
217 |
+
min-height: 600px;
|
218 |
+
}
|
219 |
+
.license-container .column-9, .license-container .column-6, .license-container .column-3 {
|
220 |
+
float: none;
|
221 |
+
width: 100%;
|
222 |
+
}
|
223 |
+
.license-container input[type="text"] {
|
224 |
+
width: 100%;
|
225 |
+
}
|
226 |
+
.license-container .weblizar-links {
|
227 |
+
margin-left: 34px;
|
228 |
+
margin-top: 4px;
|
229 |
+
/* float: none; */
|
230 |
+
}
|
231 |
+
.license-container .logo {
|
232 |
+
float: none;
|
233 |
+
margin-bottom: 15px;
|
234 |
+
}
|
235 |
+
}
|
admin/inc/images/logo.png
ADDED
Binary file
|
admin/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
defined( 'ABSPATH' ) or die();
|
3 |
+
require_once WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE . '/admin/WL_ACL_FREE_Menu.php';
|
4 |
+
?>
|
css/acl-custom.css
CHANGED
@@ -43,4 +43,49 @@ body.login div#login h1 a,#login_error{
|
|
43 |
|
44 |
.divsocial a {
|
45 |
margin: 2px;
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
.divsocial a {
|
45 |
margin: 2px;
|
46 |
+
}
|
47 |
+
.panel.panel-primary.panel-default.content-panel .panel-body ul li {
|
48 |
+
width: 50%;
|
49 |
+
float: left;
|
50 |
+
}
|
51 |
+
|
52 |
+
.panel.panel-primary.panel-default.content-panel .panel-body {
|
53 |
+
padding: 30px;
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
.panel.panel-primary.panel-default.content-panel span {
|
58 |
+
background-color: #ececec;
|
59 |
+
padding: 10px;
|
60 |
+
border-radius: 4px;
|
61 |
+
line-height:26px;
|
62 |
+
}
|
63 |
+
.panel.panel-primary.panel-default.content-panel a {
|
64 |
+
margin-left: 86px;
|
65 |
+
display: inline-block;
|
66 |
+
}
|
67 |
+
.fro-title {
|
68 |
+
font-weight: normal;
|
69 |
+
font-size: 1.5em;
|
70 |
+
width: 30%;
|
71 |
+
color: #555;
|
72 |
+
padding: 10px 15px 15px 0;
|
73 |
+
font-family: sans-serif;
|
74 |
+
border:1px doted #000;
|
75 |
+
}
|
76 |
+
|
77 |
+
@media screen and (max-width:992px) {
|
78 |
+
.panel.panel-primary.panel-default.content-panel .panel-body ul li {
|
79 |
+
width: 100%;
|
80 |
+
float: none;
|
81 |
+
}
|
82 |
+
.panel.panel-primary.panel-default.content-panel span {
|
83 |
+
line-height: 45px;
|
84 |
+
margin-bottom:10px;
|
85 |
+
}
|
86 |
+
|
87 |
+
.buy_btn {
|
88 |
+
margin-left: 1px;
|
89 |
+
}
|
90 |
+
}
|
91 |
+
.pro-features-list{ margin-bottom:30px !important; }
|
images/aclp.jpg
ADDED
Binary file
|
includes/dashboard/dashboard.php
CHANGED
@@ -20,36 +20,88 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
20 |
</div>
|
21 |
</div>
|
22 |
</div>
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
<div class="panel panel-primary panel-default content-panel">
|
49 |
<div class="panel-body">
|
50 |
<table class="form-table">
|
51 |
<tr>
|
52 |
-
<th scope="row" ><?php _e('Admin Custom Login Status', WEBLIZAR_ACL)?></th>
|
53 |
<td></td>
|
54 |
</tr>
|
55 |
<tr class="radio-span" style="border-bottom:none;">
|
@@ -69,7 +121,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
69 |
<div class="panel-body">
|
70 |
<table class="form-table">
|
71 |
<tr>
|
72 |
-
<th scope="row" ><?php _e('View Login Page', WEBLIZAR_ACL)?></th>
|
73 |
<td></td>
|
74 |
</tr>
|
75 |
<tr class="radio-span" style="border-bottom:none;">
|
@@ -292,4 +344,24 @@ if(isset($_POST['Action'])) {
|
|
292 |
update_option('Admin_custome_login_dashboard', $dashboard_page);
|
293 |
}
|
294 |
}
|
295 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
</div>
|
21 |
</div>
|
22 |
</div>
|
23 |
+
|
24 |
+
<style>
|
25 |
+
.panel.panel-primary.panel-default.content-panel .panel-body ul li {
|
26 |
+
width: 50%;
|
27 |
+
float: left;
|
28 |
+
}
|
29 |
+
|
30 |
+
.panel.panel-primary.panel-default.content-panel .panel-body {
|
31 |
+
padding: 30px;
|
32 |
+
}
|
33 |
+
|
34 |
+
|
35 |
+
.panel.panel-primary.panel-default.content-panel span {
|
36 |
+
background-color: #ececec;
|
37 |
+
padding: 10px;
|
38 |
+
border-radius: 4px;
|
39 |
+
line-height:26px;
|
40 |
+
}
|
41 |
+
.panel.panel-primary.panel-default.content-panel a {
|
42 |
+
margin-left: 86px;
|
43 |
+
display: inline-block;
|
44 |
+
}
|
45 |
+
.fro-title {
|
46 |
+
font-weight: normal;
|
47 |
+
font-size: 1.5em;
|
48 |
+
width: 30%;
|
49 |
+
color: #555;
|
50 |
+
padding: 10px 15px 15px 0;
|
51 |
+
font-family: sans-serif;
|
52 |
+
border:1px doted #000;
|
53 |
+
}
|
54 |
+
|
55 |
+
@media screen and (max-width:992px) {
|
56 |
+
.panel.panel-primary.panel-default.content-panel .panel-body ul li {
|
57 |
+
width: 100%;
|
58 |
+
float: none;
|
59 |
+
}
|
60 |
+
.panel.panel-primary.panel-default.content-panel span {
|
61 |
+
line-height: 45px;
|
62 |
+
margin-bottom:10px;
|
63 |
+
}
|
64 |
+
|
65 |
+
.buy_btn {
|
66 |
+
margin-left: 1px;
|
67 |
+
}
|
68 |
+
}
|
69 |
+
.pro-features-list{ margin-bottom:30px !important; }
|
70 |
+
</style>
|
71 |
+
|
72 |
+
<div class="panel panel-primary panel-default content-panel" style="background-image">
|
73 |
+
<div class="panel-body">
|
74 |
+
<table class="form-table">
|
75 |
+
<tr>
|
76 |
+
<th scope="row" ><?php _e('Admin Custom Login Pro Features', WEBLIZAR_ACL)?></th>
|
77 |
+
<td></td>
|
78 |
+
</tr>
|
79 |
+
</table>
|
80 |
+
<div class="pro-features-list"></div>
|
81 |
+
<ul >
|
82 |
+
<li><i class="fa fa-check"></i> <?php _e('Max Login Retry', WEBLIZAR_ACL)?></li>
|
83 |
+
<li><i class="fa fa-check"></i> <?php _e('Login With Access Token', WEBLIZAR_ACL); ?></li>
|
84 |
+
<li><i class="fa fa-check"></i> <?php _e('Freeze Login Form On Brute Force Attack', WEBLIZAR_ACL); ?></li>
|
85 |
+
<li><i class="fa fa-check"></i> <?php _e('Unfreeze Login Form By Secret Key', WEBLIZAR_ACL); ?></li>
|
86 |
+
<li><i class="fa fa-check"></i> <?php _e('Social Media Login with Facebook, Twitter, Google+', WEBLIZAR_ACL); ?></li>
|
87 |
+
<li><i class="fa fa-check"></i> <?php _e('Login Restriction By User Roles', WEBLIZAR_ACL); ?></li>
|
88 |
+
<li><i class="fa fa-check"></i> <?php _e('Restrict Unauthorized IP Login Access', WEBLIZAR_ACL); ?></li>
|
89 |
+
<li><i class="fa fa-check"></i> <?php _e('Ban User(s) Login Access', WEBLIZAR_ACL); ?></li>
|
90 |
+
<li><i class="fa fa-check"></i> <?php _e('Max User Access Management', WEBLIZAR_ACL); ?></li>
|
91 |
+
</ul>
|
92 |
+
|
93 |
+
<div class="buy_btn col-md-12">
|
94 |
+
<span> <?php _e('Note : First 100 Users Get 50% OFF on Admin Custom Login Pro Plugin Use Coupon Code : APL50 ', WEBLIZAR_ACL); ?> </span>
|
95 |
+
<a class="conf_btn text-right" href="https://weblizar.com/plugins/admin-custom-login-pro/" target="_blank"><?php _e("Buy Now $25", WEBLIZAR_ACL ); ?></a>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
|
100 |
<div class="panel panel-primary panel-default content-panel">
|
101 |
<div class="panel-body">
|
102 |
<table class="form-table">
|
103 |
<tr>
|
104 |
+
<th scope="row" ><?php _e('Admin Custom Login Status', WEBLIZAR_ACL); ?></th>
|
105 |
<td></td>
|
106 |
</tr>
|
107 |
<tr class="radio-span" style="border-bottom:none;">
|
121 |
<div class="panel-body">
|
122 |
<table class="form-table">
|
123 |
<tr>
|
124 |
+
<th scope="row" ><?php _e('View Login Page', WEBLIZAR_ACL); ?></th>
|
125 |
<td></td>
|
126 |
</tr>
|
127 |
<tr class="radio-span" style="border-bottom:none;">
|
344 |
update_option('Admin_custome_login_dashboard', $dashboard_page);
|
345 |
}
|
346 |
}
|
347 |
+
?>
|
348 |
+
<style type="text/css">
|
349 |
+
.panel-primary a {
|
350 |
+
color: #fff;
|
351 |
+
padding: 10px;
|
352 |
+
border-radius: 4px;
|
353 |
+
background-color: #ef4238;
|
354 |
+
text-decoration: none;
|
355 |
+
}
|
356 |
+
|
357 |
+
.panel-primary a:hover {
|
358 |
+
color: #fff;
|
359 |
+
padding: 10px;
|
360 |
+
text-decoration: none;
|
361 |
+
}
|
362 |
+
|
363 |
+
.buy_btn{
|
364 |
+
margin-top: 25px;
|
365 |
+
margin-left:18px;
|
366 |
+
}
|
367 |
+
</style>
|
init.php
ADDED
@@ -0,0 +1,796 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
3 |
+
if(isset($g_page['login_enable_gcaptcha'])){
|
4 |
+
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
5 |
+
if($login_enable_gcaptcha=="yes"){
|
6 |
+
// Gcaptcha code
|
7 |
+
include('acl-gcaptcha.php');
|
8 |
+
}
|
9 |
+
}
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Redirect user after successful login.
|
13 |
+
*
|
14 |
+
* @param string $redirect_to URL to redirect to.
|
15 |
+
* @param string $request URL the user is coming from.
|
16 |
+
* @param object $user Logged user's data.
|
17 |
+
* @return string
|
18 |
+
*/
|
19 |
+
function ACL_login_redirect( $redirect_to, $request, $user ) {
|
20 |
+
//is there a user to check?
|
21 |
+
if ( isset( $user->roles ) && is_array( $user->roles ) ) {
|
22 |
+
|
23 |
+
// get and load custom redirect option after user login
|
24 |
+
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
25 |
+
$login_redirect_user = $login_page['login_redirect_user'];
|
26 |
+
|
27 |
+
//check for admins
|
28 |
+
if ( in_array( 'administrator', $user->roles ) ) {
|
29 |
+
// redirect admin to the default place
|
30 |
+
return $redirect_to;
|
31 |
+
} else {
|
32 |
+
// redirect users to another place
|
33 |
+
if($login_redirect_user != "") {
|
34 |
+
return $login_redirect_user;
|
35 |
+
} else {
|
36 |
+
return $redirect_to;
|
37 |
+
}
|
38 |
+
}
|
39 |
+
} else {
|
40 |
+
return $redirect_to;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
add_filter( 'login_redirect', 'ACL_login_redirect', 10, 3 );
|
44 |
+
|
45 |
+
// load plugin translation
|
46 |
+
add_action('plugins_loaded', 'ACL_GetReadyTranslation');
|
47 |
+
function ACL_GetReadyTranslation() {
|
48 |
+
load_plugin_textdomain(WEBLIZAR_ACL, FALSE, dirname( plugin_basename(__FILE__)).'/languages/' );
|
49 |
+
}
|
50 |
+
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Admin Custom Login menu
|
54 |
+
*/
|
55 |
+
require_once("login-form-screen.php");
|
56 |
+
add_action('admin_menu','acl_weblizar_admin_custom_login_menu');
|
57 |
+
function acl_weblizar_admin_custom_login_menu() {
|
58 |
+
if(current_user_can('administrator')){
|
59 |
+
//plugin menu page under the settings page
|
60 |
+
// $acl_menu = add_menu_page('Admin custom Login', 'Admin custom Login','administrator', 'admin_custom_login','acl_admin_custom_login_content');
|
61 |
+
//$acl_menu = add_submenu_page( 'options-general.php','Admin Custom Login', 'Admin Custom Login','administrator', 'admin_custom_login','acl_admin_custom_login_content' );
|
62 |
+
$acl_menu = add_submenu_page( 'admin-custom-login-main-menu',__( 'Settings', WEBLIZAR_ACL ), __( 'Settings', WEBLIZAR_ACL ),'administrator', 'admin_custom_login','acl_admin_custom_login_content' );
|
63 |
+
add_action( 'admin_print_styles-' . $acl_menu, 'acl_admin_custom_login_css' );
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
add_action( 'admin_menu', array( 'WL_ACL_FREE_Menu', 'create_menu' ), 1 );
|
68 |
+
|
69 |
+
function acl_admin_custom_login_css() {
|
70 |
+
// load CSS Files only With Admin Custom Login Menu Page
|
71 |
+
if(strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
|
72 |
+
wp_enqueue_style('dashboard');
|
73 |
+
wp_enqueue_style('wp-color-picker');
|
74 |
+
wp_enqueue_style('thickbox');
|
75 |
+
wp_enqueue_style('acl-bootstrap-css', WEBLIZAR_NALF_PLUGIN_URL.'css/bootstrap.min.css');
|
76 |
+
wp_enqueue_style('acl-isotop-css', WEBLIZAR_NALF_PLUGIN_URL.'css/isotope_css.css');
|
77 |
+
wp_enqueue_style('acl-smartech-css', WEBLIZAR_NALF_PLUGIN_URL.'css/smartech.css');
|
78 |
+
wp_enqueue_style('acl-jquery-ui-css', WEBLIZAR_NALF_PLUGIN_URL.'css/jquery-ui.css');
|
79 |
+
wp_enqueue_style('acl-font-awesome_min', WEBLIZAR_NALF_PLUGIN_URL.'font-awesome-latest/css/fontawesome-all.min.css');
|
80 |
+
wp_enqueue_style('acl-font-animate', WEBLIZAR_NALF_PLUGIN_URL.'css/animate.css');
|
81 |
+
wp_enqueue_style('acl-fontawesome-iconpicker', WEBLIZAR_NALF_PLUGIN_URL.'css/fontawesome-iconpicker.css');
|
82 |
+
wp_enqueue_style('acl-recom', WEBLIZAR_NALF_PLUGIN_URL.'css/recom.css');
|
83 |
+
|
84 |
+
wp_enqueue_style('acl-dialog', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog.css');
|
85 |
+
wp_enqueue_style('acl-dialog-box-style', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog-box-style.css');
|
86 |
+
wp_enqueue_style('acl-dialog-jamie', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog-jamie.css');
|
87 |
+
wp_enqueue_style('acl-custom-css', WEBLIZAR_NALF_PLUGIN_URL.'css/custom.css');
|
88 |
+
|
89 |
+
wp_enqueue_style('acl-googleapis-css_01', 'https://fonts.googleapis.com/css?family=Dosis:600,700,800');
|
90 |
+
wp_enqueue_style('acl-googleapis-css_02', 'https://fonts.googleapis.com/css?family=Lato:400,300,300italic,400italic,700,700italic,900');
|
91 |
+
wp_enqueue_style('acl-googleapis-css_03', 'https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic|Montserrat:400,700');
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
add_action( 'admin_print_scripts', 'acl_admin_custom_login_js' );
|
96 |
+
function acl_admin_custom_login_js() {
|
97 |
+
// load JS Files only With Admin Custom Login Menu Page
|
98 |
+
if(strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
|
99 |
+
wp_enqueue_script('theme-preview');
|
100 |
+
wp_enqueue_script('jquery');
|
101 |
+
wp_enqueue_script('acl-media-uploads',WEBLIZAR_NALF_PLUGIN_URL.'js/acl-media-upload-script.js',array('media-upload','thickbox','jquery'));
|
102 |
+
wp_enqueue_script('acl-color-picker-script', WEBLIZAR_NALF_PLUGIN_URL.'js/acl-color-picker-script.js', array( 'wp-color-picker' ), false, true );
|
103 |
+
wp_enqueue_script('acl-bootstrap-min-js',WEBLIZAR_NALF_PLUGIN_URL.'js/bootstrap.min.js');
|
104 |
+
wp_enqueue_script('acl-metisMenu',WEBLIZAR_NALF_PLUGIN_URL.'js/plugins/metisMenu/metisMenu.min.js');
|
105 |
+
wp_enqueue_script('aclsmartech',WEBLIZAR_NALF_PLUGIN_URL.'js/smartech.js',array('jquery'));
|
106 |
+
wp_enqueue_script('acl-nalf-sidebar-nav',WEBLIZAR_NALF_PLUGIN_URL.'js/nalf_sidebar_nav.js');
|
107 |
+
wp_enqueue_script('acl-media-upload-script-2-js',WEBLIZAR_NALF_PLUGIN_URL.'js/acl-media-upload-script-2.js');
|
108 |
+
wp_enqueue_script('acl-font-icon-picker-js',WEBLIZAR_NALF_PLUGIN_URL.'js/fontawesome-iconpicker.js');
|
109 |
+
|
110 |
+
wp_enqueue_script('acl-snap-svg-min',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/snap.svg-min.js');
|
111 |
+
wp_enqueue_script('acl-modernizr-custom',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/modernizr.custom.js');
|
112 |
+
wp_enqueue_script('acl-classie',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/classie.js');
|
113 |
+
wp_enqueue_script('acl-dialogFx',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/dialogFx.js');
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
function acl_advanced_login_form_plugin() {
|
118 |
+
wp_enqueue_script('jquery');
|
119 |
+
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
120 |
+
$top_page = unserialize(get_option('Admin_custome_login_top'));
|
121 |
+
if($top_page['top_bg_type'] == "slider-background" && $dashboard_page['dashboard_status'] == "enable"){
|
122 |
+
wp_enqueue_script('modernizr',WEBLIZAR_NALF_PLUGIN_URL.'js/modernizr.custom.86080.js');
|
123 |
+
wp_enqueue_style('demo', WEBLIZAR_NALF_PLUGIN_URL.'css/demo.css');
|
124 |
+
}
|
125 |
+
wp_enqueue_style('font-awesome_min', WEBLIZAR_NALF_PLUGIN_URL.'font-awesome-latest/css/fontawesome-all.min.css');
|
126 |
+
wp_enqueue_style('custom-css', WEBLIZAR_NALF_PLUGIN_URL.'css/acl-custom.css');
|
127 |
+
}
|
128 |
+
add_action('login_enqueue_scripts', 'acl_advanced_login_form_plugin');
|
129 |
+
|
130 |
+
function acl_footer_func() {
|
131 |
+
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
|
132 |
+
$user_input_icon = $text_and_color_page['user_input_icon'];
|
133 |
+
$password_input_icon = $text_and_color_page['password_input_icon'];
|
134 |
+
$enable_inputbox_icon = $text_and_color_page['enable_inputbox_icon'];
|
135 |
+
$heading_font_color = $text_and_color_page['heading_font_color'];
|
136 |
+
$heading_font_size = $text_and_color_page['heading_font_size'];
|
137 |
+
$input_font_size = $text_and_color_page['input_font_size'];
|
138 |
+
$top_page = unserialize(get_option('Admin_custome_login_top'));
|
139 |
+
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
|
140 |
+
|
141 |
+
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
142 |
+
if(isset($login_page['user_cust_lbl'])){ $user_cust_lbl= $login_page['user_cust_lbl']; } else { $user_cust_lbl = "Type Username or Email"; }
|
143 |
+
if(isset($login_page['pass_cust_lbl'])){ $pass_cust_lbl= $login_page['pass_cust_lbl']; } else { $pass_cust_lbl = "Type Password"; }
|
144 |
+
|
145 |
+
?>
|
146 |
+
<script>
|
147 |
+
jQuery(document).ready(function(){
|
148 |
+
jQuery('html body').attr('id', 'screen');
|
149 |
+
jQuery('#loginform label[for="user_login"]').attr('id', 'log_input_lable');
|
150 |
+
jQuery('#loginform label[for="user_pass"]').attr('id', 'pwd_input_lable');
|
151 |
+
|
152 |
+
<?php if($enable_inputbox_icon=='yes'){ ?>
|
153 |
+
if (jQuery('#log_input_lable').length) {
|
154 |
+
document.getElementById("log_input_lable").innerHTML="<?php _e('Username or Email', WEBLIZAR_ACL); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo $user_input_icon; ?>'></i></div> <input id='user_login' name='log' class='input' type='text' placeholder='<?php echo $user_cust_lbl; ?>'></div>";
|
155 |
+
document.getElementById("pwd_input_lable").innerHTML="<?php _e('Password', WEBLIZAR_ACL); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo $password_input_icon; ?>'></i></div> <input id='user_pass' name='pwd' class='input' type='password' placeholder='<?php echo $pass_cust_lbl; ?>'></div>";
|
156 |
+
jQuery('body.login div#login form .input, .login input[type="text"]').css('padding','5px 5px 5px 45px');
|
157 |
+
}
|
158 |
+
<?php } else { ?>
|
159 |
+
if (jQuery('#log_input_lable').length) {
|
160 |
+
jQuery('#loginform #user_login').attr('placeholder', '<?php echo $user_cust_lbl; ?>');
|
161 |
+
jQuery('#loginform #user_pass').attr('placeholder', '<?php echo $pass_cust_lbl; ?>');
|
162 |
+
jQuery('body.login div#login form .input, .login input[type="text"]').css('padding','5px 5px 5px 5px');
|
163 |
+
}
|
164 |
+
<?php }?>
|
165 |
+
|
166 |
+
<?php
|
167 |
+
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
168 |
+
$site_key = $g_page['site_key'];
|
169 |
+
$secret_key = $g_page['secret_key'];
|
170 |
+
?>
|
171 |
+
|
172 |
+
<?php if ($top_page['top_bg_type'] == "slider-background"){ ?>
|
173 |
+
jQuery('#screen').prepend('<ul class="cb-slideshow"> <li><span>Image 01</span></li> <li><span>Image 02</span></li> <li><span>Image 03</span></li> <li><span>Image 04</span></li> <li><span>Image 05</span></li> <li><span>Image 06</span></li></ul>')
|
174 |
+
<?php } ?>
|
175 |
+
|
176 |
+
//enable Social Icon In inner login form
|
177 |
+
<?php if($Social_page['enable_social_icon'] == "inner" || $Social_page['enable_social_icon'] == "both") {?>
|
178 |
+
jQuery( ".forgetmenot, #lostpasswordform" ).append('<div class="acl-social-inner" style="padding-top:16px"><div class="acl-social-text" style="color:<?php echo $heading_font_color; ?>; font-size:<?php echo $heading_font_size;?>px; "><?php _e('Find Us On Social Media',WEBLIZAR_ACL); ?></div><div style="padding-top:5px"><?php if($Social_page['social_twitter_link']!=''){ ?><a href="<?php echo $Social_page['social_twitter_link'];?>" class="icon-button twitter"><i class="fab fa-twitter"></i><span></span></a><?php } if($Social_page['social_facebook_link']!=''){ ?> <a href="<?php echo $Social_page['social_facebook_link'];?>" class="icon-button facebook"><i class="fab fa-facebook-f"></i><span></span></a> <?php } if($Social_page['social_google_plus_link']!=''){ ?> <a href="<?php echo $Social_page['social_google_plus_link'];?>" class="icon-button google-plus"><i class="fab fa-google-plus-g"></i><span></span></a><?php } if($Social_page['social_linkedin_link']!=''){ ?> <a href="<?php echo $Social_page['social_linkedin_link'];?>" class="icon-button linkedin"> <i class="fab fa-linkedin-in"> </i> <span></span> </a> <?php } if($Social_page['social_pinterest_link']!=''){ ?><a href="<?php echo $Social_page['social_pinterest_link'];?>" class="icon-button pinterest"><i class="fab fa-pinteres-p"></i><span></span></a><?php } if($Social_page['social_digg_link']!=''){ ?><a href="<?php echo $Social_page['social_digg_link'];?>" class="icon-button digg"><i class="fab fa-digg"></i><span></span></a><?php } if($Social_page['social_youtube_link']!=''){ ?><a href="<?php echo $Social_page['social_youtube_link'];?>" class="icon-button youtube"><i class="fab fa-youtube-square"></i><span></span></a><?php } if($Social_page['social_flickr_link']!=''){ ?><a href="<?php echo $Social_page['social_flickr_link'];?>" class="icon-button flickr"><i class="fab fa-flickr"></i><span></span></a><?php } if($Social_page['social_tumblr_link']!=''){ ?><a href="<?php echo $Social_page['social_tumblr_link'];?>" class="icon-button tumblr"><i class="fab fa-tumblr"></i><span></span></a><?php } if($Social_page['social_skype_link']!=''){ ?><a href="<?php echo $Social_page['social_skype_link'];?>" class="icon-button skype"><i class="fab fa-skype"></i><span></span></a><?php } if($Social_page['social_instagram_link']!=''){ ?><a href="<?php echo $Social_page['social_instagram_link'];?>" class="icon-button instagram"><i class="fab fa-instagram"></i><span></span></a><?php } if($Social_page['social_telegram_link']!=''){ ?><a href="<?php echo $Social_page['social_telegram_link'];?>" class="icon-button telegram"><i class="fab fa-telegram-plane"></i><span></span></a><?php }if($Social_page['social_whatsapp_link']!=''){ ?><a href="<?php echo $Social_page['social_whatsapp_link'];?>" class="icon-button whatsapp"><i class="fab fa-whatsapp"></i><span></span></a><?php } ?><div></div>' );
|
179 |
+
<?php } ?>
|
180 |
+
//enable Social Icon In outer login form
|
181 |
+
<?php if($Social_page['enable_social_icon'] == "outer" || $Social_page['enable_social_icon'] == "both") {?>
|
182 |
+
jQuery( "#backtoblog" ).append('<div class="divsocial"><?php if($Social_page['social_twitter_link']!=''){?> <a href="<?php echo $Social_page['social_twitter_link']; ?>" class="icon-button twitter"><i class="fab fa-twitter"></i><span></span></a><?php } if($Social_page['social_facebook_link']!=''){?><a href="<?php echo $Social_page['social_facebook_link']; ?>" class="icon-button facebook"><i class="fab fa-facebook-f"></i><span></span></a> <?php } if($Social_page['social_google_plus_link']!=''){?><a href="<?php echo $Social_page['social_google_plus_link']; ?>" class="icon-button google-plus"><i class="fab fa-google-plus-g"></i><span></span></a><?php } if($Social_page['social_linkedin_link']!=''){?><a href="<?php echo $Social_page['social_linkedin_link']; ?>" class="icon-button linkedin"><i class="fab fa-linkedin-in"></i><span></span></a><?php } if($Social_page['social_pinterest_link']!=''){?><a href="<?php echo $Social_page['social_pinterest_link']; ?>" class="icon-button pinterest"><i class="fab fa-pinterest-p"></i><span></span></a><?php } if($Social_page['social_digg_link']!=''){?> <a href="<?php echo $Social_page['social_digg_link']; ?>" class="icon-button digg"><i class="fab fa-digg"></i><span></span></a><?php } if($Social_page['social_youtube_link']!=''){?><a href="<?php echo $Social_page['social_youtube_link']; ?>" class="icon-button youtube"><i class="fab fa-youtube-square"></i><span></span></a><?php } if($Social_page['social_flickr_link']!=''){?><a href="<?php echo $Social_page['social_flickr_link']; ?>" class="icon-button flickr"><i class="fab fa-flickr"></i><span></span></a><?php } if($Social_page['social_tumblr_link']!=''){?><a href="<?php echo $Social_page['social_tumblr_link']; ?>" class="icon-button tumblr"><i class="fab fa-tumblr"></i><span></span></a><?php } if($Social_page['social_skype_link']!=''){?><a href="<?php echo $Social_page['social_skype_link']; ?>" class="icon-button skype"><i class="fab fa-skype"></i><span></span></a><?php } if($Social_page['social_instagram_link']!=''){?><a href="<?php echo $Social_page['social_instagram_link']; ?>" class="icon-button instagram"><i class="fab fa-instagram"></i><span></span></a><?php }if($Social_page['social_telegram_link']!=''){ ?><a href="<?php echo $Social_page['social_telegram_link'];?>" class="icon-button telegram"><i class="fab fa-telegram-plane"></i><span></span></a><?php }if($Social_page['social_whatsapp_link']!=''){ ?><a href="<?php echo $Social_page['social_whatsapp_link'];?>" class="icon-button whatsapp"><i class="fab fa-whatsapp"></i><span></span></a><?php } ?></div>');
|
183 |
+
<?php }
|
184 |
+
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
185 |
+
if(isset($login_page['tagline_msg'])){
|
186 |
+
$tagline_msg = $login_page['tagline_msg'];
|
187 |
+
$edit_tagline_msg = stripslashes($tagline_msg);
|
188 |
+
} else {
|
189 |
+
$edit_tagline_msg = "";
|
190 |
+
}
|
191 |
+
?>
|
192 |
+
jQuery( "#backtoblog" ).append('<div class="divfooter"><?php echo html_entity_decode($edit_tagline_msg);?></div>');
|
193 |
+
})
|
194 |
+
</script>
|
195 |
+
<?php
|
196 |
+
}
|
197 |
+
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
198 |
+
if($dashboard_page['dashboard_status'] == "enable") {
|
199 |
+
add_action('login_head', 'acl_footer_func');
|
200 |
+
}
|
201 |
+
|
202 |
+
function acl_admin_custom_login_content() {
|
203 |
+
require_once('includes/content.php');
|
204 |
+
}
|
205 |
+
|
206 |
+
/**
|
207 |
+
* Process a settings export that generates a .json file of the shop settings
|
208 |
+
*/
|
209 |
+
function acl_export_settings() {
|
210 |
+
|
211 |
+
if( empty( $_POST['acl_action'] ) || 'export_settings' != $_POST['acl_action'] )
|
212 |
+
return;
|
213 |
+
|
214 |
+
if( ! wp_verify_nonce( $_POST['acl_export_nonce'], 'acl_export_nonce' ) )
|
215 |
+
return;
|
216 |
+
|
217 |
+
if( ! current_user_can( 'manage_options' ) )
|
218 |
+
return;
|
219 |
+
|
220 |
+
// Get value of Dashboard page
|
221 |
+
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
222 |
+
$dashboard_status = $dashboard_page['dashboard_status'];
|
223 |
+
|
224 |
+
// Get value of Top page
|
225 |
+
$top_page = unserialize(get_option('Admin_custome_login_top'));
|
226 |
+
$top_bg_type = $top_page['top_bg_type'];
|
227 |
+
$top_color = $top_page['top_color'];
|
228 |
+
$top_image = $top_page['top_image'];
|
229 |
+
$top_cover = $top_page['top_cover'];
|
230 |
+
$top_repeat = $top_page['top_repeat'];
|
231 |
+
$top_position = $top_page['top_position'];
|
232 |
+
$top_attachment = $top_page['top_attachment'];
|
233 |
+
global $top_slideshow_no ;
|
234 |
+
$top_slideshow_no = $top_page['top_slideshow_no'];
|
235 |
+
$top_bg_slider_animation = $top_page['top_bg_slider_animation'];
|
236 |
+
|
237 |
+
// Get value of Login page
|
238 |
+
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
239 |
+
$login_form_left = $login_page['login_form_left'];
|
240 |
+
$login_form_top = $login_page['login_form_top'];
|
241 |
+
$login_bg_type = $login_page['login_bg_type'];
|
242 |
+
$login_bg_color = $login_page['login_bg_color'];
|
243 |
+
$login_bg_effect = $login_page['login_bg_effect'];
|
244 |
+
$login_bg_image = $login_page['login_bg_image'];
|
245 |
+
$login_form_opacity = $login_page['login_form_opacity'];
|
246 |
+
$login_form_width = $login_page['login_form_width'];
|
247 |
+
$login_form_radius = $login_page['login_form_radius'];
|
248 |
+
$login_border_style = $login_page['login_border_style'];
|
249 |
+
$login_border_thikness = $login_page['login_border_thikness'];
|
250 |
+
$login_border_color = $login_page['login_border_color'];
|
251 |
+
$login_bg_repeat = $login_page['login_bg_repeat'];
|
252 |
+
$login_bg_position = $login_page['login_bg_position'];
|
253 |
+
$login_enable_shadow = $login_page['login_enable_shadow'];
|
254 |
+
$login_shadow_color = $login_page['login_shadow_color'];
|
255 |
+
$log_form_above_msg = $login_page['log_form_above_msg'];
|
256 |
+
$login_msg_fontsize = $login_page['login_msg_fontsize'];
|
257 |
+
$login_msg_font_color = $login_page['login_msg_font_color'];
|
258 |
+
$tagline_msg = $login_page['tagline_msg'];
|
259 |
+
$user_cust_lbl = $login_page['user_cust_lbl'];
|
260 |
+
$pass_cust_lbl = $login_page['pass_cust_lbl'];
|
261 |
+
|
262 |
+
|
263 |
+
// Get value of Text and Color page
|
264 |
+
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
|
265 |
+
$heading_font_color = $text_and_color_page['heading_font_color'];
|
266 |
+
$input_font_color = $text_and_color_page['input_font_color'];
|
267 |
+
$link_color = $text_and_color_page['link_color'];
|
268 |
+
$button_color = $text_and_color_page['button_color'];
|
269 |
+
$heading_font_size = $text_and_color_page['heading_font_size'];
|
270 |
+
$input_font_size = $text_and_color_page['input_font_size'];
|
271 |
+
$link_size = $text_and_color_page['link_size'];
|
272 |
+
$button_font_size = $text_and_color_page['button_font_size'];
|
273 |
+
$enable_link_shadow = $text_and_color_page['enable_link_shadow'];
|
274 |
+
$link_shadow_color = $text_and_color_page['link_shadow_color'];
|
275 |
+
$heading_font_style = $text_and_color_page['heading_font_style'];
|
276 |
+
$input_font_style = $text_and_color_page['input_font_style'];
|
277 |
+
$link_font_style = $text_and_color_page['link_font_style'];
|
278 |
+
$button_font_style = $text_and_color_page['button_font_style'];
|
279 |
+
$enable_inputbox_icon = $text_and_color_page['enable_inputbox_icon'];
|
280 |
+
$user_input_icon = $text_and_color_page['user_input_icon'];
|
281 |
+
$password_input_icon = $text_and_color_page['password_input_icon'];
|
282 |
+
|
283 |
+
// Get value of Logo page
|
284 |
+
$logo_page = unserialize(get_option('Admin_custome_login_logo'));
|
285 |
+
$logo_image = $logo_page['logo_image'];
|
286 |
+
$logo_width = $logo_page['logo_width'];
|
287 |
+
$logo_height = $logo_page['logo_height'];
|
288 |
+
$logo_url = $logo_page['logo_url'];
|
289 |
+
$logo_url_title = $logo_page['logo_url_title'];
|
290 |
+
|
291 |
+
// Get value of Slidshow image
|
292 |
+
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
|
293 |
+
$Slidshow_image_1 = $Slidshow_image['Slidshow_image_1'];
|
294 |
+
$Slidshow_image_2 = $Slidshow_image['Slidshow_image_2'];
|
295 |
+
$Slidshow_image_3 = $Slidshow_image['Slidshow_image_3'];
|
296 |
+
$Slidshow_image_4 = $Slidshow_image['Slidshow_image_4'];
|
297 |
+
$Slidshow_image_5 = $Slidshow_image['Slidshow_image_5'];
|
298 |
+
$Slidshow_image_6 = $Slidshow_image['Slidshow_image_6'];
|
299 |
+
|
300 |
+
$Slidshow_image_label_1 = $Slidshow_image['Slidshow_image_label_1'];
|
301 |
+
$Slidshow_image_label_2 = $Slidshow_image['Slidshow_image_label_2'];
|
302 |
+
$Slidshow_image_label_3 = $Slidshow_image['Slidshow_image_label_3'];
|
303 |
+
$Slidshow_image_label_4 = $Slidshow_image['Slidshow_image_label_4'];
|
304 |
+
$Slidshow_image_label_5 = $Slidshow_image['Slidshow_image_label_5'];
|
305 |
+
$Slidshow_image_label_6 = $Slidshow_image['Slidshow_image_label_6'];
|
306 |
+
|
307 |
+
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
|
308 |
+
$enable_social_icon = $Social_page['enable_social_icon'];
|
309 |
+
$social_icon_size = $Social_page['social_icon_size'];
|
310 |
+
$social_icon_layout = $Social_page['social_icon_layout'];
|
311 |
+
$social_icon_color = $Social_page['social_icon_color'];
|
312 |
+
$social_icon_color_onhover = $Social_page['social_icon_color_onhover'];
|
313 |
+
$social_icon_bg = $Social_page['social_icon_bg'];
|
314 |
+
$social_icon_bg_onhover = $Social_page['social_icon_bg_onhover'];
|
315 |
+
$social_facebook_link = $Social_page['social_facebook_link'];
|
316 |
+
$social_twitter_link = $Social_page['social_twitter_link'];
|
317 |
+
$social_linkedin_link = $Social_page['social_linkedin_link'];
|
318 |
+
$social_google_plus_link = $Social_page['social_google_plus_link'];
|
319 |
+
$social_pinterest_link = $Social_page['social_pinterest_link'];
|
320 |
+
$social_digg_link = $Social_page['social_digg_link'];
|
321 |
+
$social_youtube_link = $Social_page['social_youtube_link'];
|
322 |
+
$social_flickr_link = $Social_page['social_flickr_link'];
|
323 |
+
$social_tumblr_link = $Social_page['social_tumblr_link'];
|
324 |
+
$social_skype_link = $Social_page['social_skype_link'];
|
325 |
+
$social_instagram_link = $Social_page['social_instagram_link'];
|
326 |
+
$social_telegram_link = $Social_page['social_telegram_link'];
|
327 |
+
$social_whatsapp_link = $Social_page['social_whatsapp_link'];
|
328 |
+
|
329 |
+
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
330 |
+
$site_key = $g_page['site_key'];
|
331 |
+
$secret_key = $g_page['secret_key'];
|
332 |
+
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
333 |
+
if(isset($g_page['acl_gcaptcha_theme'])){ $acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme']; }else { $acl_gcaptcha_theme = 'light'; }
|
334 |
+
|
335 |
+
|
336 |
+
$ACL_ALL_Settings= serialize(array(
|
337 |
+
'dashboard_status' => $dashboard_status,
|
338 |
+
'top_bg_type' => $top_bg_type,
|
339 |
+
'top_color' => $top_color,
|
340 |
+
'top_image' => $top_image,
|
341 |
+
'top_cover' => $top_cover,
|
342 |
+
'top_repeat' => $top_repeat,
|
343 |
+
'top_position' => $top_position,
|
344 |
+
'top_attachment' => $top_attachment,
|
345 |
+
'top_slideshow_no' => $top_slideshow_no,
|
346 |
+
'top_bg_slider_animation' => $top_bg_slider_animation,
|
347 |
+
|
348 |
+
'login_form_left' => $login_form_left,
|
349 |
+
'login_form_top' => $login_form_top,
|
350 |
+
'login_bg_type' => $login_bg_type,
|
351 |
+
'login_bg_color' => $login_bg_color,
|
352 |
+
'login_bg_effect' => $login_bg_effect,
|
353 |
+
'login_bg_image' => $login_bg_image,
|
354 |
+
'login_form_opacity' => $login_form_opacity,
|
355 |
+
'login_form_width' => $login_form_width,
|
356 |
+
'login_form_radius' => $login_form_radius,
|
357 |
+
'login_border_style' => $login_border_style,
|
358 |
+
'login_border_thikness' => $login_border_thikness,
|
359 |
+
'login_border_color' => $login_border_color,
|
360 |
+
'login_bg_repeat' => $login_bg_repeat,
|
361 |
+
'login_bg_position' => $login_bg_position,
|
362 |
+
'login_enable_shadow' => $login_enable_shadow,
|
363 |
+
'login_shadow_color' => $login_shadow_color,
|
364 |
+
'log_form_above_msg' => $log_form_above_msg,
|
365 |
+
'login_msg_fontsize' => $login_msg_fontsize,
|
366 |
+
'login_msg_font_color' => $login_msg_font_color,
|
367 |
+
'tagline_msg' => $tagline_msg,
|
368 |
+
'user_cust_lbl' => $user_cust_lbl,
|
369 |
+
'pass_cust_lbl' => $pass_cust_lbl,
|
370 |
+
|
371 |
+
'heading_font_color' => $heading_font_color,
|
372 |
+
'input_font_color' => $input_font_color,
|
373 |
+
'link_color' => $link_color,
|
374 |
+
'button_color' => $button_color,
|
375 |
+
'heading_font_size' => $heading_font_size,
|
376 |
+
'input_font_size' => $input_font_size,
|
377 |
+
'link_size' => $link_size,
|
378 |
+
'button_font_size' => $button_font_size,
|
379 |
+
'enable_link_shadow' => $enable_link_shadow,
|
380 |
+
'link_shadow_color' => $link_shadow_color,
|
381 |
+
'heading_font_style' => $heading_font_style,
|
382 |
+
'input_font_style' => $input_font_style,
|
383 |
+
'link_font_style' => $link_font_style,
|
384 |
+
'button_font_style' => $button_font_style,
|
385 |
+
'enable_inputbox_icon' => $enable_inputbox_icon,
|
386 |
+
'user_input_icon' => $user_input_icon,
|
387 |
+
'password_input_icon' => $password_input_icon,
|
388 |
+
|
389 |
+
'logo_image' => $logo_image,
|
390 |
+
'logo_width' => $logo_width,
|
391 |
+
'logo_height' => $logo_height,
|
392 |
+
'logo_url' => $logo_url,
|
393 |
+
'logo_url_title' => $logo_url_title,
|
394 |
+
|
395 |
+
'enable_social_icon' => $enable_social_icon,
|
396 |
+
'social_icon_size' => $social_icon_size ,
|
397 |
+
'social_icon_layout' => $social_icon_layout ,
|
398 |
+
'social_icon_color' => $social_icon_color ,
|
399 |
+
'social_icon_color_onhover' => $social_icon_color_onhover ,
|
400 |
+
'social_icon_bg' => $social_icon_bg,
|
401 |
+
'social_icon_bg_onhover' => $social_icon_bg_onhover ,
|
402 |
+
'social_facebook_link' => $social_facebook_link ,
|
403 |
+
'social_twitter_link' => $social_twitter_link,
|
404 |
+
'social_linkedin_link' => $social_linkedin_link,
|
405 |
+
'social_google_plus_link' => $social_google_plus_link,
|
406 |
+
'social_pinterest_link' => $social_pinterest_link,
|
407 |
+
'social_digg_link' => $social_digg_link,
|
408 |
+
'social_youtube_link' => $social_youtube_link,
|
409 |
+
'social_flickr_link' => $social_flickr_link,
|
410 |
+
'social_tumblr_link' => $social_tumblr_link,
|
411 |
+
'social_skype_link' => $social_skype_link,
|
412 |
+
'social_instagram_link' => $social_instagram_link,
|
413 |
+
'social_telegram_link' => $social_telegram_link,
|
414 |
+
'social_whatsapp_link' => $social_whatsapp_link,
|
415 |
+
|
416 |
+
'Slidshow_image_1' => $Slidshow_image_1,
|
417 |
+
'Slidshow_image_2' => $Slidshow_image_2,
|
418 |
+
'Slidshow_image_3' => $Slidshow_image_3,
|
419 |
+
'Slidshow_image_4' => $Slidshow_image_4,
|
420 |
+
'Slidshow_image_5' => $Slidshow_image_5,
|
421 |
+
'Slidshow_image_6' => $Slidshow_image_6,
|
422 |
+
'Slidshow_image_label_1' => $Slidshow_image_label_1,
|
423 |
+
'Slidshow_image_label_2' => $Slidshow_image_label_2,
|
424 |
+
'Slidshow_image_label_3' => $Slidshow_image_label_3,
|
425 |
+
'Slidshow_image_label_4' => $Slidshow_image_label_4,
|
426 |
+
'Slidshow_image_label_5' => $Slidshow_image_label_5,
|
427 |
+
'Slidshow_image_label_6' => $Slidshow_image_label_6,
|
428 |
+
|
429 |
+
'site_key' => $site_key,
|
430 |
+
'secret_key' => $secret_key,
|
431 |
+
'login_enable_gcaptcha' => $login_enable_gcaptcha,
|
432 |
+
'acl_gcaptcha_theme' => $acl_gcaptcha_theme
|
433 |
+
));
|
434 |
+
|
435 |
+
ignore_user_abort( true );
|
436 |
+
|
437 |
+
nocache_headers();
|
438 |
+
header( 'Content-Type: application/json; charset=utf-8' );
|
439 |
+
header( 'Content-Disposition: attachment; filename=acl-settings-export-' . date( 'm-d-Y' ) . '.json' );
|
440 |
+
header( "Expires: 0" );
|
441 |
+
|
442 |
+
echo json_encode( $ACL_ALL_Settings );
|
443 |
+
exit;
|
444 |
+
}
|
445 |
+
add_action( 'admin_init', 'acl_export_settings' );
|
446 |
+
|
447 |
+
/**
|
448 |
+
* Process a settings import from a json file
|
449 |
+
*/
|
450 |
+
function acl_import_settings() {
|
451 |
+
|
452 |
+
if( empty( $_POST['acl_action'] ) || 'import_settings' != $_POST['acl_action'] )
|
453 |
+
return;
|
454 |
+
|
455 |
+
if( ! wp_verify_nonce( $_POST['acl_import_nonce'], 'acl_import_nonce' ) )
|
456 |
+
return;
|
457 |
+
|
458 |
+
if( ! current_user_can( 'manage_options' ) )
|
459 |
+
return;
|
460 |
+
|
461 |
+
list($oteher_extension, $extension) = explode(".", $_FILES['import_file']['name']);
|
462 |
+
//$extension = end( explode( '.', $_FILES['import_file']['name'] ) );
|
463 |
+
|
464 |
+
if( $extension != 'json' ) {
|
465 |
+
wp_die( __( 'Please upload a valid .json file' ) );
|
466 |
+
}
|
467 |
+
|
468 |
+
$import_file = $_FILES['import_file']['tmp_name'];
|
469 |
+
|
470 |
+
if( empty( $import_file ) ) {
|
471 |
+
wp_die( __( 'Please upload a file to import' ) );
|
472 |
+
}
|
473 |
+
|
474 |
+
// Retrieve the settings from the file.
|
475 |
+
$settings = json_decode( file_get_contents( $import_file ) );
|
476 |
+
|
477 |
+
$ACL_Settings = unserialize($settings);
|
478 |
+
|
479 |
+
$dashboard_status = $ACL_Settings['dashboard_status'];
|
480 |
+
|
481 |
+
$top_bg_type = $ACL_Settings['top_bg_type'];
|
482 |
+
$top_color = $ACL_Settings['top_color'];
|
483 |
+
$top_image = $ACL_Settings['top_image'];
|
484 |
+
$top_cover = $ACL_Settings['top_cover'];
|
485 |
+
$top_repeat = $ACL_Settings['top_repeat'];
|
486 |
+
$top_position = $ACL_Settings['top_position'];
|
487 |
+
$top_attachment = $ACL_Settings['top_attachment'];
|
488 |
+
$top_slideshow_no = $ACL_Settings['top_slideshow_no'];
|
489 |
+
$top_bg_slider_animation = $ACL_Settings['top_bg_slider_animation'];
|
490 |
+
|
491 |
+
$login_form_left = $ACL_Settings['login_form_left'];
|
492 |
+
$login_form_top = $ACL_Settings['login_form_top'];
|
493 |
+
$login_bg_type = $ACL_Settings['login_bg_type'];
|
494 |
+
$login_bg_color = $ACL_Settings['login_bg_color'];
|
495 |
+
$login_bg_effect = $ACL_Settings['login_bg_effect'];
|
496 |
+
$login_bg_image = $ACL_Settings['login_bg_image'];
|
497 |
+
$login_form_opacity = $ACL_Settings['login_form_opacity'];
|
498 |
+
$login_form_width = $ACL_Settings['login_form_width'];
|
499 |
+
$login_form_radius = $ACL_Settings['login_form_radius'];
|
500 |
+
$login_border_style = $ACL_Settings['login_border_style'];
|
501 |
+
$login_border_thikness = $ACL_Settings['login_border_thikness'];
|
502 |
+
$login_border_color = $ACL_Settings['login_border_color'];
|
503 |
+
$login_bg_repeat = $ACL_Settings['login_bg_repeat'];
|
504 |
+
$login_bg_position = $ACL_Settings['login_bg_position'];
|
505 |
+
$login_enable_shadow = $ACL_Settings['login_enable_shadow'];
|
506 |
+
$login_shadow_color = $ACL_Settings['login_shadow_color'];
|
507 |
+
$log_form_above_msg = $ACL_Settings['log_form_above_msg'];
|
508 |
+
$login_msg_fontsize = $ACL_Settings['login_msg_fontsize'];
|
509 |
+
$login_msg_font_color = $ACL_Settings['login_msg_font_color'];
|
510 |
+
$tagline_msg = $ACL_Settings['tagline_msg'];
|
511 |
+
$user_cust_lbl = $ACL_Settings['user_cust_lbl'];
|
512 |
+
$pass_cust_lbl = $ACL_Settings['pass_cust_lbl'];
|
513 |
+
|
514 |
+
$heading_font_color = $ACL_Settings['heading_font_color'];
|
515 |
+
$input_font_color = $ACL_Settings['input_font_color'];
|
516 |
+
$link_color = $ACL_Settings['link_color'];
|
517 |
+
$button_color = $ACL_Settings['button_color'];
|
518 |
+
$heading_font_size = $ACL_Settings['heading_font_size'];
|
519 |
+
$input_font_size = $ACL_Settings['input_font_size'];
|
520 |
+
$link_size = $ACL_Settings['link_size'];
|
521 |
+
$button_font_size = $ACL_Settings['button_font_size'];
|
522 |
+
$enable_link_shadow = $ACL_Settings['enable_link_shadow'];
|
523 |
+
$link_shadow_color = $ACL_Settings['link_shadow_color'];
|
524 |
+
$heading_font_style = $ACL_Settings['heading_font_style'];
|
525 |
+
$input_font_style = $ACL_Settings['input_font_style'];
|
526 |
+
$link_font_style = $ACL_Settings['link_font_style'];
|
527 |
+
$button_font_style = $ACL_Settings['button_font_style'];
|
528 |
+
$enable_inputbox_icon = $ACL_Settings['enable_inputbox_icon'];
|
529 |
+
$user_input_icon = $ACL_Settings['user_input_icon'];
|
530 |
+
$password_input_icon = $ACL_Settings['password_input_icon'];
|
531 |
+
|
532 |
+
$logo_image = $ACL_Settings['logo_image'];
|
533 |
+
$logo_width = $ACL_Settings['logo_width'];
|
534 |
+
$logo_height = $ACL_Settings['logo_height'];
|
535 |
+
$logo_url = $ACL_Settings['logo_url'];
|
536 |
+
$logo_url_title = $ACL_Settings['logo_url_title'];
|
537 |
+
|
538 |
+
$Slidshow_image_1 = $ACL_Settings['Slidshow_image_1'];
|
539 |
+
$Slidshow_image_2 = $ACL_Settings['Slidshow_image_2'];
|
540 |
+
$Slidshow_image_3 = $ACL_Settings['Slidshow_image_3'];
|
541 |
+
$Slidshow_image_4 = $ACL_Settings['Slidshow_image_4'];
|
542 |
+
$Slidshow_image_5 = $ACL_Settings['Slidshow_image_5'];
|
543 |
+
$Slidshow_image_6 = $ACL_Settings['Slidshow_image_6'];
|
544 |
+
|
545 |
+
$Slidshow_image_label_1 = $ACL_Settings['Slidshow_image_label_1'];
|
546 |
+
$Slidshow_image_label_2 = $ACL_Settings['Slidshow_image_label_2'];
|
547 |
+
$Slidshow_image_label_3 = $ACL_Settings['Slidshow_image_label_3'];
|
548 |
+
$Slidshow_image_label_4 = $ACL_Settings['Slidshow_image_label_4'];
|
549 |
+
$Slidshow_image_label_5 = $ACL_Settings['Slidshow_image_label_5'];
|
550 |
+
$Slidshow_image_label_6 = $ACL_Settings['Slidshow_image_label_6'];
|
551 |
+
|
552 |
+
$enable_social_icon = $ACL_Settings['enable_social_icon'];
|
553 |
+
$social_icon_size = $ACL_Settings['social_icon_size'];
|
554 |
+
$social_icon_layout = $ACL_Settings['social_icon_layout'];
|
555 |
+
$social_icon_color = $ACL_Settings['social_icon_color'];
|
556 |
+
$social_icon_color_onhover= $ACL_Settings['social_icon_color_onhover'];
|
557 |
+
$social_icon_bg = $ACL_Settings['social_icon_bg'];
|
558 |
+
$social_icon_bg_onhover = $ACL_Settings['social_icon_bg_onhover'];
|
559 |
+
$social_facebook_link = $ACL_Settings['social_facebook_link'];
|
560 |
+
$social_twitter_link = $ACL_Settings['social_twitter_link'];
|
561 |
+
$social_linkedin_link = $ACL_Settings['social_linkedin_link'];
|
562 |
+
$social_google_plus_link= $ACL_Settings['social_google_plus_link'];
|
563 |
+
$social_pinterest_link = $ACL_Settings['social_pinterest_link'];
|
564 |
+
$social_digg_link = $ACL_Settings['social_digg_link'];
|
565 |
+
$social_youtube_link = $ACL_Settings['social_youtube_link'];
|
566 |
+
$social_flickr_link = $ACL_Settings['social_flickr_link'];
|
567 |
+
$social_tumblr_link = $ACL_Settings['social_tumblr_link'];
|
568 |
+
$social_vkontakte_link = $ACL_Settings['social_vkontakte_link'];
|
569 |
+
$social_skype_link = $ACL_Settings['social_skype_link'];
|
570 |
+
$social_instagram_link = $ACL_Settings['social_instagram_link'];
|
571 |
+
$social_telegram_link = $ACL_Settings['social_telegram_link'];
|
572 |
+
$social_whatsapp_link = $ACL_Settings['social_whatsapp_link'];
|
573 |
+
|
574 |
+
$site_key = $ACL_Settings['site_key'];
|
575 |
+
$secret_key = $ACL_Settings['secret_key'];
|
576 |
+
$login_enable_gcaptcha = $ACL_Settings['login_enable_gcaptcha'];
|
577 |
+
$acl_gcaptcha_theme = $ACL_Settings['acl_gcaptcha_theme'];
|
578 |
+
|
579 |
+
$upload_dir = wp_upload_dir();
|
580 |
+
$plugins_dir = plugins_url();
|
581 |
+
|
582 |
+
// Top Background Image
|
583 |
+
$data = $top_image;
|
584 |
+
if (strpos($data,'uploads') == true) {
|
585 |
+
list($oteher_path, $image_path) = explode("uploads", $data);
|
586 |
+
$top_image = $upload_dir['baseurl']. $image_path;
|
587 |
+
}else if (strpos($data,'plugins') == true){
|
588 |
+
list($oteher_path, $image_path) = explode("plugins", $data);
|
589 |
+
$top_image = $plugins_dir. $image_path;
|
590 |
+
}
|
591 |
+
|
592 |
+
// Login From Background Image
|
593 |
+
$data1 = $login_bg_image;
|
594 |
+
if (strpos($data1,'uploads') == true) {
|
595 |
+
list($oteher_path1, $image_path1) = explode("uploads", $data1);
|
596 |
+
$login_bg_image = $upload_dir['baseurl']. $image_path1;
|
597 |
+
}else if (strpos($data1,'plugins') == true){
|
598 |
+
list($oteher_path1, $image_path1) = explode("plugins", $data1);
|
599 |
+
$login_bg_image = $plugins_dir. $image_path1;
|
600 |
+
}
|
601 |
+
|
602 |
+
// Login From Background Image
|
603 |
+
$data2 = $logo_image;
|
604 |
+
if (strpos($data2,'uploads') == true) {
|
605 |
+
list($oteher_path2, $image_path2) = explode("uploads", $data2);
|
606 |
+
$logo_image = $upload_dir['baseurl']. $image_path2;
|
607 |
+
}else if (strpos($data2,'plugins') == true){
|
608 |
+
list($oteher_path2, $image_path2) = explode("plugins", $data2);
|
609 |
+
$logo_image = $plugins_dir. $image_path2;
|
610 |
+
}
|
611 |
+
|
612 |
+
// Slider Image 1
|
613 |
+
$Slidshow_image_url_1 = $Slidshow_image_1;
|
614 |
+
if (strpos($Slidshow_image_url_1,'uploads') == true) {
|
615 |
+
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_1);
|
616 |
+
$Slidshow_image_1 = $upload_dir['baseurl']. $image_path;
|
617 |
+
}else if (strpos($Slidshow_image_url_1,'plugins') == true){
|
618 |
+
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_1);
|
619 |
+
$Slidshow_image_1 = $plugins_dir. $image_path;
|
620 |
+
}
|
621 |
+
|
622 |
+
// Slider Image 2
|
623 |
+
$Slidshow_image_url_2 = $Slidshow_image_2;
|
624 |
+
if (strpos($Slidshow_image_url_2,'uploads') == true) {
|
625 |
+
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_2);
|
626 |
+
$Slidshow_image_2 = $upload_dir['baseurl']. $image_path;
|
627 |
+
}else if (strpos($Slidshow_image_url_2,'plugins') == true){
|
628 |
+
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_2);
|
629 |
+
$Slidshow_image_2 = $plugins_dir. $image_path;
|
630 |
+
}
|
631 |
+
|
632 |
+
// Slider Image 3
|
633 |
+
$Slidshow_image_url_3 = $Slidshow_image_3;
|
634 |
+
if (strpos($Slidshow_image_url_3,'uploads') == true) {
|
635 |
+
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_3);
|
636 |
+
$Slidshow_image_3 = $upload_dir['baseurl']. $image_path;
|
637 |
+
}else if (strpos($Slidshow_image_url_3,'plugins') == true){
|
638 |
+
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_3);
|
639 |
+
$Slidshow_image_3 = $plugins_dir. $image_path;
|
640 |
+
}
|
641 |
+
|
642 |
+
// Slider Image 4
|
643 |
+
$Slidshow_image_url_4 = $Slidshow_image_4;
|
644 |
+
if (strpos($Slidshow_image_url_4,'uploads') == true) {
|
645 |
+
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_4);
|
646 |
+
$Slidshow_image_4 = $upload_dir['baseurl']. $image_path;
|
647 |
+
}else if (strpos($Slidshow_image_url_4,'plugins') == true){
|
648 |
+
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_4);
|
649 |
+
$Slidshow_image_4 = $plugins_dir. $image_path;
|
650 |
+
}
|
651 |
+
|
652 |
+
// Slider Image 5
|
653 |
+
$Slidshow_image_url_5 = $Slidshow_image_5;
|
654 |
+
if (strpos($Slidshow_image_url_5,'uploads') == true) {
|
655 |
+
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_5);
|
656 |
+
$Slidshow_image_5 = $upload_dir['baseurl']. $image_path;
|
657 |
+
}else if (strpos($Slidshow_image_url_5,'plugins') == true){
|
658 |
+
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_5);
|
659 |
+
$Slidshow_image_5 = $plugins_dir. $image_path;
|
660 |
+
}
|
661 |
+
|
662 |
+
// Slider Image 6
|
663 |
+
$Slidshow_image_url_6 = $Slidshow_image_6;
|
664 |
+
if (strpos($Slidshow_image_url_6,'uploads') == true) {
|
665 |
+
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_6);
|
666 |
+
$Slidshow_image_6 = $upload_dir['baseurl']. $image_path;
|
667 |
+
}else if (strpos($Slidshow_image_url_6,'plugins') == true){
|
668 |
+
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_6);
|
669 |
+
$Slidshow_image_6 = $plugins_dir. $image_path;
|
670 |
+
}
|
671 |
+
|
672 |
+
$dashboard_page= serialize(array(
|
673 |
+
'dashboard_status' => $dashboard_status
|
674 |
+
));
|
675 |
+
update_option('Admin_custome_login_dashboard', $dashboard_page);
|
676 |
+
|
677 |
+
$top_page= serialize(array(
|
678 |
+
'top_bg_type' => $top_bg_type ,
|
679 |
+
'top_color' => $top_color ,
|
680 |
+
'top_image' => $top_image,
|
681 |
+
'top_cover' => $top_cover,
|
682 |
+
'top_repeat' => $top_repeat ,
|
683 |
+
'top_position' => $top_position ,
|
684 |
+
'top_attachment' => $top_attachment,
|
685 |
+
'top_slideshow_no' => $top_slideshow_no,
|
686 |
+
'top_bg_slider_animation' => $top_bg_slider_animation
|
687 |
+
));
|
688 |
+
update_option('Admin_custome_login_top', $top_page);
|
689 |
+
|
690 |
+
$login_page= serialize(array(
|
691 |
+
'login_form_left' => $login_form_left,
|
692 |
+
'login_form_top' => $login_form_top,
|
693 |
+
'login_bg_type' => $login_bg_type,
|
694 |
+
'login_bg_color' => $login_bg_color,
|
695 |
+
'login_bg_effect' => $login_bg_effect,
|
696 |
+
'login_bg_image' => $login_bg_image,
|
697 |
+
'login_form_opacity' => $login_form_opacity,
|
698 |
+
'login_form_width' => $login_form_width,
|
699 |
+
'login_form_radius' => $login_form_radius,
|
700 |
+
'login_border_style' => $login_border_style,
|
701 |
+
'login_border_thikness' => $login_border_thikness,
|
702 |
+
'login_border_color' => $login_border_color,
|
703 |
+
'login_bg_repeat' => $login_bg_repeat,
|
704 |
+
'login_bg_position' => $login_bg_position,
|
705 |
+
'login_enable_shadow' => $login_enable_shadow,
|
706 |
+
'login_shadow_color' => $login_shadow_color,
|
707 |
+
'log_form_above_msg' => $log_form_above_msg,
|
708 |
+
'login_msg_fontsize' => $login_msg_fontsize,
|
709 |
+
'login_msg_font_color' => $login_msg_font_color,
|
710 |
+
'tagline_msg' => $tagline_msg,
|
711 |
+
'user_cust_lbl' => $user_cust_lbl,
|
712 |
+
'pass_cust_lbl' => $pass_cust_lbl
|
713 |
+
));
|
714 |
+
update_option('Admin_custome_login_login', $login_page);
|
715 |
+
|
716 |
+
$text_and_color_page= serialize(array(
|
717 |
+
'heading_font_color' => $heading_font_color,
|
718 |
+
'input_font_color' => $input_font_color,
|
719 |
+
'link_color' => $link_color,
|
720 |
+
'button_color' => $button_color,
|
721 |
+
'heading_font_size' => $heading_font_size,
|
722 |
+
'input_font_size' => $input_font_size,
|
723 |
+
'link_size' => $link_size,
|
724 |
+
'button_font_size' => $button_font_size,
|
725 |
+
'enable_link_shadow' => $enable_link_shadow,
|
726 |
+
'link_shadow_color' => $link_shadow_color,
|
727 |
+
'heading_font_style' => $heading_font_style,
|
728 |
+
'input_font_style' => $input_font_style,
|
729 |
+
'link_font_style' => $link_font_style,
|
730 |
+
'button_font_style' => $button_font_style,
|
731 |
+
'enable_inputbox_icon' => $enable_inputbox_icon,
|
732 |
+
'user_input_icon' => $user_input_icon,
|
733 |
+
'password_input_icon' => $password_input_icon
|
734 |
+
));
|
735 |
+
update_option('Admin_custome_login_text', $text_and_color_page);
|
736 |
+
|
737 |
+
$logo_page= serialize(array(
|
738 |
+
'logo_image' => $logo_image,
|
739 |
+
'logo_width' => $logo_width,
|
740 |
+
'logo_height' => $logo_height,
|
741 |
+
'logo_url' => $logo_url,
|
742 |
+
'logo_url_title' => $logo_url_title
|
743 |
+
));
|
744 |
+
update_option('Admin_custome_login_logo', $logo_page);
|
745 |
+
|
746 |
+
$Social_page= serialize(array(
|
747 |
+
'enable_social_icon' => $enable_social_icon ,
|
748 |
+
'social_icon_size' => $social_icon_size ,
|
749 |
+
'social_icon_layout' => $social_icon_layout ,
|
750 |
+
'social_icon_color' => $social_icon_color ,
|
751 |
+
'social_icon_color_onhover'=> $social_icon_color_onhover ,
|
752 |
+
'social_icon_bg' => $social_icon_bg,
|
753 |
+
'social_icon_bg_onhover'=> $social_icon_bg_onhover ,
|
754 |
+
'social_facebook_link' => $social_facebook_link ,
|
755 |
+
'social_twitter_link' => $social_twitter_link,
|
756 |
+
'social_linkedin_link' => $social_linkedin_link ,
|
757 |
+
'social_google_plus_link'=> $social_google_plus_link ,
|
758 |
+
'social_pinterest_link' => $social_pinterest_link,
|
759 |
+
'social_digg_link' => $social_digg_link,
|
760 |
+
'social_youtube_link' => $social_youtube_link,
|
761 |
+
'social_flickr_link' => $social_flickr_link,
|
762 |
+
'social_tumblr_link' => $social_tumblr_link,
|
763 |
+
'social_vkontakte_link' => $social_vkontakte_link,
|
764 |
+
'social_skype_link' => $social_skype_link,
|
765 |
+
'social_instagram_link' => $social_instagram_link,
|
766 |
+
));
|
767 |
+
update_option('Admin_custome_login_Social', $Social_page);
|
768 |
+
|
769 |
+
$Slidshow_image= serialize(array(
|
770 |
+
'Slidshow_image_1' => $Slidshow_image_1 ,
|
771 |
+
'Slidshow_image_2' => $Slidshow_image_2 ,
|
772 |
+
'Slidshow_image_3' => $Slidshow_image_3 ,
|
773 |
+
'Slidshow_image_4' => $Slidshow_image_4 ,
|
774 |
+
'Slidshow_image_5' => $Slidshow_image_5 ,
|
775 |
+
'Slidshow_image_6' => $Slidshow_image_6 ,
|
776 |
+
'Slidshow_image_label_1'=> $Slidshow_image_label_1 ,
|
777 |
+
'Slidshow_image_label_2'=> $Slidshow_image_label_2 ,
|
778 |
+
'Slidshow_image_label_3'=> $Slidshow_image_label_3 ,
|
779 |
+
'Slidshow_image_label_4'=> $Slidshow_image_label_4 ,
|
780 |
+
'Slidshow_image_label_5'=> $Slidshow_image_label_5 ,
|
781 |
+
'Slidshow_image_label_6'=> $Slidshow_image_label_6
|
782 |
+
));
|
783 |
+
update_option('Admin_custome_login_Slidshow', $Slidshow_image);
|
784 |
+
|
785 |
+
$g_page= serialize(array(
|
786 |
+
'site_key' => $site_key,
|
787 |
+
'secret_key' => $secret_key,
|
788 |
+
'login_enable_gcaptcha' => $login_enable_gcaptcha,
|
789 |
+
'acl_gcaptcha_theme' => $acl_gcaptcha_theme
|
790 |
+
));
|
791 |
+
update_option('Admin_custome_login_gcaptcha', $g_page);
|
792 |
+
|
793 |
+
//wp_safe_redirect( admin_url( 'options-general.php?page=admin_custom_login' ) ); exit;
|
794 |
+
}
|
795 |
+
add_action( 'admin_init', 'acl_import_settings' );
|
796 |
+
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.weblizar.com/
|
|
4 |
Tags: 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: 4.9.7
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -123,8 +123,13 @@ If you have any question contact us at here: [Plugin Support Forum ](http://word
|
|
123 |
== Changelog ==
|
124 |
|
125 |
For more information, see [Weblizar](http://www.weblizar.com/)
|
|
|
|
|
|
|
|
|
|
|
126 |
= 2.6.8 =
|
127 |
-
|
128 |
|
129 |
|
130 |
= 2.6.7 =
|
4 |
Tags: 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: 4.9.7
|
7 |
+
Stable tag: 2.6.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
123 |
== Changelog ==
|
124 |
|
125 |
For more information, see [Weblizar](http://www.weblizar.com/)
|
126 |
+
|
127 |
+
= 2.6.9 =
|
128 |
+
* Add Offer Image at dashboard
|
129 |
+
* Change main menu position
|
130 |
+
|
131 |
= 2.6.8 =
|
132 |
+
* Minor Spelling Corrections.
|
133 |
|
134 |
|
135 |
= 2.6.7 =
|