function paw_ffl_create_form_modal() { $frontendlogin = new FrontendLogin(); $options = get_option('flexible_frontend_login'); $frontendlogin->popup_link_text = $options['popup_link_text']; $frontendlogin->html_block = $options['html_block']; $output = $frontendlogin->ffl_wrap_form_modal_before(); $output .= $frontendlogin->ffl_create_html_form(); $output .= $frontendlogin->ffl_wrap_form_modal_after(); return $output; }
array( 'name'=> __( 'Delete options when plugin is deleted', 'flexible-frontend-login' ), 'desc' => '<small>' . __('Turn ON if you want to delete all plugin options when you delete the plugin from your site. (Default: On)', 'flexible-frontend-login' ) . '</small>', 'std' => true ) ); */ $options_panel->CloseTab(); // Test Settings $options_panel->OpenTab('options_2'); //title $options_panel->Title(__('Test', 'flexible-frontend-login')); // Subtitle $options_panel->addParagraph('<h3>' . __('Test your settings first...', 'flexible-frontend-login') . '</h3>'); // Create Form Previews $frontendlogin = new FrontendLogin(); // Get the options from database // Get the options from database global $wpdb; $options = get_option('flexible_frontend_login'); // assign options to the new instance $frontendlogin->vertical_position = $options['vertical_position']; $frontendlogin->horizontal_position = $options['horizontal_position']; $frontendlogin->popup_link_text = $options['popup_link_text']; $frontendlogin->html_block = $options['html_block']; $options = get_option('flexible_frontend_login'); if (!isset($options['show_username'])) { $options['show_username'] = 0; } if (!isset($options['show_logout_link'])) { $options['show_logout_link'] = 0;