update
This commit is contained in:
@@ -112,6 +112,10 @@
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
||||
<div class="wpallimport-display-columns wpallimport-margin-top-forty">
|
||||
<?php echo apply_filters('wpallimport_footer', ''); ?>
|
||||
</div>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<p style="font-size: 1.3em !important;"><?php _e('While we do our best to provide technical support to users of the free version, we must prioritize requests from Pro users. If you need help with WP All Import please submit a ticket through the support form.', 'wp_all_import_plugin'); ?></p>
|
||||
|
||||
<p style="font-size: 1.3em !important;"><a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php _e('Upgrade to the Pro edition of WP All Import for Premium Support', 'wp_all_import_plugin'); ?></a></p>
|
||||
<p style="font-size: 1.3em !important;"><a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php _e('Upgrade to the Pro edition of WP All Import for Premium Support', 'wp_all_import_plugin'); ?></a></p>
|
||||
|
||||
</td>
|
||||
<td class="right"> </td>
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<div class="wpallimport-collapsed closed">
|
||||
<div class="wpallimport-content-section">
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<h3><?php _e('Manage Filtering Options', 'wp_all_import_plugin'); ?></h3>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content">
|
||||
<div>
|
||||
<div class="rule_inputs">
|
||||
<table style="width:100%;">
|
||||
<tr>
|
||||
<th><?php _e('Element', 'wp_all_import_plugin'); ?></th>
|
||||
<th><?php _e('Rule', 'wp_all_import_plugin'); ?></th>
|
||||
<th><?php _e('Value', 'wp_all_import_plugin'); ?></th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">
|
||||
<select id="pmxi_xml_element">
|
||||
<option value=""><?php _e('Select Element', 'wp_all_import_plugin'); ?></option>
|
||||
<?php
|
||||
if (isset($elements) && $elements && $elements->length) {
|
||||
// Reset the static option paths array for fresh rendering
|
||||
PMXI_Render::$option_paths = array();
|
||||
PMXI_Render::render_xml_elements_for_filtring($elements->item(0));
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td style="width:25%;">
|
||||
<select id="pmxi_rule">
|
||||
<option value=""><?php _e('Select Rule', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="equals"><?php _e('equals', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="not_equals"><?php _e('not equals', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="greater"><?php _e('greater than', 'wp_all_import_plugin');?></option>
|
||||
<option value="equals_or_greater"><?php _e('equals or greater than', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="less"><?php _e('less than', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="equals_or_less"><?php _e('equals or less than', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="contains"><?php _e('contains', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="not_contains"><?php _e('not contains', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="is_empty"><?php _e('is empty', 'wp_all_import_plugin'); ?></option>
|
||||
<option value="is_not_empty"><?php _e('is not empty', 'wp_all_import_plugin'); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td style="width:25%;">
|
||||
<input id="pmxi_value" type="text" placeholder="value" value=""/>
|
||||
</td>
|
||||
<td style="width:15%;">
|
||||
<a id="pmxi_add_rule" href="javascript:void(0);"><?php _e('Add Rule', 'wp_all_import_plugin');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<table class="xpath_filtering">
|
||||
<tr>
|
||||
<td style="width:5%; font-weight:bold; color: #000;"><?php _e('XPath','wp_all_import_plugin');?></td>
|
||||
<td style="width:95%;">
|
||||
<input type="text" name="xpath" value="<?php echo esc_attr($post['xpath']) ?>" style="max-width:none;" />
|
||||
<input type="hidden" id="root_element" name="root_element" value="<?php echo PMXI_Plugin::$session->source['root_element']; ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="is_csv" value="<?php echo empty($is_csv) ? '' : $is_csv;?>" />
|
||||
<div id="wpallimport-filters" class="wpallimport-collapsed-content" style="padding:0; <?php if (!empty($post['filters_output'])):?>display: block;<?php endif; ?>">
|
||||
<table style="width: 100%; font-weight: bold; padding: 20px 20px 0 20px;">
|
||||
<tr>
|
||||
<td style="width: 30%; padding-left: 30px;"><?php _e('Element', 'wp_all_import_plugin'); ?></td>
|
||||
<td style="width:20%;"><?php _e('Rule', 'wp_all_import_plugin'); ?></td>
|
||||
<td style="width:20%;"><?php _e('Value', 'wp_all_import_plugin'); ?></td>
|
||||
<td style="width:25%;"><?php _e('Condition', 'wp_all_import_plugin'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="wpallimport-content-section">
|
||||
<fieldset id="filtering_rules">
|
||||
<p style="margin:20px 0 5px; text-align:center; <?php if (!empty($post['filters_output'])):?>display: none;<?php endif; ?>"><?php _e('No filtering options. Add filtering options to only import records matching some specified criteria.', 'wp_all_import_plugin');?></p>
|
||||
<ol class="filtering_rules"><?php if (!empty($post['filters_output'])):?><?php echo json_decode($post['filters_output']);?><?php endif; ?></ol>
|
||||
<div class="clear"></div>
|
||||
<a href="javascript:void(0);" id="apply_filters" <?php if (empty($post['filters_output'])):?>style="display:none;"<?php endif; ?>><?php _e('Apply Filters To XPath', 'wp_all_import_plugin');?></a>
|
||||
<input type="hidden" class="filtering-output" name="filters_output" value="<?php echo esc_attr($post['filters_output'] ?? ''); ?>"/>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
// Full-screen preview modal for Step 3 (Free Edition - Upgrade Notice Only)
|
||||
?>
|
||||
|
||||
<div id="wpai-full-preview-modal" class="wpai-full-preview-modal" style="display: none;">
|
||||
<div class="wpai-full-preview-overlay">
|
||||
<div class="wpai-full-preview-container">
|
||||
<!-- Top Bar with Close Button -->
|
||||
<div class="wpai-full-preview-header">
|
||||
<div class="wpai-preview-header-spacer"></div>
|
||||
<button type="button" class="wpai-full-preview-close">
|
||||
<span class="dashicons dashicons-no-alt"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Tab Navigation (Disabled) -->
|
||||
<div class="wpai-full-preview-tabs">
|
||||
<button type="button" class="wpai-preview-tab" disabled>
|
||||
<span class="dashicons dashicons-admin-post"></span>
|
||||
<?php _e('WP Admin View', 'wp_all_import_plugin'); ?>
|
||||
</button>
|
||||
<button type="button" class="wpai-preview-tab" disabled>
|
||||
<span class="dashicons dashicons-visibility"></span>
|
||||
<?php _e('Frontend View', 'wp_all_import_plugin'); ?>
|
||||
</button>
|
||||
<button type="button" class="wpai-preview-tab" disabled>
|
||||
<span class="dashicons dashicons-admin-settings"></span>
|
||||
<?php _e('Preview Settings', 'wp_all_import_plugin'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Upgrade Notice -->
|
||||
<div class="wpai-full-preview-content">
|
||||
<div class="wpallimport-free-edition-notice" style="margin: 0; max-width: none; border-radius: 0; border-left: none; border-right: none; text-align: center;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=preview-feature" target="_blank" class="upgrade_link"><?php _e('Upgrade to WP All Import Pro to Use the Preview Feature', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.wpai-full-preview-modal {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 999999;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.wpai-full-preview-overlay {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.wpai-full-preview-container {
|
||||
background: #fff;
|
||||
width: 95vw;
|
||||
height: 95vh;
|
||||
max-width: 1920px;
|
||||
max-height: 1080px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.wpai-full-preview-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
background: #f8f9fa;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.wpai-preview-header-spacer {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.wpai-full-preview-close {
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
color: #666;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.wpai-full-preview-close:hover {
|
||||
color: #d63638;
|
||||
}
|
||||
|
||||
.wpai-full-preview-close .dashicons {
|
||||
font-size: 24px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.wpai-full-preview-tabs {
|
||||
display: flex;
|
||||
background: #f8f9fa;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.wpai-preview-tab {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 12px 20px;
|
||||
cursor: not-allowed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #999;
|
||||
font-weight: 500;
|
||||
border-bottom: 3px solid transparent;
|
||||
transition: all 0.2s;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.wpai-preview-tab:hover {
|
||||
color: #999;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wpai-preview-tab.active {
|
||||
color: #999;
|
||||
border-bottom-color: transparent;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wpai-preview-tab .dashicons {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.wpai-full-preview-content {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function($) {
|
||||
// Preview modal - Free Edition (Upgrade Notice Only)
|
||||
$('#wpai-full-preview-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
$('#wpai-full-preview-modal').fadeIn(200);
|
||||
});
|
||||
|
||||
$('.wpai-full-preview-close').on('click', function() {
|
||||
$('#wpai-full-preview-modal').fadeOut(200);
|
||||
});
|
||||
|
||||
$('.wpai-full-preview-overlay').on('click', function(e) {
|
||||
if (e.target === this) {
|
||||
$('#wpai-full-preview-modal').fadeOut(200);
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('keydown', function(e) {
|
||||
if ((e.key === 'Escape' || e.keyCode === 27) && $('#wpai-full-preview-modal').is(':visible')) {
|
||||
$('#wpai-full-preview-modal').fadeOut(200);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -6,10 +6,18 @@
|
||||
var plugin_url = '<?php echo esc_url(WP_ALL_IMPORT_ROOT_URL); ?>';
|
||||
</script>
|
||||
|
||||
<!-- Fullscreen drag overlay -->
|
||||
<div id="wpallimport-fullscreen-drag-overlay" class="wpallimport-fullscreen-drag-overlay" style="display: none;">
|
||||
<div class="wpallimport-drag-message">
|
||||
<span class="wpallimport-drag-icon"></span>
|
||||
<span class="wpallimport-drag-text"><?php _e('Drop your file anywhere to upload', 'wp_all_import_plugin'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="wpallimport-layout wpallimport-step-1">
|
||||
<tr>
|
||||
<td class="left">
|
||||
<div class="wpallimport-wrapper">
|
||||
<div class="wpallimport-wrapper">
|
||||
<h2 class="wpallimport-wp-notices"></h2>
|
||||
<div class="wpallimport-header">
|
||||
<div class="wpallimport-logo"></div>
|
||||
@@ -19,67 +27,79 @@
|
||||
<?php echo apply_filters('wpallimport_links_block', '');?>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php if ($this->errors->get_error_codes()): ?>
|
||||
<?php $this->error() ?>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php //do_action('pmxi_choose_file_header'); ?>
|
||||
|
||||
<form method="post" class="wpallimport-choose-file" enctype="multipart/form-data" autocomplete="off">
|
||||
|
||||
|
||||
<div class="wpallimport-upload-resource-step-one">
|
||||
|
||||
<input type="hidden" name="is_submitted" value="1" />
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<input type="hidden" name="is_submitted" value="1" />
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="wpallimport-import-types">
|
||||
<?php if (empty($_GET['deligate'])): ?>
|
||||
<?php if (empty($_GET['deligate'] ?? '')): ?>
|
||||
<h2><?php _e('First, specify how you want to import your data', 'wp_all_import_plugin'); ?></h2>
|
||||
<?php else: ?>
|
||||
<h2 style="margin-bottom: 10px;"><?php _e('First, specify previously exported file', 'wp_all_import_plugin'); ?></h2>
|
||||
<h2 class="wp_all_import_subheadline"><?php _e('The data in this file can be modified, but the structure of the file (column/element names) should not change.', 'wp_all_import_plugin'); ?></h2>
|
||||
<?php endif; ?>
|
||||
<a class="wpallimport-import-from wpallimport-upload-type <?php echo ('upload' == $post['type'] and ! empty($_POST)) ? 'selected' : '' ?>" rel="upload_type" href="javascript:void(0);">
|
||||
<h2 class="wp_all_import_subheadline"><?php _e('The data in this import file can be modified, but the structure of the file (column/element names) should not change.', 'wp_all_import_plugin'); ?></h2>
|
||||
<?php endif; ?>
|
||||
<div id="wpallimport-drag-drop-area" class="wpallimport-drag-drop-area">
|
||||
<a class="wpallimport-import-from wpallimport-upload-type <?php echo ('upload' == $post['type']) ? 'selected' : '' ?>" rel="upload_type" id="file_upload_type" href="javascript:void(0);">
|
||||
<span class="wpallimport-icon"></span>
|
||||
<span class="wpallimport-icon-label"><?php _e('Upload a file', 'wp_all_import_plugin'); ?></span>
|
||||
<div class="wpallimport-text-content">
|
||||
<span class="wpallimport-icon-label"><?php _e('Upload a file', 'wp_all_import_plugin'); ?></span>
|
||||
<span class="wpallimport-helper-text"><?php _e('Or simply drag and drop', 'wp_all_import_plugin'); ?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<a class="wpallimport-import-from wpallimport-url-type <?php echo ('url' == $post['type'] || 'ftp' == $post['type']) ? 'selected' : '' ?>" rel="url_type" href="javascript:void(0);">
|
||||
<span class="wpallimport-icon"></span>
|
||||
<div class="wpallimport-text-content">
|
||||
<span class="wpallimport-icon-label"><?php _e('Download a file', 'wp_all_import_plugin'); ?></span>
|
||||
<span class="wpallimport-helper-text"><?php _e('From FTP or any URL', 'wp_all_import_plugin'); ?></span>
|
||||
</div>
|
||||
</a>
|
||||
<a class="wpallimport-import-from wpallimport-url-type <?php echo ('url' == $post['type'] || 'ftp' == $post['type']) ? 'selected' : '' ?>" rel="url_type" href="javascript:void(0);">
|
||||
<span class="wpallimport-icon"></span>
|
||||
<span class="wpallimport-icon-label"><?php _e('Download a file', 'wp_all_import_plugin'); ?></span>
|
||||
</a>
|
||||
<a class="wpallimport-import-from wpallimport-file-type <?php echo 'file' == $post['type'] ? 'selected' : '' ?>" rel="file_type" href="javascript:void(0);">
|
||||
<span class="wpallimport-icon"></span>
|
||||
<span class="wpallimport-icon-label"><?php _e('Use existing file', 'wp_all_import_plugin'); ?></span>
|
||||
<div class="wpallimport-text-content">
|
||||
<span class="wpallimport-icon-label"><?php _e('Use existing file', 'wp_all_import_plugin'); ?></span>
|
||||
<span class="wpallimport-helper-text"><?php _e('Previously uploaded data', 'wp_all_import_plugin'); ?></span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" value="<?php echo esc_attr($post['type']); ?>" name="type"/>
|
||||
|
||||
<div class="wpallimport-upload-type-container" rel="upload_type">
|
||||
<div class="wpallimport-upload-type-container" rel="upload_type">
|
||||
<div id="plupload-ui" class="wpallimport-file-type-options">
|
||||
<div>
|
||||
<input type="hidden" name="filepath" value="<?php echo esc_attr($post['filepath']) ?>" id="filepath"/>
|
||||
<div>
|
||||
<input type="hidden" name="filepath" value="<?php echo esc_attr($post['filepath']); ?>" id="filepath"/>
|
||||
<a id="select-files" href="javascript:void(0);" <?php if (empty($post['filepath'])):?>style="display:none;"<?php endif; ?> /><?php _e('Click here to select file from your computer...', 'wp_all_import_plugin'); ?></a>
|
||||
<div id="progressbar" class="wpallimport-progressbar">
|
||||
<?php if (!empty($post['filepath'])):?>
|
||||
<span><?php _e('Upload Complete', 'wp_all_import_plugin');?></span> - <?php echo esc_attr(basename($post['filepath'])); ?>
|
||||
<span><?php _e('Upload Complete', 'wp_all_import_plugin');?></span> - <?php echo esc_html(basename($post['filepath'])); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="progress" class="wpallimport-progress" <?php if (!empty($post['filepath'])):?>style="visibility: visible; display: block;"<?php endif; ?>>
|
||||
<?php if (!empty($post['filepath'])):?>
|
||||
<div class="wpallimport-upload-process ui-progressbar ui-widget ui-widget-content ui-corner-all" id="upload_process" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100"><div class="ui-progressbar-value ui-widget-header ui-corner-left ui-corner-right" style="width: 100%;"></div></div>
|
||||
<?php else: ?>
|
||||
<div id="upload_process" class="wpallimport-upload-process"></div>
|
||||
<div id="upload_process" class="wpallimport-upload-process"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wpallimport-note" style="margin: 0 auto; font-size: 13px;"><span></span></div>
|
||||
<div class="wpallimport-note" style="margin: 0 auto; font-size: 13px;"><span></span></div>
|
||||
</div>
|
||||
<div class="wpallimport-upload-type-container" rel="url_type">
|
||||
<div class="wpallimport-upload-type-container" rel="url_type">
|
||||
<div class="wpallimport-choose-data-type">
|
||||
<a class="wpallimport-download-from rad4 wpallimport-download-file-from-url <?php if ($post['type'] == 'url') echo 'wpallimport-download-from-checked'; ?>" rel="url" href="javascript:void(0);">
|
||||
<span class="wpallimport-download-from-title"><?php _e('From URL', 'wp_all_import_plugin'); ?></span>
|
||||
@@ -91,298 +111,304 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wpallimport-upload-type-container" rel="file_type">
|
||||
<?php $upload_dir = wp_upload_dir(); ?>
|
||||
<div class="wpallimport-upload-type-container" rel="file_type">
|
||||
<?php $upload_dir = wp_upload_dir(); ?>
|
||||
<div class="wpallimport-file-type-options">
|
||||
|
||||
<div id="file_selector" class="dd-container dd-disabled" style="width: 600px;">
|
||||
<div class="dd-select" style="width: 600px; background: none repeat scroll 0% 0% rgb(238, 238, 238);">
|
||||
<input type="hidden" class="dd-selected-value" value="">
|
||||
<a class="dd-selected" style="color: rgb(207, 206, 202);">
|
||||
<label class="dd-selected-text "><?php _e('Select a previously uploaded file', 'wp_all_import_plugin');?></label>
|
||||
</a>
|
||||
<span class="dd-pointer dd-pointer-down"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="file" value="<?php echo esc_attr($post['file']); ?>"/>
|
||||
|
||||
<div class="wpallimport-note" style="margin: 0 auto; font-size: 13px;">
|
||||
<?php printf(__('Files uploaded to <strong>%s</strong> will appear in this list.', 'wp_all_import_plugin'), esc_attr($upload_dir['basedir'] . '/wpallimport/files')) ?>
|
||||
<div class="wpallimport-free-edition-notice">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=use-existing-file" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Use Existing Files', 'wp_all_import_plugin');?></a>
|
||||
|
||||
<?php
|
||||
// Free version - don't scan for files, just show empty selector with upgrade notice
|
||||
$files_directory = DIRECTORY_SEPARATOR . PMXI_Plugin::FILES_DIRECTORY . DIRECTORY_SEPARATOR;
|
||||
$local_files = array(); // Empty array for free version
|
||||
$sizes = array(); // Empty array for free version
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var existing_file_sizes = [];
|
||||
</script>
|
||||
|
||||
<h2 class="wpallimport-file-selector-label">
|
||||
<?php _e('Select Import File', 'wp_all_import_plugin'); ?>
|
||||
<?php
|
||||
$tooltip_text = sprintf(__('Upload files to <strong>%s</strong> and they will appear in this list', 'wp_all_import_plugin'), $upload_dir['basedir'] . $files_directory);
|
||||
?>
|
||||
<a href="#" class="wpallimport-help" title="<?php echo esc_attr($tooltip_text); ?>" style="position: relative; top: -2px;">?</a>
|
||||
</h2>
|
||||
|
||||
<select id="file_selector">
|
||||
<option value=""><?php _e('Select a previously uploaded file', 'wp_all_import_plugin'); ?></option>
|
||||
<!-- Free version - no files listed, upgrade required -->
|
||||
</select>
|
||||
|
||||
<input type="hidden" name="file" value="<?php echo esc_attr($post['file']); ?>"/>
|
||||
|
||||
<div class="wpallimport-note" style="margin: 20px auto 0; font-size: 13px;">
|
||||
<?php printf(__('Files uploaded to <strong>%s</strong> will appear in this list.', 'wp_all_import_plugin'), $upload_dir['basedir'] . $files_directory) ?>
|
||||
<div class="wpallimport-free-edition-notice">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=use-existing-file" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Use Existing Files', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="wpallimport-url-upload-status"></div>
|
||||
</div>
|
||||
<div id="wpallimport-url-upload-status"></div>
|
||||
|
||||
<?php if (empty($_GET['deligate'])): ?>
|
||||
<div class="wpallimport-download-resource-step-two">
|
||||
<div class="wpallimport-download-resource wpallimport-download-resource-step-two-url">
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-url-icon"></span>
|
||||
<input type="text" class="regular-text" name="url" value="<?php echo ( ! empty($post['url'])) ? esc_attr($post['url']) : ''; ?>" placeholder="Enter a web address to download the file from..."/>
|
||||
<a class="wpallimport-download-from-url rad4" href="javascript:void(0);"><?php _e('Download', 'wp_all_import_plugin'); ?></a>
|
||||
<span class="img_preloader" style="top:0; left: 5px; visibility: hidden; display: inline;"></span>
|
||||
</div>
|
||||
<div class="wpallimport-note" style="margin: 20px auto 0; font-size: 13px;">
|
||||
<?php _e('<strong>Hint:</strong> After you create this import, you can schedule it to run automatically, on a pre-defined schedule, with cron jobs.', 'wp_all_import_plugin'); ?>
|
||||
<div class="wpallimport-free-edition-notice" style="display:none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from URL', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="downloaded" value="<?php echo esc_attr($post['downloaded']); ?>"/>
|
||||
<input type="hidden" name="template" value="<?php echo esc_attr($post['template']); ?>"/>
|
||||
<?php if (empty($_GET['deligate'] ?? '')): ?>
|
||||
|
||||
<div class="wpallimport-download-resource-step-two">
|
||||
<div class="wpallimport-download-resource wpallimport-download-resource-step-two-url">
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-url-icon"></span>
|
||||
<input type="text" class="regular-text" name="url" value="<?php echo ( ! empty($post['url'])) ? esc_attr($post['url']) : ''; ?>" placeholder="<?php _e('Enter a web address to download the file from...', 'wp_all_import_plugin'); ?>"/>
|
||||
<a class="wpallimport-download-from-url rad4" href="javascript:void(0);"><?php _e('Download', 'wp_all_import_plugin'); ?></a>
|
||||
<span class="img_preloader" style="top:0; left: 5px; visibility: hidden; display: inline;"></span>
|
||||
</div>
|
||||
<div class="wpallimport-download-resource wpallimport-download-resource-step-two-ftp">
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-host-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_host" value="<?php echo ( ! empty($post['ftp_host'])) ? esc_attr($post['ftp_host']) : ''; ?>" placeholder="FTP server address"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('The server address of your FTP/SFTP server. This can be an IP address or domain name. You do not need to include the connection protocol. For example, files.example.com or 127.0.0.1', PMXI_Plugin::LANGUAGE_DOMAIN); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-port-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_port" value="<?php echo ( ! empty($post['ftp_port'])) ? esc_attr($post['ftp_port']) : ''; ?>" placeholder="FTP port"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('The port that your server uses. FTP usually uses port 21, SFTP usually uses port 22', PMXI_Plugin::LANGUAGE_DOMAIN); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-username-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_username" value="<?php echo ( ! empty($post['ftp_username'])) ? esc_attr($post['ftp_username']) : ''; ?>" placeholder="FTP username"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('If you don\'t know your FTP/SFTP username, contact the host of the server.', PMXI_Plugin::LANGUAGE_DOMAIN); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-password-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_password" value="<?php echo ( ! empty($post['ftp_password'])) ? esc_attr($post['ftp_password']) : ''; ?>" placeholder="FTP password"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('These passwords are stored in plaintext in your WordPress database. Ideally, the user account should only have read access to the files that you are importing.
|
||||
<br/><br/>Even if the password is correct, sometimes your host will require SFTP connections to use an SSH key and will deny connection attempts using passwords. If you\'re unable to login and you are sure the password is correct, contact the host of the server.', PMXI_Plugin::LANGUAGE_DOMAIN); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-private-key-icon"></span>
|
||||
<textarea class="wpai-ftp-text-area" name="ftp_private_key" value="<?php echo ( ! empty($post['ftp_private_key'])) ? esc_attr($post['ftp_private_key']) : ''; ?>" placeholder="SFTP Private Key"></textarea>
|
||||
<a class="wpallimport-help" id="wpai-ftp-text-area-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('If you don\'t know if you need an SFTP Private Key, contact the host of the server.', PMXI_Plugin::LANGUAGE_DOMAIN); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options ftp_path">
|
||||
<div class="wpallimport-note" style="font-size: 13px; margin: 20px auto 40px;">
|
||||
<?php _e('<strong>Hint:</strong> After you create this import, you can schedule it to run automatically, on a pre-defined schedule, with cron jobs.', 'wp_all_import_plugin'); ?>
|
||||
<!-- Free restriction notice for URL download -->
|
||||
<div class="wpallimport-free-edition-notice" style="display:none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from URL', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<span></span>
|
||||
</div>
|
||||
<input type="hidden" name="downloaded" value="<?php echo esc_attr($post['downloaded']); ?>"/>
|
||||
<input type="hidden" name="template" value="<?php echo esc_attr($post['template']); ?>"/>
|
||||
<input type="hidden" name="bundle_xpath" value="<?php echo esc_attr($post['bundle_xpath'] ?? ''); ?>"/>
|
||||
</div>
|
||||
<div class="wpallimport-download-resource wpallimport-download-resource-step-two-ftp">
|
||||
|
||||
<input type="text" class="regular-text" name="ftp_path"
|
||||
value="<?php echo ( ! empty( $post['ftp_path'] ) ) ? esc_attr( $post['ftp_path'] ) : ''; ?>"
|
||||
placeholder="FTP file path"/>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-host-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_host" value="<?php echo ( ! empty($post['ftp_host'])) ? esc_attr($post['ftp_host']) : ''; ?>" placeholder="<?php _e('FTP server address', 'wp_all_import_plugin'); ?>"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('The server address of your FTP/SFTP server. This can be an IP address or domain name. You do not need to include the connection protocol. For example, files.example.com or 127.0.0.1', 'wp_all_import_plugin'); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-port-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_port" value="<?php echo ( ! empty($post['ftp_port'])) ? esc_attr($post['ftp_port']) : ''; ?>" placeholder="<?php _e('FTP port', 'wp_all_import_plugin'); ?>"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('The port that your server uses. FTP usually uses port 21, SFTP usually uses port 22', 'wp_all_import_plugin'); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-username-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_username" value="<?php echo ( ! empty($post['ftp_username'])) ? esc_attr($post['ftp_username']) : ''; ?>" placeholder="<?php _e('FTP username', 'wp_all_import_plugin'); ?>"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('If you don\'t know your FTP/SFTP username, contact the host of the server.', 'wp_all_import_plugin'); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-password-icon"></span>
|
||||
<input type="text" class="regular-text" name="ftp_password" value="<?php echo ( ! empty($post['ftp_password'])) ? esc_attr($post['ftp_password']) : ''; ?>" placeholder="<?php _e('FTP password', 'wp_all_import_plugin'); ?>"/>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('These passwords are stored in plaintext in your WordPress database. Ideally, the user account should only have read access to the files that you are importing.
|
||||
<br/><br/>Even if the password is correct, sometimes your host will require SFTP connections to use an SSH key and will deny connection attempts using passwords. If you\'re unable to login and you are sure the password is correct, contact the host of the server.', 'wp_all_import_plugin'); ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-private-key-icon"></span>
|
||||
<textarea class="wpai-ftp-text-area" name="ftp_private_key" value="<?php echo ( ! empty($post['ftp_private_key'])) ? esc_attr($post['ftp_private_key']) : ''; ?>" placeholder="<?php _e('SFTP Private Key', 'wp_all_import_plugin'); ?>"></textarea>
|
||||
<a class="wpallimport-help" id="wpai-ftp-text-area-help" href="#help" style="position: relative; top: -2px;" title="<?php _e('If you don\'t know if you need an SFTP Private Key, contact the host of the server.', 'wp_all_import_plugin'); ?>">?</a>
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
<input type="hidden" name="ftp_root"
|
||||
value="<?php echo ( ! empty( $post['ftp_root'] ) ) ? esc_attr( $post['ftp_root'] ) : ''; ?>"/>
|
||||
</div>
|
||||
<div class="wpallimport-file-type-options ftp_path">
|
||||
|
||||
<a class="wpallimport-ftp-builder rad4 button button-primary button-hero wpallimport-large-button wpai-ftp-select-file-button"
|
||||
href="javascript:void(0);">
|
||||
<div class="easing-spinner"
|
||||
style="display: none; left: 36px !important; top: 2px;">
|
||||
<div class="double-bounce1"></div>
|
||||
<div class="double-bounce2"></div>
|
||||
</div>
|
||||
<?php _e( 'Select File', 'wp_all_import_plugin' ); ?>
|
||||
</a>
|
||||
<input type="text" class="regular-text" name="ftp_path"
|
||||
value="<?php echo ( ! empty( $post['ftp_path'] ) ) ? esc_attr( $post['ftp_path'] ) : ''; ?>"
|
||||
placeholder="<?php _e('FTP file path', 'wp_all_import_plugin'); ?>"/>
|
||||
|
||||
</div>
|
||||
<div style="display:block;position:relative;width:75%;margin:auto;">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-path-icon"></span>
|
||||
<a class="wpallimport-help" href="#help"
|
||||
style="position: absolute;top: -32px;right: -30px;"
|
||||
title="<?php _e( 'The path to the file you want to import. In case multiple files are found, only the first will be downloaded. Examples: /home/ftpuser/import.csv or import-files/*.csv', PMXI_Plugin::LANGUAGE_DOMAIN ); ?>">?</a>
|
||||
</div>
|
||||
<a class="wpallimport-ftp-builder rad4 button button-primary button-hero wpallimport-large-button wpai-ftp-select-file-button"
|
||||
href="javascript:void(0);">
|
||||
<div class="easing-spinner"
|
||||
style="display: none; left: 36px !important; top: 2px;">
|
||||
<div class="double-bounce1"></div>
|
||||
<div class="double-bounce2"></div>
|
||||
</div>
|
||||
<?php _e( 'Select File', 'wp_all_import_plugin' ); ?>
|
||||
</a>
|
||||
|
||||
<span class="wpallimport-ftp-builder-wrap">
|
||||
<div class="wpallimport-ftp-connection-builder" id="wpallimport-ftp-connection-builder"></div>
|
||||
<input type="hidden" id="wpai-ftp-browser-nonce" value="<?php echo wp_create_nonce( 'wpai-ftp-browser' ); ?>"/>
|
||||
</span>
|
||||
</div>
|
||||
<div style="display:block;position:relative;width:75%;margin:auto;">
|
||||
<span class="wpallimport-input-icon wpallimport-ftp-path-icon"></span>
|
||||
<a class="wpallimport-help" href="#help"
|
||||
style="position: absolute;top: -32px;right: -30px;"
|
||||
title="<?php _e( 'The path to the file you want to import. In case multiple files are found, only the first will be downloaded. Examples: /home/ftpuser/import.csv or import-files/{newest.csv}', 'wp_all_import_plugin' ); ?>">?</a>
|
||||
</div>
|
||||
|
||||
<div class="rad4 first-step-errors wpai-ftp-connection-error">
|
||||
<div class="wpallimport-notify-wrapper">
|
||||
<div class="error-headers exclamation">
|
||||
<h3><?php _e('Unable to Connect', 'wp_all_import_plugin');?></h3>
|
||||
<br/>
|
||||
<span id="wpai-ftp-connection-error-message"></span>
|
||||
</div>
|
||||
<span class="wpallimport-ftp-builder-wrap">
|
||||
<div class="wpallimport-ftp-connection-builder" id="wpallimport-ftp-connection-builder">
|
||||
</div>
|
||||
<input type="hidden" id="wpai-ftp-browser-nonce"
|
||||
value="<?php echo wp_create_nonce( 'wpai-ftp-browser' ); ?>"/>
|
||||
|
||||
</span>
|
||||
|
||||
<div class="rad4 first-step-errors wpai-ftp-connection-error">
|
||||
<div class="wpallimport-notify-wrapper">
|
||||
<div class="error-headers exclamation">
|
||||
<h3><?php _e('Unable to Connect', 'wp_all_import_plugin');?></h3>
|
||||
<br/>
|
||||
<span id="wpai-ftp-connection-error-message"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div class="wpallimport-note" style="margin: 20px auto 0; font-size: 13px;">
|
||||
<div class="wpallimport-free-edition-notice" style="display:none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from FTP/SFTP', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="wpallimport-note" style="margin: 20px auto 0; font-size: 13px;">
|
||||
<div class="wpallimport-free-edition-notice" style="display:none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from FTP/SFTP', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input" style="display:none;">
|
||||
<a class="wpallimport-download-from-url rad4" href="javascript:void(0);"><?php _e('Download', 'wp_all_import_plugin'); ?></a>
|
||||
<span class="img_preloader" style="top:0; left: 5px; visibility: hidden; display: inline;"></span>
|
||||
</div>
|
||||
<div class="input" style="display:none;">
|
||||
<a class="wpallimport-download-from-url rad4" href="javascript:void(0);"><?php _e('Download', 'wp_all_import_plugin'); ?></a>
|
||||
<span class="img_preloader" style="top:0; left: 5px; visibility: hidden; display: inline;"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wpallimport-upload-resource-step-two">
|
||||
<div class="wpallimport-choose-post-type">
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="wizard_type" value="<?php echo esc_attr($post['wizard_type']); ?>"/>
|
||||
<div class="wpallimport-upload-resource-step-two">
|
||||
|
||||
<h2 style="margin-top:0;"><?php _e('Import data from this file into...', 'wp_all_import_plugin'); ?></h2>
|
||||
<div class="wpallimport-choose-post-type">
|
||||
|
||||
<div class="wpallimport-choose-data-type">
|
||||
<a class="wpallimport-import-to rad4 wpallimport-to-new-items <?php if ($post['wizard_type'] == 'new') echo 'wpallimport-import-to-checked'; ?>" rel="new" href="javascript:void(0);">
|
||||
<span class="wpallimport-import-to-title"><?php _e('New Items', 'wp_all_import_plugin'); ?></span>
|
||||
<span class="wpallimport-import-to-arrow"></span>
|
||||
</a>
|
||||
<a class="wpallimport-import-to rad4 wpallimport-to-existing-items <?php if ($post['wizard_type'] == 'matching') echo 'wpallimport-import-to-checked'; ?>" rel="matching" href="javascript:void(0);">
|
||||
<span class="wpallimport-import-to-title"><?php _e('Existing Items', 'wp_all_import_plugin'); ?></span>
|
||||
<span class="wpallimport-import-to-arrow"></span>
|
||||
</a>
|
||||
</div>
|
||||
<input type="hidden" name="wizard_type" value="new"/>
|
||||
|
||||
<h2><?php _e('Create or modify...', 'wp_all_import_plugin'); ?></h2>
|
||||
|
||||
<?php
|
||||
|
||||
$all_types = array();
|
||||
$sort_order = array();
|
||||
|
||||
$hiddenPosts = array(
|
||||
'attachment',
|
||||
'revision',
|
||||
'nav_menu_item',
|
||||
'shop_webhook',
|
||||
'import_users',
|
||||
'wp-types-group',
|
||||
'wp-types-user-group',
|
||||
'wp-types-term-group',
|
||||
'acf-field',
|
||||
'acf-field-group',
|
||||
'custom_css',
|
||||
'customize_changeset',
|
||||
'oembed_cache',
|
||||
'wp_block',
|
||||
'user_request',
|
||||
'scheduled-action',
|
||||
'wp_navigation'
|
||||
);
|
||||
|
||||
$custom_types = get_post_types(array('_builtin' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects');
|
||||
foreach ($custom_types as $key => $ct) {
|
||||
if (in_array($key, $hiddenPosts)) unset($custom_types[$key]);
|
||||
}
|
||||
|
||||
$custom_types = apply_filters( 'pmxi_custom_types', $custom_types, 'custom_types' );
|
||||
|
||||
$sorted_cpt = array();
|
||||
foreach ($custom_types as $key => $cpt){
|
||||
|
||||
$sorted_cpt[$key] = $cpt;
|
||||
|
||||
// Put users & comments & taxonomies after Pages
|
||||
if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){
|
||||
$sorted_cpt['taxonomies'] = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp_all_import_plugin');
|
||||
|
||||
$sorted_cpt['import_users'] = new stdClass();
|
||||
$sorted_cpt['import_users']->labels = new stdClass();
|
||||
$sorted_cpt['import_users']->labels->name = __('Users','wp_all_import_plugin');
|
||||
|
||||
$sorted_cpt['comments'] = new stdClass();
|
||||
$sorted_cpt['comments']->labels = new stdClass();
|
||||
$sorted_cpt['comments']->labels->name = __('Comments','wp_all_import_plugin');
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
$order = array('shop_order', 'shop_coupon', 'shop_customer', 'product');
|
||||
foreach ($order as $cpt){
|
||||
if (!empty($custom_types[$cpt])) $sorted_cpt[$cpt] = $custom_types[$cpt];
|
||||
}
|
||||
|
||||
uasort($custom_types, "wp_all_import_cmp_custom_types");
|
||||
|
||||
foreach ($custom_types as $key => $cpt) {
|
||||
if (empty($sorted_cpt[$key])){
|
||||
$sorted_cpt[$key] = $cpt;
|
||||
}
|
||||
}
|
||||
|
||||
$hidden_post_types = get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects');
|
||||
foreach ($hidden_post_types as $key => $ct) {
|
||||
if (in_array($key, $hiddenPosts)) unset($hidden_post_types[$key]);
|
||||
}
|
||||
$hidden_post_types = apply_filters( 'pmxi_custom_types', $hidden_post_types, 'hidden_post_types' );
|
||||
|
||||
?>
|
||||
<div class="wpallimport-choose-import-direction">
|
||||
<select name="custom_type_selector" id="custom_type_selector" class="wpallimport-post-types">
|
||||
|
||||
<?php
|
||||
|
||||
$all_types = array();
|
||||
$sort_order = array();
|
||||
|
||||
$hiddenPosts = array(
|
||||
'attachment',
|
||||
'revision',
|
||||
'nav_menu_item',
|
||||
'shop_webhook',
|
||||
'import_users',
|
||||
'wp-types-group',
|
||||
'wp-types-user-group',
|
||||
'wp-types-term-group',
|
||||
'acf-field',
|
||||
'acf-field-group',
|
||||
'custom_css',
|
||||
'customize_changeset',
|
||||
'oembed_cache',
|
||||
'wp_block',
|
||||
'user_request',
|
||||
'scheduled-action'
|
||||
);
|
||||
|
||||
$custom_types = get_post_types(array('_builtin' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects');
|
||||
foreach ($custom_types as $key => $ct) {
|
||||
if (in_array($key, $hiddenPosts)) unset($custom_types[$key]);
|
||||
}
|
||||
|
||||
$custom_types = apply_filters( 'pmxi_custom_types', $custom_types, 'custom_types' );
|
||||
|
||||
$sorted_cpt = array();
|
||||
foreach ($custom_types as $key => $cpt){
|
||||
|
||||
$sorted_cpt[$key] = $cpt;
|
||||
|
||||
// Put users & comments & taxonomies after Pages
|
||||
if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){
|
||||
|
||||
$sorted_cpt['taxonomies'] = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp_all_export_plugin');
|
||||
|
||||
$sorted_cpt['import_users'] = new stdClass();
|
||||
$sorted_cpt['import_users']->labels = new stdClass();
|
||||
$sorted_cpt['import_users']->labels->name = __('Users','wp_all_export_plugin');
|
||||
|
||||
$sorted_cpt['comments'] = new stdClass();
|
||||
$sorted_cpt['comments']->labels = new stdClass();
|
||||
$sorted_cpt['comments']->labels->name = __('Comments','wp_all_export_plugin');
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
$order = array('shop_order', 'shop_coupon', 'shop_customer', 'product');
|
||||
foreach ($order as $cpt){
|
||||
if (!empty($custom_types[$cpt])) $sorted_cpt[$cpt] = $custom_types[$cpt];
|
||||
}
|
||||
|
||||
uasort($custom_types, "wp_all_import_cmp_custom_types");
|
||||
|
||||
foreach ($custom_types as $key => $cpt) {
|
||||
if (empty($sorted_cpt[$key])){
|
||||
$sorted_cpt[$key] = $cpt;
|
||||
}
|
||||
}
|
||||
|
||||
$hidden_post_types = get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects');
|
||||
foreach ($hidden_post_types as $key => $ct) {
|
||||
if (in_array($key, $hiddenPosts)) unset($hidden_post_types[$key]);
|
||||
}
|
||||
$hidden_post_types = apply_filters( 'pmxi_custom_types', $hidden_post_types, 'hidden_post_types' );
|
||||
|
||||
// *****************************************************
|
||||
// **************** START CPT LOOP *********************
|
||||
// *****************************************************
|
||||
?>
|
||||
<div class="wpallimport-choose-import-direction">
|
||||
<div class="wpallimport-extra-text-left">
|
||||
<div class="wpallimport-new-records"><?php _e('Create new', 'wp_all_import_plugin'); ?></div>
|
||||
<div class="wpallimport-existing-records"><?php _e('Import to existing', 'wp_all_import_plugin'); ?></div>
|
||||
</div>
|
||||
<div class="wpallimport-extra-text-right">
|
||||
<div class="wpallimport-new-records"><?php _e('for each record in my data file.', 'wp_all_import_plugin'); ?>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="The New Items option is commonly used to import new posts or products to your site without touching the existing records.<br/><br/>If the import is later run again with modified data, WP All Import will only update/remove posts created by this import.">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-existing-records"><?php _e('and update some or all of their data.', 'wp_all_import_plugin'); ?>
|
||||
<a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="The Existing Items option is commonly used to update existing products with new stock quantities while leaving all their other data alone, update properties on your site with new pricing, etc. <br/><br/> In Step 4, you will map the records in your file to the existing items on your site and specify which data points will be updated and which will be left alone.">?</a>
|
||||
</div>
|
||||
</div>
|
||||
<select name="custom_type_selector" id="custom_type_selector" class="wpallimport-post-types">
|
||||
|
||||
<?php
|
||||
// *****************************************************
|
||||
// **************** START CPT LOOP *********************
|
||||
// *****************************************************
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$known_imgs = array( 'post', 'page', 'product', 'import_users', 'shop_order', 'shop_coupon', 'shop_customer', 'users', 'comments', 'taxonomies', 'woo_reviews' );
|
||||
$all_posts = array_merge( $sorted_cpt, $hidden_post_types );
|
||||
$all_posts = apply_filters( 'pmxi_custom_types', $all_posts, 'all_types' );
|
||||
$ordered_posts = array( 'post', 'page', 'taxonomies', 'comments', 'import_users', 'shop_order', 'shop_coupon', 'product', 'woo_reviews', 'shop_customer');
|
||||
<?php
|
||||
$known_imgs = array( 'post', 'page', 'product', 'import_users', 'shop_order', 'shop_coupon', 'shop_customer', 'users', 'comments', 'taxonomies', 'woo_reviews' );
|
||||
$all_posts = array_merge( $sorted_cpt, $hidden_post_types );
|
||||
$all_posts = apply_filters( 'pmxi_custom_types', $all_posts, 'all_types' );
|
||||
$ordered_posts = array( 'post', 'page', 'product', 'shop_order', 'shop_coupon', 'woo_reviews', 'shop_customer', 'import_users', 'taxonomies', 'comments', 'gf_entries');
|
||||
|
||||
foreach ( $all_posts as $key => $post_obj ) {
|
||||
if ( ! in_array( $key, $ordered_posts ) ) {
|
||||
array_push( $ordered_posts, $key );
|
||||
}
|
||||
foreach ( $all_posts as $key => $post_obj ) {
|
||||
if ( ! in_array( $key, $ordered_posts ) ) {
|
||||
array_push( $ordered_posts, $key );
|
||||
}
|
||||
}
|
||||
|
||||
$order_arr = apply_filters( 'pmxi_post_list_order', $ordered_posts );
|
||||
$image_data = apply_filters( 'wp_all_import_post_type_image', array() );
|
||||
$order_arr = apply_filters( 'pmxi_post_list_order', $ordered_posts );
|
||||
$image_data = apply_filters( 'wp_all_import_post_type_image', array() );
|
||||
|
||||
foreach ( $order_arr as $key => $post_name ) {
|
||||
if ( array_key_exists( $post_name, $all_posts ) ) {
|
||||
$post_obj = $all_posts[ $post_name ];
|
||||
foreach ( $order_arr as $key => $post_name ) {
|
||||
if ( array_key_exists( $post_name, $all_posts ) ) {
|
||||
$post_obj = $all_posts[ $post_name ];
|
||||
|
||||
if ( in_array( $post_name, $known_imgs ) ) {
|
||||
$image_src = 'dashicon-' . $post_name;
|
||||
} else {
|
||||
$image_src = 'dashicon-cpt';
|
||||
}
|
||||
if ( ! empty( $image_data ) && array_key_exists( $post_name, $image_data ) ) {
|
||||
$custom_img_defined = true;
|
||||
} else {
|
||||
$custom_img_defined = false;
|
||||
}
|
||||
|
||||
$original_image_src = $image_src;
|
||||
$cpt = $post_name;
|
||||
$cpt_label = $post_obj->labels->name;
|
||||
|
||||
$custom_selected_post = apply_filters( 'wpai_custom_selected_post', false, $post, $cpt, 'step1' );
|
||||
|
||||
$img_to_echo = 'dashicon ';
|
||||
|
||||
if ( $custom_img_defined === true ) {
|
||||
$img_to_echo .= $image_data[ $cpt ]['image'];
|
||||
} else {
|
||||
$img_to_echo .= $image_src;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<option value="<?php echo esc_attr($cpt); ?>" data-imagesrc="<?php echo esc_attr($img_to_echo); ?>" <?php if ( $custom_selected_post === true ):?>selected="selected"<?php else: if ( $cpt == $post['custom_type'] ):?>selected="selected"<?php endif; endif; ?>><?php echo esc_html($cpt_label); ?></option>
|
||||
<?php
|
||||
if ( in_array( $post_name, $known_imgs ) ) {
|
||||
$image_src = 'dashicon-' . $post_name;
|
||||
} else {
|
||||
$image_src = 'dashicon-cpt';
|
||||
}
|
||||
if ( ! empty( $image_data ) && array_key_exists( $post_name, $image_data ) ) {
|
||||
$custom_img_defined = true;
|
||||
} else {
|
||||
$custom_img_defined = false;
|
||||
}
|
||||
|
||||
$original_image_src = $image_src;
|
||||
$cpt = $post_name;
|
||||
$cpt_label = $post_obj->labels->name;
|
||||
|
||||
$custom_selected_post = apply_filters( 'wpai_custom_selected_post', false, $post, $cpt, 'step1' );
|
||||
|
||||
$img_to_echo = 'dashicon ';
|
||||
|
||||
if ( $custom_img_defined === true ) {
|
||||
$img_to_echo .= $image_data[ $cpt ]['image'];
|
||||
} else {
|
||||
$img_to_echo .= $image_src;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<option value="<?php echo esc_attr($cpt); ?>" data-imagesrc="<?php echo esc_attr($img_to_echo); ?>" <?php if ( $custom_selected_post === true ):?>selected="selected"<?php else: if ( $cpt == $post['custom_type'] ):?>selected="selected"<?php endif; endif; ?>><?php echo esc_html($cpt_label); ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
|
||||
</select>
|
||||
|
||||
@@ -392,76 +418,70 @@
|
||||
// *****************************************************
|
||||
?>
|
||||
|
||||
<?php if ( ! class_exists('PMUI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="import_users">
|
||||
<p><?php _e('The User Add-On is Required to Import Users', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707221&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( class_exists('WooCommerce') && ! class_exists('PMWI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="product">
|
||||
<p><?php _e('The WooCommerce Add-On is Required to Import Products', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( class_exists('WooCommerce') && ( ! class_exists('PMWI_Plugin') || class_exists('PMWI_Plugin') && PMWI_EDITION == 'free') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_order">
|
||||
<?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
|
||||
<p><?php _e('The Pro version of the WooCommerce Add-On is required to Import Orders, but you have the free version installed.', 'wp_all_import_plugin'); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php _e('The WooCommerce Add-On Pro is Required to Import Orders', 'wp_all_import_plugin'); ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-orders" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_coupon">
|
||||
<?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
|
||||
<p><?php _e('The Pro version of the WooCommerce Add-On is required to Import Coupons, but you have the free version installed.', 'wp_all_import_plugin'); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php _e('The WooCommerce Add-On Pro is Required to Import Coupons', 'wp_all_import_plugin'); ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-coupons" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="taxonomies">
|
||||
<p><?php _e('WP All Import Pro is Required to Import Taxonomies', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-taxonomies" target="_blank" class="upgrade_link"><?php _e('Purchase WP All Import Pro', 'wp_all_import_plugin');?></a>
|
||||
<?php if ( ! class_exists('PMUI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="import_users">
|
||||
<p><?php _e('The User Add-On is Required to Import Users', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839963&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( class_exists('WooCommerce') && ! class_exists('PMWI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="product">
|
||||
<p><?php _e('The WooCommerce Add-On is Required to Import Products', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<div class="wpallimport-upgrade-notice" rel="comments">
|
||||
<p><?php _e('WP All Import Pro is Required to Import Comments', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-comments" target="_blank" class="upgrade_link"><?php _e('Purchase WP All Import Pro', 'wp_all_import_plugin');?></a>
|
||||
<?php endif; ?>
|
||||
<?php if ( class_exists('WooCommerce') && ( ! class_exists('PMWI_Plugin') || class_exists('PMWI_Plugin') && PMWI_EDITION == 'free') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_order">
|
||||
<?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
|
||||
<p><?php _e('The Pro version of the WooCommerce Add-On is required to Import Orders, but you have the free version installed.', 'wp_all_import_plugin'); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php _e('The WooCommerce Add-On Pro is Required to Import Orders', 'wp_all_import_plugin'); ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-orders" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_coupon">
|
||||
<?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
|
||||
<p><?php _e('The Pro version of the WooCommerce Add-On is required to Import Coupons, but you have the free version installed.', 'wp_all_import_plugin'); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php _e('The WooCommerce Add-On Pro is Required to Import Coupons', 'wp_all_import_plugin'); ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-coupons" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="taxonomies">
|
||||
<p><?php _e('WP All Import Pro is Required to Import Taxonomies', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-taxonomies" target="_blank" class="upgrade_link"><?php _e('Purchase WP All Import Pro', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<div class="wpallimport-upgrade-notice" rel="comments">
|
||||
<p><?php _e('WP All Import Pro is Required to Import Comments', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-comments" target="_blank" class="upgrade_link"><?php _e('Purchase WP All Import Pro', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<div class="wpallimport-upgrade-notice" rel="woo_reviews">
|
||||
<p><?php _e('The WooCommerce Import Package is Required to Import Reviews', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-reviews" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Import Package', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-reviews" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Import Package', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php if ( class_exists('WooCommerce') && ! class_exists('PMUI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_customer">
|
||||
<p><?php _e('The User Add-On is Required to Import Customers', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707221&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839963&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="clear wpallimport-extra-text-below">
|
||||
<!--div class="wpallimport-existing-records">
|
||||
<p><?php _e('In Step 4, you will map the records in your file to the existing items on your site and specify which data points will be updated and which will be left alone.', 'wp_all_import_plugin'); ?></p>
|
||||
<p><?php _e('The Existing Items option is commonly used to update existing products with new stock quantities while leaving all their other data alone, update properties on your site with new pricing, etc.', 'wp_all_import_plugin'); ?></p>
|
||||
</div-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php do_action('wp_all_import_entity_type_bundle', $post, false); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rad4 first-step-errors error-upload-rejected">
|
||||
<div class="wpallimport-notify-wrapper">
|
||||
<div class="error-headers exclamation">
|
||||
<h3><?php _e('File upload rejected by server', 'wp_all_import_plugin');?></h3>
|
||||
<h4><?php _e("Contact your host and have them check your server's error log.", "wp_all_import_plugin"); ?></h4>
|
||||
</div>
|
||||
</div>
|
||||
<a class="button button-primary button-hero wpallimport-large-button wpallimport-notify-read-more" href="http://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/?utm_source=import-plugin-free&utm_medium=error&utm_campaign=docs" target="_blank"><?php _e('Read More', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="button button-primary button-hero wpallimport-large-button wpallimport-notify-read-more" href="https://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/?utm_source=import-plugin-free&utm_medium=error&utm_campaign=docs" target="_blank"><?php _e('Read More', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
|
||||
<div class="rad4 first-step-errors error-file-validation" <?php if ( ! empty($upload_validation) ): ?> style="display:block;" <?php endif; ?>>
|
||||
@@ -469,34 +489,45 @@
|
||||
<div class="error-headers exclamation">
|
||||
<h3><?php _e('There\'s a problem with your import file', 'wp_all_import_plugin');?></h3>
|
||||
<h4>
|
||||
<?php
|
||||
if ( ! empty($upload_validation) ):
|
||||
<?php
|
||||
if ( ! empty($upload_validation) ):
|
||||
$file_type = strtoupper(pmxi_getExtension($post['file']));
|
||||
printf(__('Please verify that the file you using is a valid %s file.', 'wp_all_import_plugin'), esc_attr($file_type));
|
||||
endif;
|
||||
?>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<a class="button button-primary button-hero wpallimport-large-button wpallimport-notify-read-more" href="http://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/#invalid?utm_source=import-plugin-free&utm_medium=error&utm_campaign=docs" target="_blank"><?php _e('Read More', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="button button-primary button-hero wpallimport-large-button wpallimport-notify-read-more" href="https://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/#invalid?utm_source=import-plugin-free&utm_medium=error&utm_campaign=docs" target="_blank"><?php _e('Read More', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
|
||||
<p class="wpallimport-submit-buttons">
|
||||
<input type="hidden" name="custom_type" value="<?php echo esc_attr($post['custom_type']);?>">
|
||||
<input type="hidden" name="is_submitted" value="1" />
|
||||
<input type="hidden" name="auto_generate" value="0" />
|
||||
<div class="wpallimport-submit-buttons">
|
||||
<div class="wpallimport-submit-button-container" style="display:flex; justify-content: center; padding:20px; gap:10px;">
|
||||
<input type="hidden" name="custom_type" value="<?php echo esc_attr($post['custom_type']);?>">
|
||||
<input type="hidden" name="is_submitted" value="1" />
|
||||
<input type="hidden" name="auto_generate" value="0" />
|
||||
<input type="hidden" name="go_to_create_filters" value="0" />
|
||||
|
||||
<?php wp_nonce_field('choose-file', '_wpnonce_choose-file'); ?>
|
||||
<a href="javascript:void(0);" class="back rad3 auto-generate-template" style="float:none; background: #e4e6e6; padding: 0 50px;"><?php _e('Skip to Import Settings', 'wp_all_import_plugin'); ?></a>
|
||||
<div style="display: flex; flex-direction: column; align-items: center;">
|
||||
<a href="javascript:void(0);" class="back rad3 create-filters-step" style="float:none; background: #e4e6e6; padding: 0 50px;"><?php _e('Create Filters', 'wp_all_import_plugin'); ?></a>
|
||||
<span style="display: block; text-align: center; margin-top: 5px; font-size: 10px; font-weight:500; color:#777;"><?php _e('Limit What\'s Imported', 'wp_all_import_plugin'); ?></span>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; align-items: center;">
|
||||
<input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e('Set Up Import', 'wp_all_import_plugin') ?>" id="advanced_upload"/>
|
||||
<span style="display: block; text-align: center; margin-top: 5px; font-size: 10px; font-weight:500; color:#777;"><?php _e('Import Everything', 'wp_all_import_plugin'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php wp_nonce_field('choose-file', '_wpnonce_choose-file'); ?>
|
||||
<a href="javascript:void(0);" class="back rad3 auto-generate-template" style="float:none; background: #e4e6e6; padding: 0 50px;"><?php _e('Skip to Step 4', 'wp_all_import_plugin'); ?></a>
|
||||
<input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e('Continue to Step 2', 'wp_all_import_plugin') ?>" id="advanced_upload"/>
|
||||
</p>
|
||||
|
||||
<table><tr><td class="wpallimport-note"></td></tr></table>
|
||||
</form>
|
||||
<div class="wpallimport-display-columns wpallimport-margin-top-forty">
|
||||
|
||||
<div class="wpallimport-display-columns wpallimport-margin-top-forty">
|
||||
<?php echo apply_filters('wpallimport_footer', ''); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
@@ -74,17 +74,17 @@
|
||||
|
||||
<div class="options">
|
||||
<?php
|
||||
|
||||
|
||||
if ( in_array('reimport', $visible_sections)) include( 'options/_reimport_template.php' );
|
||||
do_action('pmxi_options_tab', $isWizard, $post);
|
||||
|
||||
if(!isset($import)) {
|
||||
if(!isset($import)) {
|
||||
$import = $update_previous;
|
||||
}
|
||||
include( 'options/scheduling/_scheduling_ui.php' );
|
||||
|
||||
|
||||
if ( in_array('settings', $visible_sections)) include( 'options/_settings_template.php' );
|
||||
|
||||
|
||||
include( 'options/_buttons_template.php' );
|
||||
|
||||
?>
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
</form>
|
||||
|
||||
<div class="wpallimport-display-columns wpallimport-margin-top-forty show-created-by-only">
|
||||
<div class="wpallimport-display-columns wpallimport-margin-top-forty">
|
||||
<?php echo apply_filters('wpallimport_footer', ''); ?>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -17,12 +17,10 @@
|
||||
<label for="is_delete_missing"><?php printf(__('Remove or modify %s that are not present in this import file', 'wp_all_import_plugin'), $cpt_name) ?></label><a href="https://www.youtube.com/watch?v=djC1IvYtDDY&ab_channel=WPAllImport" target="_blank" class="video-embed" style="position: relative; top: -2px;"></a>
|
||||
</div>
|
||||
<div class="switcher-target-is_delete_missing" style="padding-left:17px;">
|
||||
<?php if ($post['wizard_type'] == 'matching'): ?>
|
||||
<div class="wpallimport-free-edition-notice delete-missing-existing-items" style="margin-top: 10px; display: none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wpallimport-free-edition-notice delete-missing-existing-items" style="margin-top: 10px; display: none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<h4><?php printf(__('Which %s do you want to remove or modify?', 'wp_all_import_plugin'), $cpt_name); ?></h4>
|
||||
<input type="radio" id="delete_missing_logic_import" name="delete_missing_logic" value="import" <?php echo 'all' != $post['delete_missing_logic'] ? 'checked="checked"': '' ?> <?php echo ($post['wizard_type'] == 'matching') ? 'disabled="disabled"' : '';?> class="switcher"/>
|
||||
<label for="delete_missing_logic_import"><?php printf(__('Remove or modify %s created or updated by this import and then later removed from this import file', 'wp_all_import_plugin' ), $cpt_name);?></label><br>
|
||||
@@ -31,7 +29,7 @@
|
||||
|
||||
<div class="switcher-target-delete_missing_logic_all" style="padding-left:17px;">
|
||||
<div class="wpallimport-free-edition-notice" style="margin: 0 0 30px 7px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,7 +45,7 @@
|
||||
<?php if ( !in_array('is_send_removed_to_trash', $hidden_delete_missing_options) ): ?>
|
||||
<div class="input">
|
||||
<input type="hidden" name="is_send_removed_to_trash" value="0" />
|
||||
<input type="checkbox" id="is_send_removed_to_trash" name="is_send_removed_to_trash" value="1" <?php echo $post['is_send_removed_to_trash'] && !in_array('is_send_removed_to_trash', $disabled_delete_missing_options) ? 'checked="checked"': '' ?> <?php echo in_array('is_send_removed_to_trash', $disabled_delete_missing_options) ? 'disabled="disabled' : '';?> <?php echo ($post['wizard_type'] == 'matching') ? 'disabled="disabled"' : '';?> class="switcher"/>
|
||||
<input type="checkbox" id="is_send_removed_to_trash" name="is_send_removed_to_trash" value="1" <?php echo in_array('is_send_removed_to_trash', $disabled_delete_missing_options) ? 'disabled="disabled' : '';?> <?php echo ($post['wizard_type'] == 'matching') ? 'disabled="disabled"' : '';?> class="switcher"/>
|
||||
<?php if ( $post_type == 'product' ): ?>
|
||||
<label for="is_send_removed_to_trash"><?php printf(__('Send removed %s to trash', 'wp_all_import_plugin'), $cpt_name); ?></label>
|
||||
<a href="#help" class="wpallimport-help" title="<?php _e('Removed parent products will have all of their variations moved to the trash with them. If variations are removed from the import file and their parent product isn\'t, the variations will be disabled but will not be present in the trash. You can edit these disabled product variations in WooCommerce to manually reenable them.', 'wp_all_import_plugin') ?>" style="top: -2px;">?</a>
|
||||
@@ -58,7 +56,7 @@
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php printf(__('This option is not available when importing %s.', 'wp_all_import_plugin'), $cpt_name) ?>">?</a>
|
||||
<?php endif;?>
|
||||
<div class="wpallimport-free-edition-notice send-removed-to_trash-notice" style="margin: 0 0 10px 7px; display: none;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<?php printf(__('Files uploaded to <strong>%s</strong> will appear in this list.', 'wp_all_import_plugin'), esc_attr($upload_dir['basedir'] . '/wpallimport/files')); ?>
|
||||
</div>
|
||||
<div class="wpallimport-free-edition-notice">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=error&utm_campaign=use-existing-file" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Use Existing Files', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=error&utm_campaign=use-existing-file" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Use Existing Files', 'wp_all_import_plugin');?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -118,7 +118,7 @@
|
||||
<!--a href="javascript:void(0);" class="wpallimport-download-from-url"><?php _e('Upload', 'wp_all_import_plugin'); ?></a-->
|
||||
</div>
|
||||
<div class="wpallimport-free-edition-notice">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from URL', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from URL', 'wp_all_import_plugin');?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<input type="hidden" name="downloaded"/>
|
||||
@@ -190,7 +190,7 @@
|
||||
</div>
|
||||
|
||||
<div class="wpallimport-free-edition-notice">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from FTP/SFTP', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Download from FTP/SFTP', 'wp_all_import_plugin');?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('When enabled, WP All Import will keep track of every post\'s data as it is imported. When the import is run again, posts will be skipped if their data in the import file has not changed since the last run.<br/><br/>Posts will not be skipped if the import template or settings change, or if you make changes to the custom code in the Function Editor.', 'wp_all_import_plugin') ?>">?</a>
|
||||
<div class="switcher-target-is_selective_hashing" style="padding-left:17px;">
|
||||
<div class="wpallimport-free-edition-notice" style="margin: 0 0 30px 7px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use this option', 'wp_all_import_plugin'); ?></a>
|
||||
<p style="margin-top:16px;"><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -157,6 +157,7 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<input type="hidden" name="custom_fields_list" value="0" />
|
||||
<input type="hidden" name="is_update_custom_fields" value="0" />
|
||||
@@ -186,6 +187,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<input type="hidden" name="taxonomies_list" value="0" />
|
||||
<input type="hidden" name="is_update_categories" value="0" />
|
||||
|
||||
@@ -1,130 +1,103 @@
|
||||
<?php $custom_type = get_post_type_object( $post_type ); ?>
|
||||
<?php
|
||||
$custom_type = get_post_type_object( $post_type );
|
||||
$cpt_name = $custom_type->labels->name;
|
||||
?>
|
||||
<div class="wpallimport-collapsed wpallimport-section">
|
||||
<script type="text/javascript">
|
||||
__META_KEYS = <?php echo json_encode($existing_meta_keys) ?>;
|
||||
</script>
|
||||
</script>
|
||||
<div class="wpallimport-content-section">
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<?php
|
||||
if ( "new" == $post['wizard_type']): ?>
|
||||
<?php
|
||||
if ( ! $this->isWizard )
|
||||
{
|
||||
?>
|
||||
<h3><?php _e('Record Matching', 'wp_all_import_plugin'); ?></h3>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( ! empty(PMXI_Plugin::$session->deligate) and PMXI_Plugin::$session->deligate == 'wpallexport' )
|
||||
{
|
||||
?>
|
||||
<h3 style="padding-left:0;"><?php _e('Choose how exported data will be re-imported.','wp_all_import_plugin');?></h3>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<h3 style="padding-left:0;"><?php printf(__('WP All Import will create new %s for each unique record in your file.','wp_all_import_plugin'), esc_attr($custom_type->labels->name));?></h3>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<table class="form-table" style="max-width:none;">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="duplicate_matching" value="auto"/>
|
||||
<?php if ( ! $this->isWizard ):?>
|
||||
<h4><?php printf(__('WP All Import will associate records in your file with %s it has already created from previous runs of this import based on the Unique Identifier.','wp_all_import_plugin'), esc_attr($custom_type->labels->name));?></h4>
|
||||
<?php endif; ?>
|
||||
<div class="wpallimport-unique-key-wrapper" <?php if (!empty(PMXI_Plugin::$session->deligate)):?>style="display:none;"<?php endif; ?>>
|
||||
<label style="font-weight: bold;"><?php _e("Unique Identifier", "pmxi_plugin"); ?></label>
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<h3><?php printf(__('How do you want to import your %s?', 'wp_all_import_plugin'), $cpt_name); ?></h3>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<table class="form-table" style="max-width:none;">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="duplicate_matching" value="<?php echo esc_attr($post['duplicate_matching']); ?>"/>
|
||||
|
||||
<!-- First Radio Option: New Items Import -->
|
||||
<div>
|
||||
<label>
|
||||
<input type="radio" id="wizard_type_new" name="wizard_type" value="new" <?php echo ($post['wizard_type'] == 'new' || empty($post['wizard_type'])) ? 'checked="checked"' : ''; ?> class="switcher"/>
|
||||
<h4 style="margin: 0; display: inline-block; font-size: 14px;"><?php printf(__('Create new %s for each record in this import file', 'wp_all_import_plugin'), $cpt_name); ?></h4>
|
||||
</label>
|
||||
</div>
|
||||
<div class="wpallimport-wizard-description">
|
||||
<?php printf(__('First run creates new %s. Re-running this import will update those same %s using the Unique Identifier.', 'wp_all_import_plugin'), $cpt_name, $cpt_name); ?>
|
||||
</div>
|
||||
|
||||
<div class="switcher-target-wizard_type_new">
|
||||
<div class="wpallimport-wizard-content-wrapper">
|
||||
<div class="wpallimport-unique-key-wrapper" <?php if (!empty(PMXI_Plugin::$session->deligate)):?>style="display:none;"<?php endif; ?>>
|
||||
<label style="font-weight: bold;"><?php _e("Unique Identifier", "wp_all_import_plugin"); ?></label>
|
||||
<input type="text" class="smaller-text wpallimport-unique-key-input" name="unique_key" value="<?php if ( ! $this->isWizard ) echo esc_attr($post['unique_key']); elseif ($post['tmp_unique_key']) echo esc_attr($post['unique_key']); ?>" <?php echo ( ! $isWizard and ! empty($post['unique_key']) ) ? 'disabled="disabled"' : '' ?>/>
|
||||
|
||||
<input type="text" class="smaller-text" name="unique_key" style="width:300px;" value="<?php if ( ! $this->isWizard ) echo esc_attr($post['unique_key']); elseif ($post['tmp_unique_key']) echo esc_attr($post['unique_key']); ?>" <?php echo ( ! $isWizard and ! empty($post['unique_key']) ) ? 'disabled="disabled"' : '' ?>/>
|
||||
|
||||
<?php if ( $this->isWizard ): ?>
|
||||
<input type="hidden" name="tmp_unique_key" value="<?php echo ($post['unique_key']) ? esc_attr($post['unique_key']) : esc_attr($post['tmp_unique_key']); ?>"/>
|
||||
<a href="javascript:void(0);" class="wpallimport-auto-detect-unique-key"><?php _e('Auto-detect', 'wp_all_import_plugin'); ?></a>
|
||||
<?php else: ?>
|
||||
<?php if ( ! empty($post['unique_key']) ): ?>
|
||||
<a href="javascript:void(0);" class="wpallimport-change-unique-key"><?php _e('Edit', 'wp_all_import_plugin'); ?></a>
|
||||
<div id="dialog-confirm" title="<?php _e('Warning: Are you sure you want to edit the Unique Identifier?','wp_all_import_plugin');?>" style="display:none;">
|
||||
<p><?php printf(__('It is recommended you delete all %s associated with this import before editing the unique identifier.', 'wp_all_import_plugin'), esc_attr(strtolower($custom_type->labels->name))); ?></p>
|
||||
<p><?php printf(__('Editing the unique identifier will dissociate all existing %s linked to this import. Future runs of the import will result in duplicates, as WP All Import will no longer be able to update these %s.', 'wp_all_import_plugin'), esc_attr(strtolower($custom_type->labels->name)), esc_attr(strtolower($custom_type->labels->name))); ?></p>
|
||||
<p><?php _e('You really should just re-create your import, and pick the right unique identifier to start with.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<?php if ( $this->isWizard ): ?>
|
||||
<input type="hidden" name="tmp_unique_key" value="<?php echo ($post['unique_key']) ? esc_attr($post['unique_key']) : esc_attr($post['tmp_unique_key']); ?>"/>
|
||||
<a href="javascript:void(0);" class="wpallimport-auto-detect-unique-key"><?php _e('Auto-detect', 'wp_all_import_plugin'); ?></a>
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php printf(__('Adjusting the Unique Identifier<br/><br/>If you run this import again with an updated file, the Unique Identifier allows WP All Import to correctly link the records in your updated file with the %s it will create right now. If multiple records in this import file have the same Unique Identifier, only the first will be created. The others will be detected as duplicates.<br/><br/>If you find that the autodetected Unique Identifier is not unique enough you can drag in any combination of elements. The Unique Identifier should be unique for each record in this import file, and should stay the same even if this import file is updated. Things like product IDs, titles, and SKUs are good Unique Identifiers because they probably won\'t change. Don\'t use a description or price, since that might later change.', 'wp_all_import_plugin'), $custom_type->labels->name); ?>">?</a>
|
||||
<?php else: ?>
|
||||
<?php if ( ! empty($post['unique_key']) ): ?>
|
||||
<a href="javascript:void(0);" class="wpallimport-change-unique-key"><?php _e('Edit', 'wp_all_import_plugin'); ?></a>
|
||||
<div id="dialog-confirm" title="<?php _e('Warning: Are you sure you want to edit the Unique Identifier?','wp_all_import_plugin');?>" style="display:none;">
|
||||
<p><?php printf(__('It is recommended you delete all %s associated with this import before editing the unique identifier.', 'wp_all_import_plugin'), strtolower($custom_type->labels->name)); ?></p>
|
||||
<p><?php printf(__('Editing the unique identifier will dissociate all existing %s linked to this import. Future runs of the import will result in duplicates, as WP All Import will no longer be able to update these %s.', 'wp_all_import_plugin'), strtolower($custom_type->labels->name), strtolower($custom_type->labels->name)); ?></p>
|
||||
<p><?php _e('You really should just re-create your import, and pick the right unique identifier to start with.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<input type="hidden" name="tmp_unique_key" value="<?php echo ($post['unique_key']) ? esc_attr($post['unique_key']) : esc_attr($post['tmp_unique_key']); ?>"/>
|
||||
<a href="javascript:void(0);" class="wpallimport-auto-detect-unique-key"><?php _e('Auto-detect', 'wp_all_import_plugin'); ?></a>
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php printf(__('Adjusting the Unique Identifier<br/><br/>If you run this import again with an updated file, the Unique Identifier allows WP All Import to correctly link the records in your updated file with the %s it will create right now. If multiple records in this import file have the same Unique Identifier, only the first will be created. The others will be detected as duplicates.<br/><br/>If you find that the autodetected Unique Identifier is not unique enough you can drag in any combination of elements. The Unique Identifier should be unique for each record in this import file, and should stay the same even if this import file is updated. Things like product IDs, titles, and SKUs are good Unique Identifiers because they probably won\'t change. Don\'t use a description or price, since that might later change.', 'wp_all_import_plugin'), $custom_type->labels->name); ?>">?</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<p> </p>
|
||||
<?php if ( $this->isWizard ):?>
|
||||
<p class="drag_an_element_ico"><?php _e('Drag an element, or combo of elements, to the box above. The Unique Identifier should be unique for each record in your file, and should stay the same even if your file is updated. Things like product IDs, titles, and SKUs are good Unique Identifiers because they probably won\'t change. Don\'t use a description or price, since that might be changed.', 'wp_all_import_plugin'); ?></p>
|
||||
<p class="info_ico"><?php printf(__('If you run this import again with an updated file, the Unique Identifier allows WP All Import to correctly link the records in your updated file with the %s it will create right now. If multiple records in this file have the same Unique Identifier, only the first will be created. The others will be detected as duplicates.', 'wp_all_import_plugin'), esc_attr($custom_type->labels->name)); ?></p>
|
||||
<p class="new_element_ico"><?php printf(__('In Step 1 you selected New Items. So, if you run this import again WP All Import will only try to update records that were created by this import. It will never update, modify, or remove %s that were not created by this import. If you want to match records in your file to records that already exist on this site, select Existing Items in Step 1.', 'wp_all_import_plugin'), esc_attr($custom_type->labels->name)); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php include( '_reimport_options.php' ); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php if ( ! $this->isWizard ):?>
|
||||
<h3><?php _e('Record Matching', 'wp_all_import_plugin'); ?></h3>
|
||||
<?php else: ?>
|
||||
<h3 style="padding-left:0;"><?php printf(__('WP All Import will merge data into existing %s.','wp_all_import_plugin'), esc_attr($custom_type->labels->name));?></h3>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding:0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<table class="form-table" style="max-width:none;">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="input" style="margin-bottom:15px; position:relative;">
|
||||
<input type="hidden" name="duplicate_matching" value="manual"/>
|
||||
<h4><?php printf(__('Records in your file will be matched with %ss on your site based on...', 'wp_all_import_plugin' ), esc_attr($custom_type->labels->singular_name));?></h4>
|
||||
<div style="margin-left: -4px;">
|
||||
<div class="input">
|
||||
|
||||
<input type="radio" id="duplicate_indicator_title" class="switcher" name="duplicate_indicator" value="title" <?php echo 'title' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_title"><?php _e('Title', 'wp_all_import_plugin' )?></label><br>
|
||||
<input type="radio" id="duplicate_indicator_content" class="switcher" name="duplicate_indicator" value="content" <?php echo 'content' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_content"><?php _e('Content', 'wp_all_import_plugin' )?></label><br>
|
||||
<div class="input">
|
||||
<input type="radio" id="duplicate_indicator_custom_field" class="switcher" name="duplicate_indicator" value="custom field" <?php echo 'custom field' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_custom_field"><?php _e('Custom field', 'wp_all_import_plugin' )?></label><br>
|
||||
<span class="switcher-target-duplicate_indicator_custom_field" style="vertical-align:middle; padding-left:17px;">
|
||||
<?php _e('Name', 'wp_all_import_plugin') ?>
|
||||
<input type="text" name="custom_duplicate_name" value="<?php echo esc_attr($post['custom_duplicate_name']) ?>" />
|
||||
<?php _e('Value', 'wp_all_import_plugin') ?>
|
||||
<input type="text" name="custom_duplicate_value" value="<?php echo esc_attr($post['custom_duplicate_value']) ?>" />
|
||||
</span>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="radio" id="duplicate_indicator_pid" class="switcher" name="duplicate_indicator" value="pid" <?php echo 'pid' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_pid"><?php _e('Post ID', 'wp_all_import_plugin' )?></label><br>
|
||||
<span class="switcher-target-duplicate_indicator_pid" style="vertical-align:middle; padding-left:17px;">
|
||||
<input type="text" name="pid_xpath" value="<?php echo esc_attr($post['pid_xpath']) ?>" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include( '_reimport_options.php' ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Second Radio Option: Existing Items Import -->
|
||||
<div class="wpallimport-wizard-section-spacing">
|
||||
<label>
|
||||
<input type="radio" id="wizard_type_matching" name="wizard_type" value="matching" <?php echo ($post['wizard_type'] == 'matching') ? 'checked="checked"' : ''; ?> class="switcher"/>
|
||||
<h4 style="margin: 0; display: inline-block; font-size: 14px;"><?php printf(__('Attempt to match to existing %s before creating new ones', 'wp_all_import_plugin'), $cpt_name); ?></h4>
|
||||
</label>
|
||||
</div>
|
||||
<div class="wpallimport-wizard-description">
|
||||
<?php printf(__('Records in this import file will be matched with %s on your site based on...', 'wp_all_import_plugin'), $cpt_name); ?>
|
||||
</div>
|
||||
|
||||
<div class="switcher-target-wizard_type_matching">
|
||||
<div class="wpallimport-wizard-type-options">
|
||||
<input type="radio" id="duplicate_indicator_title" class="switcher" name="duplicate_indicator" value="title" <?php echo 'title' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_title"><?php _e('Title', 'wp_all_import_plugin' )?></label><br>
|
||||
|
||||
<input type="radio" id="duplicate_indicator_content" class="switcher" name="duplicate_indicator" value="content" <?php echo 'content' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_content"><?php _e('Content', 'wp_all_import_plugin' )?></label><br>
|
||||
|
||||
<input type="radio" id="duplicate_indicator_custom_field" class="switcher" name="duplicate_indicator" value="custom field" <?php echo 'custom field' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_custom_field"><?php _e('Custom field', 'wp_all_import_plugin' )?></label><br>
|
||||
<span class="switcher-target-duplicate_indicator_custom_field" style="padding-left: 24px;">
|
||||
<?php _e('Name', 'wp_all_import_plugin') ?>
|
||||
<input type="text" name="custom_duplicate_name" value="<?php echo esc_attr($post['custom_duplicate_name']) ?>" />
|
||||
<?php _e('Value', 'wp_all_import_plugin') ?>
|
||||
<input type="text" name="custom_duplicate_value" value="<?php echo esc_attr($post['custom_duplicate_value']) ?>" />
|
||||
</span>
|
||||
|
||||
<input type="radio" id="duplicate_indicator_pid" class="switcher" name="duplicate_indicator" value="pid" <?php echo 'pid' == $post['duplicate_indicator'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="duplicate_indicator_pid"><?php _e('Post ID', 'wp_all_import_plugin' )?></label><br>
|
||||
<span class="switcher-target-duplicate_indicator_pid" style="padding-left: 24px;">
|
||||
<input type="text" name="pid_xpath" value="<?php echo esc_attr($post['pid_xpath']) ?>" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include( '_reimport_options.php' ); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -43,10 +43,7 @@
|
||||
<input type="hidden" name="taxonomy_type" value="<?php echo sanitize_key(esc_attr($post['taxonomy_type']));?>">
|
||||
<select id="taxonomy_to_import">
|
||||
<option value=""><?php _e('Select Taxonomy', 'wp_all_export_plugin'); ?></option>
|
||||
<?php $options = wp_all_import_get_taxonomies(); ?>
|
||||
<?php foreach ($options as $slug => $name):?>
|
||||
<option value="<?php echo esc_attr($slug);?>" <?php if ($post['taxonomy_type'] == $slug):?>selected="selected"<?php endif;?>><?php echo esc_html($name);?></option>
|
||||
<?php endforeach;?>
|
||||
<!-- Free version - no taxonomies listed, upgrade required -->
|
||||
</select>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
@@ -83,9 +80,9 @@
|
||||
// Put users & comments & taxonomies after Pages
|
||||
if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){
|
||||
|
||||
$sorted_cpt['taxonomies'] = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp_all_export_plugin');
|
||||
$sorted_cpt['taxonomies'] = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels = new stdClass();
|
||||
$sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp_all_export_plugin');
|
||||
|
||||
$sorted_cpt['import_users'] = new stdClass();
|
||||
$sorted_cpt['import_users']->labels = new stdClass();
|
||||
@@ -191,7 +188,7 @@
|
||||
<?php if ( ! class_exists('PMUI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="import_users">
|
||||
<p><?php _e('The User Add-On is Required to Import Users', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707221&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839963&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -199,7 +196,7 @@
|
||||
<?php if ( class_exists('WooCommerce') && ! class_exists('PMUI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_customer">
|
||||
<p><?php _e('The User Add-On is Required to Import Customers', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707221&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839963&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php _e('Purchase the User Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -207,7 +204,7 @@
|
||||
<?php if ( class_exists('WooCommerce') && ! class_exists('PMWI_Plugin') ): ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="product">
|
||||
<p><?php _e('The WooCommerce Add-On is Required to Import Products', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( class_exists('WooCommerce') && ( ! class_exists('PMWI_Plugin') || class_exists('PMWI_Plugin') && PMWI_EDITION == 'free') ): ?>
|
||||
@@ -217,7 +214,7 @@
|
||||
<?php else: ?>
|
||||
<p><?php _e('The WooCommerce Add-On is Required to Import Orders', 'wp_all_import_plugin'); ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-orders" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-orders" target="_blank" class="upgrade_link"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<div class="wpallimport-upgrade-notice" rel="shop_coupon">
|
||||
<?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
|
||||
@@ -225,12 +222,12 @@
|
||||
<?php else: ?>
|
||||
<p><?php _e('The WooCommerce Add-On is Required to Import Coupons', 'wp_all_import_plugin'); ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-coupons"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-coupons"><?php _e('Purchase the WooCommerce Add-On', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wpallimport-upgrade-notice" rel="taxonomies">
|
||||
<p><?php _e('WP All Import Pro is Required to Import Taxonomies', 'wp_all_import_plugin'); ?></p>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-taxonomies" target="_blank" class="upgrade_link"><?php _e('Purchase WP All Import Pro', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-taxonomies" target="_blank" class="upgrade_link"><?php _e('Purchase WP All Import Pro', 'wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -287,7 +284,13 @@
|
||||
<?php else : ?>
|
||||
<input type="checkbox" id="xml_reader_engine" class="fix_checkbox" name="xml_reader_engine" value="1" <?php echo $post['xml_reader_engine'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="xml_reader_engine"><?php _e('Use StreamReader instead of XMLReader to parse import file', 'wp_all_import_plugin') ?> <a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php _e('XMLReader is much faster, but has a bug that sometimes prevents certain records from being imported with import files that contain special cases.', 'wp_all_import_plugin'); ?>">?</a></label>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<input type="hidden" name="use_alternative_excel_processing" value="0" />
|
||||
<input type="checkbox" id="use_alternative_excel_processing" name="use_alternative_excel_processing" value="1" class="fix_checkbox" <?php echo $post['use_alternative_excel_processing'] ? 'checked="checked"': '' ?>/>
|
||||
<label for="use_alternative_excel_processing"><?php _e('Use alternative Excel processing method', 'wp_all_import_plugin') ?> <a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php _e('Enable this option if you experience memory issues or errors when importing Excel files. This uses a different processing method that can handle problematic Excel files.', 'wp_all_import_plugin'); ?>">?</a></label>
|
||||
</div>
|
||||
|
||||
<div class="input" style="margin-top: 15px;">
|
||||
|
||||
@@ -87,14 +87,14 @@
|
||||
<h4>
|
||||
<?php printf(__('The file you are importing has %s records, but WP All Import only created <span class="inserted_count"></span> %s. It detected the other records in your file as duplicates. This could be because they actually are duplicates or it could be because your Unique Identifier is not unique for each record.<br><br>If your import file has no duplicates and you want to import all %s records, you should delete everything that was just imported and then edit your Unique Identifier so it\'s unique for each item.', 'wp_all_import_plugin'), esc_attr($update_previous->count), esc_attr($custom_type->labels->name), esc_attr($update_previous->count)); ?>
|
||||
</h4>
|
||||
<input type="button" class="button button-primary button-hero wpallimport-large-button wpallimport-delete-and-edit" rel="<?php echo esc_url(add_query_arg(array('id' => $update_previous->id, 'page' => 'pmxi-admin-manage', 'action' => 'delete_and_edit'), $this->baseUrl)); ?>" value="<?php _e('Delete & Edit', 'wp_all_import_plugin'); ?>"/>
|
||||
<input type="button" class="button button-primary button-hero wpallimport-large-button wpallimport-delete-and-edit" rel="<?php echo esc_url(add_query_arg(array('id' => $update_previous->id, 'page' => 'pmxi-admin-manage', 'action' => 'delete_and_edit', '_wpnonce_delete-and-edit' => wp_create_nonce('delete-and-edit')), $this->baseUrl)); ?>" value="<?php _e('Delete & Edit', 'wp_all_import_plugin'); ?>"/>
|
||||
</div>
|
||||
<div class="wpallimport-content-section wpallimport-console wpallimport-orders-complete-warning">
|
||||
<h3><?php printf(__('<span class="skipped_records_count">%s</span> orders were skipped during this import', 'wp_all_import_plugin'), esc_attr($update_previous->skipped)); ?></h3>
|
||||
<h4>
|
||||
<?php printf(__('WP All Import is unable to import an order when it cannot match the products or customer specified. <a href="%s" style="margin: 0;">See the import log</a> for a list of which orders were skipped and why.', 'wp_all_import_plugin'), esc_url(add_query_arg(array('id' => $update_previous->id, 'page' => 'pmxi-admin-history', 'action' => 'log', 'history_id' => PMXI_Plugin::$session->history_id, '_wpnonce' => wp_create_nonce( '_wpnonce-download_log' )), $this->baseUrl))); ?>
|
||||
</h4>
|
||||
<input type="button" class="button button-primary button-hero wpallimport-large-button wpallimport-delete-and-edit" rel="<?php echo esc_url(add_query_arg(array('id' => $update_previous->id, 'page' => 'pmxi-admin-manage', 'action' => 'delete_and_edit'), $this->baseUrl)); ?>" value="<?php _e('Delete & Edit', 'wp_all_import_plugin'); ?>"/>
|
||||
<input type="button" class="button button-primary button-hero wpallimport-large-button wpallimport-delete-and-edit" rel="<?php echo esc_url(add_query_arg(array('id' => $update_previous->id, 'page' => 'pmxi-admin-manage', 'action' => 'delete_and_edit', '_wpnonce_delete-and-edit' => wp_create_nonce('delete-and-edit')), $this->baseUrl)); ?>" value="<?php _e('Delete & Edit', 'wp_all_import_plugin'); ?>"/>
|
||||
</div>
|
||||
<!-- <h3 class="wpallimport-complete-success">--><?php //printf(__('WP All Import successfully imported your file <span>%s</span> into your WordPress installation!','wp_all_import_plugin'), (PMXI_Plugin::$session->source['type'] != 'url') ? basename(PMXI_Plugin::$session->source['path']) : PMXI_Plugin::$session->source['path'])?><!--</h3> -->
|
||||
<?php if ($ajax_processing): ?>
|
||||
@@ -198,13 +198,15 @@
|
||||
|
||||
$('.dismiss-speed-up-notify').click(function(e){
|
||||
e.preventDefault();
|
||||
$.post('admin.php?page=pmxi-admin-settings&action=dismiss_speed_up', {dismiss: true}, function (data) {}, 'html');
|
||||
$.post('admin.php?page=pmxi-admin-settings&action=dismiss_speed_up', {dismiss: true,
|
||||
security: wp_all_import_security }, function (data) {}, 'html');
|
||||
$('.wpallimport-speed-up-notify').addClass('dont_show_again').slideUp();
|
||||
});
|
||||
|
||||
$('.wpallimport-speed-up-notify-read-more').click(function(e){
|
||||
e.preventDefault();
|
||||
$.post('admin.php?page=pmxi-admin-settings&action=dismiss_speed_up', {dismiss: true}, function (data) {}, 'html');
|
||||
$.post('admin.php?page=pmxi-admin-settings&action=dismiss_speed_up', {dismiss: true,
|
||||
security: wp_all_import_security }, function (data) {}, 'html');
|
||||
$('.wpallimport-speed-up-notify').addClass('dont_show_again').slideUp();
|
||||
window.open($(this).attr('href'), '_blank');
|
||||
});
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
|
||||
<?php $visible_sections = apply_filters('pmxi_visible_template_sections', array('caption', 'main', 'taxonomies', 'cf', 'featured', 'other', 'nested'), $post['custom_type']); ?>
|
||||
|
||||
<?php if (!$this->isWizard){ require_once 'filters.php'; } ?>
|
||||
|
||||
<table class="wpallimport-layout">
|
||||
<tr>
|
||||
<td class="left">
|
||||
@@ -33,11 +35,9 @@
|
||||
<?php if ( in_array('caption', $visible_sections) ): ?>
|
||||
|
||||
<div class="wpallimport-collapsed wpallimport-section">
|
||||
<div class="wpallimport-content-section" style="overflow: hidden; padding-bottom: 0;">
|
||||
<div class="wpallimport-content-section" style="overflow: hidden; padding-bottom: 0; margin-top: 0;">
|
||||
<div class="wpallimport-collapsed-header" style="margin-bottom: 15px;">
|
||||
<?php if ( $post_type == 'taxonomies' ){ ?>
|
||||
<h3><?php _e('Name & Description', 'wp_all_import_plugin'); ?></h3>
|
||||
<?php } elseif ( $post_type == 'product'){ ?>
|
||||
<?php if ( $post_type == 'product'){ ?>
|
||||
<h3><?php _e('Title & Description', 'wp_all_import_plugin'); ?></h3>
|
||||
<?php } else { ?>
|
||||
<h3><?php _e('Title & Content', 'wp_all_import_plugin'); ?></h3>
|
||||
@@ -95,7 +95,7 @@
|
||||
<input type="hidden" name="is_leave_html" value="0" />
|
||||
<input type="checkbox" id="is_leave_html" name="is_leave_html" class="fix_checkbox" value="1" <?php echo $post['is_leave_html'] ? 'checked="checked"' : '' ?> style="position:relative;"/>
|
||||
<label for="is_leave_html"><?php _e('Decode HTML entities with <b>html_entity_decode</b>', 'wp_all_import_plugin') ?></label>
|
||||
<a class="wpallimport-help" href="#help" style="position:relative; top:1px;" title="If HTML code is showing up in your posts, use this option. You can also use <br /><br /><i>[html_entity_decode({my/xpath})]</i><br /><br /> or <br /><br /><i>[htmlentities({my/xpath})]</i><br /><br /> or <br /><br /><i>[htmlspecialchars_decode({my/xpath})]</i><br /><br /> to decode or encode HTML in your file.">?</a>
|
||||
<a class="wpallimport-help" href="#help" style="position:relative; top:1px;" title="<?php _e('If HTML code is showing up in your posts, use this option. You can also use <br /><br /><i>[html_entity_decode({my/xpath})]</i><br /><br /> or <br /><br /><i>[htmlentities({my/xpath})]</i><br /><br /> or <br /><br /><i>[htmlspecialchars_decode({my/xpath})]</i><br /><br /> to decode or encode HTML in this import file.', 'wp_all_import_plugin'); ?>">?</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,7 +112,9 @@
|
||||
|
||||
<?php
|
||||
|
||||
if ( in_array('main', $visible_sections) ) do_action('pmxi_extend_options_main', $post_type, $post);
|
||||
if ( in_array('main', $visible_sections) ) {
|
||||
do_action('pmxi_extend_options_main', $post_type, $post);
|
||||
}
|
||||
|
||||
if ( in_array('featured', $visible_sections) ) {
|
||||
$is_images_section_enabled = apply_filters('wp_all_import_is_images_section_enabled', true, $post_type);
|
||||
@@ -145,44 +147,44 @@
|
||||
|
||||
$uploads = wp_upload_dir();
|
||||
$functions = $uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_IMPORT_UPLOADS_BASE_DIRECTORY . DIRECTORY_SEPARATOR . 'functions.php';
|
||||
$functions = apply_filters( 'import_functions_file_path', $functions );
|
||||
?>
|
||||
|
||||
?>
|
||||
|
||||
<div class="wpallimport-collapsed closed wpallimport-section">
|
||||
<div class="wpallimport-content-section">
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<h3><?php _e('Function Editor', 'wp_all_import_plugin'); ?></h3>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:0; margin-bottom: 40px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=function-editor" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use the Function Editor', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
|
||||
<textarea id="wp_all_import_code" name="wp_all_import_code"><?php echo "<?php\n\n?>";?></textarea>
|
||||
|
||||
<div class="input" style="margin-top: 10px;">
|
||||
|
||||
<div class="input" style="display:inline-block; margin-right: 20px;">
|
||||
<input type="button" class="button-primary wp_all_import_save_functions" disabled="disabled" value="<?php _e("Save Functions", 'wp_all_import_plugin'); ?>"/>
|
||||
<a href="#help" class="wpallimport-help" title="<?php printf(__("Add functions here for use during your import. You can access this file at %s", "wp_all_import_plugin"), esc_attr(preg_replace("%.*wp-content%", "wp-content", $functions)));?>" style="top: 0;">?</a>
|
||||
<div class="wp_all_import_functions_preloader"></div>
|
||||
</div>
|
||||
<div class="input wp_all_import_saving_status" style="display:inline-block;">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed closed wpallimport-section">
|
||||
<div class="wpallimport-content-section">
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<h3><?php _e('Function Editor', 'wp_all_import_plugin'); ?></h3>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:0; margin-bottom: 40px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=function-editor" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use the Function Editor', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<textarea id="wp_all_import_code" name="wp_all_import_code"><?php echo "<?php\n\n?>";?></textarea>
|
||||
|
||||
<div class="input wpallimport-section load-template-container" style="padding-bottom: 8px; padding-left: 8px;">
|
||||
<div class="input" style="margin-top: 10px;">
|
||||
|
||||
<div class="input" style="display:inline-block; margin-right: 20px;">
|
||||
<input type="button" class="button-primary wp_all_import_save_functions" disabled="disabled" value="<?php _e("Save Functions", 'wp_all_import_plugin'); ?>"/>
|
||||
<a href="#help" class="wpallimport-help" title="<?php printf(__("Add functions here for use during your import. You can access this file at %s", "wp_all_import_plugin"), esc_attr(preg_replace("%.*wp-content%", "wp-content", $functions)));?>" style="top: 0;">?</a>
|
||||
<div class="wp_all_import_functions_preloader"></div>
|
||||
</div>
|
||||
<div class="input wp_all_import_saving_status" style="display:inline-block;">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="input wpallimport-section load-template-container" style="padding-bottom: 8px; padding-left: 8px;">
|
||||
|
||||
<?php
|
||||
wp_all_import_template_notifications( $post, 'notice' );
|
||||
@@ -218,7 +220,7 @@
|
||||
<input type="hidden" value="<?php _e('Upgrade to the Pro edition of WP All Import to Import Custom Fields', 'wp_all_import_plugin');?>" class="wpallimport-dynamic-notice-cf-text"/>
|
||||
<input type="hidden" value="<?php _e('Upgrade to the Pro edition of WP All Import to Import Images', 'wp_all_import_plugin');?>" class="wpallimport-dynamic-notice-images-text"/>
|
||||
<input type="hidden" value="<?php _e('Upgrade to the Pro edition of WP All Import to Import Images and Custom Fields', 'wp_all_import_plugin');?>" class="wpallimport-dynamic-notice-cf-image-text"/>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=images-and-or-custom-fields" target="_blank" class="upgrade_link"></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=images-and-or-custom-fields" target="_blank" class="upgrade_link"></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
|
||||
@@ -228,22 +230,23 @@
|
||||
<input type="hidden" name="security" value="<?php echo wp_create_nonce( "wp_all_import_preview" ); ?>" />
|
||||
|
||||
<?php if ($this->isWizard):?>
|
||||
<a href="<?php echo esc_url(add_query_arg('action', 'element', $this->baseUrl)) ?>" class="back rad3" style="float:none;"><?php _e('Back to Step 2', 'wp_all_import_plugin') ?></a>
|
||||
<a href="<?php echo esc_url(add_query_arg('action', 'element', $this->baseUrl)); ?>" class="back rad3" style="float:none;"><?php _e('Back to Create Filters', 'wp_all_import_plugin') ?></a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo esc_url(remove_query_arg('id', remove_query_arg('action', $this->baseUrl))); ?>" class="back rad3" style="float:none;"><?php _e('Back to Manage Imports', 'wp_all_import_plugin') ?></a>
|
||||
<?php endif; ?>
|
||||
<input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e( ($this->isWizard) ? 'Continue to Step 4' : 'Update Template', 'wp_all_import_plugin') ?>" />
|
||||
|
||||
<button type="button" id="wpai-full-preview-btn" class="button button-secondary button-hero wpallimport-large-button" style="margin: 0 10px; background: 50% #425f9a; color: #fff;"><?php _e('Preview', 'wp_all_import_plugin') ?></button>
|
||||
|
||||
<input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e( ($this->isWizard) ? 'Continue to Import Settings' : 'Update Template', 'wp_all_import_plugin') ?>" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<a href="http://soflyy.com/" target="_blank" class="wpallimport-created-by"><?php _e('Created by', 'wp_all_import_plugin'); ?> <span></span></a>
|
||||
|
||||
</td>
|
||||
</td>
|
||||
<?php if ($this->isWizard or $this->isTemplateEdit): ?>
|
||||
<td class="right template-sidebar">
|
||||
<div style="position:relative;">
|
||||
<?php $this->tag( false ); ?>
|
||||
<?php $this->tag( false ); ?>
|
||||
</div>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
@@ -251,3 +254,9 @@
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<?php include __DIR__ . '/full-preview-modal.php'; ?>
|
||||
|
||||
<div class="wpallimport-display-columns wpallimport-margin-top-forty">
|
||||
<?php echo apply_filters('wpallimport_footer', ''); ?>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:0; margin-bottom: 40px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-fields" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Import Custom Fields', 'pmxi_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-fields" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Import Custom Fields', 'pmxi_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<?php if ($section_is_show_warning and ( $post_type != "product" or ! class_exists('PMWI_Plugin'))):?>
|
||||
|
||||
<div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:-15px; margin-bottom: 40px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=images" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Import Images', 'pmxi_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=images" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to Import Images', 'pmxi_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$custom_type = get_post_type_object( $post_type );
|
||||
$custom_type = wp_all_import_custom_type( $post_type );
|
||||
|
||||
$exclude_taxonomies = apply_filters('pmxi_exclude_taxonomies', (class_exists('PMWI_Plugin')) ? array('post_format', 'product_type', 'product_shipping_class') : array('post_format'));
|
||||
$post_taxonomies = array_diff_key(get_taxonomies_by_object_type($post['is_override_post_type'] ? array_keys(get_post_types( '', 'names' )) : array($post_type), 'object'), array_flip($exclude_taxonomies));
|
||||
@@ -37,50 +37,35 @@ if ( ! empty($post_taxonomies)):
|
||||
<input type="radio" name="tax_logic[<?php echo esc_attr($ctx->name);?>]" value="single" id="tax_logic_single_<?php echo esc_attr($ctx->name);?>" class="switcher" <?php echo (empty($post['tax_logic'][$ctx->name]) or $post['tax_logic'][$ctx->name] == 'single') ? 'checked="checked"' : ''; ?>/>
|
||||
<label for="tax_logic_single_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Each %s has just one %s', 'wp_all_import_plugin'), esc_attr($custom_type->labels->singular_name), esc_attr($ctx->labels->singular_name)); ?></label>
|
||||
<div class="switcher-target-tax_logic_single_<?php echo esc_attr($ctx->name);?> sub_input">
|
||||
<input type="hidden" name="term_assing[<?php echo esc_attr($ctx->name);?>]" value="0"/>
|
||||
<input type="checkbox" name="term_assing[<?php echo esc_attr($ctx->name);?>]" <?php echo (isset($post['term_assing'][$ctx->name])) ? (( ! empty($post['term_assing'][$ctx->name]) ) ? 'checked="checked"' : '') : 'checked="checked"'; ?> title="<?php _e('Assign post to the taxonomy.','wp_all_import_plugin');?>" value="1"/>
|
||||
<input type="hidden" name="term_assing[<?php echo esc_attr($ctx->name);?>]" value="1"/>
|
||||
<input type="text" class="widefat single_xpath_field" name="tax_single_xpath[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo ( isset($post['tax_single_xpath'][$ctx->name])) ? esc_textarea($post['tax_single_xpath'][$ctx->name]) : ''; ?>" style="width:50%;"/>
|
||||
<div class="input tax_is_full_search_single" style="margin: 10px 0;">
|
||||
<input type="hidden" name="tax_is_full_search_single[<?php echo esc_attr($ctx->name); ?>]" value="0"/>
|
||||
<input type="checkbox" id="tax_is_full_search_single_<?php echo esc_attr($ctx->name); ?>" class="switcher" <?php if ( ! empty($post['tax_is_full_search_single'][$ctx->name]) ) echo "checked='checked'"; ?> name="tax_is_full_search_single[<?php echo esc_attr($ctx->name); ?>]" value="1"/>
|
||||
<label for="tax_is_full_search_single_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Try to match terms to existing child %s', 'wp_all_import_plugin'), esc_attr($ctx->labels->name)); ?></label>
|
||||
<div class="switcher-target-tax_is_full_search_single_<?php echo esc_attr($ctx->name); ?> sub_input">
|
||||
<div class="input tax_assign_to_one_term_single" style="margin: 10px 0;">
|
||||
<input type="hidden" name="tax_assign_to_one_term_single[<?php echo esc_attr($ctx->name); ?>]" value="0"/>
|
||||
<input type="checkbox" id="tax_assign_to_one_term_single_<?php echo esc_attr($ctx->name); ?>" <?php if ( ! empty($post['tax_assign_to_one_term_single'][$ctx->name]) ) echo "checked='checked'"; ?> name="tax_assign_to_one_term_single[<?php echo esc_attr($ctx->name); ?>]" value="1"/>
|
||||
<label for="tax_assign_to_one_term_single_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Only assign %s to the imported %s, not the entire hierarchy', 'wp_all_import_plugin'), esc_attr($custom_type->labels->name), esc_attr($ctx->labels->singular_name)); ?></label>
|
||||
<a href="#help" class="wpallimport-help" title="<?php _e('By default all categories above the matched category will also be assigned to the post. If enabled, only the imported category will be assigned to the post.', 'wp_all_import_plugin'); ?>" style="position:relative; top: -1px;">?</a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php printf(__('If this box is checked, WP All Import will try to match the %s in your import file to child %s. If it can\'t make a successful match, it will create a new %s using the %s in your import file.', 'wp_all_import_plugin'), $ctx->labels->singular_name, $ctx->labels->name, $ctx->labels->singular_name, $ctx->labels->singular_name) ?>">?</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="radio" name="tax_logic[<?php echo esc_attr($ctx->name);?>]" value="multiple" id="tax_logic_multiple_<?php echo esc_attr($ctx->name);?>" class="switcher" <?php echo (!empty($post['tax_logic'][$ctx->name]) and $post['tax_logic'][$ctx->name] == 'multiple') ? 'checked="checked"' : ''; ?>/>
|
||||
<input type="radio" name="tax_logic[<?php echo esc_attr($ctx->name);?>]" value="multiple" id="tax_logic_multiple_<?php echo esc_attr($ctx->name);?>" class="switcher" <?php echo ( ! empty($post['tax_logic'][$ctx->name]) and $post['tax_logic'][$ctx->name] == 'multiple') ? 'checked="checked"' : ''; ?>/>
|
||||
<label for="tax_logic_multiple_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Each %s has multiple %s', 'wp_all_import_plugin'), esc_attr($custom_type->labels->singular_name), esc_attr($ctx->labels->name)); ?></label>
|
||||
<div class="switcher-target-tax_logic_multiple_<?php echo esc_attr($ctx->name);?> sub_input">
|
||||
<input type="hidden" name="multiple_term_assing[<?php echo esc_attr($ctx->name);?>]" value="1"/>
|
||||
<input type="text" class="widefat multiple_xpath_field" name="tax_multiple_xpath[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo ( ! empty($post['tax_multiple_xpath'][$ctx->name])) ? esc_textarea($post['tax_multiple_xpath'][$ctx->name]) : ''; ?>" style="width:50%;"/>
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<input type="text" class="small tax_delim" name="tax_multiple_delim[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo esc_attr(( ! empty($post['tax_multiple_delim'][$ctx->name]) ) ? str_replace("&","&", htmlentities(htmlentities($post['tax_multiple_delim'][$ctx->name]))) : ','); ?>" />
|
||||
<div class="input tax_is_full_search_multiple" style="margin: 10px 0;">
|
||||
<input type="hidden" name="tax_is_full_search_multiple[<?php echo esc_attr($ctx->name); ?>]" value="0"/>
|
||||
<input type="checkbox" id="tax_is_full_search_multiple_<?php echo esc_attr($ctx->name); ?>" class="switcher" <?php if ( ! empty($post['tax_is_full_search_multiple'][$ctx->name]) ) echo "checked='checked'"; ?> name="tax_is_full_search_multiple[<?php echo esc_attr($ctx->name); ?>]" value="1"/>
|
||||
<label for="tax_is_full_search_multiple_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Try to match terms to existing child %s', 'wp_all_import_plugin'), esc_attr($ctx->labels->name)); ?></label>
|
||||
<div class="switcher-target-tax_is_full_search_multiple_<?php echo esc_attr($ctx->name); ?> sub_input">
|
||||
<div class="input tax_assign_to_one_term_multiple" style="margin: 10px 0;">
|
||||
<input type="hidden" name="tax_assign_to_one_term_multiple[<?php echo esc_attr($ctx->name); ?>]" value="0"/>
|
||||
<input type="checkbox" id="tax_assign_to_one_term_multiple_<?php echo esc_attr($ctx->name); ?>" <?php if ( ! empty($post['tax_assign_to_one_term_multiple'][$ctx->name]) ) echo "checked='checked'"; ?> name="tax_assign_to_one_term_multiple[<?php echo esc_attr($ctx->name); ?>]" value="1"/>
|
||||
<label for="tax_assign_to_one_term_multiple_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Only assign %s to the imported %s, not the entire hierarchy', 'wp_all_import_plugin'), esc_attr($custom_type->labels->name), esc_attr($ctx->labels->singular_name)); ?></label>
|
||||
<a href="#help" class="wpallimport-help" title="<?php _e('By default all categories above the matched category will also be assigned to the post. If enabled, only the imported category will be assigned to the post.', 'wp_all_import_plugin'); ?>" style="position:relative; top: -1px;">?</a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php printf(__('If this box is checked, WP All Import will try to match the %s in your import file to child %s. If it can\'t make a successful match, it will create a new %s using the %s in your import file.', 'wp_all_import_plugin'), $ctx->labels->singular_name, $ctx->labels->name, $ctx->labels->singular_name, $ctx->labels->singular_name) ?>">?</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($ctx->hierarchical): ?>
|
||||
<div class="input">
|
||||
<input type="radio" name="tax_logic[<?php echo esc_attr($ctx->name);?>]" value="hierarchical" id="tax_logic_hierarchical_<?php echo esc_attr($ctx->name);?>" class="switcher" <?php echo (!empty($post['tax_logic'][$ctx->name]) and $post['tax_logic'][$ctx->name] == 'hierarchical') ? 'checked="checked"' : ''; ?>/>
|
||||
<input type="radio" name="tax_logic[<?php echo esc_attr($ctx->name);?>]" value="hierarchical" id="tax_logic_hierarchical_<?php echo esc_attr($ctx->name);?>" class="switcher" <?php echo ( ! empty($post['tax_logic'][$ctx->name]) and $post['tax_logic'][$ctx->name] == 'hierarchical') ? 'checked="checked"' : ''; ?>/>
|
||||
<label for="tax_logic_hierarchical_<?php echo esc_attr($ctx->name);?>"><?php printf(__('%ss have hierarchical (parent/child) %s (i.e. Sports > Golf > Clubs > Putters)', 'wp_all_import_plugin'), esc_attr($custom_type->labels->singular_name), esc_attr($ctx->labels->name)); ?></label>
|
||||
<div class="switcher-target-tax_logic_hierarchical_<?php echo esc_attr($ctx->name);?> sub_input">
|
||||
<div class="input">
|
||||
@@ -93,7 +78,7 @@ if ( ! empty($post_taxonomies)):
|
||||
<li class="dragging">
|
||||
<div style="position:relative;">
|
||||
<input type="hidden" class="assign_term" name="tax_hierarchical_assing[<?php echo esc_attr($ctx->name);?>][<?php echo esc_attr($k);?>]" value="1"/>
|
||||
<input type="text" class="widefat hierarchical_xpath_field" name="tax_hierarchical_xpath[<?php echo esc_attr($ctx->name); ?>][]" value="<?php echo esc_textarea(wp_all_import_filter_html_kses($path)); ?>"/>
|
||||
<input type="text" class="widefat hierarchical_xpath_field" name="tax_hierarchical_xpath[<?php echo esc_attr($ctx->name); ?>][]" value="<?php echo esc_textarea($path); ?>"/>
|
||||
<a href="javascript:void(0);" class="icon-item remove-ico"></a>
|
||||
</div>
|
||||
</li>
|
||||
@@ -114,26 +99,20 @@ if ( ! empty($post_taxonomies)):
|
||||
<a href="javascript:void(0);" class="icon-item remove-ico"></a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<input type="text" class="small tax_delim" name="tax_hierarchical_delim[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo ( ! empty($post['tax_hierarchical_delim'][$ctx->name]) ) ? str_replace("&","&", htmlentities(htmlentities($post['tax_hierarchical_delim'][$ctx->name]))) : '>' ?>" />
|
||||
<div class="input">
|
||||
<input type="hidden" name="tax_hierarchical_last_level_assign[<?php echo esc_attr($ctx->name); ?>]" value="0" />
|
||||
<input type="checkbox" id="tax_hierarchical_last_level_assign_<?php echo esc_attr($ctx->name); ?>" name="tax_hierarchical_last_level_assign[<?php echo esc_attr($ctx->name); ?>]" value="1" <?php echo ( ! empty($post['tax_hierarchical_last_level_assign'][$ctx->name])) ? 'checked="checked"': '' ?> />
|
||||
<label for="tax_hierarchical_last_level_assign_<?php echo esc_attr($ctx->name); ?>"><?php printf(__('Only assign %s to the bottom level term in the hierarchy', 'wp_all_import_plugin'), esc_attr($custom_type->label)); ?></label>
|
||||
</div>
|
||||
</ul>
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<input type="text" class="small tax_delim" name="tax_hierarchical_delim[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo esc_attr(( ! empty($post['tax_hierarchical_delim'][$ctx->name]) ) ? str_replace("&","&", htmlentities(htmlentities($post['tax_hierarchical_delim'][$ctx->name]))) : '>'); ?>" />
|
||||
<div class="input">
|
||||
<input type="hidden" name="is_tax_hierarchical_group_delim[<?php echo esc_attr($ctx->name); ?>]" value="0" />
|
||||
<input type="checkbox" id="is_tax_hierarchical_group_delim_<?php echo esc_attr($ctx->name); ?>" name="is_tax_hierarchical_group_delim[<?php echo esc_attr($ctx->name); ?>]" value="1" class="switcher" <?php echo ( ! empty($post['is_tax_hierarchical_group_delim'][$ctx->name])) ? 'checked="checked"': '' ?> />
|
||||
<label for="is_tax_hierarchical_group_delim_<?php echo esc_attr($ctx->name); ?>"><?php printf(__('Separate hierarchy groups via symbol', 'wp_all_import_plugin'), esc_attr($custom_type->label)) ?></label>
|
||||
<div class="switcher-target-is_tax_hierarchical_group_delim_<?php echo esc_attr($ctx->name);?> sub_input">
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<input type="text" class="small tax_delim" name="tax_hierarchical_group_delim[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo esc_attr(( ! empty($post['tax_hierarchical_group_delim'][$ctx->name]) ) ? str_replace("&","&", htmlentities(htmlentities($post['tax_hierarchical_group_delim'][$ctx->name]))) : '|'); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<a class="preview_taxonomies" href="javascript:void(0);" style="top:-35px; float: right; position: relative;" rel="preview_taxonomies"><?php _e('Preview', 'wp_all_import_plugin'); ?></a>
|
||||
<div class="input">
|
||||
<a href="javascript:void(0);" class="icon-item add-new-cat" style="width: 200px;"><?php _e('Add Another Hierarchy Group','wp_all_import_plugin');?></a>
|
||||
<a href="javascript:void(0);" class="icon-item add-new-cat" style="width: 200px;"><?php _e('Add Another Hierarchy Group','wp_all_import_plugin');?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -142,7 +121,7 @@ if ( ! empty($post_taxonomies)):
|
||||
<input type="checkbox" name="tax_hierarchical_logic_manual[<?php echo esc_attr($ctx->name);?>]" value="1" id="hierarchical_logic_manual_<?php echo esc_attr($ctx->name);?>" class="switcher" <?php echo (!empty($post['tax_hierarchical_logic_manual'][$ctx->name])) ? 'checked="checked"' : ''; ?>/>
|
||||
<label for="hierarchical_logic_manual_<?php echo esc_attr($ctx->name);?>"><?php _e('Manually design the hierarchy with drag & drop', 'wp_all_import_plugin'); ?></label>
|
||||
<div class="switcher-target-hierarchical_logic_manual_<?php echo esc_attr($ctx->name);?> sub_input">
|
||||
<p style="margin-bottom: 10px;"><?php printf(__('Drag the <img src="%s" class="wpallimport-drag-icon"/> to the right to create a child, drag up and down to re-order.'), esc_url(WP_ALL_IMPORT_ROOT_URL . '/static/img/drag.png')); ?></p>
|
||||
<p style="margin-bottom: 10px;"><?php printf(__('Drag the <img src="%s" class="wpallimport-drag-icon"/> to the right to create a child, drag up and down to re-order.', 'wp_all_import_plugin'), esc_url(WP_ALL_IMPORT_ROOT_URL . '/static/img/drag.png')); ?></p>
|
||||
<ol class="sortable no-margin" style="margin-left: 20px;">
|
||||
<?php
|
||||
if ( ! empty($post['post_taxonomies'][$ctx->name]) ):
|
||||
@@ -171,26 +150,21 @@ if ( ! empty($post_taxonomies)):
|
||||
}
|
||||
|
||||
endif;
|
||||
else:
|
||||
|
||||
endif;
|
||||
|
||||
if (empty($taxonomies_hierarchy) or !is_array($taxonomies_hierarchy) or count($taxonomies_hierarchy) == 0):
|
||||
?>
|
||||
<li id="item_1" class="dragging">
|
||||
<div class="drag-element">
|
||||
<input type="hidden" class="assign_term" value="1"/>
|
||||
<input type="text" class="widefat xpath_field" value=""/>
|
||||
<?php do_action('pmxi_category_view', false, 1, $ctx->name, $post_type); ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
<li id="item_1" class="dragging">
|
||||
<div class="drag-element">
|
||||
<input type="hidden" class="assign_term" value="1"/>
|
||||
<input type="text" class="widefat xpath_field" value=""/>
|
||||
</div>
|
||||
<a href="javascript:void(0);" class="icon-item remove-ico"></a>
|
||||
<ol>
|
||||
<li id="item_2" class="dragging">
|
||||
<div class="drag-element">
|
||||
<input type="hidden" class="assign_term" value="1"/>
|
||||
<input class="widefat xpath_field" type="text" value=""/>
|
||||
</div>
|
||||
<a href="javascript:void(0);" class="icon-item remove-ico"></a>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<?php
|
||||
endif;?>
|
||||
|
||||
<li id="item" class="template">
|
||||
<div class="drag-element">
|
||||
@@ -203,9 +177,9 @@ if ( ! empty($post_taxonomies)):
|
||||
|
||||
</ol>
|
||||
<input type="hidden" class="hierarhy-output" name="post_taxonomies[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo empty($post['post_taxonomies'][$ctx->name]) ? '' : esc_attr($post['post_taxonomies'][$ctx->name]) ?>"/>
|
||||
<?php do_action('pmxi_category_options_view', ((!empty($post['post_taxonomies'][$ctx->name])) ? $post['post_taxonomies'][$ctx->name] : false), $ctx->name, $post_type, $ctx->labels->name); ?>
|
||||
<?php do_action('pmxi_category_options_view', ((!empty($post['post_taxonomies'][$ctx->name])) ? $post['post_taxonomies'][$ctx->name] : false), $ctx->name, $post_type, $ctx->labels->name); ?>
|
||||
<div class="input" style="margin-left:17px;">
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<label><?php _e('Separated by', 'wp_all_import_plugin'); ?></label>
|
||||
<input type="text" class="small tax_delim" name="tax_manualhierarchy_delim[<?php echo esc_attr($ctx->name); ?>]" value="<?php echo esc_attr(( ! empty($post['tax_manualhierarchy_delim'][$ctx->name]) ) ? str_replace("&","&", htmlentities(htmlentities($post['tax_manualhierarchy_delim'][$ctx->name]))) : ','); ?>" />
|
||||
</div>
|
||||
<a href="javascript:void(0);" class="icon-item add-new-ico"><?php _e('Add Another Row','wp_all_import_plugin');?></a>
|
||||
@@ -214,7 +188,7 @@ if ( ! empty($post_taxonomies)):
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="input" style="margin: 4px;">
|
||||
<div class="input" style="margin: 4px;">
|
||||
<?php
|
||||
$tax_mapping = ( ! empty($post['tax_mapping'][$ctx->name]) ) ? json_decode($post['tax_mapping'][$ctx->name], true) : false;
|
||||
?>
|
||||
@@ -222,17 +196,17 @@ if ( ! empty($post_taxonomies)):
|
||||
<input type="checkbox" id="tax_mapping_<?php echo esc_attr($ctx->name); ?>" class="pmxi_tax_mapping switcher" <?php if ( ! empty($post['tax_enable_mapping'][$ctx->name]) ) echo "checked='checked'"; ?> name="tax_enable_mapping[<?php echo esc_attr($ctx->name); ?>]" value="1"/>
|
||||
<label for="tax_mapping_<?php echo esc_attr($ctx->name);?>"><?php printf(__('Enable Mapping for %s', 'wp_all_import_plugin'), esc_attr($ctx->labels->name)); ?></label>
|
||||
<div class="switcher-target-tax_mapping_<?php echo esc_attr($ctx->name);?> sub_input custom_type" rel="tax_mapping">
|
||||
<fieldset style="padding: 0;">
|
||||
<fieldset style="padding: 0;">
|
||||
<table cellpadding="0" cellspacing="5" class="tax-form-table" rel="tax_mapping_<?php echo esc_attr($ctx->name); ?>" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?php _e('In Your File', 'wp_all_import_plugin') ?></td>
|
||||
<td><?php _e('Translated To', 'wp_all_import_plugin') ?></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
<tbody>
|
||||
<?php
|
||||
if ( ! empty($tax_mapping) and is_array($tax_mapping) ){
|
||||
|
||||
foreach ($tax_mapping as $key => $value) {
|
||||
@@ -260,7 +234,8 @@ if ( ! empty($post_taxonomies)):
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
if (empty($tax_mapping) or !is_array($tax_mapping) or count($tax_mapping) == 0):
|
||||
?>
|
||||
<tr class="form-field">
|
||||
<td>
|
||||
@@ -274,8 +249,8 @@ if ( ! empty($post_taxonomies)):
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
endif;
|
||||
?>
|
||||
<tr class="form-field template">
|
||||
<td>
|
||||
<input type="text" class="mapping_from widefat">
|
||||
@@ -291,62 +266,63 @@ if ( ! empty($post_taxonomies)):
|
||||
<td colspan="3">
|
||||
<a href="javascript:void(0);" title="<?php _e('Add Another Rule', 'wp_all_import_plugin')?>" class="action add-new-key add-new-entry"><?php _e('Add Another Rule', 'wp_all_import_plugin') ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
<input type="hidden" name="tax_mapping[<?php echo esc_attr($ctx->name); ?>]" value="<?php if (!empty($post['tax_mapping'][$ctx->name])) echo esc_html($post['tax_mapping'][$ctx->name]); ?>"/>
|
||||
</fieldset>
|
||||
<div class="input">
|
||||
</fieldset>
|
||||
<div class="input">
|
||||
<input type="hidden" name="tax_logic_mapping[<?php echo esc_attr($ctx->name); ?>]" value="0"/>
|
||||
<input type="checkbox" id="tax_logic_mapping_<?php echo esc_attr($ctx->name); ?>" name="tax_logic_mapping[<?php echo esc_attr($ctx->name); ?>]" <?php echo ( ! empty($post['tax_logic_mapping'][$ctx->name]) ) ? 'checked="checked"' : ''; ?> value="1"/>
|
||||
<label for="tax_logic_mapping_<?php echo esc_attr($ctx->name); ?>"><?php _e('Apply mapping rules before splitting via separator symbol','wp_all_import_plugin'); ?></label>
|
||||
<input type="checkbox" id="tax_logic_mapping_<?php echo esc_attr($ctx->name); ?>" class="switcher" <?php if ( ! empty($post['tax_logic_mapping'][$ctx->name]) ) echo "checked='checked'"; ?> name="tax_logic_mapping[<?php echo esc_attr($ctx->name); ?>]" value="1"/>
|
||||
<label for="tax_logic_mapping_<?php echo esc_attr($ctx->name); ?>"><?php _e('Enable full search for mapping', 'wp_all_import_plugin'); ?></label>
|
||||
<a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php printf(__('If this box is checked, WP All Import will try to match terms to existing child %s.', 'wp_all_import_plugin'), esc_attr($ctx->labels->name)) ?>">?</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed closed wpallimport-section">
|
||||
<div class="wpallimport-content-section rad0" style="margin:0; border-top:1px solid #ddd; border-bottom: none; border-right: none; border-left: none; background: #f1f2f2; position:relative; bottom:-15px;">
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<h3 style="color:#40acad;"><?php _e('Advanced Options','wp_all_import_plugin');?></h3>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<hr>
|
||||
<table class="form-table" style="max-width:none;margin-top:1.5em;">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="input">
|
||||
<input type="hidden" name="do_not_create_terms" value="0"/>
|
||||
<input type="checkbox" id="do_not_create_terms" name="do_not_create_terms" value="1" class="assign_post switcher" <?php echo !empty($post['do_not_create_terms']) ? 'checked="checked"': '' ?> />
|
||||
<label for="do_not_create_terms"><?php _e('Do not create new terms', 'wp_all_import_plugin'); ?></label><a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('When this box is checked WP All Import will not create any terms and will only match existing terms on your site.</b>', 'wp_all_import_plugin') ?>">?</a>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed closed wpallimport-section">
|
||||
<div class="wpallimport-content-section rad0" style="margin:0; border-top:1px solid #ddd; border-bottom: none; border-right: none; border-left: none; background: #f1f2f2; position:relative; bottom:-15px;">
|
||||
<div class="wpallimport-collapsed-header">
|
||||
<h3 style="color:#40acad;"><?php _e('Advanced Options','wp_all_import_plugin');?></h3>
|
||||
</div>
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<hr>
|
||||
<table class="form-table" style="max-width:none;margin-top:1.5em;">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="input">
|
||||
<input type="hidden" name="do_not_create_terms" value="0"/>
|
||||
<input type="checkbox" id="do_not_create_terms" name="do_not_create_terms" value="1" class="assign_post switcher" <?php echo !empty($post['do_not_create_terms']) ? 'checked="checked"': '' ?> />
|
||||
<label for="do_not_create_terms"><?php _e('Do not create new terms', 'wp_all_import_plugin'); ?></label><a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('When this box is checked WP All Import will not create any terms and will only match existing terms on your site.</b>', 'wp_all_import_plugin') ?>">?</a>
|
||||
</div>
|
||||
<?php if ($private_ctx): ?>
|
||||
<div class="input">
|
||||
<input type="checkbox" id="show_hidden_ctx"/>
|
||||
<label for="show_hidden_ctx"><?php _e('Show "private" taxonomies', 'wp_all_import_plugin'); ?></label>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="checkbox" id="show_hidden_ctx"/>
|
||||
<label for="show_hidden_ctx"><?php _e('Show "private" taxonomies', 'wp_all_import_plugin'); ?></label>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="taxonomies_hints" style="display:none;">
|
||||
<ul>
|
||||
<li><?php _e('Taxonomies that don\'t already exist on your site will be created unless the \'Do not create new terms\' option is checked.', 'wp_all_import_plugin'); ?></li>
|
||||
@@ -355,4 +331,4 @@ if ( ! empty($post_taxonomies)):
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="wpallimport-collapsed-content" style="padding: 0;">
|
||||
<div class="wpallimport-collapsed-content-inner">
|
||||
<div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:0; margin-bottom: 40px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707192&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-acf" target="_blank" class="upgrade_link"><?php _e('ACF Import Add-On required to Import Advanced Custom Fields', 'pmxi_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839965&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-acf" target="_blank" class="upgrade_link"><?php _e('ACF Import Add-On required to Import Advanced Custom Fields', 'pmxi_plugin');?></a>
|
||||
</div>
|
||||
<table class="form-table" style="max-width:none;">
|
||||
<tr>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<tr>
|
||||
<th scope="row"><label><?php _e('Clean Up Temp Files', 'wp_all_import_plugin'); ?></label></th>
|
||||
<td>
|
||||
<a class="button-primary wpallimport-clean-up-tmp-files" href="<?php echo esc_url(add_query_arg(array('action' => 'cleanup'), $this->baseUrl)); ?>"><?php _e('Clean Up', 'wp_all_import_plugin'); ?></a>
|
||||
<a class="button-primary wpallimport-clean-up-tmp-files" href="<?php echo esc_url(add_query_arg(array('action' => 'cleanup', '_wpnonce' => wp_create_nonce( '_wpnonce-cleanup_logs' )), $this->baseUrl)); ?>"><?php _e('Clean Up', 'wp_all_import_plugin'); ?></a>
|
||||
<p class="description"><?php _e('Attempt to remove temp files left over by imports that were improperly terminated.', 'wp_all_import_plugin'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -147,7 +147,7 @@
|
||||
<br>
|
||||
<h3><?php _e('Function Editor', 'wp_all_import_plugin') ?></h3>
|
||||
<div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:0; margin-bottom: 40px;">
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707176&edd_options%5Bprice_id%5D=1&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=function-editor" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use the Function Editor.', 'wp_all_import_plugin');?></a>
|
||||
<a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=function-editor" target="_blank" class="upgrade_link"><?php _e('Upgrade to the Pro edition of WP All Import to use the Function Editor.', 'wp_all_import_plugin');?></a>
|
||||
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
||||
</div>
|
||||
<textarea id="wp_all_import_code" name="wp_all_import_code"><?php echo "<?php\n\n?>";?></textarea>
|
||||
|
||||
Reference in New Issue
Block a user