function get_list_of_default_payment_profiles()
{
    $pp = get_list_of_payment_profiles();
    $r = array();
    foreach ($pp as $k => $v) {
        $gw = get_gateway_info($k);
        if (epl_get_element('_epl_default_selected', $gw) == 10) {
            $r[] = strval($k);
        }
    }
    return $r;
}
Ejemplo n.º 2
0
function epl_sc_option_fields()
{
    global $epl_fields;
    $epl_fields['epl_sc_options'] = array('epl_sc_enable' => array('weight' => 5, 'input_type' => 'select', 'input_name' => 'epl_sc_enable', 'options' => array(0 => epl__('No'), 10 => epl__('Yes. Pop-up based'), 15 => epl__('Yes. Button based')), 'default_value' => 0, 'label' => epl__('Enable Shopping Cart'), 'description' => epl__('When enabled, the user will have the ability to register for more than one event.  Pop-up based carts displays a modal box for the user to select the event.  Button based will update the button and mark it as added to the cart.  Users will have the option to update their selections in the cart regardless of which method you use.')), 'epl_sc_footer_subtotal' => array('weight' => 6, 'input_type' => 'select', 'input_name' => 'epl_sc_footer_subtotal', 'options' => epl_yes_no(), 'default_value' => 10, 'label' => epl__('Enable Footer Totals'), 'description' => epl__('When events are added to the cart, a small box in the footer will show what the user has selected and give him the option to delete items from the cart.')), 'epl_sc_forms_to_use' => array('weight' => 7, 'input_type' => 'select', 'input_name' => 'epl_sc_forms_to_use', 'options' => array(1 => epl__('Use the forms below'), 5 => epl__('Use the forms indicated for each event')), 'default_value' => 0, 'label' => epl__('Registrations forms to use'), 'description' => epl__('When the users go through the registration and they have more than one event in the cart, the system can display the individual forms associated with each event or it can display one set of forms that you choose below. ')), 'epl_sc_primary_regis_forms' => array('weight' => 10, 'input_type' => 'table_checkbox', 'input_name' => 'epl_sc_primary_regis_forms[]', 'label' => epl__('Ticket buyer form'), 'options' => epl_get_list_of_available_forms(), 'auto_key' => true, 'class' => '', 'description' => epl__('Optional.  This is the form that you will use for collecting information from the person that is doing the registration.')), 'epl_sc_addit_regis_forms' => array('weight' => 15, 'input_type' => 'table_checkbox', 'input_name' => 'epl_sc_addit_regis_forms[]', 'label' => epl__('Forms for all attendees'), 'options' => epl_get_list_of_available_forms(), 'auto_key' => true, 'class' => '', 'description' => '<img src="' . EPL_FULL_URL . 'images/error.png" /> ' . epl__('This information will be collected from all the attendees and will be recorded for each event.  If you do not need to collect individual information and only need the quantity, do not select any of these forms.')), 'epl_sc_form_to_form_copy' => array('weight' => 18, 'input_type' => 'select', 'input_name' => 'epl_sc_form_to_form_copy', 'label' => epl__('Enable form to form copy?'), 'options' => epl_get_list_of_available_forms(), 'options' => epl_yes_no(), 'default_value' => 0, 'class' => ''), 'epl_sc_payment_choices' => array('weight' => 20, 'input_type' => 'table_checkbox', 'input_name' => 'epl_sc_payment_choices[]', 'options' => get_list_of_payment_profiles(), 'label' => epl__('Payment Choices'), 'empty_options_msg' => epl__('No Payment Profiles. Please go to Events Planner > Payment Profiles.'), 'class' => '', 'default_value' => get_list_of_default_payment_profiles(), 'auto_key' => true), 'epl_sc_default_selected_payment' => array('weight' => 25, 'input_type' => 'select', 'input_name' => 'epl_sc_default_selected_payment', 'options' => get_list_of_payment_profiles(), 'label' => epl__('Default Selected Payment'), 'help_text' => epl__('This determines which payment method is automatically selected when the user visits the regsitration cart for the first time.'), 'empty_options_msg' => epl__('No Payment Profiles. Please go to Events Planner > Payment Profiles.'), 'class' => 'req'), 'epl_sc_notification' => array('weight' => 30, 'input_type' => 'select', 'input_name' => 'epl_sc_notification', 'options' => get_list_of_available_notifications(), 'label' => epl__('Confirmation email'), 'help_text' => epl__('Email that is sent to the users after they register.'), 'empty_row' => true, 'empty_options_msg' => epl__('No email messages found.  Please go to Events Planner > Notification Manager to create notifications.')));
    $epl_fields['epl_sc_options'] = apply_filters('epl_shopping_cart_options_fields', $epl_fields['epl_sc_options']);
    uasort($epl_fields['epl_sc_options'], 'epl_sort_by_weight');
}
<?php

/*
 * Configuration fields for the event.
 * 
 * DO NOT MODIFY.
 *
 * Visit wpeventsplanner.com for instructions
 */
global $epl_fields;
$epl_fields['epl_event_type_fields'] = array('_epl_event_type' => array('input_type' => 'radio', 'input_name' => '_epl_event_type', 'options' => array(5 => 'One or more days.  The user can only choose <span class="epl_font_red">one</span> of the days (if more than one day is available).'), 'default_value' => 5, 'default_checked' => 1));
$epl_fields['epl_event_type_fields']['_epl_event_type'] = apply_filters('epl_event_type_fields', $epl_fields['epl_event_type_fields']['_epl_event_type']);
$epl_fields['epl_price_fields'] = array('_epl_price_name' => array('input_type' => 'text', 'input_name' => '_epl_price_name[]', 'class' => 'epl_w200', 'parent_keys' => true), '_epl_price' => array('input_type' => 'text', 'input_name' => '_epl_price[]', 'class' => 'epl_w70'), '_epl_price_parent_time_id' => array('input_type' => 'hidden', 'input_name' => '_epl_price_parent_time_id[]', 'default_value' => 0));
$epl_fields['epl_price_option_fields'] = array('_epl_free_event' => array('input_type' => 'select', 'input_name' => '_epl_free_event', 'label' => epl__('Is this a free event? '), 'options' => epl_yes_no(), 'default_value' => 0), '_epl_multi_price_select' => array('input_type' => 'select', 'input_name' => '_epl_multi_price_select', 'options' => epl_yes_no(), 'label' => epl__('If the event happens on different days, can the user select a different price for each one of the days?'), 'default_value' => 0), '_epl_free_event' => array('input_type' => 'select', 'input_name' => '_epl_free_event', 'options' => epl_yes_no(), 'label' => epl__('Is this a free event?'), 'default_value' => 0));
$epl_fields['epl_time_fields'] = array('_epl_start_time' => array('weight' => 10, 'input_type' => 'text', 'input_name' => '_epl_start_time[]', 'class' => 'epl_w100 timepicker', 'parent_keys' => true), '_epl_end_time' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_end_time[]', 'class' => 'epl_w100 timepicker'));
$epl_fields['epl_time_option_fields'] = array('_epl_multi_time_select' => array('weight' => 10, 'input_type' => 'select', 'input_name' => '_epl_multi_time_select', 'options' => epl_yes_no(), 'label' => epl__('If the event happens on different days, can the user select a different time for each one of the days?'), 'default_value' => 0));
$epl_fields['epl_date_fields'] = array('_epl_start_date' => array('input_type' => 'text', 'input_name' => '_epl_start_date[]', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time', 'parent_keys' => true), '_epl_end_date' => array('input_type' => 'text', 'input_name' => '_epl_end_date[]', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_regis_start_date' => array('input_type' => 'text', 'input_name' => '_epl_regis_start_date[]', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_regis_end_date' => array('input_type' => 'text', 'input_name' => '_epl_regis_end_date[]', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_date_capacity' => array('input_type' => 'text', 'input_name' => '_epl_date_capacity[]', 'label' => 'Capacity', 'description' => '', 'class' => 'epl_w40'));
$epl_fields['epl_recurrence_fields'] = array('_epl_rec_first_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_first_start_date', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_rec_first_end_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_first_end_date', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_rec_regis_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_start_date', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_rec_regis_start_days_before_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_start_days_before_start_date', 'class' => 'epl_w40', 'description' => '', 'default_value' => ''), '_epl_rec_regis_end_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_end_date', 'label' => '', 'description' => '', 'style' => 'width:100px;', 'class' => ' datepicker', 'query' => 1, 'data_type' => 'unix_time'), '_epl_rec_regis_end_days_before_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_end_days_before_start_date', 'class' => 'epl_w40', 'description' => '', 'default_value' => ''), '_epl_recurrence_frequency' => array('input_type' => 'select', 'input_name' => '_epl_recurrence_frequency', 'options' => array(0 => 'Never', 'day' => 'Daily', 'week' => 'Weekly', 'month' => 'Monthly')), '_epl_recurrence_interval' => array('input_type' => 'select', 'input_name' => '_epl_recurrence_interval', 'options' => epl_make_array(1, 30)), '_epl_recurrence_end' => array('input_type' => 'text', 'input_name' => '_epl_recurrence_end', 'label' => '', 'description' => '', 'class' => 'datepicker epl_w100', 'data_type' => 'date'), '_epl_recurrence_weekdays' => array('input_type' => 'checkbox', 'input_name' => '_epl_recurrence_weekdays[]', 'options' => array(0 => epl__('Sun'), 1 => epl__('Mon'), 2 => epl__('Tue'), 3 => epl__('Wed'), 4 => epl__('Thu'), 5 => epl__('Fri'), 6 => epl__('Sat')), 'default_checked' => 1, 'display_inline' => true), '_epl_recurrence_repeat_by' => array('input_type' => 'radio', 'input_name' => '_epl_recurrence_repeat_by', 'options' => array(0 => epl__('Day of Month')), 'default_value' => 0));
$epl_fields['epl_special_fields'] = array('_epl_pricing_type' => array('input_type' => 'select', 'input_name' => '_epl_pricing_type', 'options' => array(0 => 'All the offered times have the same prices', 10 => 'Each time has special pricing'), 'label' => 'Event Type', 'description' => 'Different Event types'));
$epl_fields['epl_regis_form_fields'] = array('_epl_primary_regis_forms' => array('input_type' => 'checkbox', 'input_name' => '_epl_primary_regis_forms[]', 'label' => epl__('Ticket buyer form'), 'options' => array(), 'description' => epl__('AT LEAST ONE FORM IS REQUIRED.  This is the form that you will use for collecting information from the person that is doing the registration.')), '_epl_addit_regis_forms' => array('input_type' => 'checkbox', 'input_name' => '_epl_addit_regis_forms[]', 'label' => epl__('Forms for all attendees'), 'options' => array(), 'description' => epl__('This information will be collected from all the attendees.  If you do not need to collect individual information and only need the quantity, do not select any of these forms.')));
$epl_fields['epl_other_settings_fields'] = array('_epl_event_location' => array('input_type' => 'select', 'input_name' => '_epl_event_location', 'options' => get_list_of_available_locations(), 'empty_row' => true, 'label' => epl__('Event Location')), '_epl_event_sublocation' => array('input_type' => 'text', 'input_name' => '_epl_event_sublocation', 'label' => 'Room, suite...', 'description' => 'Enter more specific information about the location.', 'class' => 'epl_w300'), '_epl_payment_choices' => array('input_type' => 'checkbox', 'input_name' => '_epl_payment_choices[]', 'options' => get_list_of_payment_profiles(), 'label' => epl__('Payment Choices')), '_epl_event_organization' => array('input_type' => 'select', 'input_name' => '_epl_event_organization', 'options' => get_list_of_orgs(), 'empty_row' => true, 'label' => epl__('Organization hosting the event')), '_epl_display_org_info' => array('input_type' => 'select', 'input_name' => '_epl_display_org_info', 'label' => epl__('Display Organization Info'), 'description' => 'Display the Organization info on the event list?', 'options' => epl_yes_no(), 'default_value' => 0, 'class' => ''));
$epl_fields['epl_option_fields'] = array('_epl_event_status' => array('input_type' => 'select', 'input_name' => '_epl_event_status', 'label' => epl__('Event Status'), 'options' => array(0 => epl__('Inactive'), 1 => epl__('Active'), 10 => epl__('Cancelled')), 'description' => '', 'class' => ''));
$epl_fields['epl_display_option_fields'] = array('_epl_display_regis_button' => array('input_type' => 'select', 'input_name' => '_epl_display_regis_button', 'label' => epl__('Show Registration Button'), 'options' => epl_yes_no(), 'description' => '', 'default_value' => 10, 'class' => ''));
$epl_fields['epl_capacity_fields'] = array('_epl_event_capacity_per' => array('input_type' => 'select', 'input_name' => '_epl_event_capacity_per', 'label' => epl__('Per'), 'description' => 'Per Event, Time, and Price available in PRO  version.', 'options' => array('date' => epl__('Each Dates'))), '_epl_event_available_space_display' => array('input_type' => 'select', 'input_name' => '_epl_event_available_space_display', 'label' => epl__('Display Available spaces'), 'description' => '', 'options' => epl_yes_no()), '_epl_min_attendee_per_regis' => array('input_type' => 'text', 'input_name' => '_epl_min_attendee_per_regis', 'label' => '', 'description' => 'Minimum number of registrants that the user can register.', 'class' => 'epl_w50', 'default_value' => 1), '_epl_max_attendee_per_regis' => array('input_type' => 'text', 'input_name' => '_epl_max_attendee_per_regis', 'label' => '', 'description' => 'Maximum number of registrants that the user can register.', 'class' => 'epl_w50', 'default_value' => 1), '_epl_attendee_regis_limit_per' => array('input_type' => 'select', 'input_name' => '_epl_attendee_regis_limit_per', 'label' => 'Max attendees', 'description' => 'Per Event and Each Event Date in PRO.', 'options' => array('price' => epl__('Each Event Price'))), '_epl_multi_time_select' => array('input_type' => 'radio', 'input_name' => '_epl_multi_time_select', 'label' => 'Max attendees', 'description' => '', 'options' => array(10 => epl__('Event'), 20 => epl__('Each Event Date'), 30 => epl__('Each Event Time Slot'), 40 => epl__('Each Event Price'))), '_epl_multi_price_select' => array('input_type' => 'select', 'input_name' => '_epl_multi_price_select', 'label' => 'Max attendees', 'description' => '', 'options' => array(10 => epl__('Event'), 20 => epl__('Each Event Date'), 30 => epl__('Each Event Time Slot'), 40 => epl__('Each Event Price'))));
$epl_fields['epl_time_fields'] = array('_epl_start_time' => array('weight' => 10, 'input_type' => 'text', 'input_name' => '_epl_start_time[]', 'label' => epl__('Start Time'), 'class' => 'epl_w80 timepicker req', 'parent_keys' => true), '_epl_end_time' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_end_time[]', 'label' => epl__('End Time'), 'class' => 'epl_w80 timepicker req'), '_epl_time_hide' => array('weight' => 100, 'input_type' => 'select', 'input_name' => '_epl_time_hide[]', 'options' => epl_yes_no(), 'label' => epl__('Hide')), '_epl_time_note' => array('weight' => 60, 'input_type' => 'text', 'input_name' => '_epl_time_note[]', 'help_text' => '', 'placeholder' => epl__('Note (optional)'), 'class' => 'epl_w100pct'));
$epl_fields['epl_time_fields'] = apply_filters('epl_time_fields', $epl_fields['epl_time_fields']);
uasort($epl_fields['epl_time_fields'], 'epl_sort_by_weight');
$epl_fields['epl_date_fields'] = array('_epl_start_date' => array('weight' => 5, 'input_type' => 'text', 'input_name' => '_epl_start_date[]', 'label' => epl__('Start Date'), 'class' => 'epl_w100 datepicker req', 'query' => 1, 'data_type' => 'unix_time', 'parent_keys' => true, '__func' => 'epl_admin_date_display'), '_epl_end_date' => array('weight' => 10, 'input_type' => 'text', 'input_name' => '_epl_end_date[]', 'label' => epl__('End Date'), 'class' => 'epl_w100 datepicker req ', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_regis_start_date' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_regis_start_date[]', 'label' => epl__('Regis. Starts On'), 'class' => 'epl_w100 datepicker req', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_regis_end_date' => array('weight' => 20, 'input_type' => 'text', 'input_name' => '_epl_regis_end_date[]', 'label' => epl__('Regis. Ends On'), 'class' => 'epl_w100 datepicker req', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_date_capacity' => array('weight' => 25, 'input_type' => 'text', 'input_name' => '_epl_date_capacity[]', 'label' => epl__('Capacity'), 'class' => 'epl_w40'), '_epl_date_note' => array('weight' => 30, 'input_type' => 'text', 'input_name' => '_epl_date_note[]', 'help_text' => '', 'placeholder' => epl__('Note'), 'class' => 'epl_w400'), '_epl_date_location' => array('input_type' => 'select', 'input_name' => '_epl_date_location[]', 'empty_row' => true, 'options' => get_list_of_available_locations()));
$epl_fields['epl_date_fields'] = apply_filters('epl_date_fields', $epl_fields['epl_date_fields']);
uasort($epl_fields['epl_date_fields'], 'epl_sort_by_weight');
$epl_fields['epl_date_option_fields'] = array();
$epl_fields['epl_date_option_fields'] = apply_filters('epl_date_option_fields', $epl_fields['epl_date_option_fields']);
$epl_fields['epl_class_session_fields'] = array('_epl_class_session_date' => array('weight' => 5, 'input_type' => 'text', 'input_name' => '_epl_class_session_date[]', 'label' => epl__('Session Date'), 'help_text' => '', 'class' => 'epl_w100 datepicker req', '__func' => 'epl_admin_date_display', 'data_type' => 'unix_time', 'parent_keys' => true), '_epl_class_session_name' => array('weight' => 10, 'input_type' => 'text', 'input_name' => '_epl_class_session_name[]', 'label' => epl__('Session Name'), 'help_text' => '', 'class' => 'epl_w100'), '_epl_class_session_note' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_class_session_note[]', 'label' => epl__('Session Note'), 'help_text' => '', 'class' => 'epl_w200 '));
$epl_fields['epl_class_session_fields'] = apply_filters('epl_class_session_fields', $epl_fields['epl_class_session_fields']);
uasort($epl_fields['epl_class_session_fields'], 'epl_sort_by_weight');
$epl_fields['epl_recurrence_fields'] = array('_epl_rec_first_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_first_start_date', 'style' => 'width:100px;', 'class' => ' datepicker req', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_rec_first_end_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_first_end_date', 'style' => 'width:100px;', 'class' => ' datepicker req', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_rec_regis_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_start_date', 'style' => 'width:100px;', 'class' => ' datepicker req', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_rec_regis_start_days_before_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_start_days_before_start_date', 'class' => 'epl_w40 req'), '_epl_rec_regis_end_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_end_date', 'style' => 'width:100px;', 'class' => ' datepicker req', 'query' => 1, 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_rec_regis_end_days_before_start_date' => array('input_type' => 'text', 'input_name' => '_epl_rec_regis_end_days_before_start_date', 'class' => 'epl_w40 req', 'help_text' => '', 'default_value' => ''), '_epl_recurrence_frequency' => array('input_type' => 'select', 'input_name' => '_epl_recurrence_frequency', 'options' => array(0 => 'Never', 'day' => 'Daily', 'week' => 'Weekly', 'month' => 'Monthly'), 'class' => 'req'), '_epl_recurrence_interval' => array('input_type' => 'select', 'input_name' => '_epl_recurrence_interval', 'options' => epl_make_array(1, 30), 'class' => 'req'), '_epl_recurrence_end' => array('input_type' => 'text', 'input_name' => '_epl_recurrence_end', 'label' => '', 'help_text' => '', 'class' => 'datepicker req epl_w100', 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_recurrence_weekdays' => array('input_type' => 'checkbox', 'input_name' => '_epl_recurrence_weekdays[]', 'options' => array(0 => epl__('Sun'), 1 => epl__('Mon'), 2 => epl__('Tue'), 3 => epl__('Wed'), 4 => epl__('Thu'), 5 => epl__('Fri'), 6 => epl__('Sat')), 'default_checked' => 1, 'display_inline' => true, 'class' => 'req'), '_epl_recurrence_repeat_by' => array('input_type' => 'radio', 'input_name' => '_epl_recurrence_repeat_by', 'options' => array(0 => epl__('Day of Month')), 'default_value' => 0, 'help_text' => epl__('Coming soon, ability to select per week of the month (i.e. first, second, last week).')), '_epl_recurrence_capacity' => array('input_type' => 'text', 'input_name' => '_epl_recurrence_capacity', 'help_text' => '', 'class' => 'epl_w50'));
$epl_fields['epl_recurrence_fields'] = apply_filters('epl_recurrence_fields', $epl_fields['epl_recurrence_fields']);
$epl_fields['epl_special_fields'] = array('_epl_pricing_type' => array('input_type' => 'select', 'input_name' => '_epl_pricing_type', 'options' => array(0 => 'All the offered times have the same prices', 10 => 'Each time has special pricing'), 'label' => 'Event Type', 'help_text' => 'Different Event types'));
$epl_fields['epl_regis_form_fields'] = array('_epl_primary_regis_forms' => array('input_type' => 'table_checkbox', 'input_name' => '_epl_primary_regis_forms[]', 'label' => epl__('Primary registrant forms'), 'options' => array(), 'auto_key' => true, 'description' => epl__('Optional.  This is the form that you will use for collecting information from the person that is doing the registration.')), '_epl_addit_regis_forms' => array('input_type' => 'table_checkbox', 'input_name' => '_epl_addit_regis_forms[]', 'label' => epl__('Forms for all attendees'), 'options' => array(), 'auto_key' => true, 'help_text' => '<img src="' . EPL_FULL_URL . 'images/error.png" /> ' . epl__('This information will be collected from all the attendees.  If you do not need to collect individual information and only need the quantity, do not select any of these forms.')), '_epl_addit_regis_form_counter_label' => array('input_type' => 'text', 'input_name' => '_epl_addit_regis_form_counter_label', 'label' => epl__('Form Section Counter Label'), 'default_value' => epl__('Attendee'), 'help_text' => epl__('When additional forms are presented besides the Ticket Buyer form, this value will be presented before the counter.  For example, Attendee #1, Attendee #2...')), '_epl_enable_form_to_form_copy' => array('input_type' => 'select', 'input_name' => '_epl_enable_form_to_form_copy', 'options' => epl_yes_no(), 'default_value' => 0, 'label' => epl__('Enable form to form copy?'), 'default_value' => epl__('Attendee'), 'help_text' => epl__('This will give your users the ability to copy data from form to form during the registration.')));
$epl_fields['epl_other_settings_fields'] = array('_epl_event_location' => array('weight' => 5, 'input_type' => 'select', 'input_name' => '_epl_event_location', 'options' => get_list_of_available_locations(), 'empty_row' => true, 'empty_options_msg' => epl__('No Locations found. Please go to Events Planner > Event Locations.'), 'label' => epl__('Event Location')), '_epl_event_sublocation' => array('weight' => 10, 'input_type' => 'text', 'input_name' => '_epl_event_sublocation', 'label' => epl__('Room, suite...'), 'help_text' => epl__('Enter more specific information about the location.'), 'class' => 'epl_w300'), '_epl_payment_choices' => array('weight' => 15, 'input_type' => 'table_checkbox', 'input_name' => '_epl_payment_choices[]', 'options' => get_list_of_payment_profiles(), 'label' => epl__('Payment Choices'), 'empty_options_msg' => epl__('No Payment Profiles. Please go to Events Planner > Payment Profiles.'), 'class' => 'req', 'default_value' => get_list_of_default_payment_profiles(), 'auto_key' => true, 'style' => ''), '_epl_default_selected_payment' => array('weight' => 17, 'input_type' => 'select', 'input_name' => '_epl_default_selected_payment', 'options' => get_list_of_payment_profiles(), 'label' => epl__('Default Selected Payment'), 'help_text' => epl__('This determines which payment method is automatically selected when the user visits the regsitration cart for the first time.'), 'empty_options_msg' => epl__('No Payment Profiles. Please go to Events Planner > Payment Profiles.'), 'class' => 'req'), '_epl_event_organization' => array('weight' => 20, 'input_type' => 'select', 'input_name' => '_epl_event_organization', 'options' => get_list_of_orgs(), 'empty_options_msg' => epl__('No Organizations found. Please go to Events Planner > Organizations.'), 'empty_row' => true, 'label' => epl__('Organization hosting the event')));
$epl_fields['epl_other_settings_fields'] = apply_filters('epl_other_settings_fields', $epl_fields['epl_other_settings_fields']);
uasort($epl_fields['epl_other_settings_fields'], 'epl_sort_by_weight');
$epl_fields['epl_option_fields'] = array('_epl_event_status' => array('weight' => 5, 'input_type' => 'select', 'input_name' => '_epl_event_status', 'label' => epl__('Status'), 'options' => array(0 => epl__('Inactive'), 1 => epl__('Active'), 2 => epl__('Active (hidden)'), 3 => epl__('Ongoing'), 10 => epl__('Cancelled')), 'class' => ''), '_epl_regis_privilege' => array('weight' => 10, 'input_type' => 'select', 'input_name' => '_epl_regis_privilege', 'label' => epl__('Registration Availability'), 'options' => array(0 => epl__('Open to public'), 1 => epl__('Members Only')), 'class' => ''), '_epl_registration_max' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_registration_max', 'label' => epl__('Max. per registration'), 'class' => ''));
$epl_fields['epl_option_fields'] = apply_filters('epl_option_fields', $epl_fields['epl_option_fields']);
uasort($epl_fields['epl_option_fields'], 'epl_sort_by_weight');
$epl_fields['epl_display_option_fields'] = array('_epl_display_regis_button' => array('input_type' => 'select', 'input_name' => '_epl_display_regis_button', 'label' => epl__('Show Registration Button'), 'options' => epl_yes_no(), 'default_value' => 10, 'class' => ''), '_epl_date_display_type' => array('input_type' => 'select', 'input_name' => '_epl_date_display_type', 'label' => epl__('Date Display Type'), 'options' => array(0 => epl__('None'), 5 => epl__('Table'), 10 => epl__('Calendar')), 'help_text' => epl__('Determines if the dates displayed on the event list are in table format or in small calendar format.'), 'default_value' => 5, 'class' => ''), '_epl_display_content' => array('input_type' => 'select', 'input_name' => '_epl_display_content', 'label' => epl__('Content Display Type'), 'options' => array(0 => epl__('None'), 1 => epl__('Excerpt'), 2 => epl__('Content')), 'help_text' => epl__('Determines which content to display in the event list.'), 'default_value' => 2, 'class' => ''), '_epl_event_available_space_display' => array('input_type' => 'select', 'input_name' => '_epl_event_available_space_display', 'label' => epl__('Display available spaces?'), 'help_text' => '', 'options' => epl_yes_no()), '_epl_event_detail_cart_display' => array('input_type' => 'select', 'input_name' => '_epl_event_detail_cart_display', 'label' => epl__('Display Event Details in cart?'), 'help_text' => '', 'options' => epl_yes_no()), '_epl_alt_admin_email' => array('input_type' => 'text', 'input_name' => '_epl_alt_admin_email', 'label' => epl__('Alternate Notification Emails'), 'help_text' => epl__('Enter a comma separated list of email addresses that you would like to send the registration confirmation emails to.'), 'class' => 'epl_w400'), '_epl_alt_regis_url' => array('input_type' => 'text', 'input_name' => '_epl_alt_regis_url', 'label' => epl__('Alternate Registration URL'), 'help_text' => epl__('If you would like to have the register button point to an alternate registration page or form.'), 'class' => 'epl_w400'), '_epl_cal_link_destination' => array('input_type' => 'select', 'input_name' => '_epl_cal_link_destination', 'label' => epl__('Calendar/Widget link destination'), 'options' => array(0 => epl__('Registration Page'), 1 => epl__('Event Details')), 'default_value' => 0), '_epl_title_link_destination' => array('input_type' => 'select', 'input_name' => '_epl_title_link_destination', 'label' => epl__('Event Title link destination'), 'options' => array(0 => epl__('Event Details'), 1 => epl__('Registration Page')), 'default_value' => 0));
$epl_fields['epl_display_option_fields'] = apply_filters('epl_display_option_fields', $epl_fields['epl_display_option_fields']);
//uasort( $epl_fields['epl_display_option_fields'], 'epl_sort_by_weight' );
$epl_fields['epl_message_fields'] = array('_epl_message_location' => array('weight' => 10, 'input_type' => 'select', 'input_name' => '_epl_message_location[]', 'label' => epl__('Message Location'), 'empty_row' => 1, 'options' => array('epl_regis_all_message_top' => epl__('All registration pages - top'), 'epl_regis_all_message_bottom' => epl__('All registration pages - bottom'), 'epl_cart_top_message' => epl__('Cart - top'), 'epl_cart_bottom_message' => epl__('Cart - bottom'), 'epl_regis_form_top_message' => epl__('Registration form - top'), 'epl_regis_form_bottom_message' => epl__('Registration form - bottom'), 'epl_regis_complete_top_message' => epl__('Registration complete - top'), 'epl_regis_complete_bottom_message' => epl__('Registration complete - bottom')), 'class' => 'req', 'parent_keys' => true), '_epl_message_type' => array('weight' => 15, 'input_type' => 'select', 'input_name' => '_epl_message_type[]', 'empty_row' => 1, 'options' => array('epl_info_message' => epl__('Info'), 'epl_success_message' => epl__('Success'), 'epl_warning_message' => epl__('Warning'), 'epl_error_message' => epl__('Error')), 'class' => ''), '_epl_message' => array('weight' => 20, 'input_type' => 'textarea', 'input_name' => '_epl_message[]', 'label' => epl__('Min.'), 'class' => 'epl_w100pct mceeditor req', '_save_func' => 'wp_kses_post'));
$epl_fields['epl_message_fields'] = apply_filters('epl_message_fields', $epl_fields['epl_message_fields']);
uasort($epl_fields['epl_message_fields'], 'epl_sort_by_weight');
$epl_fields['epl_report_fields'] = array('_epl_report_column' => array('weight' => 10, 'input_type' => 'checkbox', 'input_name' => '_epl_report_column[]'), '_epl_report_column_width' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_report_column_width[]'));
$epl_fields['epl_report_fields'] = apply_filters('epl_report_fields', $epl_fields['epl_report_fields']);
uasort($epl_fields['epl_report_fields'], 'epl_sort_by_weight');
$epl_fields['epl_attendee_list_fields'] = array('_epl_show_attendee_list_link' => array('weight' => 10, 'input_type' => 'select', 'input_name' => '_epl_show_attendee_list_link', 'label' => epl__('Show Attendee List Link?'), 'options' => epl_yes_no(), 'class' => ''), '_epl_show_attendee_list_button_location' => array('weight' => 20, 'input_type' => 'select', 'input_name' => '_epl_show_attendee_list_button_location', 'label' => epl__('Link Location'), 'options' => array('event_list' => epl__('Event List'), 'thank_you_page' => epl__('Registration Confirmation Page'), 'shortcode' => epl__('Shortcode')), 'class' => ''), '_epl_show_attendee_list_template' => array('weight' => 20, 'input_type' => 'select', 'input_name' => '_epl_show_attendee_list_template', 'label' => epl__('Attendee List Template'), 'options' => array('attendee-list-1' => epl__('Template 1'), 'attendee-list-2' => epl__('Template 2')), 'class' => ''), '_epl_attendee_list_field' => array('input_type' => 'checkbox', 'input_name' => '_epl_attendee_list_field[]'));