public function itemHTML($item, $classes)
 {
     //set empty values to false so they will be removed from the built querystring
     $item->value = array_map(function ($value) {
         if (empty($value)) {
             $value = false;
         }
         return $value;
     }, $item->value);
     $opt_url = add_query_arg($item->value, $this->form->getSearchBaseURL() . '?' . http_build_query($this->form->getStateVars()));
     return sprintf('<li class="%s"><a href="%s">%s</a></li>', implode(' ', $classes), esc_url($opt_url), esc_html($item->label));
 }
 /**
  * Output the widget
  *
  * @method widget
  */
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     echo $before_widget;
     if ($title) {
         echo $before_title . esc_html($title) . $after_title;
     }
     if (class_exists('Lift_Search_Form')) {
         echo Lift_Search_Form::GetInstance()->form();
     }
     echo $after_widget;
 }