From e35a5bac55e0e259c7c587adfaf546484b032c92 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 7 Apr 2011 23:10:43 -0700 Subject: the rest of the english html templates except for htconfig --- include/profile_advanced.php | 258 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 include/profile_advanced.php (limited to 'include/profile_advanced.php') diff --git a/include/profile_advanced.php b/include/profile_advanced.php new file mode 100644 index 000000000..8c4ba7698 --- /dev/null +++ b/include/profile_advanced.php @@ -0,0 +1,258 @@ +' . t('Profile') . ''; + +if($a->profile['name']) { + $lbl_fullname = t('Full Name:'); + $fullname = $a->profile['name']; + +$o .= <<< EOT +
+
$lbl_fullname
+
$fullname
+
+
+EOT; +} + +if($a->profile['gender']) { + $lbl_gender = t('Gender:'); + $gender = $a->profile['gender']; + +$o .= <<< EOT +
+
$lbl_gender
+
$gender
+
+
+EOT; +} + +if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) { + $lbl_birthday = t('Birthday:'); + +$o .= <<< EOT +
+
$lbl_birthday
+EOT; + +// If no year, add an arbitrary one so just we can parse the month and day. + +$year_bd_format = t('j F, Y'); +$short_bd_format = t('j F'); + +$o .= '
' + . ((intval($a->profile['dob'])) + ? day_translate(datetime_convert('UTC','UTC',$a->profile['dob'] . ' 00:00 +00:00',$year_bd_format)) + : day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],6) . ' 00:00 +00:00',$short_bd_format))) + . "
\r\n
"; + +$o .= '
'; + +} + +if($age = age($a->profile['dob'],$a->profile['timezone'],'')) { + $lbl_age = t('Age:'); +$o .= <<< EOT +
+
$lbl_age
+
$age
+
+
+EOT; +} + +if($a->profile['marital']) { + $lbl_marital = t(' Status:'); + $marital = $a->profile['marital']; + +$o .= <<< EOT +
+
$lbl_marital
+
$marital
+EOT; + +if($a->profile['with']) { + $with = $a->profile['with']; + $o .= "
($with)
"; +} +$o .= <<< EOT +
+
+EOT; +} + +if($a->profile['sexual']) { + $lbl_sexual = t('Sexual Preference:'); + $sexual = $a->profile['sexual']; + +$o .= <<< EOT +
+
$lbl_sexual
+
$sexual
+
+
+EOT; +} + +if($a->profile['homepage']) { + $lbl_homepage = t('Homepage:'); + $homepage = linkify($a->profile['homepage']); +$o .= <<< EOT +
+
$lbl_homepage
+
$homepage
+
+
+EOT; +} + +if($a->profile['politic']) { + $lbl_politic = t('Policial Views:'); + $politic = $a->profile['politic']; +$o .= <<< EOT +
+
$lbl_politic
+
$politic
+
+
+EOT; +} + +if($a->profile['religion']) { + $lbl_religion = t('Religion:'); + $religion = $a->profile['religion']; +$o .= <<< EOT +
+
$lbl_religion
+
$religion
+
+
+EOT; +} +if($txt = prepare_text($a->profile['about'])) { + $lbl_about = t('About:'); +$o .= <<< EOT +
+
$lbl_about
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['interest'])) { + $lbl_interests = t('Hobbies/Interests:'); +$o .= <<< EOT +
+
$lbl_interests
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['contact'])) { + $lbl_contact = t('Contact information and Social Networks:'); +$o .= <<< EOT +
+
$lbl_contact
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['music'])) { + $lbl_music = t('Musical interests:'); +$o .= <<< EOT +
+
$lbl_music
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['book'])) { + $lbl_book = t('Books, literature:'); +$o .= <<< EOT +
+
$lbl_book
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['tv'])) { + $lbl_tv = t('Television:'); +$o .= <<< EOT +
+
$lbl_tv
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['film'])) { + $lbl_film = t('Film/dance/culture/entertainment:'); +$o .= <<< EOT +
+
$lbl_film
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['romance'])) { + $lbl_romance = t('Love/Romance:'); +$o .= <<< EOT +
+
$lbl_romance
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['work'])) { + $lbl_work = t('Work/employment:'); +$o .= <<< EOT +
+
$lbl_work
+
+
$txt
+
+
+EOT; +} + +if($txt = prepare_text($a->profile['education'])) { + $lbl_education = t('School/education:'); +$o .= <<< EOT +
+
$lbl_education
+
+
$txt
+
+
+EOT; +} + +return $o; +} -- cgit v1.2.3