roles ) && is_array( $user->roles ) ) { // get and load custom rerdirect option after user login $login_page = unserialize(get_option('Admin_custome_login_login')); $login_redirect_user = $login_page['login_redirect_user']; //check for admins if ( in_array( 'administrator', $user->roles ) ) { // redirect admin to the default place return $redirect_to; } else { // redirect users to another place if($login_redirect_user != "") { return $login_redirect_user; } else { return $redirect_to; } } } else { return $redirect_to; } } add_filter( 'login_redirect', 'ACL_login_redirect', 10, 3 ); // load plugin translation add_action('plugins_loaded', 'ACL_GetReadyTranslation'); function ACL_GetReadyTranslation() { load_plugin_textdomain(WEBLIZAR_ACL, FALSE, dirname( plugin_basename(__FILE__)).'/languages/' ); } /** * Admin Custom Login installation script */ register_activation_hook( __FILE__, 'ACL_WeblizarDoInstallation' ); function ACL_WeblizarDoInstallation() { require_once('installation.php'); } /** * Admin Custom Login menu */ require_once("login-form-screen.php"); add_action('admin_menu','acl_weblizar_admin_custom_login_menu'); function acl_weblizar_admin_custom_login_menu() { if(current_user_can('administrator')){ //plugin menu page under the settings page // $acl_menu = add_menu_page('Admin custom Login', 'Admin custom Login','administrator', 'admin_custom_login','acl_admin_custom_login_content'); $acl_menu = add_submenu_page( 'options-general.php','Admin Custom Login', 'Admin Custom Login','administrator', 'admin_custom_login','acl_admin_custom_login_content' ); add_action( 'admin_print_styles-' . $acl_menu, 'acl_admin_custom_login_css' ); } } function acl_admin_custom_login_css() { // load CSS Files only With Admin Custom Login Menu Page if(strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) { wp_enqueue_style('dashboard'); wp_enqueue_style('wp-color-picker'); wp_enqueue_style('thickbox'); wp_enqueue_style('acl-bootstrap-css', WEBLIZAR_NALF_PLUGIN_URL.'css/bootstrap.css'); wp_enqueue_style('acl-smartech-css', WEBLIZAR_NALF_PLUGIN_URL.'css/smartech.css'); wp_enqueue_style('acl-jquery-ui-css', WEBLIZAR_NALF_PLUGIN_URL.'css/jquery-ui.css'); wp_enqueue_style('acl-font-awesome_min', WEBLIZAR_NALF_PLUGIN_URL.'font-awesome/css/font-awesome.min.css'); wp_enqueue_style('acl-font-animate', WEBLIZAR_NALF_PLUGIN_URL.'css/animate.css'); wp_enqueue_style('acl-fontawesome-iconpicker', WEBLIZAR_NALF_PLUGIN_URL.'css/fontawesome-iconpicker.css'); wp_enqueue_style('acl-recom', WEBLIZAR_NALF_PLUGIN_URL.'css/recom.css'); wp_enqueue_style('acl-dialog', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog.css'); wp_enqueue_style('acl-dialog-box-style', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog-box-style.css'); wp_enqueue_style('acl-dialog-jamie', WEBLIZAR_NALF_PLUGIN_URL.'css/dialog/dialog-jamie.css'); wp_enqueue_style('acl-custom-css', WEBLIZAR_NALF_PLUGIN_URL.'css/custom.css'); wp_enqueue_style('acl-googleapis-css_01', 'http://fonts.googleapis.com/css?family=Dosis:600,700,800'); wp_enqueue_style('acl-googleapis-css_02', 'http://fonts.googleapis.com/css?family=Lato:400,300,300italic,400italic,700,700italic,900'); wp_enqueue_style('acl-googleapis-css_03', 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic|Montserrat:400,700'); } } add_action( 'admin_print_scripts', 'acl_admin_custom_login_js' ); function acl_admin_custom_login_js() { // load JS Files only With Admin Custom Login Menu Page if(strpos($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], 'admin_custom_login') == true) { wp_enqueue_script('theme-preview'); wp_enqueue_script('jquery'); wp_enqueue_script('acl-media-uploads',WEBLIZAR_NALF_PLUGIN_URL.'js/acl-media-upload-script.js',array('media-upload','thickbox','jquery')); wp_enqueue_script('acl-color-picker-script', WEBLIZAR_NALF_PLUGIN_URL.'js/acl-color-picker-script.js', array( 'wp-color-picker' ), false, true ); wp_enqueue_script('acl-bootstrap-min-js',WEBLIZAR_NALF_PLUGIN_URL.'js/bootstrap.min.js'); wp_enqueue_script('acl-metisMenu',WEBLIZAR_NALF_PLUGIN_URL.'js/plugins/metisMenu/metisMenu.min.js'); wp_enqueue_script('aclsmartech',WEBLIZAR_NALF_PLUGIN_URL.'js/smartech.js',array('jquery')); wp_enqueue_script('acl-nalf-sidebar-nav',WEBLIZAR_NALF_PLUGIN_URL.'js/nalf_sidebar_nav.js'); wp_enqueue_script('acl-media-upload-script-2-js',WEBLIZAR_NALF_PLUGIN_URL.'js/acl-media-upload-script-2.js'); wp_enqueue_script('acl-font-icon-picker-js',WEBLIZAR_NALF_PLUGIN_URL.'js/fontawesome-iconpicker.js'); wp_enqueue_script('acl-snap-svg-min',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/snap.svg-min.js'); wp_enqueue_script('acl-modernizr-custom',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/modernizr.custom.js'); wp_enqueue_script('acl-classie',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/classie.js'); wp_enqueue_script('acl-dialogFx',WEBLIZAR_NALF_PLUGIN_URL.'js/dialog/dialogFx.js'); } } function acl_advanced_login_form_plugin() { wp_enqueue_script('jquery'); $dashboard_page = unserialize(get_option('Admin_custome_login_dashboard')); $top_page = unserialize(get_option('Admin_custome_login_top')); if ($top_page['top_bg_type'] == "slider-background" && $dashboard_page['dashboard_status'] == "enable"){ wp_enqueue_script('modernizr',WEBLIZAR_NALF_PLUGIN_URL.'js/modernizr.custom.86080.js'); wp_enqueue_style('demo', WEBLIZAR_NALF_PLUGIN_URL.'css/demo.css'); } wp_enqueue_style('font-awesome_min', WEBLIZAR_NALF_PLUGIN_URL.'font-awesome/css/font-awesome.min.css'); wp_enqueue_style('custom-css', WEBLIZAR_NALF_PLUGIN_URL.'css/acl-custom.css'); } add_action('login_enqueue_scripts', 'acl_advanced_login_form_plugin'); function acl_footer_func() { $text_and_color_page = unserialize(get_option('Admin_custome_login_text')); $user_input_icon = $text_and_color_page['user_input_icon']; $password_input_icon = $text_and_color_page['password_input_icon']; $enable_inputbox_icon = $text_and_color_page['enable_inputbox_icon']; $heading_font_color = $text_and_color_page['heading_font_color']; $heading_font_size = $text_and_color_page['heading_font_size']; $input_font_size = $text_and_color_page['input_font_size']; $top_page = unserialize(get_option('Admin_custome_login_top')); $Social_page = unserialize(get_option('Admin_custome_login_Social')); ?> $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_left' => $login_form_left, '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_shadow_color' => $login_shadow_color, 'heading_font_color' => $heading_font_color, 'input_font_color' => $input_font_color, 'link_color' => $link_color, 'button_color' => $button_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, 'link_shadow_color' => $link_shadow_colo, '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_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_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_google_plus_link' => $social_google_plus_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_vkontakte_link' => $social_vkontakte_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 )); ignore_user_abort( true ); nocache_headers(); header( 'Content-Type: application/json; charset=utf-8' ); header( 'Content-Disposition: attachment; filename=pwsix-settings-export-' . date( 'm-d-Y' ) . '.json' ); header( "Expires: 0" ); echo json_encode( $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_action'] ) || 'import_settings' != $_POST['acl_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']); //$extension = end( explode( '.', $_FILES['import_file']['name'] ) ); if( $extension != 'json' ) { wp_die( __( 'Please upload a valid .json file' ) ); } $import_file = $_FILES['import_file']['tmp_name']; if( empty( $import_file ) ) { wp_die( __( 'Please upload a file to import' ) ); } // Retrieve the settings from the file. $settings = json_decode( file_get_contents( $import_file ) ); $ACL_Settings = unserialize($settings); $dashboard_status = $ACL_Settings['dashboard_status']; $top_bg_type = $ACL_Settings['top_bg_type']; $top_color = $ACL_Settings['top_color']; $top_image = $ACL_Settings['top_image']; $top_cover = $ACL_Settings['top_cover']; $top_repeat = $ACL_Settings['top_repeat']; $top_position = $ACL_Settings['top_position']; $top_attachment = $ACL_Settings['top_attachment']; $top_slideshow_no = $ACL_Settings['top_slideshow_no']; $top_bg_slider_animation = $ACL_Settings['top_bg_slider_animation']; $login_form_left = $ACL_Settings['login_form_left']; $login_form_top = $ACL_Settings['login_form_top']; $login_bg_type = $ACL_Settings['login_bg_type']; $login_bg_color = $ACL_Settings['login_bg_color']; $login_bg_effect = $ACL_Settings['login_bg_effect']; $login_bg_image = $ACL_Settings['login_bg_image']; $login_form_opacity = $ACL_Settings['login_form_opacity']; $login_form_width = $ACL_Settings['login_form_width']; $login_form_radius = $ACL_Settings['login_form_radius']; $login_border_style = $ACL_Settings['login_border_style']; $login_border_thikness = $ACL_Settings['login_border_thikness']; $login_border_color = $ACL_Settings['login_border_color']; $login_bg_repeat = $ACL_Settings['login_bg_repeat']; $login_bg_position = $ACL_Settings['login_bg_position']; $login_enable_shadow = $ACL_Settings['login_enable_shadow']; $login_shadow_color = $ACL_Settings['login_shadow_color']; $heading_font_color = $ACL_Settings['heading_font_color']; $input_font_color = $ACL_Settings['input_font_color']; $link_color = $ACL_Settings['link_color']; $button_color = $ACL_Settings['button_color']; $heading_font_size = $ACL_Settings['heading_font_size']; $input_font_size = $ACL_Settings['input_font_size']; $link_size = $ACL_Settings['link_size']; $button_font_size = $ACL_Settings['button_font_size']; $enable_link_shadow = $ACL_Settings['enable_link_shadow']; $link_shadow_color = $ACL_Settings['link_shadow_color']; $heading_font_style = $ACL_Settings['heading_font_style']; $input_font_style = $ACL_Settings['input_font_style']; $link_font_style = $ACL_Settings['link_font_style']; $button_font_style = $ACL_Settings['button_font_style']; $enable_inputbox_icon = $ACL_Settings['enable_inputbox_icon']; $user_input_icon = $ACL_Settings['user_input_icon']; $password_input_icon = $ACL_Settings['password_input_icon']; $logo_image = $ACL_Settings['logo_image']; $logo_width = $ACL_Settings['logo_width']; $logo_height = $ACL_Settings['logo_height']; $logo_url = $ACL_Settings['logo_url']; $logo_url_title = $ACL_Settings['logo_url_title']; $Slidshow_image_1 = $ACL_Settings['Slidshow_image_1']; $Slidshow_image_2 = $ACL_Settings['Slidshow_image_2']; $Slidshow_image_3 = $ACL_Settings['Slidshow_image_3']; $Slidshow_image_4 = $ACL_Settings['Slidshow_image_4']; $Slidshow_image_5 = $ACL_Settings['Slidshow_image_5']; $Slidshow_image_6 = $ACL_Settings['Slidshow_image_6']; $Slidshow_image_label_1 = $ACL_Settings['Slidshow_image_label_1']; $Slidshow_image_label_2 = $ACL_Settings['Slidshow_image_label_2']; $Slidshow_image_label_3 = $ACL_Settings['Slidshow_image_label_3']; $Slidshow_image_label_4 = $ACL_Settings['Slidshow_image_label_4']; $Slidshow_image_label_5 = $ACL_Settings['Slidshow_image_label_5']; $Slidshow_image_label_6 = $ACL_Settings['Slidshow_image_label_6']; $enable_social_icon = $ACL_Settings['enable_social_icon']; $social_icon_size = $ACL_Settings['social_icon_size']; $social_icon_layout = $ACL_Settings['social_icon_layout']; $social_icon_color = $ACL_Settings['social_icon_color']; $social_icon_color_onhover= $ACL_Settings['social_icon_color_onhover']; $social_icon_bg = $ACL_Settings['social_icon_bg']; $social_icon_bg_onhover = $ACL_Settings['social_icon_bg_onhover']; $social_facebook_link = $ACL_Settings['social_facebook_link']; $social_twitter_link = $ACL_Settings['social_twitter_link']; $social_linkedin_link = $ACL_Settings['social_linkedin_link']; $social_google_plus_link= $ACL_Settings['social_google_plus_link']; $social_pinterest_link = $ACL_Settings['social_pinterest_link']; $social_digg_link = $ACL_Settings['social_digg_link']; $social_youtube_link = $ACL_Settings['social_youtube_link']; $social_flickr_link = $ACL_Settings['social_flickr_link']; $social_tumblr_link = $ACL_Settings['social_tumblr_link']; $social_vkontakte_link = $ACL_Settings['social_vkontakte_link']; $social_skype_link = $ACL_Settings['social_skype_link']; $social_instagram_link = $ACL_Settings['social_instagram_link']; $social_telegram_link = $ACL_Settings['social_telegram_link']; $social_whatsapp_link = $ACL_Settings['social_whatsapp_link']; $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; }else if (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; }else if (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; }else if (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; }else if (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; }else if (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; }else if (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; }else if (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; }else if (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; }else if (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_left' => $login_form_left, '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_shadow_color' => $login_shadow_color )); 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, '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, '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_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_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_google_plus_link'=> $social_google_plus_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_vkontakte_link' => $social_vkontakte_link, 'social_skype_link' => $social_skype_link, 'social_instagram_link' => $social_instagram_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); //wp_safe_redirect( admin_url( 'options-general.php?page=admin_custom_login' ) ); exit; } add_action( 'admin_init', 'acl_import_settings' ); ?>