options
11 years ago
template
11 years ago
confirm.php
11 years ago
element.php
11 years ago
error.php
11 years ago
evaluate.php
11 years ago
evaluate_variations.php
11 years ago
index.php
11 years ago
options.php
11 years ago
preview.php
11 years ago
preview_images.php
11 years ago
preview_prices.php
11 years ago
preview_taxonomies.php
11 years ago
process-complete.php
11 years ago
process.php
11 years ago
tag.php
11 years ago
template.php
11 years ago
warning.php
11 years ago
evaluate_variations.php
33 lines
| 1 | <?php if (!empty($variation_list_count)):?> |
| 2 | <div class="updated"> |
| 3 | <p><?php printf(__('Current selection matches <span class="matches_count">%s</span> %s.', 'pmxi_plugin'), $variation_list_count, _n('element', 'elements', $variation_list_count, 'pmxi_plugin')) ?></p> |
| 4 | <?php if (PMXI_Plugin::getInstance()->getOption('highlight_limit') and $variation_list_count > PMXI_Plugin::getInstance()->getOption('highlight_limit')): ?> |
| 5 | <p><?php _e('<strong>Note</strong>: Highlighting is turned off since can be very slow on large sets of elements.', 'pmxi_plugin') ?></p> |
| 6 | <?php endif ?> |
| 7 | </div> |
| 8 | <div id="current_xml"> |
| 9 | <div class="variations_tag"> |
| 10 | <input type="hidden" name="variations_tagno" value="<?php echo $tagno + 1 ?>" /> |
| 11 | <div class="title"> |
| 12 | <div class="navigation"> |
| 13 | <?php if ($tagno > 0): ?><a href="#variation_prev" class="previous_element"> </a><?php else: ?><span class="previous_element"> </span><?php endif ?> |
| 14 | <?php printf(__('#<strong>%s</strong> out of <strong>%s</strong>', 'pmxi_plugin'), $tagno + 1, $variation_list_count); ?> |
| 15 | <?php if ($tagno < $variation_list_count - 1): ?><a href="#variation_next" class="next_element"> </a><?php else: ?><span class="next_element"> </span><?php endif ?> |
| 16 | </div> |
| 17 | </div> |
| 18 | <div class="clear"></div> |
| 19 | <div class="xml resetable"> <?php if (!empty($variation_list_count)) PMXI_Render::render_xml_element($variation_elements->item($tagno), true); ?></div> |
| 20 | </div> |
| 21 | </div> |
| 22 | <?php endif; ?> |
| 23 | <script type="text/javascript"> |
| 24 | (function($){ |
| 25 | var paths = <?php echo json_encode($paths) ?>; |
| 26 | var $xml = $('#variations_xml'); |
| 27 | |
| 28 | $xml.html($('#current_xml').html()).css({'visibility':'visible'}); |
| 29 | for (var i = 0; i < paths.length; i++) { |
| 30 | $xml.find('.xml-element[title="' + paths[i] + '"]').addClass('selected').parents('.xml-element').find('> .xml-content.collapsed').removeClass('collapsed').parent().find('> .xml-expander').html('-'); |
| 31 | } |
| 32 | })(jQuery); |
| 33 | </script> |