Osclass 8.3 comes with many awesome features. One really great for user experience and enterprise users is possiblitity to filter items in user items page and public profile page.
Essential integration comes with Sigma theme.
We've prepared set of predefined filter options.
Full available list of filters:
All filters are optimized and only shows values, where user items exists. Means if user has no items in CategoryXY, this category will not be shown in category filter box.
Implementation of filters into existing themes is very easy and require just to place following snippet into user-items.php
or user-public-profile.php
under H1 tag.
<form name="user-items-search" action="<?php echo osc_base_url(true); ?>" method="get" class="user-items-search-form nocsrf">
<input type="hidden" name="page" value="user"/>
<input type="hidden" name="action" value="items"/>
<?php osc_run_hook('user_items_search_form_top'); ?>
<div class="control-group">
<label class="control-label" for="sItemType"><?php _e('Item type', 'sigma'); ?></label>
<div class="controls">
<?php UserForm::search_item_type_select(); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sPattern"><?php _e('Keyword', 'sigma'); ?></label>
<div class="controls">
<?php UserForm::search_pattern_text(); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sCategory"><?php _e('Category', 'sigma'); ?></label>
<div class="controls">
<?php UserForm::search_category_select(); ?>
</div>
</div>
<?php osc_run_hook('user_items_search_form_bottom'); ?>
<div class="actions">
<button type="submit" class="btn btn-primary"><?php _e('Apply', 'sigma'); ?></button>
</div>
</form>
Feel free to share your feedback, thoughts and experience with new filters on our forums!