add_panel( 'arrowlogin_panel', array( 'priority' => 25, 'capability' => 'edit_theme_options', 'title' => __('Arrow Login Page Customizer', 'arrowlogin'), 'description' => __('This sections allows you to customize your login pgae', 'arrowlogin') )); /* --------------------------- | | | Section for Theme | | | -----------------------------*/ $wp_customize->add_section( 'arrowlogin_theme_section', array( 'priority' => 5, 'title' => __('Theme', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting( 'arrowlogin_theme', array( 'type' => 'option', 'default' => 'one', 'capability' => 'edit_theme_options', )); /* $wp_customize->add_control( 'arrowlogin_theme', array( 'label' => __('Theme:', 'arrowlogin'), 'type' => 'radio', 'choices' => array( 'left' => 'left', 'right' => 'right', ), 'section' => 'arrowlogin_theme_section', 'priority' => 15, 'settings' => 'arrowlogin_theme', )); */ arrowlogin_register_customizer_control_custom_radio_image($wp_customize); arrowlogin_logo_customizer_settings($wp_customize); arrowlogin_background_customizer_settings($wp_customize); arrowlogin_form_customizer_settings($wp_customize); arrowlogin_field_customizer_settings($wp_customize); arrowlogin_button_customizer_settings($wp_customize); arrowlogin_Label_customizer_settings($wp_customize); /* $wp_customize->add_setting( 'arrowlogin_form_style_padding', array( 'default' => '26 24px 46px', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'arrowlogin_form_style_padding', array( 'label' => __('Form Padding:', 'arrowlogin'), 'section' => 'arrowlogin_form_bg_section', 'priority' => 25, 'settings' => 'arrowlogin_form_style_padding', )); */ // $wp_customize->add_setting( 'arrowlogin_form_style_border', array( // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control( 'arrowlogin_form_style_border', array( // 'label' => __('Border (Example: 2px Dotted Black):', 'arrowlogin'), // 'section' => 'arrowlogin_form_bg_section', // 'priority' => 30, // 'settings' => 'arrowlogin_form_style_border', // )); /* --------------------------- | | | Section for Themes | | | -----------------------------*/ $wp_customize->add_section( 'arrowlogin_custom_css_section', array( 'priority' => 50 , 'title' => __('Custom CSS', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting( 'arrowlogin_custom_css', array( 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'arrowlogin_custom_css', array( 'label' => __('Custom CSS:', 'arrowlogin'), 'type' => 'textarea', 'section' => 'arrowlogin_custom_css_section', 'priority' => 15, 'settings' => 'arrowlogin_custom_css', )); } function arrowlogin_logo_customizer_settings($wp_customize){ $wp_customize->add_section( 'arrowlogin_logo_section', array( 'priority' => 5, 'title' => __('Logo', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting( 'arrowlogin_logo_enable', array( 'default'=>"1", 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'arrowlogin_sanitize_checkbox', )); function arrowlogin_sanitize_checkbox( $checked ) { // Boolean check. return ( ( isset( $checked ) && true == $checked ) ? "show" : "hide" ); } $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'arrowlogin_logo_enable', array( 'label' => __('Enable Logo:', 'arrowlogin'), 'section' => 'arrowlogin_logo_section', 'priority' => 5, 'type'=>'checkbox', 'settings' => 'arrowlogin_logo_enable', ))); $wp_customize->add_setting( 'arrowlogin_logo', array( 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'arrowlogin_logo', array( 'label' => __('Logo Image:', 'arrowlogin'), 'section' => 'arrowlogin_logo_section', 'priority' => 5, 'settings' => 'arrowlogin_logo', ))); $wp_customize->add_setting( 'arrowlogin_logo_width', array( 'default' => '84', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'arrowlogin_logo_width', array( 'label' => __('Logo Width:', 'arrowlogin'), 'section' => 'arrowlogin_logo_section', 'priority' => 10, 'type' => "number", 'settings' => 'arrowlogin_logo_width', )); $wp_customize->add_setting( 'arrowlogin_logo_height', array( 'default' => '84', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'arrowlogin_logo_height', array( 'label' => __('Logo Height:', 'arrowlogin'), 'section' => 'arrowlogin_logo_section', 'priority' => 15, 'type' => "number", 'settings' => 'arrowlogin_logo_height', )); class Clicklogin_Customizer_Number_Inline_Control extends WP_Customize_Control { public $fieldwidth = 'text'; public $type = 'number'; protected function render() { $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); $class = 'customize-control customize-control-' . $this->type; ?>
  • "> render_content(); ?>
  • add_setting( 'arrowlogin_logo_margin_right', array( // 'default' => '5', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // // $wp_customize->add_control( new Clicklogin_Customizer_Number_Inline_Control( $wp_customize, 'arrowlogin_logo_margin_right', array ( // 'label' => 'Right', // 'type' => 'number', // 'section' => 'arrowlogin_logo_section', // 'priority' => 20, // 'fieldwidth'=> '25', //set the field to 50% width so that we can display a second one next to it // ) ) ); // $wp_customize->add_setting( 'arrowlogin_logo_margin_left', array( // 'default' => '5', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // // $wp_customize->add_control( new Clicklogin_Customizer_Number_Inline_Control( $wp_customize, 'arrowlogin_logo_margin_left', array ( // 'label' => 'Left', // 'type' => 'number', // 'section' => 'arrowlogin_logo_section', // 'priority' => 20, // 'fieldwidth'=> '25', //set the field to 50% width so that we can display a second one next to it // ) ) ); // // // // $wp_customize->add_setting( 'arrowlogin_logo_margin_up', array( // 'default' => '5', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // // $wp_customize->add_control( new Clicklogin_Customizer_Number_Inline_Control( $wp_customize, 'arrowlogin_logo_margin_up', array ( // 'label' => 'Up', // 'type' => 'number', // 'section' => 'arrowlogin_logo_section', // 'priority' => 20, // 'fieldwidth'=> '25', //set the field to 50% width so that we can display a second one next to it // ) ) ); // $wp_customize->add_setting( 'arrowlogin_logo_margin_down', array( // 'default' => '5', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // // $wp_customize->add_control( new Clicklogin_Customizer_Number_Inline_Control( $wp_customize, 'arrowlogin_logo_margin_down', array ( // 'label' => 'Down', // 'type' => 'number', // 'section' => 'arrowlogin_logo_section', // 'priority' => 20, // 'fieldwidth'=> '25', //set the field to 50% width so that we can display a second one next to it // ) ) ); } function arrowlogin_background_customizer_settings($wp_customize){ $wp_customize->add_section( 'arrowlogin_bg_section', array( 'priority' => 10, 'title' => __('Background', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting( 'arrowlogin_bg', array( 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'arrowlogin_bg', array( 'label' => __('Background Image:', 'arrowlogin'), 'section' => 'arrowlogin_bg_section', 'priority' => 5, 'id'=>'arrowlogin_bg_color_control', 'settings' => 'arrowlogin_bg', ))); // // $wp_customize->add_setting( 'arrowlogin_bg_video', array( // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'arrowlogin_bg_video', array( // 'label' => __('Background Video:', 'arrowlogin'), // 'section' => 'arrowlogin_bg_section', // 'priority' => 10, // 'id'=>'arrowlogin_bg_color_control', // 'settings' => 'arrowlogin_bg_video', // ))); // // $wp_customize->add_setting( 'arrowlogin_bg_video', array( 'default' => '', 'transport' => 'refresh', //'type' => 'theme_mod', 'type' => 'option', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'arrowlogin_bg_video', array( 'label' => __( 'Background Video' ), 'section' => 'arrowlogin_bg_section', 'mime_type' => 'video', // Required. Can be image, audio, video, application, text 'button_labels' => array( // Optional 'select' => __( 'Select Video' ), 'change' => __( 'Change Video' ), 'default' => __( 'Default' ), 'remove' => __( 'Remove' ), 'placeholder' => __( 'No file selected' ), 'frame_title' => __( 'Select File' ), 'frame_button' => __( 'Choose File' ), ) ) ) ); $wp_customize->add_setting( 'arrowlogin_bg_color', array( 'default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_bg_color', array( 'label' => __('Background Color:', 'arrowlogin'), 'section' => 'arrowlogin_bg_section', 'priority' => 15, 'settings' => 'arrowlogin_bg_color', ))); $wp_customize->add_setting( 'arrowlogin_bg_image_size', array( 'default' => 'cover', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, //Pass the $wp_customize object (required) 'arrowlogin_bg_image_size', //Set a unique ID for the control array( 'label' => 'Background Image Size', //Admin-visible name of the control 'settings' => 'arrowlogin_bg_image_size', //Which setting to load and manipulate (serialized is okay) 'priority' => 20, //Determines the order this control appears in for the specified section 'section' => 'arrowlogin_bg_section', //ID of the section this control should render in (can be one of yours, or a WordPress default section) 'type' => 'select', 'choices' => array( 'auto' => 'auto', 'cover' => 'cover', 'contain' => 'contain', 'intial' => 'intial', 'inherit' => 'inherit', ) ) ) ); $wp_customize->add_setting( 'arrowlogin_bg_repeat', array( 'default' => 'no-repeat', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, //Pass the $wp_customize object (required) 'arrowlogin_bg_repeat', //Set a unique ID for the control array( 'label' => 'Background Repeat', //Admin-visible name of the control 'settings' => 'arrowlogin_bg_repeat', //Which setting to load and manipulate (serialized is okay) 'priority' => 25, //Determines the order this control appears in for the specified section 'section' => 'arrowlogin_bg_section', //ID of the section this control should render in (can be one of yours, or a WordPress default section) 'type' => 'select', 'choices' => array( 'no-repeat' => 'no-repeat', 'repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y', 'intial' => 'intial', 'inherit' => 'inherit', ) ) ) ); // $wp_customize->add_setting( 'arrowlogin_bg_size', array( // 'type' => 'option', // 'capability' => 'edit_theme_options' // )); // $wp_customize->add_control( 'arrowlogin_bg_size', array( // 'label' => __('Background Size:', 'arrowlogin'), // 'section' => 'arrowlogin_bg_section', // 'priority' => 15, // 'settings' => 'arrowlogin_bg_size', // )); } function arrowlogin_field_customizer_settings($wp_customize){ /* --------------------------- | | | Section for field styling | | | -----------------------------*/ $wp_customize->add_section( 'arrowlogin_field_style', array( 'priority' => 25, 'title' => __('Fields', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); // $wp_customize->add_setting( 'arrowlogin_other_textColor', array( // 'default' => '#999', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_other_textColor', array( // 'label' => __('Text Color:', 'arrowlogin'), // 'section' => 'arrowlogin_field_style', // 'priority' => 5, // 'settings' => 'arrowlogin_other_textColor', // ))); // $wp_customize->add_setting( 'arrowlogin_other_textColorH', array( // 'default' => '#2EA2CC', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_other_textColorH', array( // 'label' => __('Text Color Hover:', 'arrowlogin'), // 'section' => 'arrowlogin_field_style', // 'priority' => 5, // 'settings' => 'arrowlogin_other_textColorH', // ))); // // $wp_customize->add_setting( 'arrowlogin_field_style_width', array( // 'default' => '100%', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control( 'arrowlogin_field_style_width', array( // 'label' => __('Input Field Width:', 'arrowlogin'), // 'section' => 'arrowlogin_field_style', // 'priority' => 5, // 'settings' => 'arrowlogin_field_style_width', // )); // $wp_customize->add_setting( 'arrowlogin_field_style_margin', array( // 'default' => '2px 6px 16px 0px', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control( 'arrowlogin_field_style_margin', array( // 'label' => __('Input Field Margin:', 'arrowlogin'), // 'section' => 'arrowlogin_field_style', // 'priority' => 10, // 'settings' => 'arrowlogin_field_style_margin', // )); $wp_customize->add_setting( 'arrowlogin_field_style_ifbg', array( 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_field_style_ifbg', array( 'label' => __('Input Field Background:', 'arrowlogin'), 'section' => 'arrowlogin_field_style', 'priority' => 15, 'settings' => 'arrowlogin_field_style_ifbg', ))); $wp_customize->add_setting( 'arrowlogin_field_style_ifc', array( 'default' => '#333', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_field_style_ifc', array( 'label' => __('Input Field Color:', 'arrowlogin'), 'section' => 'arrowlogin_field_style', 'priority' => 20, 'settings' => 'arrowlogin_field_style_ifc', ))); $wp_customize->add_setting( 'arrowlogin_field_style_lc', array( 'default' => '#777', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_field_style_lc', array( 'label' => __('Label Color:', 'arrowlogin'), 'section' => 'arrowlogin_field_style', 'priority' => 25, 'settings' => 'arrowlogin_field_style_lc', ))); } function arrowlogin_button_customizer_settings($wp_customize){ $wp_customize->add_section( 'arrowlogin_button_section', array( 'priority' => 30, 'title' => __('Button', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting('arrowlogin_button_bg', array( 'default' => '#2EA2CC', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_button_bg', array( 'label' => __('Button Background:', 'arrowlogin'), 'section' => 'arrowlogin_button_section', 'priority' => 5, 'settings' => 'arrowlogin_button_bg' ))); // $wp_customize->add_setting('arrowlogin_button_border', array( // 'default' => '#0074A2', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // // $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_button_border', array( // 'label' => __('Button Border:', 'arrowlogin'), // 'section' => 'arrowlogin_button_section', // 'priority' => 10, // 'settings' => 'arrowlogin_button_border' // ))); $wp_customize->add_setting('arrowlogin_button_hover_bg', array( 'default' => '#1E8CBE', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_button_hover_bg', array( 'label' => __('Button Background (Hover):', 'arrowlogin'), 'section' => 'arrowlogin_button_section', 'priority' => 15, 'settings' => 'arrowlogin_button_hover_bg' ))); // $wp_customize->add_setting('arrowlogin_button_hover_border', array( // 'default' => '#0074A2', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // // $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_button_hover_border', array( // 'label' => __('Button Border (Hover):', 'arrowlogin'), // 'section' => 'arrowlogin_button_section', // 'priority' => 20, // 'settings' => 'arrowlogin_button_hover_border' // ))); // $wp_customize->add_setting('arrowlogin_button_shadow', array( // 'default' => '#78C8E6', // 'type' => 'option', // 'capability' => 'edit_theme_options', // )); // $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_button_shadow', array( // 'label' => __('Button Box Shadow:', 'arrowlogin'), // 'section' => 'arrowlogin_button_section', // 'priority' => 25, // 'settings' => 'arrowlogin_button_shadow' // ))); $wp_customize->add_setting('arrowlogin_button_color', array( 'default' => '#FFF', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_button_color', array( 'label' => __('Text Color:', 'arrowlogin'), 'section' => 'arrowlogin_button_section', 'priority' => 30, 'settings' => 'arrowlogin_button_color' ))); } function arrowlogin_form_customizer_settings($wp_customize){ $wp_customize->add_section( 'arrowlogin_form_bg_section', array( 'priority' => 15, 'title' => __('Login Form', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting( 'arrowlogin_form_bg', array( 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'arrowlogin_form_bg', array( 'label' => __('Background Image:', 'arrowlogin'), 'section' => 'arrowlogin_form_bg_section', 'priority' => 5, 'settings' => 'arrowlogin_form_bg', ))); $wp_customize->add_setting( 'arrowlogin_form_bg_color', array( 'default' => '#FFF', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control ($wp_customize, 'arrowlogin_form_bg_color', array( 'label' => __('Background Color:', 'arrowlogin'), 'section' => 'arrowlogin_form_bg_section', 'priority' => 10, 'settings' => 'arrowlogin_form_bg_color', ))); $wp_customize->add_setting( 'arrowlogin_form_style_width', array( 'default' => '272', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'arrowlogin_form_style_width', array( 'label' => __('Form Width:', 'arrowlogin'), 'section' => 'arrowlogin_form_bg_section', 'priority' => 15, 'type' => "number", 'settings' => 'arrowlogin_form_style_width', )); $wp_customize->add_setting( 'arrowlogin_form_style_height', array( 'default' => '188', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'arrowlogin_form_style_height', array( 'label' => __('Form Height:', 'arrowlogin'), 'section' => 'arrowlogin_form_bg_section', 'priority' => 20, 'type' => "number", 'settings' => 'arrowlogin_form_style_height', )); } function arrowlogin_Label_customizer_settings($wp_customize){ $wp_customize->add_section( 'arrowlogin_label_section', array( 'priority' => 30, 'title' => __('Label', 'arrowlogin'), 'panel' => 'arrowlogin_panel', )); $wp_customize->add_setting('arrowlogin_lablel_remember_me_color', array( 'default' => '#72777c', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_lablel_remember_me_color', array( 'label' => __('Remember Me
    Text Color:', 'arrowlogin'), 'section' => 'arrowlogin_label_section', 'priority' => 5, 'settings' => 'arrowlogin_lablel_remember_me_color' ))); $wp_customize->add_setting('arrowlogin_lablel_remember_me_hover_color', array( 'default' => '#72777c', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_lablel_remember_me_hover_color', array( 'label' => __('Hover Color:', 'arrowlogin'), 'section' => 'arrowlogin_label_section', 'priority' => 10, 'settings' => 'arrowlogin_lablel_remember_me_hover_color' ))); $wp_customize->add_setting('arrowlogin_lablel_lost_password_color', array( 'default' => '#72777c', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_lablel_lost_password_color', array( 'label' => __('Lost Password
    Text Color:', 'arrowlogin'), 'section' => 'arrowlogin_label_section', 'priority' => 15, 'settings' => 'arrowlogin_lablel_lost_password_color' ))); $wp_customize->add_setting('arrowlogin_lablel_lost_password_hover_color', array( 'default' => '#72777c', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_lablel_lost_password_hover_color', array( 'label' => __('Hover Color:', 'arrowlogin'), 'section' => 'arrowlogin_label_section', 'priority' => 15, 'settings' => 'arrowlogin_lablel_lost_password_hover_color' ))); $wp_customize->add_setting('arrowlogin_lablel_back_color', array( 'default' => '#72777c', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_lablel_back_color', array( 'label' => __('Back to
    Text Color:', 'arrowlogin'), 'section' => 'arrowlogin_label_section', 'priority' => 15, 'settings' => 'arrowlogin_lablel_back_color' ))); $wp_customize->add_setting('arrowlogin_lablel_back_hover_color', array( 'default' => '#72777c', 'type' => 'option', 'capability' => 'edit_theme_options', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'arrowlogin_lablel_back_hover_color', array( 'label' => __('Hover Color:', 'arrowlogin'), 'section' => 'arrowlogin_label_section', 'priority' => 20, 'settings' => 'arrowlogin_lablel_back_hover_color' ))); } function arrowlogin_customizer(){ //Logo $clickitlp_logo_path = get_option('arrowlogin_logo'); $clickitlp_logo_width = get_option('arrowlogin_logo_width'); $clickitlp_logo_height = get_option('arrowlogin_logo_height'); //$clickitlp_logo_padding = get_option('arrowlogin_logo_padding'); $clickitlp_logo_enable = get_option('arrowlogin_logo_enable'); //Background $clickitlp_bg = get_option('arrowlogin_bg'); $clickitlp_bg_color = get_option('arrowlogin_bg_color'); $clickitlp_bg_video = get_option('arrowlogin_bg_video'); $clickitlp_bg_video = wp_get_attachment_url( $clickitlp_bg_video ); //Form $clickitlp_form_bg_img = get_option('arrowlogin_form_bg'); $clickitlp_form_bg_color = get_option('arrowlogin_form_bg_color'); $clickitlp_form_style_width = get_option('arrowlogin_form_style_width'); $clickitlp_form_style_height = get_option('arrowlogin_form_style_height'); // $clickitlp_form_style_padding = get_option('arrowlogin_form_style_padding'); // $clickitlp_form_style_border = get_option('arrowlogin_form_style_border'); //input fields $clickitlp_field_style_width = get_option('arrowlogin_field_style_width'); $clickitlp_field_style_margin = get_option('arrowlogin_field_style_margin'); $clickitlp_field_style_ifbg = get_option('arrowlogin_field_style_ifbg'); $clickitlp_field_style_ifc = get_option('arrowlogin_field_style_ifc'); $clickitlp_field_style_lc = get_option('arrowlogin_field_style_lc'); //submit button $clickitlp_button_bg = get_option('arrowlogin_button_bg'); $clickitlp_button_color = get_option('arrowlogin_button_color'); $clickitlp_button_hover_bg = get_option('arrowlogin_button_hover_bg'); // $clickitlp_button_hover_border = get_option('arrowlogin_button_hover_border'); // $clickitlp_button_border = get_option('arrowlogin_button_border'); // $clickitlp_button_shadow = get_option('arrowlogin_button_shadow'); // $clickitlp_other_textColor = get_option('arrowlogin_other_textColor'); // $clickitlp_other_textColorH = get_option('arrowlogin_other_textColorH'); //Label $arrowlogin_lablel_remember_me_color = get_option('arrowlogin_lablel_remember_me_color'); $arrowlogin_lablel_remember_me_hover_color = get_option('arrowlogin_lablel_remember_me_hover_color'); $arrowlogin_lablel_lost_password_color = get_option('arrowlogin_lablel_lost_password_color'); $arrowlogin_lablel_lost_password_hover_color = get_option('arrowlogin_lablel_lost_password_hover_color'); $arrowlogin_lablel_back_color = get_option('arrowlogin_lablel_back_color'); $arrowlogin_lablel_back_hover_color = get_option('arrowlogin_lablel_back_hover_color'); $clickitlp_other_css = get_option('arrowlogin_custom_css'); $clickitlp_theme = get_option('arrowlogin_theme'); $clickitlp_apply_theme = get_option('arrowlogin_apply_theme'); update_option('arrowlogin_temp_theme',$clickitlp_theme); if($clickitlp_logo_enable=="hide"): ?> $clickitlp_bg, // "arrowlogin_bg_color"=>$clickitlp_bg_color, // "arrowlogin_field_style_width"=>$clickitlp_field_style_width, // "arrowlogin_field_style_margin"=>$clickitlp_field_style_margin, // "arrowlogin_field_style_ifc"=>$clickitlp_field_style_ifc, // "arrowlogin_field_style_ifbg"=>$clickitlp_field_style_ifbg, // "arrowlogin_button_bg"=>$clickitlp_button_bg, // "arrowlogin_button_color"=>$clickitlp_button_color, // "arrowlogin_button_hover_bg"=>$clickitlp_button_hover_bg, // "arrowlogin_form_bg"=>$clickitlp_form_bg_img, // "arrowlogin_form_bg_color"=>$clickitlp_form_bg_color, // "arrowlogin_form_style_width"=>$clickitlp_form_style_width, // "arrowlogin_form_style_height"=>arrowlogin_form_style_height, // "arrowlogin_lablel_remember_me_color"=>$arrowlogin_lablel_remember_me_color, // "arrowlogin_lablel_remember_me_hover_color"=>$arrowlogin_lablel_remember_me_hover_color, // "arrowlogin_lablel_lost_password_color"=>$arrowlogin_lablel_lost_password_color, // "arrowlogin_lablel_lost_password_hover_color"=>$arrowlogin_lablel_lost_password_hover_color, // "arrowlogin_lablel_back_color"=>$arrowlogin_lablel_back_color, // "arrowlogin_lablel_back_hover_color"=>$arrowlogin_lablel_back_hover_color, // "arrowlogin_bg_video"=>$clickitlp_bg_video, // "arrowlogin_logo_enable"=>$clickitlp_logo_enable // // // // ); // update_option('arrowlogin_temp_changes',$arr); } function arrowlogin_apply_custom_form_css($clickitlp_form_bg_img,$clickitlp_form_bg_color,$clickitlp_form_style_width,$clickitlp_form_style_height){ if($clickitlp_form_bg_img!=""): ?> #loginform{ background-image: url() !important; width: px !important; height: px !important; } #loginform{ background: !important; width: px !important; height: px !important; } html,body{ background-image: url() !important; background-size: !important; background-repeat: !important; } $x_value) { update_option($x,$x_value); } echo $arr['arrowlogin_bg']; wp_die(); } add_action( 'login_enqueue_scripts', 'arrowlogin_customizer' ); function arrowlogin_login_logo_url() { //arrowlogin_hideOthers(); return get_bloginfo( 'url' ); } add_filter( 'login_headerurl', 'arrowlogin_login_logo_url' ); function arrowlogin_login_logo_url_title() { $title = get_bloginfo( 'name', 'display' ); //arrowlogin_hideOthers(); return $title; } add_filter( 'login_headertitle', 'arrowlogin_login_logo_url_title' ); add_action( 'customize_controls_enqueue_scripts', function(){ wp_enqueue_script( 'arrowlogin-customizer-controls', plugins_url('arrowlogin-customize-controls.js',__FILE__), array( 'jquery' ), '20170412', true ); } ); ?>