This commit is contained in:
2026-03-11 15:57:27 +01:00
parent 481271c972
commit b4b460fd21
10775 changed files with 2071579 additions and 26409 deletions

View File

@@ -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">

View File

@@ -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>

View File

@@ -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("&amp;","&", 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("&amp;","&", 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("&amp;","&", 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("&amp;","&", 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("&amp;","&", 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>&nbsp;</td>
<td>&nbsp;</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; ?>