' );
jQuery( "#backtoblog" ).append('
');
jQuery( "#backtoblog" ).append('');
});
$top_page['top_bg_type'],
'top_cover' => $top_page['top_cover'],
'top_repeat' => $top_page['top_repeat'],
'top_position' => $top_page['top_position'],
'top_attachment' => $top_page['top_attachment'],
'top_slideshow_no' => $top_page['top_slideshow_no'],
'top_bg_slider_animation' => $top_page['top_bg_slider_animation'],
)
);
}
}
}
add_action('admin_enqueue_scripts', 'background_enqueue_script');
function text_and_color_enqueue()
{
if (strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
wp_register_script('wl-acl-text-and-color', WEBLIZAR_NALF_PLUGIN_URL.'js/textandcolor.js', array('jquery'), true, true);
wp_enqueue_script('wl-acl-text-and-color');
if( !empty( $text_and_color_page )) {
wp_localize_script(
'wl-acl-text-and-color',
'textandcolor_object',
array(
'heading_font_size' => $text_and_color_page['heading_font_size'],
'input_font_size' => $text_and_color_page['input_font_size'],
'link_size' => $text_and_color_page['link_size'],
'button_font_size' => $text_and_color_page['button_font_size'],
'heading_font_style' => $text_and_color_page['heading_font_style'],
'input_font_style' => $text_and_color_page['input_font_style'],
'link_font_style' => $text_and_color_page['link_font_style'],
'button_font_style' => $text_and_color_page['button_font_style']
)
);
}
}
}
add_action('admin_enqueue_scripts', 'text_and_color_enqueue');
function login_form_enqueue_script()
{
if (strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
$login_page = unserialize(get_option('Admin_custome_login_login'));
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
wp_register_script('wl-acl-login-form', WEBLIZAR_NALF_PLUGIN_URL.'js/inlinejs/loginform.js', array('jquery'), true, true);
wp_enqueue_script('wl-acl-login-form');
// print_r($login_page);
// die;
if( !empty( $login_page ) && !empty( $text_and_color_page ) || !empty( $Social_page ) ) {
wp_localize_script(
'wl-acl-login-form',
'login_object',
array(
'login_form_position' => $login_page['login_form_position'],
'login_form_opacity' => $login_page['login_form_opacity'],
'login_form_width' => $login_page['login_form_width'],
'login_form_left' => $login_page['login_form_left'],
'login_form_top' => $login_page['login_form_top'],
'login_form_radius' => $login_page['login_form_radius'],
'login_border_thikness' => $login_page['login_border_thikness'],
'login_msg_fontsize' => $login_page['login_msg_fontsize'],
'login_bg_type' => $login_page['login_bg_type'],
'login_bg_effect' => $login_page['login_bg_effect'],
'login_border_style' => $login_page['login_border_style'],
'login_redirect_force' => $login_page['login_redirect_force'],
'login_bg_repeat' => $login_page['login_bg_repeat'],
'login_bg_position' => $login_page['login_bg_position'],
'heading_font' => $text_and_color_page["heading_font_style"],
'button_font' => $text_and_color_page['input_font_style'],
'link_font' => $text_and_color_page['link_font_style'],
'bfont_style' => $text_and_color_page['link_font_style'],
'enable_social_icon' => $Social_page['enable_social_icon'],
)
);
}
}
}
add_action('admin_enqueue_scripts', 'login_form_enqueue_script');
add_action('admin_enqueue_scripts', 'page_settings_enqueue_script');
function page_settings_enqueue_script()
{
if (strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) {
$logo_page = unserialize(get_option('Admin_custome_login_logo'));
wp_register_script('wl-acl-page-settings', WEBLIZAR_NALF_PLUGIN_URL.'js/inlinejs/pagesettings.js', array('jquery'), true, true);
wp_enqueue_script('wl-acl-page-settings');
if ( !empty( $logo_page ) ) {
wp_localize_script(
'wl-acl-page-settings',
'page_settings_object',
array(
'logo_width' => $logo_page['logo_width'],
'logo_height' => $logo_page['logo_height'],
)
);
}
}
}
/**** Process a settings export that generates a .json file of the shop settings ***/
function acl_export_settings()
{
if (empty($_POST['acl_export_action']) || 'export_settings' != $_POST['acl_export_action']) {
return;
}
if (! wp_verify_nonce($_POST['acl_export_nonce'], 'acl_export_nonce')) {
return;
}
if (! current_user_can('manage_options')) {
return;
}
/**** Get value of Dashboard page **/
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
$dashboard_status = $dashboard_page['dashboard_status'];
/**** Get value of Top page **/
$top_page = unserialize(get_option('Admin_custome_login_top'));
$top_bg_type = $top_page['top_bg_type'];
$top_color = $top_page['top_color'];
$top_image = $top_page['top_image'];
$top_cover = $top_page['top_cover'];
$top_repeat = $top_page['top_repeat'];
$top_position = $top_page['top_position'];
$top_attachment = $top_page['top_attachment'];
global $top_slideshow_no ;
$top_slideshow_no = $top_page['top_slideshow_no'];
$top_bg_slider_animation = $top_page['top_bg_slider_animation'];
/**** Get value of Login page **/
$login_page = unserialize(get_option('Admin_custome_login_login'));
$login_form_position = $login_page['login_form_position'];
$login_form_left = $login_page['login_form_left'];
$login_form_float = $login_page['login_form_float'];
$login_custom_css = $login_page['login_custom_css'];
$login_form_top = $login_page['login_form_top'];
$login_bg_type = $login_page['login_bg_type'];
$login_bg_color = $login_page['login_bg_color'];
$login_bg_effect = $login_page['login_bg_effect'];
$login_bg_image = $login_page['login_bg_image'];
$login_form_opacity = $login_page['login_form_opacity'];
$login_form_width = $login_page['login_form_width'];
$login_form_radius = $login_page['login_form_radius'];
$login_border_style = $login_page['login_border_style'];
$login_border_thikness = $login_page['login_border_thikness'];
$login_border_color = $login_page['login_border_color'];
$login_bg_repeat = $login_page['login_bg_repeat'];
$login_bg_position = $login_page['login_bg_position'];
$login_enable_shadow = $login_page['login_enable_shadow'];
$login_enable_language_switcher = $login_page['login_enable_language_switcher'];
$login_shadow_color = $login_page['login_shadow_color'];
$log_form_above_msg = $login_page['log_form_above_msg'];
$login_pass_reset_msg = $login_page['login_pass_reset_msg'];
$login_redirect_force = $login_page['login_redirect_force'];
$login_redirect_user = $login_page['login_redirect_user'];
$login_force_redirect_url = $login_page['login_force_redirect_url'];
$login_msg_fontsize = $login_page['login_msg_fontsize'];
$login_msg_font_color = $login_page['login_msg_font_color'];
$login_tagline_text_color = isset($login_page['login_tagline_text_color']) ? $login_page['login_tagline_text_color'] : '#ffffff';
$login_tagline_link_color = isset($login_page['login_tagline_link_color']) ? $login_page['login_tagline_link_color'] : '#f00';
$tagline_msg = $login_page['tagline_msg'];
$user_cust_lbl = $login_page['user_cust_lbl'];
$pass_cust_lbl = $login_page['pass_cust_lbl'];
$label_username = $login_page['label_username'];
$label_password = $login_page['label_password'];
$label_loginButton = $login_page['label_loginButton'];
/**** Get value of Text and Color page **/
$text_and_color_page = unserialize(get_option('Admin_custome_login_text'));
$heading_font_color = $text_and_color_page['heading_font_color'];
$input_font_color = $text_and_color_page['input_font_color'];
$link_color = $text_and_color_page['link_color'];
$button_color = $text_and_color_page['button_color'];
$login_button_font_color = isset($text_and_color_page['login_button_font_color']) ? $text_and_color_page['login_button_font_color'] : '#ffffff';
$heading_font_size = $text_and_color_page['heading_font_size'];
$input_font_size = $text_and_color_page['input_font_size'];
$link_size = $text_and_color_page['link_size'];
$button_font_size = $text_and_color_page['button_font_size'];
$enable_link_shadow = $text_and_color_page['enable_link_shadow'];
$show_remember_me_field =isset($text_and_color_page['show_remember_me_field']) ? $text_and_color_page['show_remember_me_field'] : 'yes';
$show_back_to_site_link = isset($text_and_color_page['show_back_to_site_link']) ? $text_and_color_page['show_back_to_site_link'] : 'yes';
$show_copyright_link_text =isset($text_and_color_page['show_copyright_link_text']) ? $text_and_color_page['show_copyright_link_text'] : 'yes';
$link_shadow_color = $text_and_color_page['link_shadow_color'];
$heading_font_style = $text_and_color_page['heading_font_style'];
$input_font_style = $text_and_color_page['input_font_style'];
$link_font_style = $text_and_color_page['link_font_style'];
$button_font_style = $text_and_color_page['button_font_style'];
$enable_inputbox_icon = $text_and_color_page['enable_inputbox_icon'];
$user_input_icon = $text_and_color_page['user_input_icon'];
$password_input_icon = $text_and_color_page['password_input_icon'];
/**** Get value of Logo page **/
$logo_page = unserialize(get_option('Admin_custome_login_logo'));
$logo_show = isset($logo_page['logo_show']) ? $logo_page['logo_show'] : 'yes';
$logo_image = $logo_page['logo_image'];
$logo_width = $logo_page['logo_width'];
$logo_height = $logo_page['logo_height'];
$logo_url = $logo_page['logo_url'];
$logo_url_title = $logo_page['logo_url_title'];
/**** Get value of Slidshow image **/
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
$Slidshow_image_1 = $Slidshow_image['Slidshow_image_1'];
$Slidshow_image_2 = $Slidshow_image['Slidshow_image_2'];
$Slidshow_image_3 = $Slidshow_image['Slidshow_image_3'];
$Slidshow_image_4 = $Slidshow_image['Slidshow_image_4'];
$Slidshow_image_5 = $Slidshow_image['Slidshow_image_5'];
$Slidshow_image_6 = $Slidshow_image['Slidshow_image_6'];
$Slidshow_image_label_1 = $Slidshow_image['Slidshow_image_label_1'];
$Slidshow_image_label_2 = $Slidshow_image['Slidshow_image_label_2'];
$Slidshow_image_label_3 = $Slidshow_image['Slidshow_image_label_3'];
$Slidshow_image_label_4 = $Slidshow_image['Slidshow_image_label_4'];
$Slidshow_image_label_5 = $Slidshow_image['Slidshow_image_label_5'];
$Slidshow_image_label_6 = $Slidshow_image['Slidshow_image_label_6'];
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
$enable_social_icon = $Social_page['enable_social_icon'];
$social_icon_size = $Social_page['social_icon_size'];
$social_icon_layout = $Social_page['social_icon_layout'];
$social_link_new_window = $Social_page['social_link_new_window'];
$social_icon_color = $Social_page['social_icon_color'];
$social_icon_color_onhover = $Social_page['social_icon_color_onhover'];
$social_icon_bg = $Social_page['social_icon_bg'];
$social_icon_bg_onhover = $Social_page['social_icon_bg_onhover'];
$social_facebook_link = $Social_page['social_facebook_link'];
$social_twitter_link = $Social_page['social_twitter_link'];
$social_linkedin_link = $Social_page['social_linkedin_link'];
$social_pinterest_link = $Social_page['social_pinterest_link'];
$social_digg_link = $Social_page['social_digg_link'];
$social_youtube_link = $Social_page['social_youtube_link'];
$social_flickr_link = $Social_page['social_flickr_link'];
$social_tumblr_link = $Social_page['social_tumblr_link'];
$social_skype_link = $Social_page['social_skype_link'];
$social_instagram_link = $Social_page['social_instagram_link'];
$social_telegram_link = $Social_page['social_telegram_link'];
$social_whatsapp_link = $Social_page['social_whatsapp_link'];
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
$site_key = (array_key_exists("site_key",$g_page)) ? $g_page['site_key'] : '';
$secret_key = (array_key_exists("secret_key",$g_page)) ? $g_page['secret_key'] : '';
$login_enable_gcaptcha = (array_key_exists("login_enable_gcaptcha",$g_page)) ? $g_page['login_enable_gcaptcha'] : 'light';
if (isset($g_page['acl_gcaptcha_theme'])) {
$acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme'];
} else {
$acl_gcaptcha_theme = 'light';
}
$ACL_ALL_Settings= serialize(array(
'dashboard_status' => $dashboard_status,
'top_bg_type' => $top_bg_type,
'top_color' => $top_color,
'top_image' => $top_image,
'top_cover' => $top_cover,
'top_repeat' => $top_repeat,
'top_position' => $top_position,
'top_attachment' => $top_attachment,
'top_slideshow_no' => $top_slideshow_no,
'top_bg_slider_animation' => $top_bg_slider_animation,
'login_form_position' => $login_form_position,
'login_form_left' => $login_form_left,
'login_form_float' => $login_form_float,
'login_custom_css' => $login_custom_css,
'login_form_top' => $login_form_top,
'login_bg_type' => $login_bg_type,
'login_bg_color' => $login_bg_color,
'login_bg_effect' => $login_bg_effect,
'login_bg_image' => $login_bg_image,
'login_form_opacity' => $login_form_opacity,
'login_form_width' => $login_form_width,
'login_form_radius' => $login_form_radius,
'login_border_style' => $login_border_style,
'login_border_thikness' => $login_border_thikness,
'login_border_color' => $login_border_color,
'login_bg_repeat' => $login_bg_repeat,
'login_bg_position' => $login_bg_position,
'login_enable_shadow' => $login_enable_shadow,
'login_enable_language_switcher' => $login_enable_language_switcher,
'login_shadow_color' => $login_shadow_color,
'log_form_above_msg' => $log_form_above_msg,
'login_pass_reset_msg' => $login_pass_reset_msg,
'login_redirect_force' => $login_redirect_force,
'login_redirect_user' => $login_redirect_user,
'login_force_redirect_url' => $login_force_redirect_url,
'login_msg_fontsize' => $login_msg_fontsize,
'login_msg_font_color' => $login_msg_font_color,
'tagline_msg' => $tagline_msg,
'login_tagline_text_color' => $login_tagline_text_color,
'login_tagline_link_color' => $login_tagline_link_color,
'user_cust_lbl' => $user_cust_lbl,
'pass_cust_lbl' => $pass_cust_lbl,
'label_username' => $label_username,
'label_password' => $label_password,
'label_loginButton' => $label_loginButton,
'heading_font_color' => $heading_font_color,
'input_font_color' => $input_font_color,
'link_color' => $link_color,
'button_color' => $button_color,
'login_button_font_color' => $login_button_font_color,
'heading_font_size' => $heading_font_size,
'input_font_size' => $input_font_size,
'link_size' => $link_size,
'button_font_size' => $button_font_size,
'enable_link_shadow' => $enable_link_shadow,
'show_remember_me_field' => $show_remember_me_field,
'show_back_to_site_link' => $show_back_to_site_link,
'show_copyright_link_text' => $show_copyright_link_text,
'link_shadow_color' => $link_shadow_color,
'heading_font_style' => $heading_font_style,
'input_font_style' => $input_font_style,
'link_font_style' => $link_font_style,
'button_font_style' => $button_font_style,
'enable_inputbox_icon' => $enable_inputbox_icon,
'user_input_icon' => $user_input_icon,
'password_input_icon' => $password_input_icon,
'logo_image' => $logo_image,
'logo_show' => $logo_show,
'logo_width' => $logo_width,
'logo_height' => $logo_height,
'logo_url' => $logo_url,
'logo_url_title' => $logo_url_title,
'enable_social_icon' => $enable_social_icon,
'social_icon_size' => $social_icon_size ,
'social_icon_layout' => $social_icon_layout ,
'social_link_new_window' => $social_link_new_window ,
'social_icon_color' => $social_icon_color ,
'social_icon_color_onhover' => $social_icon_color_onhover ,
'social_icon_bg' => $social_icon_bg,
'social_icon_bg_onhover' => $social_icon_bg_onhover ,
'social_facebook_link' => $social_facebook_link ,
'social_twitter_link' => $social_twitter_link,
'social_linkedin_link' => $social_linkedin_link,
'social_pinterest_link' => $social_pinterest_link,
'social_digg_link' => $social_digg_link,
'social_youtube_link' => $social_youtube_link,
'social_flickr_link' => $social_flickr_link,
'social_tumblr_link' => $social_tumblr_link,
'social_skype_link' => $social_skype_link,
'social_instagram_link' => $social_instagram_link,
'social_telegram_link' => $social_telegram_link,
'social_whatsapp_link' => $social_whatsapp_link,
'Slidshow_image_1' => $Slidshow_image_1,
'Slidshow_image_2' => $Slidshow_image_2,
'Slidshow_image_3' => $Slidshow_image_3,
'Slidshow_image_4' => $Slidshow_image_4,
'Slidshow_image_5' => $Slidshow_image_5,
'Slidshow_image_6' => $Slidshow_image_6,
'Slidshow_image_label_1' => $Slidshow_image_label_1,
'Slidshow_image_label_2' => $Slidshow_image_label_2,
'Slidshow_image_label_3' => $Slidshow_image_label_3,
'Slidshow_image_label_4' => $Slidshow_image_label_4,
'Slidshow_image_label_5' => $Slidshow_image_label_5,
'Slidshow_image_label_6' => $Slidshow_image_label_6,
'site_key' => $site_key,
'secret_key' => $secret_key,
'login_enable_gcaptcha' => $login_enable_gcaptcha,
'acl_gcaptcha_theme' => $acl_gcaptcha_theme
));
ignore_user_abort(true);
nocache_headers();
header('Content-Type: application/json; charset=utf-8');
header('Content-Disposition: attachment; filename=acl-settings-export-' . date('m-d-Y') . '.json');
header("Expires: 0");
echo json_encode(esc_attr($ACL_ALL_Settings));
exit;
}
add_action('admin_init', 'acl_export_settings');
/*** Process a settings import from a json file ***/
function acl_import_settings()
{
if (empty($_POST['acl_import_action']) || 'import_settings' != $_POST['acl_import_action']) {
return;
}
if (! wp_verify_nonce($_POST['acl_import_nonce'], 'acl_import_nonce')) {
return;
}
if (! current_user_can('manage_options')) {
return;
}
list($oteher_extension, $extension) = explode(".", $_FILES['import_file']['name']);
if ($extension != 'json') {
wp_die(esc_html__('Please upload a valid .json file', WEBLIZAR_ACL));
}
$import_file = $_FILES['import_file']['tmp_name'];
if (empty($import_file)) {
wp_die(esc_html__('Please upload a file to import', WEBLIZAR_ACL));
}
$stream = fopen($import_file, "r");
$c_settings = stream_get_contents($stream);
fclose($stream);
$settings = json_decode($c_settings, true);
$ACL_Settings = @unserialize($settings);
$dashboard_status = isset($ACL_Settings['dashboard_status']) ? $ACL_Settings['dashboard_status'] : '' ;
$top_bg_type = isset($ACL_Settings['top_bg_type']) ? $ACL_Settings['top_bg_type'] :'static-background-image';
$top_color = isset($ACL_Settings['top_color']) ? $ACL_Settings['top_color'] : '#f9fad2';
$top_image = isset($ACL_Settings['top_image']) ? $ACL_Settings['top_image'] :
$top_cover = isset($ACL_Settings['top_cover']) ? $ACL_Settings['top_cover'] : 'yes' ;
$top_repeat = isset($ACL_Settings['top_repeat']) ? $ACL_Settings['top_repeat'] : 'repeat' ;
$top_position = isset($ACL_Settings['top_position']) ? $ACL_Settings['top_position'] : 'left top';
$top_attachment = isset($ACL_Settings['top_attachment']) ? $ACL_Settings['top_attachment'] : 'fixed';
$top_slideshow_no = isset($ACL_Settings['top_slideshow_no']) ? $ACL_Settings['top_slideshow_no'] : '6';
$top_bg_slider_animation = isset($ACL_Settings['top_bg_slider_animation']) ? $ACL_Settings['top_bg_slider_animation'] : 'slider-style1';
$login_form_position = isset($ACL_Settings['login_form_position']) ? $ACL_Settings['login_form_position'] : 'default';
$login_form_left = isset($ACL_Settings['login_form_left']) ? $ACL_Settings['login_form_left'] : '700';
$login_form_float = isset($ACL_Settings['login_form_float']) ? $ACL_Settings['login_form_float'] : 'center';
$login_custom_css = isset($ACL_Settings['login_custom_css']) ? $ACL_Settings['login_custom_css'] : '' ;
$login_form_top = isset($ACL_Settings['login_form_top']) ? $ACL_Settings['login_form_top'] : '300';
$login_bg_type = isset($ACL_Settings['login_bg_type']) ? $ACL_Settings['login_bg_type'] : 'static-background-image';
$login_bg_color = isset($ACL_Settings['login_bg_color']) ? $ACL_Settings['login_bg_color'] : '#1e73be' ;
$login_bg_effect = isset($ACL_Settings['login_bg_effect']) ? $ACL_Settings['login_bg_effect'] : 'pattern-1';
$login_bg_image = isset($ACL_Settings['login_bg_image']) ? $ACL_Settings['login_bg_image'] : '' ;
$login_form_opacity = isset($ACL_Settings['login_form_opacity']) ? $ACL_Settings['login_form_opacity'] : '10';
$login_form_width = isset($ACL_Settings['login_form_width']) ? $ACL_Settings['login_form_width'] : '358' ;
$login_form_radius = isset($ACL_Settings['login_form_radius']) ? $ACL_Settings['login_form_radius'] : '10';
$login_border_style = isset($ACL_Settings['login_border_style']) ? $ACL_Settings['login_border_style'] : 'solid';
$login_border_thikness = isset($ACL_Settings['login_border_thikness']) ? $ACL_Settings['login_border_thikness'] : '4' ;
$login_border_color = isset($ACL_Settings['login_border_color']) ? $ACL_Settings['login_border_color'] : '#0069A0';
$login_bg_repeat = isset($ACL_Settings['login_bg_repeat']) ? $ACL_Settings['login_bg_repeat'] : 'repeat';
$login_bg_position = isset($ACL_Settings['login_bg_position']) ? $ACL_Settings['login_bg_position'] : 'left top';
$login_enable_shadow = isset($ACL_Settings['login_enable_shadow']) ? $ACL_Settings['login_enable_shadow']: 'yes';
$login_enable_language_switcer = isset($ACL_Settings['login_enable_language_switcher']) ? $ACL_Settings['login_enable_language_switcher']: 'yes';
$login_shadow_color = isset($ACL_Settings['login_shadow_color']) ? $ACL_Settings['login_shadow_color'] : '#C8C8C8';
$log_form_above_msg = isset($ACL_Settings['log_form_above_msg']) ? $ACL_Settings['log_form_above_msg'] : '' ;
$login_pass_reset_msg = isset($ACL_Settings['login_pass_reset_msg']) ? $ACL_Settings['login_pass_reset_msg'] : '' ;
$login_redirect_force = isset($ACL_Settings['login_redirect_force']) ? $ACL_Settings['login_redirect_force'] : '' ;
$login_redirect_user = isset($ACL_Settings['login_redirect_user']) ? $ACL_Settings['login_redirect_user'] : '';
$login_force_redirect_url = isset($ACL_Settings['login_force_redirect_url']) ? $ACL_Settings['login_force_redirect_url'] : '' ;
$login_msg_fontsize = isset($ACL_Settings['login_msg_fontsize']) ? $ACL_Settings['login_msg_fontsize'] : '16' ;
$login_msg_font_color = isset($ACL_Settings['login_msg_font_color']) ? $ACL_Settings['login_msg_font_color'] : '#000000' ;
$login_tagline_text_color = isset($ACL_Settings['login_tagline_text_color']) ? $ACL_Settings['login_tagline_text_color'] : '#ffffff';
$login_tagline_link_color = isset($ACL_Settings['login_tagline_link_color']) ? $ACL_Settings['login_tagline_link_color'] : '#f00';
$tagline_msg = isset($ACL_Settings['tagline_msg']) ? $ACL_Settings['tagline_msg'] : '' ;
$user_cust_lbl = isset($ACL_Settings['user_cust_lbl']) ? $ACL_Settings['user_cust_lbl'] : 'Type Username or Email';
$pass_cust_lbl = isset($ACL_Settings['pass_cust_lbl']) ? $ACL_Settings['pass_cust_lbl'] : 'password';
$label_username = isset($ACL_Settings['label_username']) ? $ACL_Settings['label_username'] : 'Username / Email' ;
$label_password = isset($ACL_Settings['label_password']) ? $ACL_Settings['label_password'] : 'Password' ;
$label_loginButton = isset($ACL_Settings['label_loginButton']) ? $ACL_Settings['label_loginButton'] : 'Log In' ;
$heading_font_color = isset ($ACL_Settings['heading_font_color']) ? $ACL_Settings['heading_font_color'] : '#ffffff';
$input_font_color = isset ($ACL_Settings['input_font_color']) ? $ACL_Settings['input_font_color'] : '#000000';
$link_color = isset ($ACL_Settings['link_color']) ? $ACL_Settings['link_color'] : '#ffffff';
$button_color = isset ($ACL_Settings['button_color']) ? $ACL_Settings['button_color'] : '#dd3333';
$login_button_font_color = isset ($ACL_Settings['login_button_font_color']) ? $ACL_Settings['login_button_font_color'] : '#ffffff';
$heading_font_size = isset ($ACL_Settings['heading_font_size']) ? $ACL_Settings['heading_font_size'] : '14';
$input_font_size = isset ($ACL_Settings['input_font_size']) ? $ACL_Settings['input_font_size'] : '18' ;
$link_size = isset ($ACL_Settings['link_size']) ? $ACL_Settings['link_size'] : '14';
$button_font_size = isset($ACL_Settings['button_font_size']) ? $ACL_Settings['button_font_size'] : '14';
$enable_link_shadow = isset($ACL_Settings['enable_link_shadow']) ? $ACL_Settings['enable_link_shadow'] : 'yes';
$show_remember_me_field = isset($ACL_Settings['show_remember_me_field']) ? $ACL_Settings['show_remember_me_field'] : 'yes';
$show_back_to_site_link = isset($ACL_Settings['show_back_to_site_link']) ? $ACL_Settings['show_back_to_site_link'] : 'yes';
$show_copyright_link_text =isset($ACL_Settings['show_copyright_link_text']) ? $ACL_Settings['show_copyright_link_text'] : 'yes';
$link_shadow_color = isset($ACL_Settings['link_shadow_color']) ? $ACL_Settings['link_shadow_color'] : '$ffffff' ;
$heading_font_style = isset($ACL_Settings['heading_font_style']) ? $ACL_Settings['heading_font_style'] : 'Open Sans' ;
$input_font_style = isset($ACL_Settings['input_font_style']) ? $ACL_Settings['input_font_style'] : 'Open Sans' ;
$link_font_style = isset($ACL_Settings['link_font_style']) ? $ACL_Settings['link_font_style'] : 'Open Sans' ;
$button_font_style = isset($ACL_Settings['button_font_style']) ? $ACL_Settings['button_font_style'] : 'Open Sans' ;
$enable_inputbox_icon = isset($ACL_Settings['enable_inputbox_icon']) ? $ACL_Settings['enable_inputbox_icon'] : 'yes' ;
$user_input_icon = isset($ACL_Settings['user_input_icon']) ? $ACL_Settings['user_input_icon'] : 'fa-user' ;
$password_input_icon = isset($ACL_Settings['password_input_icon']) ? $ACL_Settings['password_input_icon'] : 'fa-key' ;
$logo_image = isset($ACL_Settings['logo_image']) ? $ACL_Settings['logo_image'] : '' ;
$logo_show = isset($ACL_Settings['logo_show']) ? $ACL_Settings['logo_show'] : 'yes';
$logo_width = isset($ACL_Settings['logo_width']) ? $ACL_Settings['logo_width'] : '274' ;
$logo_height = isset($ACL_Settings['logo_height']) ? $ACL_Settings['logo_height'] : '63' ;
$logo_url = isset($ACL_Settings['logo_url']) ? $ACL_Settings['logo_url'] : '' ;
$logo_url_title = isset($ACL_Settings['logo_url_title']) ? $ACL_Settings['logo_url_title'] : 'Your Site Name and Info' ;
$Slidshow_image_1 = isset($ACL_Settings['Slidshow_image_1']) ? $ACL_Settings['Slidshow_image_1'] : '' ;
$Slidshow_image_2 = isset($ACL_Settings['Slidshow_image_2']) ? $ACL_Settings['Slidshow_image_2'] : '' ;
$Slidshow_image_3 = isset($ACL_Settings['Slidshow_image_3']) ? $ACL_Settings['Slidshow_image_3'] : '' ;
$Slidshow_image_4 = isset($ACL_Settings['Slidshow_image_4']) ? $ACL_Settings['Slidshow_image_4'] : '' ;
$Slidshow_image_5 = isset($ACL_Settings['Slidshow_image_5']) ? $ACL_Settings['Slidshow_image_5'] : '' ;
$Slidshow_image_6 = isset($ACL_Settings['Slidshow_image_6']) ? $ACL_Settings['Slidshow_image_6'] : '' ;
$Slidshow_image_label_1 = isset($ACL_Settings['Slidshow_image_label_1']) ? $ACL_Settings['Slidshow_image_label_1'] : '' ;
$Slidshow_image_label_2 = isset($ACL_Settings['Slidshow_image_label_2']) ? $ACL_Settings['Slidshow_image_label_2'] : '' ;
$Slidshow_image_label_3 = isset($ACL_Settings['Slidshow_image_label_3']) ? $ACL_Settings['Slidshow_image_label_3'] : '' ;
$Slidshow_image_label_4 = isset($ACL_Settings['Slidshow_image_label_4']) ? $ACL_Settings['Slidshow_image_label_4'] : '' ;
$Slidshow_image_label_5 = isset($ACL_Settings['Slidshow_image_label_5']) ? $ACL_Settings['Slidshow_image_label_5'] : '' ;
$Slidshow_image_label_6 = isset($ACL_Settings['Slidshow_image_label_6']) ? $ACL_Settings['Slidshow_image_label_6'] : '' ;
$enable_social_icon = isset($ACL_Settings['enable_social_icon']) ? $ACL_Settings['enable_social_icon'] : 'outer' ;
$social_icon_size = isset($ACL_Settings['social_icon_size']) ? $ACL_Settings['social_icon_size'] : 'mediam' ;
$social_icon_layout = isset($ACL_Settings['social_icon_layout']) ? $ACL_Settings['social_icon_layout'] : 'rectangle' ;
$social_link_new_window = isset($ACL_Settings['social_link_new_window']) ? $ACL_Settings['social_link_new_window'] : 'yes' ;
$social_icon_color = isset($ACL_Settings['social_icon_color']) ? $ACL_Settings['social_icon_color'] : '#ffffff' ;
$social_icon_color_onhover = isset($ACL_Settings['social_icon_color_onhover']) ? $ACL_Settings['social_icon_color_onhover'] : '#1e73be' ;
$social_icon_bg = isset($ACL_Settings['social_icon_bg']) ? $ACL_Settings['social_icon_bg'] : '#1e73be' ;
$social_icon_bg_onhover = isset($ACL_Settings['social_icon_bg_onhover']) ? $ACL_Settings['social_icon_bg_onhover'] : '#ffffff' ;
$social_facebook_link = isset($ACL_Settings['social_facebook_link']) ? $ACL_Settings['social_facebook_link'] : 'http://facebook.com';
$social_twitter_link = isset($ACL_Settings['social_twitter_link']) ? $ACL_Settings['social_twitter_link'] : 'https://twitter.com/minimalmonkey';
$social_linkedin_link = isset($ACL_Settings['social_linkedin_link']) ? $ACL_Settings['social_linkedin_link'] : '';
$social_pinterest_link = isset($ACL_Settings['social_pinterest_link']) ? $ACL_Settings['social_pinterest_link'] : '';
$social_digg_link = isset($ACL_Settings['social_digg_link']) ? $ACL_Settings['social_digg_link'] : '';
$social_youtube_link = isset($ACL_Settings['social_youtube_link']) ? $ACL_Settings['social_youtube_link'] : 'https://youtube.com';
$social_flickr_link = isset($ACL_Settings['social_flickr_link']) ? $ACL_Settings['social_flickr_link'] : 'https://flickr.com';
$social_tumblr_link = isset($ACL_Settings['social_tumblr_link']) ? $ACL_Settings['social_tumblr_link'] : '';
$social_skype_link = isset($ACL_Settings['social_skype_link']) ? $ACL_Settings['social_skype_link'] : '';
$social_instagram_link = isset($ACL_Settings['social_instagram_link']) ? $ACL_Settings['social_instagram_link'] : 'https://instagram.com';
$social_telegram_link = isset($ACL_Settings['social_telegram_link']) ? $ACL_Settings['social_telegram_link'] : '';
$social_whatsapp_link = isset($ACL_Settings['social_whatsapp_link']) ? $ACL_Settings['social_whatsapp_link'] : '';
$site_key = isset($ACL_Settings['site_key']) ? $ACL_Settings['site_key'] : ' ';
$secret_key = isset($ACL_Settings['secret_key']) ? $ACL_Settings['secret_key'] : ' ';
$login_enable_gcaptcha = isset($ACL_Settings['login_enable_gcaptcha']) ? $ACL_Settings['login_enable_gcaptcha'] : 'no';
$acl_gcaptcha_theme = isset($ACL_Settings['acl_gcaptcha_theme']) ? $ACL_Settings['acl_gcaptcha_theme'] : ' ';
$upload_dir = wp_upload_dir();
$plugins_dir = plugins_url();
/**** Top Background Image **/
$data = $top_image;
if (strpos($data, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $data);
$top_image = $upload_dir['baseurl']. $image_path;
} elseif (strpos($data, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $data);
$top_image = $plugins_dir. $image_path;
}
/**** Login From Background Image **/
$data1 = $login_bg_image;
if (strpos($data1, 'uploads') == true) {
list($oteher_path1, $image_path1) = explode("uploads", $data1);
$login_bg_image = $upload_dir['baseurl']. $image_path1;
} elseif (strpos($data1, 'plugins') == true) {
list($oteher_path1, $image_path1) = explode("plugins", $data1);
$login_bg_image = $plugins_dir. $image_path1;
}
/**** Login From Background Image **/
$data2 = $logo_image;
if (strpos($data2, 'uploads') == true) {
list($oteher_path2, $image_path2) = explode("uploads", $data2);
$logo_image = $upload_dir['baseurl']. $image_path2;
} elseif (strpos($data2, 'plugins') == true) {
list($oteher_path2, $image_path2) = explode("plugins", $data2);
$logo_image = $plugins_dir. $image_path2;
}
/**** Slider Image 1 **/
$Slidshow_image_url_1 = $Slidshow_image_1;
if (strpos($Slidshow_image_url_1, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_1);
$Slidshow_image_1 = $upload_dir['baseurl']. $image_path;
} elseif (strpos($Slidshow_image_url_1, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_1);
$Slidshow_image_1 = $plugins_dir. $image_path;
}
/**** Slider Image 2 **/
$Slidshow_image_url_2 = $Slidshow_image_2;
if (strpos($Slidshow_image_url_2, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_2);
$Slidshow_image_2 = $upload_dir['baseurl']. $image_path;
} elseif (strpos($Slidshow_image_url_2, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_2);
$Slidshow_image_2 = $plugins_dir. $image_path;
}
/**** Slider Image 3 ***/
$Slidshow_image_url_3 = $Slidshow_image_3;
if (strpos($Slidshow_image_url_3, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_3);
$Slidshow_image_3 = $upload_dir['baseurl']. $image_path;
} elseif (strpos($Slidshow_image_url_3, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_3);
$Slidshow_image_3 = $plugins_dir. $image_path;
}
/**** Slider Image 4 ***/
$Slidshow_image_url_4 = $Slidshow_image_4;
if (strpos($Slidshow_image_url_4, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_4);
$Slidshow_image_4 = $upload_dir['baseurl']. $image_path;
} elseif (strpos($Slidshow_image_url_4, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_4);
$Slidshow_image_4 = $plugins_dir. $image_path;
}
/****Slider Image 5 **/
$Slidshow_image_url_5 = $Slidshow_image_5;
if (strpos($Slidshow_image_url_5, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_5);
$Slidshow_image_5 = $upload_dir['baseurl']. $image_path;
} elseif (strpos($Slidshow_image_url_5, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_5);
$Slidshow_image_5 = $plugins_dir. $image_path;
}
/**** Slider Image 6 ***/
$Slidshow_image_url_6 = $Slidshow_image_6;
if (strpos($Slidshow_image_url_6, 'uploads') == true) {
list($oteher_path, $image_path) = explode("uploads", $Slidshow_image_url_6);
$Slidshow_image_6 = $upload_dir['baseurl']. $image_path;
} elseif (strpos($Slidshow_image_url_6, 'plugins') == true) {
list($oteher_path, $image_path) = explode("plugins", $Slidshow_image_url_6);
$Slidshow_image_6 = $plugins_dir. $image_path;
}
$dashboard_page= serialize(array(
'dashboard_status' => $dashboard_status
));
update_option('Admin_custome_login_dashboard', $dashboard_page);
$top_page= serialize(array(
'top_bg_type' => $top_bg_type ,
'top_color' => $top_color ,
'top_image' => $top_image,
'top_cover' => $top_cover,
'top_repeat' => $top_repeat ,
'top_position' => $top_position ,
'top_attachment' => $top_attachment,
'top_slideshow_no' => $top_slideshow_no,
'top_bg_slider_animation' => $top_bg_slider_animation
));
update_option('Admin_custome_login_top', $top_page);
$login_page= serialize(array(
'login_form_position' => $login_form_position,
'login_form_left' => $login_form_left,
'login_form_float' => $login_form_float,
'login_custom_css' => $login_custom_css,
'login_form_top' => $login_form_top,
'login_bg_type' => $login_bg_type,
'login_bg_color' => $login_bg_color,
'login_bg_effect' => $login_bg_effect,
'login_bg_image' => $login_bg_image,
'login_form_opacity' => $login_form_opacity,
'login_form_width' => $login_form_width,
'login_form_radius' => $login_form_radius,
'login_border_style' => $login_border_style,
'login_border_thikness' => $login_border_thikness,
'login_border_color' => $login_border_color,
'login_bg_repeat' => $login_bg_repeat,
'login_bg_position' => $login_bg_position,
'login_enable_shadow' => $login_enable_shadow,
'login_enable_language_switcher'=> isset($login_enable_language_switcher) ? $login_enable_language_switcher : '',
'login_shadow_color' => $login_shadow_color,
'log_form_above_msg' => $log_form_above_msg,
'login_pass_reset_msg' => $login_pass_reset_msg,
'login_redirect_force' => $login_redirect_force,
'login_redirect_user' => $login_redirect_user,
'login_force_redirect_url' => $login_force_redirect_url,
'login_msg_fontsize' => $login_msg_fontsize,
'login_msg_font_color' => $login_msg_font_color,
'login_tagline_text_color' => $login_tagline_text_color,
'login_tagline_link_color' => $login_tagline_link_color,
'tagline_msg' => $tagline_msg,
'user_cust_lbl' => $user_cust_lbl,
'pass_cust_lbl' => $pass_cust_lbl,
'label_username' => $label_username,
'label_password' => $label_password,
'label_loginButton' => $label_loginButton,
));
update_option('Admin_custome_login_login', $login_page);
$text_and_color_page= serialize(array(
'heading_font_color' => $heading_font_color,
'input_font_color' => $input_font_color,
'link_color' => $link_color,
'button_color' => $button_color,
'login_button_font_color' => $login_button_font_color,
'heading_font_size' => $heading_font_size,
'input_font_size' => $input_font_size,
'link_size' => $link_size,
'button_font_size' => $button_font_size,
'enable_link_shadow' => $enable_link_shadow,
'show_remember_me_field' => $show_remember_me_field,
'show_back_to_site_link' => $show_back_to_site_link,
'show_copyright_link_text' => $show_copyright_link_text,
'link_shadow_color' => $link_shadow_color,
'heading_font_style' => $heading_font_style,
'input_font_style' => $input_font_style,
'link_font_style' => $link_font_style,
'button_font_style' => $button_font_style,
'enable_inputbox_icon' => $enable_inputbox_icon,
'user_input_icon' => $user_input_icon,
'password_input_icon' => $password_input_icon
));
update_option('Admin_custome_login_text', $text_and_color_page);
$logo_page= serialize(array(
'logo_image' => $logo_image,
'logo_show' => $logo_show,
'logo_width' => $logo_width,
'logo_height' => $logo_height,
'logo_url' => $logo_url,
'logo_url_title' => $logo_url_title
));
update_option('Admin_custome_login_logo', $logo_page);
$Social_page= serialize(array(
'enable_social_icon' => $enable_social_icon ,
'social_icon_size' => $social_icon_size ,
'social_icon_layout' => $social_icon_layout ,
'social_link_new_window' => $social_link_new_window ,
'social_icon_color' => $social_icon_color ,
'social_icon_color_onhover' => $social_icon_color_onhover ,
'social_icon_bg' => $social_icon_bg,
'social_icon_bg_onhover' => $social_icon_bg_onhover ,
'social_facebook_link' => $social_facebook_link ,
'social_twitter_link' => $social_twitter_link,
'social_linkedin_link' => $social_linkedin_link ,
'social_pinterest_link' => $social_pinterest_link,
'social_digg_link' => $social_digg_link,
'social_youtube_link' => $social_youtube_link,
'social_flickr_link' => $social_flickr_link,
'social_tumblr_link' => $social_tumblr_link,
'social_skype_link' => $social_skype_link,
'social_instagram_link' => $social_instagram_link,
'social_telegram_link' => $social_telegram_link,
'social_whatsapp_link' => $social_telegram_link,
));
update_option('Admin_custome_login_Social', $Social_page);
$Slidshow_image= serialize(array(
'Slidshow_image_1' => $Slidshow_image_1 ,
'Slidshow_image_2' => $Slidshow_image_2 ,
'Slidshow_image_3' => $Slidshow_image_3 ,
'Slidshow_image_4' => $Slidshow_image_4 ,
'Slidshow_image_5' => $Slidshow_image_5 ,
'Slidshow_image_6' => $Slidshow_image_6 ,
'Slidshow_image_label_1'=> $Slidshow_image_label_1 ,
'Slidshow_image_label_2'=> $Slidshow_image_label_2 ,
'Slidshow_image_label_3'=> $Slidshow_image_label_3 ,
'Slidshow_image_label_4'=> $Slidshow_image_label_4 ,
'Slidshow_image_label_5'=> $Slidshow_image_label_5 ,
'Slidshow_image_label_6'=> $Slidshow_image_label_6
));
update_option('Admin_custome_login_Slidshow', $Slidshow_image);
$g_page= serialize(array(
'site_key' => $site_key,
'secret_key' => $secret_key,
'login_enable_gcaptcha' => $login_enable_gcaptcha,
'acl_gcaptcha_theme' => $acl_gcaptcha_theme
));
update_option('Admin_custome_login_gcaptcha', $g_page);
}
add_action('admin_init', 'acl_import_settings');