options
3 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_variations.php
36 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 | <?php if (!empty($variation_list_count)):?> |
| 3 | <div class="updated"> |
| 4 | <?php /* translators: %1$s: number of matched elements, %2$s: element/elements label */ ?> |
| 5 | <p><?php echo wp_kses( sprintf(__('Current selection matches <span class="matches_count">%1$s</span> %2$s.', 'wp-all-import'), intval($variation_list_count), esc_html(_n('element', 'elements', $variation_list_count, 'wp-all-import'))), array('span' => array('class' => array())) ) ?></p> |
| 6 | <?php if (PMXI_Plugin::getInstance()->getOption('highlight_limit') and $variation_list_count > PMXI_Plugin::getInstance()->getOption('highlight_limit')): ?> |
| 7 | <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> |
| 8 | <?php endif ?> |
| 9 | </div> |
| 10 | <div id="current_xml"> |
| 11 | <div class="variations_tag"> |
| 12 | <input type="hidden" name="variations_tagno" value="<?php echo esc_attr($tagno) + 1 ?>" /> |
| 13 | <div class="title"> |
| 14 | <div class="navigation"> |
| 15 | <?php if ($tagno > 0): ?><a href="#variation_prev" class="previous_element"> </a><?php else: ?><span class="previous_element"> </span><?php endif ?> |
| 16 | <?php /* translators: %1$s: current element index, %2$s: total element count */ ?> |
| 17 | <?php echo wp_kses( sprintf(__('#<strong>%1$s</strong> out of <strong>%2$s</strong>', 'wp-all-import'), intval($tagno) + 1, intval($variation_list_count)), array('strong' => array()) ); ?> |
| 18 | <?php if ($tagno < $variation_list_count - 1): ?><a href="#variation_next" class="next_element"> </a><?php else: ?><span class="next_element"> </span><?php endif ?> |
| 19 | </div> |
| 20 | </div> |
| 21 | <div class="clear"></div> |
| 22 | <div class="xml resetable"> <?php if (!empty($variation_list_count)) PMXI_Render::render_xml_element($variation_elements->item($tagno), true); ?></div> |
| 23 | </div> |
| 24 | </div> |
| 25 | <?php endif; ?> |
| 26 | <script type="text/javascript"> |
| 27 | (function($){ |
| 28 | var paths = <?php echo json_encode($paths) ?>; |
| 29 | var $xml = $('#variations_xml'); |
| 30 | |
| 31 | $xml.html($('#current_xml').html()).css({'visibility':'visible'}); |
| 32 | for (var i = 0; i < paths.length; i++) { |
| 33 | $xml.find('.xml-element[title="' + paths[i] + '"]').addClass('selected').parents('.xml-element').find('> .xml-content.collapsed').removeClass('collapsed').parent().find('> .xml-expander').html('-'); |
| 34 | } |
| 35 | })(jQuery); |
| 36 | </script> |