function wpuf_settings_fields()
{
    $settings_fields = array('wpuf_labels' => apply_filters('wpuf_options_label', array(array('name' => 'title_label', 'label' => __('Post title label', 'wpuf'), 'default' => 'Title'), array('name' => 'title_help', 'label' => __('Post title help text', 'wpuf')), array('name' => 'cat_label', 'label' => __('Post category label', 'wpuf'), 'default' => 'Category'), array('name' => 'cat_help', 'label' => __('Post category help text', 'wpuf')), array('name' => 'desc_label', 'label' => __('Post description label', 'wpuf'), 'default' => 'Description'), array('name' => 'desc_help', 'label' => __('Post description help text', 'wpuf')), array('name' => 'tag_label', 'label' => __('Post tag label', 'wpuf'), 'default' => 'Tags'), array('name' => 'tag_help', 'label' => __('Post tag help text', 'wpuf')), array('name' => 'submit_label', 'label' => __('Post submit button label', 'wpuf'), 'default' => 'Submit Post!'), array('name' => 'update_label', 'label' => __('Post update button label', 'wpuf'), 'default' => 'Update Post!'), array('name' => 'updating_label', 'label' => __('Post updating button label', 'wpuf'), 'desc' => __('the text will be used when the submit button is pressed', 'wpuf'), 'default' => 'Please wait...'), array('name' => 'ft_image_label', 'label' => __('Featured image label', 'wpuf'), 'default' => 'Featured Image'), array('name' => 'ft_image_btn_label', 'label' => __('Featured Button image label', 'wpuf'), 'default' => 'Upload Image'), array('name' => 'attachment_label', 'label' => __('Attachment Label', 'wpuf'), 'default' => 'Attachments'), array('name' => 'attachment_btn_label', 'label' => __('Attachment upload button', 'wpuf'), 'default' => 'Add another'))), 'wpuf_frontend_posting' => apply_filters('wpuf_options_frontend', array(array('name' => 'post_status', 'label' => __('Post Status', 'wpuf'), 'desc' => __('Default post status after user submits a post', 'wpuf'), 'type' => 'select', 'default' => 'publish', 'options' => array('publish' => 'Publish', 'draft' => 'Draft', 'pending' => 'Pending')), array('name' => 'post_author', 'label' => __('Post Author', 'wpuf'), 'desc' => __('Set the new post\'s post author by default', 'wpuf'), 'type' => 'select', 'default' => 'original', 'options' => array('original' => __('Original Author', 'wpuf'), 'to_other' => __('Map to other user', 'wpuf'))), array('name' => 'map_author', 'label' => __('Map posts to poster', 'wpuf'), 'desc' => __('If <b>Map to other user</b> selected, new post\'s post author will be this user by default', 'wpuf'), 'type' => 'select', 'options' => wpuf_list_users()), array('name' => 'allow_cats', 'label' => __('Allow to choose category?', 'wpuf'), 'desc' => __('Allow users to choose category while posting?', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'exclude_cats', 'label' => __('Exclude category ID\'s', 'wpuf'), 'desc' => __('Exclude categories fro the dropdown', 'wpuf'), 'type' => 'text'), array('name' => 'default_cat', 'label' => __('Default post category', 'wpuf'), 'desc' => __('If users are not allowed to choose any category, this category will be used instead', 'wpuf'), 'type' => 'select', 'options' => wpuf_get_cats()), array('name' => 'cat_type', 'label' => __('Category Selection type', 'wpuf'), 'type' => 'radio', 'default' => 'normal', 'options' => array('normal' => __('Normal', 'wpuf'), 'ajax' => __('Ajaxified', 'wpuf'), 'checkbox' => __('Checkbox', 'wpuf'))), array('name' => 'enable_featured_image', 'label' => __('Featured Image upload', 'wpuf'), 'desc' => __('Gives ability to upload an image as featured image', 'wpuf'), 'type' => 'radio', 'default' => 'no', 'options' => array('yes' => __('Enable', 'wpuf'), 'no' => __('Disable', 'wpuf'))), array('name' => 'allow_attachment', 'label' => __('Allow attachments', 'wpuf'), 'desc' => __('Will the users be able to add attachments on posts?', 'wpuf'), 'type' => 'radio', 'default' => 'no', 'options' => array('yes' => __('Enable', 'wpuf'), 'no' => __('Disable', 'wpuf'))), array('name' => 'attachment_num', 'label' => __('Number of attachments', 'wpuf'), 'desc' => __('How many attachments can be attached on a post. Put <b>0</b> for unlimited attachment', 'wpuf'), 'type' => 'text', 'default' => '0'), array('name' => 'attachment_max_size', 'label' => __('Attachment max size', 'wpuf'), 'desc' => __('Enter the maximum file size in <b>KILOBYTE</b> that is allowed to attach', 'wpuf'), 'type' => 'text', 'default' => '2048'), array('name' => 'editor_type', 'label' => __('Content editor type', 'wpuf'), 'type' => 'select', 'default' => 'plain', 'options' => array('rich' => __('Rich Text (tiny)', 'wpuf'), 'full' => __('Rich Text (full)', 'wpuf'), 'plain' => __('Plain Text', 'wpuf'))), array('name' => 'allow_tags', 'label' => __('Allow post tags', 'wpuf'), 'desc' => __('Users will be able to add post tags', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'enable_custom_field', 'label' => __('Enable custom fields', 'wpuf'), 'desc' => __('You can use additional fields on your post submission form. Add new fields by going <b>Custom Fields</b> option page.', 'wpuf'), 'type' => 'checkbox'), array('name' => 'enable_post_date', 'label' => __('Enable post date input', 'wpuf'), 'desc' => __('This will enable users to input the post published date', 'wpuf'), 'type' => 'checkbox'), array('name' => 'enable_post_expiry', 'label' => __('Enable Post expiration', 'wpuf'), 'desc' => __('Users will be able to select a duration, after that time from post publish date, post will be set to draft. This feature depends on <strong>Post Expirator</strong> plugin. ', 'wpuf'), 'type' => 'checkbox'))), 'wpuf_dashboard' => apply_filters('wpuf_options_dashboard', array(array('name' => 'post_type', 'label' => __('Show post type', 'wpuf'), 'desc' => __('Select the post type that the user will see', 'wpuf'), 'type' => 'select', 'options' => wpuf_get_post_types()), array('name' => 'per_page', 'label' => __('Posts per page', 'wpuf'), 'desc' => __('How many posts will be listed in a page', 'wpuf'), 'type' => 'text', 'default' => '10'), array('name' => 'show_user_bio', 'label' => __('Show user bio', 'wpuf'), 'desc' => __('Users biographical info will be shown', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'show_post_count', 'label' => __('Show post count', 'wpuf'), 'desc' => __('Show how many posts are created by the user', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'show_ft_image', 'label' => __('Show Featured Image', 'wpuf'), 'desc' => __('Show featured image of the post', 'wpuf'), 'type' => 'checkbox'), array('name' => 'ft_img_size', 'label' => __('Featured Image size', 'wpuf'), 'type' => 'select', 'options' => wpuf_get_image_sizes()))), 'wpuf_others' => apply_filters('wpuf_options_others', array(array('name' => 'post_notification', 'label' => __('New post notification', 'wpuf'), 'desc' => __('A mail will be sent to admin when a new post is created', 'wpuf'), 'type' => 'select', 'default' => 'yes', 'options' => array('yes' => __('Yes', 'wpuf'), 'no' => __('No', 'wpuf'))), array('name' => 'enable_post_edit', 'label' => __('Users can edit post?', 'wpuf'), 'desc' => __('Users will be able to edit their own posts', 'wpuf'), 'type' => 'select', 'default' => 'yes', 'options' => array('yes' => __('Yes', 'wpuf'), 'no' => __('No', 'wpuf'))), array('name' => 'enable_post_del', 'label' => __('User can delete post?', 'wpuf'), 'desc' => __('Users will be able to delete their own posts', 'wpuf'), 'type' => 'select', 'default' => 'yes', 'options' => array('yes' => __('Yes', 'wpuf'), 'no' => __('No', 'wpuf'))), array('name' => 'edit_page_id', 'label' => __('Edit Page', 'wpuf'), 'desc' => __('Select the page where [wpuf_editpost] is located', 'wpuf'), 'type' => 'select', 'options' => wpuf_get_pages()), array('name' => 'admin_access', 'label' => __('Admin area access', 'wpuf'), 'desc' => __('Allow you to block specific user role to WordPress admin area.', 'wpuf'), 'type' => 'select', 'default' => 'read', 'options' => array('install_themes' => __('Admin Only', 'wpuf'), 'edit_others_posts' => __('Admins, Editors', 'wpuf'), 'publish_posts' => __('Admins, Editors, Authors', 'wpuf'), 'edit_posts' => __('Admins, Editors, Authors, Contributors', 'wpuf'), 'read' => __('Default', 'wpuf'))), array('name' => 'cf_show_front', 'label' => __('Show custom fields in the post', 'wpuf'), 'desc' => __('If you want to show the custom field data in the post added by the plugin.', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'att_show_front', 'label' => __('Show attachments in the post', 'wpuf'), 'desc' => __('If you want to show the uploaded attachments in the post', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'override_editlink', 'label' => __('Override the post edit link', 'wpuf'), 'desc' => __('Users see the edit link in post if s/he is capable to edit the post/page. Selecting <strong>Yes</strong> will override the default WordPress link', 'wpuf'), 'type' => 'select', 'default' => 'no', 'options' => array('yes' => __('Yes', 'wpuf'), 'no' => __('No', 'wpuf'))), array('name' => 'custom_css', 'label' => __('Custom CSS codes', 'wpuf'), 'desc' => __('If you want to add your custom CSS code, it will be added on page header wrapped with style tag', 'wpuf'), 'type' => 'textarea'))), 'wpuf_payment' => apply_filters('wpuf_options_payment', array(array('name' => 'charge_posting', 'label' => __('Charge for posting', 'wpuf'), 'desc' => __('Charge user for submitting a post', 'wpuf'), 'type' => 'select', 'default' => 'no', 'options' => array('yes' => __('Yes', 'wpuf'), 'no' => __('No', 'wpuf'))), array('name' => 'force_pack', 'label' => __('Force pack purchase', 'wpuf'), 'desc' => __('When active, users must have to buy a pack for posting', 'wpuf'), 'type' => 'select', 'default' => 'no', 'options' => array('no' => __('Disable', 'wpuf'), 'yes' => __('Enable', 'wpuf'))), array('name' => 'currency', 'label' => __('Currency', 'wpuf'), 'type' => 'select', 'default' => 'USD', 'options' => array('AUD' => 'Australian Dollar', 'CAD' => 'Canadian Dollar', 'EUR' => 'Euro', 'GBP' => 'British Pound', 'JPY' => 'Japanese Yen', 'USD' => 'U.S. Dollar', 'NZD' => 'New Zealand Dollar', 'CHF' => 'Swiss Franc', 'HKD' => 'Hong Kong Dollar', 'SGD' => 'Singapore Dollar', 'SEK' => 'Swedish Krona', 'DKK' => 'Danish Krone', 'PLN' => 'Polish Zloty', 'NOK' => 'Norwegian Krone', 'HUF' => 'Hungarian Forint', 'CZK' => 'Czech Koruna', 'ILS' => 'Israeli New Shekel', 'MXN' => 'Mexican Peso', 'BRL' => 'Brazilian Real', 'MYR' => 'Malaysian Ringgit', 'PHP' => 'Philippine Peso', 'TWD' => 'New Taiwan Dollar', 'THB' => 'Thai Baht', 'TRY' => 'Turkish Lira')), array('name' => 'currency_symbol', 'label' => __('Currency Symbol', 'wpuf'), 'type' => 'text', 'default' => '$'), array('name' => 'cost_per_post', 'label' => __('Cost', 'wpuf'), 'desc' => __('Cost per post', 'wpuf'), 'type' => 'text', 'default' => '2'), array('name' => 'sandbox_mode', 'label' => __('Enable demo/sandbox mode', 'wpuf'), 'desc' => __('When sandbox mode is active, all payment gateway will be used in demo mode', 'wpuf'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'payment_page', 'label' => __('Payment Page', 'wpuf'), 'desc' => __('This page will be used to process payment options', 'wpuf'), 'type' => 'select', 'options' => wpuf_get_pages()), array('name' => 'payment_success', 'label' => __('Payment Success Page', 'wpuf'), 'desc' => __('After payment users will be redirected here', 'wpuf'), 'type' => 'select', 'options' => wpuf_get_pages()), array('name' => 'active_gateways', 'label' => __('Payment Gateways', 'wpuf'), 'desc' => __('Active payment gateways', 'wpuf'), 'type' => 'multicheck', 'options' => wpuf_get_gateways()))), 'wpuf_support' => apply_filters('wpuf_options_support', array(array('name' => 'support', 'label' => __('Need Help?', 'wpuf'), 'type' => 'html', 'desc' => '
                        <ol>
                            <li>
                                <strong>Check the FAQ and the documentation</strong>
                                <p>First of all, check the <strong><a href="http://wordpress.org/extend/plugins/wp-user-frontend/faq/">FAQ</a></strong> before contacting! Most of the questions you might need answers to have already been asked and the answers are in the FAQ. Checking the FAQ is the easiest and quickest way to solve your problem.</p>
                            </li>
                            <li>
                                <strong>Use the Support Forum</strong>
                                <p>If you were unable to find the answer to your question on the FAQ page, you should check the <strong><a href="http://wordpress.org/tags/wp-user-frontend?forum_id=10">support forum on WordPress.org</a></strong>. If you can’t locate any topics that pertain to your particular issue, post a new topic for it.</p>
                                <p>But, remember that this is a free support forum and no one is obligated to help you. Every person who offers information to help you is a volunteer, so be polite. And, I would suggest that you read the <a href="http://wordpress.org/support/topic/68664">“Forum Rules”</a> before posting anything on this page.</p>
                            </li>
                            <li>
                                <strong>Got an idea?</strong>
                                <p>I would love to hear about your ideas and suggestions about the plugin. Please post them on the <strong><a href="http://wordpress.org/tags/wp-user-frontend?forum_id=10">support forum on WordPress.org</a></strong> and I will look into it</p>
                            </li>
                            <li>
                                <strong>Gettings no response?</strong>
                                <p>I try to answer all the question in the forum. I created the plugin without any charge and I am usually very busy with my other works. As this is a free plugin, I am not bound answer all of your questions.</p>
                            </li>
                            <li>
                                I spent countless hours to build this plugin, <strong><a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=tareq%40wedevs%2ecom&lc=US&item_name=WP%20User%20Frontend&item_number=Tareq%27s%20Planet&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted">support</a></strong> me if you like this plugin and <a href="http://wordpress.org/extend/plugins/wp-user-frontend/">rate</a> the plugin.
                            </li>
                        </ol>'))));
    return apply_filters('wpuf_settings_fields', $settings_fields);
}
                                <?php 
                        }
                        ?>

                            </li>

                        <?php 
                    default:
                }
            }
        }
        //foreach
    }
    // is_array
}
$wpuf_options = array(array('type' => 'title', 'label' => 'Label Options'), array('name' => 'wpuf_title_label', 'label' => 'Post title label', 'desc' => 'Label for post title', 'type' => 'text', 'default' => 'Title'), array('name' => 'wpuf_title_help', 'label' => 'Post title help text', 'desc' => 'Description for post title. Will be shown as help text, leave empty if you don\'t want anything', 'type' => 'text'), array('name' => 'wpuf_cat_label', 'label' => 'Post category label', 'desc' => 'Label for post category', 'type' => 'text', 'default' => 'Category'), array('name' => 'wpuf_cat_help', 'label' => 'Post category help text', 'desc' => 'Description for post category. Will be shown as help text, leave empty if you don\'t want anything', 'type' => 'text'), array('name' => 'wpuf_desc_label', 'label' => 'Post description label', 'desc' => 'Label for post description', 'type' => 'text', 'default' => 'Description'), array('name' => 'wpuf_desc_help', 'label' => 'Post description help text', 'desc' => 'Help text for post description', 'type' => 'text'), array('name' => 'wpuf_tag_label', 'label' => 'Post tag label', 'desc' => 'Label for post tags', 'type' => 'text', 'default' => 'Tags'), array('name' => 'wpuf_tag_help', 'label' => 'Post tag help text', 'desc' => 'Description for post title', 'type' => 'text'), array('name' => 'wpuf_post_submit_label', 'label' => 'Post submit button label', 'desc' => 'The text will be used for submit button', 'type' => 'text', 'default' => 'Submit Post!'), array('name' => 'wpuf_post_update_label', 'label' => 'Post update button label', 'desc' => 'The text will be used for update button', 'type' => 'text', 'default' => 'Update Post!'), array('name' => 'wpuf_post_submitting_label', 'label' => 'Post updating button label', 'desc' => 'The text will be used after clicking the submit button', 'type' => 'text', 'default' => 'Please wait...'), array('type' => 'title_end'), array('type' => 'title', 'label' => 'Frontend Posting Options'), array('name' => 'wpuf_post_status', 'label' => 'Post Status', 'desc' => 'Default post status after a user submits a post', 'type' => 'select', 'options' => array('publish' => 'Publish', 'draft' => 'Draft', 'pending' => 'Pending')), array('name' => 'wpuf_post_author', 'label' => 'Post Author', 'desc' => 'The poster will be the post author by default. If you want to set the post author as an another user, you may select <b>MAP TO OTHER USER</b>', 'type' => 'select', 'options' => array('original' => 'Original Author', 'to_other' => 'Map to other user')), array('name' => 'wpuf_map_author', 'label' => 'Map posts to Poster', 'desc' => 'If <b>MAP TO OTHER USER</b> selected, all submitted posts will be posted on this users account.', 'type' => 'select', 'options' => wpuf_list_users()), array('name' => 'wpuf_allow_choose_cat', 'label' => 'Allow to choose Category?', 'desc' => 'Allow Users to choose Category when they are posting?', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_exclude_cat', 'label' => 'Exclude Category ID', 'desc' => 'Exclude the categories from the category dropdown list. Enter category ID separated by comma', 'type' => 'text'), array('name' => 'wpuf_default_cat', 'label' => 'Default Post Category', 'desc' => 'If users are not allowed to choose category, select the default category that those posts will be posted.', 'type' => 'select', 'options' => wpuf_get_cats()), array('name' => 'wpuf_allow_attachments', 'label' => 'Allow Attachments', 'desc' => 'Will the users be able to add attachemtns? If they attach image, they will be added as post thumbnail. ', 'type' => 'select', 'options' => array('no' => 'Disable', 'yes' => 'Enable')), array('name' => 'wpuf_attachment_num', 'label' => 'Number of Attachments', 'desc' => 'How many attachments can be attached on a post?', 'type' => 'text', 'size' => 2), array('name' => 'wpuf_attachment_max_size', 'label' => 'Attachemnt max size', 'desc' => 'Enter the maximum file size in <b>KILOBYTE</b> that is allowed to attach.', 'type' => 'text', 'size' => 5), array('name' => 'wpuf_editor_type', 'label' => 'Contend Editor type', 'desc' => 'On a RICH TEXT selection, users will be given a WYSIWYG editor. Otherwise a simple textarea.', 'type' => 'select', 'options' => array('rich' => 'Rich Text', 'plain' => 'Plain Text')), array('name' => 'wpuf_allow_tags', 'label' => 'Allow Post Tags', 'desc' => 'Users will be able to add post tags.', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_enable_custom_field', 'label' => 'Enable custom fields', 'desc' => 'You can use additional fields on your post submission form. Add new fields by going <b>Custom Fields</b> option page.', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_enable_post_date', 'label' => 'Enable Post date input', 'desc' => 'This will enable users to input the posting date', 'type' => 'select', 'options' => array('no' => 'Disable', 'yes' => 'Enable')), array('name' => 'wpuf_enable_post_expiry', 'label' => 'Enable Post expiration', 'desc' => 'This feature depends on <strong>Post Expirator</strong> plugin. Helps you to automatically expire any post after a certain time.', 'type' => 'select', 'options' => array('no' => 'Disable', 'yes' => 'Enable')), array('type' => 'title_end'), array('type' => 'title', 'label' => 'Dashboard Options'), array('name' => 'wpuf_list_post_type', 'label' => 'Show Post Type', 'desc' => 'Select the post type that the user will see in the dashboard', 'type' => 'select', 'options' => wpuf_get_post_types()), array('name' => 'wpuf_list_post_range', 'label' => 'How many posts in a page?', 'desc' => 'Configure how many posts will be shown in one page', 'type' => 'text', 'size' => 2), array('name' => 'wpuf_list_user_info', 'label' => 'Show user bio', 'desc' => 'Users Biographical info will be shown on the dashboard', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_list_contact_info', 'label' => 'Show User contact info', 'desc' => 'Contact information from users profile will be shown under author bio. So Author Bio must be <b>enabled</b>', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_list_post_count', 'label' => 'Show post count', 'desc' => 'Show how many posts are created by the user', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_list_user_cs', 'label' => 'Show users custom fields', 'desc' => 'If you want to show users other custom fields, list the custom fields names by separating with comma', 'type' => 'textarea', 'rows' => 3, 'cols' => 40), array('type' => 'title_end'), array('type' => 'title', 'label' => 'Other Options'), array('name' => 'wpuf_notify', 'label' => 'New Post Notification', 'type' => 'select', 'desc' => 'A mail will be sent to admin if new post created', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_notify_poster', 'label' => 'Post Notification to poster', 'type' => 'select', 'desc' => 'A mail will be sent to the post creator when the post is published', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_can_edit_post', 'label' => 'User can edit post?', 'desc' => 'Users will be able to edit their posts.', 'type' => 'select', 'options' => array('yes' => 'Enable', 'no' => 'Disable')), array('name' => 'wpuf_can_del_post', 'label' => 'User can delete post?', 'desc' => 'Users will be able to delete their own post', 'type' => 'select', 'options' => array('no' => 'Disable', 'yes' => 'Enable')), array('name' => 'wpuf_edit_page_url', 'label' => 'Edit page', 'desc' => 'Select the page where [wpuf_edit] shortcode is located.', 'type' => 'select', 'options' => wpuf_dropdown_page()), array('name' => 'wpuf_admin_security', 'label' => 'Admin area access', 'desc' => 'Allow you to block specific users from role to wordpress admin area. The setting <b>ADMINS ONLY</b> is recommended. If you want the behave as default wordpress, select <b>All Access</b>.', 'type' => 'select', 'options' => array('install_themes' => 'Admin Only', 'edit_others_posts' => 'Admins, Editors', 'publish_posts' => 'Admins, Editors, Authors', 'edit_posts' => 'Admins, Editors, Authors, Contributors', 'read' => 'All Access')), array('name' => 'wpuf_show_custom_front', 'label' => 'Show custom fields in the post', 'desc' => 'If you want to show the custom field data to the post, select <b>Yes</b>.', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_show_attach_inpost', 'label' => 'Show attachments in the post', 'desc' => 'If you want to show the uploaded attachment in the post, select <b>Yes</b>.', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_override_editlink', 'label' => 'Override the post edit link', 'desc' => 'Users see the edit link in post if s/he is capable to edit the post/page. Selecting <strong>Yes</strong> will override the default WordPress link', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_custom_css', 'label' => 'Custom CSS codes', 'desc' => 'Add your custom CSS codes if you want to. This code will be placed on page header area wrapped with style tag', 'type' => 'textarea', 'rows' => 8, 'cols' => 40), array('type' => 'title_end'), array('type' => 'title', 'label' => 'Payment Options'), array('name' => 'wpuf_sub_charge_posting', 'label' => 'Charge for posting', 'desc' => 'Apply charging for submitting a post', 'type' => 'select', 'options' => array('no' => 'No', 'yes' => 'Yes')), array('name' => 'wpuf_sub_force_pack', 'label' => 'User must purchase packs for posting?', 'desc' => "When this option is active, users can't post without purchasing a subscription package", 'type' => 'select', 'options' => array('no' => 'Disable', 'yes' => 'Enable')), array('name' => 'wpuf_sub_currency', 'label' => 'Currency', 'desc' => 'Currency of the amount', 'type' => 'select', 'options' => array('USD' => 'USD', 'AUD' => 'AUD')), array('name' => 'wpuf_sub_currency_sym', 'label' => 'Currency Symbol', 'desc' => 'Enter your currency symbol', 'type' => 'text'), array('name' => 'wpuf_sub_amount', 'label' => 'Cost', 'desc' => 'Cost per post', 'type' => 'text'), array('name' => 'wpuf_sub_paypal_mail', 'label' => 'Paypal Email', 'desc' => 'Enter your paypal email address where the money will be sent', 'type' => 'text'), array('name' => 'wpuf_sub_paypal_sandbox', 'label' => 'Enable paypal sandbox', 'desc' => 'Wheather use paypal as testing mode or not', 'type' => 'select', 'options' => array('yes' => 'Yes', 'no' => 'No')), array('name' => 'wpuf_sub_pay_page', 'label' => 'Paypal Payment Page', 'desc' => 'This page will be used to process the payment options.', 'type' => 'select', 'options' => wpuf_dropdown_page()), array('name' => 'wpuf_sub_pay_thank_page', 'label' => 'Paypal Thank you page', 'desc' => 'After payment, users will be redirected here.', 'type' => 'select', 'options' => wpuf_dropdown_page()), array('type' => 'title_end'), array('type' => 'title', 'label' => 'Support'), array('type' => 'h4', 'label' => 'Facing any problem?'), array('type' => 'html', 'label' => '
              <ol>
                <li>
                    <strong>Check the FAQ and the documentation</strong>
                    <p>First of all, check the <strong><a href="http://wordpress.org/extend/plugins/wp-user-frontend/faq/">FAQ</a></strong> before contacting! Most of the questions you might need answers to have already been asked and the answers are in the FAQ. Checking the FAQ is the easiest and quickest way to solve your problem.</p>
                </li>
                <li>
                    <strong>Use the Support Forum</strong>
                    <p>If you were unable to find the answer to your question on the FAQ page, you should check the <strong><a href="http://wordpress.org/tags/wp-user-frontend?forum_id=10">support forum on WordPress.org</a></strong>. If you can’t locate any topics that pertain to your particular issue, post a new topic for it.</p>
                    <p>But, remember that this is a free support forum and no one is obligated to help you. Every person who offers information to help you is a volunteer, so be polite. And, I would suggest that you read the <a href="http://wordpress.org/support/topic/68664">“Forum Rules”</a> before posting anything on this page.</p>
                </li>
                <li>
                    <strong>Got an idea?</strong>
                    <p>I would love to hear about your ideas and suggestions about the plugin. Please post them on the <strong><a href="http://wordpress.org/tags/wp-user-frontend?forum_id=10">support forum on WordPress.org</a></strong> and I will look into it</p>
                </li>
                <li>