' . $profile['name'] . '
';
	$pdesc = '' . $profile['pdesc'] . '
';
	$tabs = '';
	$photo = '' . t('Location:') . ' ';
		$location .= ((x($profile,'address') == 1) ? '
' . $profile['address'] . '
' : '');
		$location .= (((x($profile,'locality') == 1) || (x($profile,'region') == 1) || (x($profile,'postal-code') == 1)) 
			? '
' . $profile['locality'] . '' 
			. ((x($profile['locality']) == 1) ? t(', ') : '') 
			. '' . $profile['region'] . ''
			. ' ' . $profile['postal-code'] . '' : '');
		$location .= ((x($profile,'country-name') == 1) ? ' 
' . $profile['country-name'] . '' : '');  
		$location .= '
 ' . $profile['pubkey'] . '
' : '');
	$marital = ((x($profile,'marital') == 1) ? '' . t('Birthday Reminders') . ' ' . '(' . $total . ')' . '
'; 
			$o .= '' . t('Birthdays this week:') . '
'; 
			$o .= '
' . t("\x28Adjusted for local time\x29") . '
';
			$o .= '
';
			foreach($r as $rr) {
				if(! strlen($rr['name']))
					continue;
				$now = strtotime('now');
				$today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false); 
	
				$o .= '
' . $rr['name'] . ' ' 
				. day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $bd_format)) . (($today) ?  ' ' . t('[today]') : '')
				. '
 ' ;
			}
			$o .= '
';
		foreach($arr as $r) {
			$matches = false;
			$icon = '';
			$cnt = preg_match('|\[attach\]href=\"(.*?)\" size=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"\[\/attach\]|',$r,$matches);
			if($cnt) {
				$icontype = strtolower(substr($matches[3],0,strpos($matches[3],'/')));
				switch($icontype) {
					case 'video':
					case 'audio':
					case 'image':
					case 'text':
						$icon = '
';
						break;
					default:
						$icon = '
';
						break;
				}
				$title = ((strlen(trim($matches[4]))) ? escape_tags(trim($matches[4])) : escape_tags($matches[1]));
				$title .= ' ' . $matches[2] . ' ' . t('bytes');
				$s .= '
' . $icon . '';
			}
		}
		$s .= '