settings.php
78 lines
| 1 | <?php |
| 2 | if(!defined('ABSPATH')) { |
| 3 | die(); |
| 4 | } |
| 5 | ?> |
| 6 | <div class="wpallexport-collapsed wpallexport-section"> |
| 7 | <div class="wpallexport-content-section" style="margin-top:10px;"> |
| 8 | <div class="wpallexport-collapsed-header" style="padding-left: 25px;"> |
| 9 | <h3><?php esc_html_e('Configure Advanced Settings','wp_all_export_plugin');?></h3> |
| 10 | </div> |
| 11 | <div class="wpallexport-collapsed-content" style="padding: 0;"> |
| 12 | <div class="wpallexport-collapsed-content-inner"> |
| 13 | <table class="form-table" style="max-width:none;"> |
| 14 | <tr> |
| 15 | <td colspan="3"> |
| 16 | <div class="input" style="margin:5px 0px;"> |
| 17 | <label for="records_per_request"><?php esc_html_e('In each iteration, process', 'wp_all_export_plugin');?> <input type="text" name="records_per_iteration" class="wp_all_export_sub_input" style="width: 40px;" value="<?php echo esc_attr($post['records_per_iteration']) ?>" /> <?php esc_html_e('records', 'wp_all_export_plugin'); ?></label> |
| 18 | <a href="#help" class="wpallexport-help" style="position: relative; top: -2px;" title="<?php esc_html_e('WP All Export must be able to process this many records in less than your server\'s timeout settings. If your export fails before completion, to troubleshoot you should lower this number.', 'wp_all_export_plugin'); ?>">?</a> |
| 19 | </div> |
| 20 | <div class="input" style="margin:5px 0px;"> |
| 21 | <input type="hidden" name="export_only_new_stuff" value="0" /> |
| 22 | <input type="checkbox" id="export_only_new_stuff" name="export_only_new_stuff" value="1" <?php echo $post['export_only_new_stuff'] ? 'checked="checked"': '' ?> disabled="disabled"/> |
| 23 | <label for="export_only_new_stuff" disabled="disabled"><?php printf(esc_html__('Only export %s once', 'wp_all_export_plugin'), empty($post['cpt']) ? __('records', 'wp_all_export_plugin') : esc_html(wp_all_export_get_cpt_name($post['cpt']))); ?></label> |
| 24 | <a href="#help" class="wpallexport-help" style="position: relative; top: -2px;" title="<?php esc_html_e('If re-run, this export will only include records that have not been previously exported.<br><br><strong>Upgrade to the Pro edition of WP All Export to use this option.</strong>', 'wp_all_export_plugin'); ?>">?</a> |
| 25 | </div> |
| 26 | <div class="input" style="margin:5px 0px;"> |
| 27 | <input type="hidden" name="export_only_modified_stuff" value="0" /> |
| 28 | <input type="checkbox" id="export_only_modified_stuff" name="export_only_modified_stuff" value="1" <?php echo $post['export_only_modified_stuff'] ? 'checked="checked"': '' ?> disabled="disabled"/> |
| 29 | <label for="export_only_modified_stuff" disabled="disabled"><?php printf(esc_html__('Only export %s that have been modified since last export', 'wp_all_export_plugin'), empty($post['cpt']) ? __('records', 'wp_all_export_plugin') : esc_html(wp_all_export_get_cpt_name($post['cpt'], 2, $post))); ?></label> |
| 30 | <a href="#help" class="wpallexport-help" style="position: relative; top: -2px;" title="<?php esc_html_e('If re-run, this export will only include records that have been modified since last export run.<br><br><strong>Upgrade to the Pro edition of WP All Export to use this option.</strong>', 'wp_all_export_plugin'); ?>">?</a> |
| 31 | </div> |
| 32 | |
| 33 | <div class="input" style="margin:5px 0px;"> |
| 34 | <input type="hidden" name="include_bom" value="0" /> |
| 35 | <input type="checkbox" id="include_bom" name="include_bom" value="1" <?php echo $post['include_bom'] ? 'checked="checked"': '' ?> /> |
| 36 | <label for="include_bom"><?php esc_html_e('Include BOM in export file', 'wp_all_export_plugin') ?></label> |
| 37 | <a href="#help" class="wpallexport-help" style="position: relative; top: -2px;" title="<?php esc_html_e('The BOM will help some programs like Microsoft Excel read your export file if it includes non-English characters.', 'wp_all_export_plugin'); ?>">?</a> |
| 38 | </div> |
| 39 | <div class="input" style="margin:5px 0px;"> |
| 40 | <input type="hidden" name="creata_a_new_export_file" value="0" /> |
| 41 | <input type="checkbox" id="creata_a_new_export_file" name="creata_a_new_export_file" value="1" <?php echo $post['creata_a_new_export_file'] ? 'checked="checked"': '' ?> /> |
| 42 | <label for="creata_a_new_export_file"><?php esc_html_e('Create a new file each time export is run', 'wp_all_export_plugin') ?></label> |
| 43 | <a href="#help" class="wpallexport-help" style="position: relative; top: -2px;" title="<?php esc_html_e('If disabled, the export file will be overwritten every time this export run.', 'wp_all_export_plugin'); ?>">?</a> |
| 44 | </div> |
| 45 | <div class="input" style="margin:5px 0px;"> |
| 46 | <input type="hidden" name="split_large_exports" value="0" /> |
| 47 | <input type="checkbox" id="split_large_exports" name="split_large_exports" class="switcher" value="1" <?php echo $post['split_large_exports'] ? 'checked="checked"': '' ?> /> |
| 48 | <label for="split_large_exports"><?php esc_html_e('Split large exports into multiple files', 'wp_all_export_plugin') ?></label> |
| 49 | <span class="switcher-target-split_large_exports pl17" style="display:block; clear: both; width: 100%;"> |
| 50 | <div class="input pl17" style="margin:5px 0px;"> |
| 51 | <label for="records_per_request"><?php esc_html_e('Limit export to', 'wp_all_export_plugin');?></label> <input type="text" name="split_large_exports_count" class="wp_all_export_sub_input" style="width: 50px;" value="<?php echo esc_attr($post['split_large_exports_count']) ?>" /> <?php esc_html_e('records per file', 'wp_all_export_plugin'); ?> |
| 52 | </div> |
| 53 | </span> |
| 54 | </div> |
| 55 | <div class="input" style="margin:5px 0px;"> |
| 56 | <input type="hidden" name="allow_client_mode" value="0"/> |
| 57 | <input type="checkbox" disabled="disabled" id="allow_client_mode" name="allow_client_mode" |
| 58 | value="1" <?php echo (isset($post['allow_client_mode']) && $post['allow_client_mode']) ? 'checked="checked"' : '' ?> /> |
| 59 | <label for="allow_client_mode"><?php esc_html_e('Allow non-admins to run this export in Client Mode', 'wp_all_export_plugin') ?></label> |
| 60 | <span> |
| 61 | <a href="#help" class="wpallexport-help" style="position: relative; top: 0;" title="<?php esc_html_e('When enabled, users with access to Client Mode will be able to run this export and download the export file. Go to All Export > Settings to give users access to Client Mode. <br><br><strong>Upgrade to the Pro edition of WP All Export to use this option.</strong>'); ?>">?</a> |
| 62 | </span> |
| 63 | </div> |
| 64 | <br> |
| 65 | <hr> |
| 66 | <p style="text-align:right;"> |
| 67 | <div class="input"> |
| 68 | <label for="save_import_as" style="width: 103px;"><?php esc_html_e('Export Name:','wp_all_export_plugin');?></label> |
| 69 | <input type="text" name="friendly_name" title="<?php esc_html_e('Save Export Name...', 'pmxi_plugin') ?>" style="vertical-align:middle; background:#fff !important; width: 350px;" value="<?php echo wp_all_export_clear_xss(esc_attr($post['friendly_name'])); ?>" /> |
| 70 | </div> |
| 71 | </p> |
| 72 | </td> |
| 73 | </tr> |
| 74 | </table> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | </div> |