options
4 days ago
template
1 month ago
confirm.php
1 month ago
element.php
1 month ago
error.php
1 month ago
evaluate.php
1 month ago
evaluate_variations.php
1 month ago
filters.php
1 month ago
full-preview-modal.php
1 month ago
index.php
1 month ago
options.php
1 month ago
preview.php
1 month ago
preview_images.php
1 month ago
preview_prices.php
1 month ago
preview_taxonomies.php
1 month ago
process-complete.php
1 month ago
process.php
1 month ago
tag.php
1 month ago
template.php
1 month ago
warning.php
1 month ago
evaluate.php
32 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 | <div class="updated found_records"> |
| 3 | <?php if ($is_csv):?> |
| 4 | <?php /* translators: %1$s: number of matched rows, %2$s: row/rows label */ ?> |
| 5 | <h3><?php echo wp_kses( sprintf(__('<span class="matches_count">%1$s</span> <strong>%2$s</strong> will be imported', 'wp-all-import'), intval($node_list_count), esc_html(_n('row', 'rows', $node_list_count, 'wp-all-import'))), array('span' => array('class' => array()), 'strong' => array()) ); ?></h3> |
| 6 | <?php else:?> |
| 7 | <?php /* translators: %1$s: number of matched elements, %2$s: root element name, %3$s: element/elements label */ ?> |
| 8 | <h3><?php echo wp_kses( sprintf(__('<span class="matches_count">%1$s</span> <strong>%2$s</strong> %3$s will be imported', 'wp-all-import'), intval($node_list_count), esc_html(PMXI_Plugin::$session->source['root_element']), esc_html(_n('element', 'elements', $node_list_count, 'wp-all-import'))), array('span' => array('class' => array()), 'strong' => array()) ); ?></h3> |
| 9 | <?php endif; ?> |
| 10 | <h4><?php esc_html_e('Click an element to select it, or scroll down to add filtering options.', 'wp-all-import'); ?></h4> |
| 11 | <?php if (PMXI_Plugin::getInstance()->getOption('highlight_limit') and $elements->length > PMXI_Plugin::getInstance()->getOption('highlight_limit')): ?> |
| 12 | <p><?php echo wp_kses( __('<strong>Note</strong>: Highlighting is turned off since can be very slow on large sets of elements.', 'wp-all-import'), array('strong' => array()) ) ?></p> |
| 13 | <?php endif ?> |
| 14 | </div> |
| 15 | <div id="current_xml"> |
| 16 | <?php if ($is_csv): ?> |
| 17 | <?php PMXI_Render::render_csv_element($elements->item($elements->length > 1 ? $show_element : 0), false, '//'); ?> |
| 18 | <?php else:?> |
| 19 | <?php PMXI_Render::render_xml_element($elements->item($elements->length > 1 ? $show_element : 0), false, '//'); ?> |
| 20 | <?php endif;?> |
| 21 | </div> |
| 22 | <script type="text/javascript"> |
| 23 | (function($){ |
| 24 | var paths = <?php echo json_encode($paths) ?>; |
| 25 | var $xml = $('.wpallimport-xml'); |
| 26 | $('.wpallimport-console').fadeIn(); |
| 27 | $xml.html($('#current_xml').html()).css({'visibility':'visible'}); |
| 28 | for (var i = 0; i < paths.length; i++) { |
| 29 | $xml.find('.xml-element[title="' + paths[i] + '"]').addClass('selected').parents('.xml-element').find('> .xml-content.collapsed').removeClass('collapsed').parent().find('> .xml-expander').html('-'); |
| 30 | } |
| 31 | })(jQuery); |
| 32 | </script> |