/**
 * Adds a textarea setting - label and textarea.
 *
 * @author Gary Jones
 * @param string $id ID of the element
 * @param string $label Displayed label
 * @param integer cols Value for the cols attribute (default = 25)
 * @param integer rows Value for the rows attribute (default = 10)
 * @since 0.9.5
 * @return string HTML markup
 */
function prose_add_textarea_setting($id, $label, $cols = 25, $rows = 10)
{
    return prose_add_label($id, $label) . '<br /><textarea id="' . $id . '" name="' . PROSE_SETTINGS_FIELD . '[' . $id . ']" cols="39" rows="10">' . prose_get_fresh_design_option($id) . '</textarea>';
}
/**
 * Add settings to the General Settings box. Does prose_settings_general action hook.
 * 
 * @author Gary Jones
 * @since 0.9.6
 * @version 1.0
 */
function prose_settings_general()
{
    global $theme, $blog_id;
    prose_setting_line(prose_add_checkbox_setting('minify_css', __('Minify CSS?', PROSE_DOMAIN)));
    prose_setting_line(prose_add_note(__('Check this box for a live site, uncheck for testing.', PROSE_DOMAIN)));
    prose_setting_line(prose_add_note(sprintf(__('Use the Editor to <a href="%s">add/edit custom CSS</a>.', PROSE_DOMAIN), admin_url('theme-editor.php?' . prose_get_custom_stylesheet_editor_querystring()))));
    echo '<hr />';
    prose_setting_line('<a class="button" href="' . wp_nonce_url(admin_url('admin.php?page=design-settings&amp;prose=export'), 'prose-export') . '">' . __('Export Prose Settings', PROSE_DOMAIN) . '</a>');
    prose_setting_line('</form><form method="post" enctype="multipart/form-data" action="">' . wp_nonce_field('prose-import', '_wpnonce-prose-import') . prose_add_label('import-file', __('Import Prose Settings File', PROSE_DOMAIN)) . '<br /><input type="hidden" name="prose" value="import" /><input type="file" class="text_input" name="file" id="import-file" /><input class="button" type="submit" value="' . esc_attr(__('Upload', PROSE_DOMAIN)) . '" /></form>');
    do_action('prose_settings_general');
}