__('Category products drill-down search menu','Shopp'))); } function widget($args, $options) { global $Shopp; if (!empty($args)) extract($args); if (empty($options['title'])) $options['title'] = __('Product Filters','Shopp'); $title = $before_title.$options['title'].$after_title; if (!empty($Shopp->Category->id) && $Shopp->Category->facetedmenus == "on") { $menu = $Shopp->Category->tag('faceted-menu',$options); echo $before_widget.$title.$menu.$after_widget; } } function update($new_instance, $old_instance) { return $new_instance; } function form($options) { ?>
Settings->get('facetedmenu_widget_options'); if (empty($options['title'])) $options['title'] = __('Product Filters','Shopp'); $options['title'] = $before_title.$options['title'].$after_title; global $wp_registered_widgets; if (!empty($Shopp->Category->id) && $Shopp->Category->facetedmenus == "on") { $menu = $Shopp->Category->tag('faceted-menu',$options); echo $before_widget.$options['title'].$menu.$after_widget; } } function form ($args=null) { global $Shopp; if (isset($_POST['shopp_facetedmenu_widget_options'])) { $options = $_POST['facetedmenu_widget_options']; $Shopp->Settings->save('facetedmenu_widget_options',$options); } $options = $Shopp->Settings->get('facetedmenu_widget_options'); } }