foreach ($search as $area) {
$where .= "
$or (
- lat BETWEEN ".$area['latMin']." AND ".$area['latMax']."
- AND lon BETWEEN ".$area['lonMin']." AND ".$area['lonMax']."
+ T.lat BETWEEN ".$area['latMin']." AND ".$area['latMax']."
+ AND T.lon BETWEEN ".$area['lonMin']." AND ".$area['lonMax']."
)
";
$or = ' OR ';
}
// Get the filtered list of members and return data fields for map items.
- $this->postProcessCategory = true;
+// $this->postProcessCategory = true;
$members = $this->getSimpleMemberInfoList($where.$suppliedWhere, true);
- $this->postProcessCategory = false;
+// $this->postProcessCategory = false;
// Rebuild data with correct array format for map items
if (is_array($members) && count($members) > 0) {
foreach ($members as $k=>$v) {
-
+/*
// Pull categories from the results and build the required simplfied array
$cats = array();
if (is_array($v['categories']) && count($v['categories']) > 0) {
);
}
}
+*/
- $members[$this->config['terms']['term_member_cap']+$v['id']] = array(
+ $members[$k] = array(
'type' => $this->config['terms']['term_member_cap'],
'id' => $v['id'],
- 'member' => $v['member_pointer'],
+ 'member' => $v['member'],
'member_slug' => $v['member_slug'],
'lat' => ($this->config['settings']['memb_info_location'] && isset($v['lat']) ? $v['lat'] : ''),
'lon' => ($this->config['settings']['memb_info_location'] && isset($v['lon']) ? $v['lon'] : ''),
'addr1' => $v['addr1'],
'addr2' => $v['addr2'],
'city' => ($this->config['settings']['memb_info_location'] && isset($v['city']) ? $v['city'] : ''),
- 'state' => $v['state']['value'],
+ 'state' => $v['state'],
'zip' => $v['zip'],
- 'country' => $v['country']['name'],
+// 'country' => $v['country']['name'],
'phone' => ($this->config['settings']['memb_info_contact'] && isset($v['phone']) ? $v['phone'] : ''),
'toll_free' => ($this->config['settings']['memb_info_contact'] && isset($v['toll_free']) ? $v['toll_free'] : ''),
'email' => $v['email'],
'url' => $v['url'],
'region' => ($this->config['settings']['memb_info_location'] && isset($v['region']) ? $v['region'] : ''),
- 'categories' => $cats,
- 'cc_type' => $v['cc_type'],
+// 'categories' => $cats,
+// 'cc_type' => $v['cc_type'],
'logo' => $v['logo'],
- 'descr' => $v['descr'],
+// 'descr' => $v['short_descr'],
'short_descr' => $v['short_descr'],
'detail_page' => GLM_MEMBERS_SITE_BASE_URL.$this->config['settings']['canonical_member_page'].'/'.$v['member_slug'].'/',
'dates' => '',