* This file is loaded when the display setting "Display Listing as Table" is set to "Yes". * * You can absolutely override this utilizing WP Inventory's Override functionality. * Look at the file "loop-all-sample.php" for an example of how to modify these files. * * The loop specifically designed for the shortcode. * This file may be overridden by copying it into your theme directory, into a folder titled wpinventory/views/loop-shortcode.php * While inventory does not use the WP post types, it does model functions after the WP core functions * to provide similar functionality * */ if (wpinventory_is_single()) { wpinventory_get_template_part('single-item'); return; } wpinventory_get_items(); echo wpinventory_filter_form('filter=true&sort=true'); global $inventory_display; $inventory_display = wpinventory_get_display_settings('listing'); if (wpinventory_have_items()) { ?> <table class="wpinventory_loop wpinventory_loop_category wpinventory_loop_category-<?php echo wpinventory_get_the_category_ID(); ?> "> <thead> <tr> <?php if (wpinventory_get_config('display_listing_labels')) { foreach ($inventory_display as $sort => $field) { ?>
function wpinventory_filter_form_admin($args = NULL) { $args['caller'] = '_admin'; return wpinventory_filter_form($args); }