add_new_field.php
5 years ago
advanced_field_options.php
5 years ago
custom_xml_help.php
9 years ago
functions_editor.php
5 years ago
advanced_field_options.php
75 lines
| 1 | <div class="wp-all-export-advanced-field-options-content"> |
| 2 | <!-- Options for SQL field --> |
| 3 | <div class="input cc_field sql_field_type" style="margin-left:25px;"> |
| 4 | <a href="#help" rel="sql" class="help" style="display:none;" title="<?php _e('%%ID%% will be replaced with the ID of the post being exported, example: SELECT meta_value FROM wp_postmeta WHERE post_id=%%ID%% AND meta_key=\'your_meta_key\';', 'wp_all_export_plugin'); ?>">?</a> |
| 5 | <textarea style="width:100%;" rows="5" class="column_value"></textarea> |
| 6 | </div> |
| 7 | <!-- Options for ACF Repeater field --> |
| 8 | <div class="input cc_field repeater_field_type" style="margin-left:25px;"> |
| 9 | <input type="hidden" name="repeater_field_item_per_line" value="0"/> |
| 10 | <input type="checkbox" id="repeater_field_item_per_line" class="switcher" name="repeater_field_item_per_line" value="1" style="margin: 2px;"/> |
| 11 | <label for="repeater_field_item_per_line"><?php _e("Display each repeater row in its own csv line", "wp_all_export_plugin"); ?></label> |
| 12 | <div class="input switcher-target-repeater_field_item_per_line" style="margin-top: 10px; padding-left: 15px;"> |
| 13 | <input type="hidden" name="repeater_field_fill_empty_columns" value="0"/> |
| 14 | <input type="checkbox" id="repeater_field_fill_empty_columns" name="repeater_field_fill_empty_columns" value="1"/> |
| 15 | <label for="repeater_field_fill_empty_columns"><?php _e("Fill in empty columns", "wp_all_export_plugin"); ?></label> |
| 16 | <a href="#help" class="wpallexport-help" style="position: relative; top: 0px;" title="<?php _e('If enabled, each repeater row will appear as its own csv line with all post info filled in for every column.', 'wp_all_export_plugin'); ?>">?</a> |
| 17 | </div> |
| 18 | </div> |
| 19 | <!-- Options for Image field from Media section --> |
| 20 | <div class="input cc_field image_field_type" style="margin-left:25px;"> |
| 21 | <div class="input"> |
| 22 | <input type="hidden" name="image_field_is_export_featured" value="0"/> |
| 23 | <input type="checkbox" id="is_image_export_featured" name="image_field_is_export_featured" value="1" style="margin: 2px;" checked="checked"/> |
| 24 | <label for="is_image_export_featured"><?php _e("Export featured image", "wp_all_export_plugin"); ?></label> |
| 25 | </div> |
| 26 | <div class="input"> |
| 27 | <input type="hidden" name="image_field_is_export_attached_images" value="0"/> |
| 28 | <input type="checkbox" id="is_image_export_attached_images" class="switcher" name="image_field_is_export_attached_images" value="1" style="margin: 2px;" checked="checked"/> |
| 29 | <label for="is_image_export_attached_images"><?php _e("Export attached images", "wp_all_export_plugin"); ?></label> |
| 30 | <div class="switcher-target-is_image_export_attached_images" style="margin: 5px 2px;"> |
| 31 | <label><?php _e("Separator", "wp_all_export_plugin"); ?></label> |
| 32 | <input type="text" name="image_field_separator" value="|" style="width: 40px; text-align:center;"> |
| 33 | </div> |
| 34 | </div> |
| 35 | </div> |
| 36 | |
| 37 | <!-- Options for Date field --> |
| 38 | <div class="input cc_field wpae-select-field date_field_type" style="margin-left:25px;"> |
| 39 | <select class="date_field_export_data" style="width: 100%;"> |
| 40 | <option value="unix"><?php _e("UNIX timestamp - PHP time()", "wp_all_export_plugin");?></option> |
| 41 | <option value="php"><?php _e("Natural Language PHP date()", "wp_all_export_plugin");?></option> |
| 42 | </select> |
| 43 | <div class="input pmxe_date_format_wrapper"> |
| 44 | <label style="padding:4px; display: block;"><?php _e("date() Format", "wp_all_export_plugin"); ?></label> |
| 45 | <input type="text" class="pmxe_date_format" value="" placeholder="Y-m-d"/> |
| 46 | </div> |
| 47 | </div> |
| 48 | <!-- Options for Up/Cross sells products --> |
| 49 | <div class="input cc_field linked_field_type" style="margin-left:25px;"> |
| 50 | <select class="linked_field_export_data" style="width: 100%; height: 30px;"> |
| 51 | <option value="sku"><?php _e("Product SKU", "wp_all_export_plugin");?></option> |
| 52 | <option value="id"><?php _e("Product ID", "wp_all_export_plugin");?></option> |
| 53 | <option value="name"><?php _e("Product Name", "wp_all_export_plugin");?></option> |
| 54 | </select> |
| 55 | </div> |
| 56 | <!-- PHP snippet options --> |
| 57 | <div class="input php_snipped" style="margin-top:0;margin-left:24px;"> |
| 58 | <input type="checkbox" id="coperate_php" name="coperate_php" value="1" class="switcher" style="margin: 2px;"/> |
| 59 | <label for="coperate_php"><?php _e("Export the value returned by a PHP function", "wp_all_export_plugin"); ?></label> |
| 60 | <a href="#help" class="wpallexport-help" title="<?php _e('The value of the field chosen for export will be passed to the PHP function.', 'wp_all_export_plugin'); ?>" style="top: 0;">?</a> |
| 61 | <div class="switcher-target-coperate_php" style="margin-top:5px;"> |
| 62 | <div class="wpallexport-free-edition-notice" style="margin: 15px 0;"> |
| 63 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707173&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-php"><?php _e('Upgrade to Pro to use Custom PHP Functions','wp_all_export_plugin');?></a> |
| 64 | </div> |
| 65 | <?php echo "<?php ";?> |
| 66 | <input type="text" class="php_code" value="" style="width:50%;" placeholder='your_function_name'/> |
| 67 | <?php echo "(\$value); ?>"; ?> |
| 68 | |
| 69 | <?php |
| 70 | $uploads = wp_upload_dir(); |
| 71 | $functions = $uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY . DIRECTORY_SEPARATOR . 'functions.php'; |
| 72 | ?> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |