* @return HTML string stuitable for sidebar inclusion
*
* @note Returns empty string if passed $profile is wrong type or not populated
+ *
+ * @hooks 'profile_sidebar_enter'
+ * array $profile - profile data
+ * @hooks 'profile_sidebar'
+ * array $arr
*/
function profile_sidebar($profile, $block = 0) {
$a = get_app();
$account_type = "";
if((x($profile,'address') == 1)
+ || (x($profile,'location') == 1)
|| (x($profile,'locality') == 1)
|| (x($profile,'region') == 1)
|| (x($profile,'postal-code') == 1)
if (isset($p["about"]))
$p["about"] = bbcode($p["about"]);
- if (isset($p["location"]))
- $p["location"] = bbcode($p["location"]);
+ if (isset($p["address"]))
+ $p["address"] = bbcode($p["address"]);
+ else
+ $p["address"] = bbcode($p["location"]);
if (isset($p["photo"]))
$p["photo"] = proxy_url($p["photo"], false, PROXY_SIZE_SMALL);