/**
  * Render the  widget
  *
  * @since 0.0.1
  *
  * @param array $args
  * @param Lsx_Properties_Widget $instance
  */
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     $out[] = $before_widget;
     $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
     if (!empty($title)) {
         $out[] = $before_title . $title . $after_title;
     }
     $args = array();
     if (!empty($instance['limit'])) {
         $args['limit'] = $instance['limit'];
     }
     if (!empty($instance['order'])) {
         $args['order'] = $instance['order'];
     }
     if (!empty($instance['featured'])) {
         $args['featured'] = true;
     }
     $happybeds_properties = Lsx_Properties::get_instance();
     $content = $happybeds_properties->render_property($args, null, null);
     if (empty($content)) {
         return;
     }
     $out[] = $content;
     $out[] = $after_widget;
     echo implode('', $out);
 }
function hbprop_rewrite_flush()
{
    Lsx_Properties::get_instance();
    flush_rewrite_rules();
}