function bl_ajax_result_page()
{
    $listings = bl_ajax_get_listings();
    $map = bepro_generate_map();
    $cat = display_listing_categories();
    $filter = Bepro_listings::search_filter_options();
    $search = Bepro_listings::searchform();
    echo json_encode(array("map" => $map, "cat" => $cat, "listings" => $listings, "filter" => $filter, "search" => $search));
    exit;
}
 function widget($args, $instance)
 {
     // Widget output
     $data = get_option('bepro_map_widget');
     $data["echo_this"] = true;
     echo $args['before_widget'];
     echo $args['before_title'] . __("Listings Map", "bepro-listings") . $args['after_title'];
     bepro_generate_map(array(), $data);
     echo $args['after_widget'];
 }