<!-- per page --> <?php gmw_per_page($gmw, $gmw['total_results'], 'paged'); ?> <div class="pagination-wrapper"> <?php gmw_pagination($gmw, 'paged', $gmw['max_pages']); ?> </div> </div> <!-- GEO my WP Map --> <?php if ($gmw['search_results']['display_map'] == 'results') { gmw_results_map($gmw); } ?> <?php do_action('bp_before_directory_members_list'); ?> <div class="item-list search-list" id="members-list"> <!-- members loop --> <?php while (bp_members()) { bp_the_member(); ?>
/** * Display the map * @access public */ public function map() { if ($this->form['submitted'] && $this->form['search_results']['display_map'] != "shortcode") { return; } if ($this->form['page_load_results_trigger'] && $this->form['page_load_results']['display_map'] != "shortcode") { return; } if ($this->form['auto_results_trigger'] && $this->form['search_results']['display_map'] != "shortcode") { return; } //let the map function know that we are coming from a shortcode. $this->form['map_shortcode'] = true; //display the map gmw_results_map($this->form); }