'name'=>'login_redirect', 'label'=>'Redirect default login action to this page', 'required'=>false, 'post_type'=>'page'), $simplr_reg->login_redirect, 'wide' );*/ SREG_Form::related_select(array('name' => 'profile_redirect', 'label' => __('Redirect default profile page', 'simplr-registration-form'), 'required' => false, 'post_type' => 'page', 'comment' => __('Use this option to force users to access only their "front" end profile page ... i.e. the page with the [profile_page] shortcode', 'simplr-registration-form')), @$simplr_reg->profile_redirect, 'wide chzn'); SREG_Form::related_select(array('name' => 'thank_you', 'label' => __('Custom Thank You Page', 'simplr-registration-form'), 'required' => false, 'post_type' => 'page', 'comment' => __('You can leave this field blank. The default behavior outputs a confirmation on the page with the registration shortcode after registering. Use this only if you want to redirect the user elsewhere after registration.', 'simplr-registration-form')), @$simplr_reg->thank_you, 'wide chzn', ''); if (is_object($simplr_reg) && isset($simplr_reg->default_email)) { $default_email = $simplr_reg->default_email; } else { $default_email = get_option('admin_email'); } SREG_Form::text(array('name' => 'default_email', 'label' => __('Default FROM Email', 'simplr-registration-form'), 'required' => false), $default_email, 'wide'); SREG_Form::radio(array('name' => 'styles', 'label' => __('Disable Plugin Styles', 'simplr-registration-form'), 'required' => 'no', 'default' => 'no'), @$simplr_reg->styles, '', array('yes' => __('Yes', 'simplr-registration-form'), 'no' => __('No', 'simplr-registration-form'))); if (isset($simplr_reg->styles) && $simplr_reg->styles != 'yes') { SREG_Form::select(array('name' => 'style_skin', 'label' => __('Select a style', 'simplr-registration-form'), 'required' => 'no', 'default' => 'default.css', 'helper' => 'skins'), @$simplr_reg->style_skin, '', ''); SREG_Form::text(array('name' => 'stylesheet', 'label' => __('Override Default Stylesheet', 'simplr-registration-form'), 'required' => false, 'comment' => __('Specify a custom stylesheet. Will not apply if "Plugin Styles" are disabled', 'simplr-registration-form')), @$simplr_reg->stylesheet, 'wide'); } /*Deprecated: All registration forms now have custom messages. SREG_Form::textarea(array( 'name'=>'email_message', 'label'=>'Email Message', 'required'=>false ), @$simplr_reg->email_message, 'wide', array('95%','200px') );*/ ?> <?php
<?php SREG_Form::text(array('name' => 'label', 'label' => __('Field Label', 'simplr-registration-form'), 'required' => true, 'comment' => __('Human readable name for display to users', 'simplr-registration-form')), esc_attr(@$field->label), 'wide'); ?> <?php SREG_Form::text(array('name' => 'key', 'label' => __('Field Key', 'simplr-registration-form'), 'required' => true, 'comment' => __('Machine readable name to represent this field in the Database', 'simplr-registration-form')), esc_attr(@$field->key), 'wide'); ?> <?php SREG_Form::radio(array('name' => 'custom_column', 'label' => __('Show this field on user admin screens?', 'simplr-registration-form'), 'default' => 'no'), @esc_attr($field->custom_column), 'wide', array('yes' => __('Yes', 'simplr-registration-form'), 'no' => __('No', 'simplr-registration-form'))); ?> <?php SREG_Form::radio(array('name' => 'required', 'label' => __('Is this field required?', 'simplr-registration-form'), 'default' => 'yes'), esc_attr(@$field->required), 'wide', array('yes' => __('Yes', 'simplr-registration-form'), 'no' => __('No', 'simplr-registration-form'))); ?> <?php SREG_Form::radio(array('name' => 'show_in_profile', 'label' => __('Show this field in user profile?', 'simplr-registration-form'), 'default' => 'yes'), esc_attr(@$field->show_in_profile), 'wide', array('yes' => __('Yes', 'simplr-registration-form'), 'no' => __('No', 'simplr-registration-form'))); ?> <?php SREG_Form::select(array('name' => 'type', 'label' => __('Type', 'simplr-registration-form'), 'default' => 'text'), esc_attr($field->type ? $field->type : 'text'), 'wide', array('text' => __('Text Field', 'simplr-registration-form'), 'textarea' => __('Textarea', 'simplr-registration-form'), 'select' => __('Multiple Choice: Select Box', 'simplr-registration-form'), 'radio' => __('Multiple Choice: Radio Buttons', 'simplr-registration-form'), 'date' => __('Date Field', 'simplr-registration-form'), 'checkbox' => __('Checkbox', 'simplr-registration-form'), 'hidden' => __('Hidden Field', 'simplr-registration-form'), 'callback' => __('Callback Function', 'simplr-registration-form')), 'type-select'); ?> <div id="choices"> <?php $comment = __('<strong>Checkbox: </strong> Option not used.', 'simplr-registration-form') . '<br />' . __('<strong>Text Field:</strong> Option is not used.', 'simplr-registration-form') . '<br />' . __('<strong>Multiple Choice:</strong> Separate multiple options with a comma (i.e. yes,no).', 'simplr-registration-form') . '<br />' . __('<strong>Date:</strong> Option is used to determine range of available dates. Enter two years separated by commas. i.e. 2000,2015.', 'simplr-registration-form') . '<br />' . __('<strong>Textarea:</strong> Option is used to determine height and width of text box. Enter dimensions width them height, separated by a comma (i.e. <em>300px,100px</em> would generate a box that is 300 pixels wide and 100 pixels tall).', 'simplr-registration-form') . '<br />' . __('<strong>Hidden Field:</strong> Option determines the value that will be passed to the hidden field.', 'simplr-registration-form'); ?> <?php $values = isset($field->options_array) ? implode(',', @$field->options_array) : null; ?> <?php SREG_Form::text(array('name' => 'options_array', 'label' => __('Options', 'simplr-registration-form'), 'comment' => $comment), $values, ''); ?>