From d98d7003edfb54c3bbe624e1feb53904f4756f0e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 15 Mar 2016 21:38:03 +0100 Subject: even more janitor work on profiles --- mod/profiles.php | 9 +++------ view/tpl/profile_edit.tpl | 17 +++++------------ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/mod/profiles.php b/mod/profiles.php index 209a7a32d..c135814a8 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -696,10 +696,7 @@ function profiles_content(&$a) { '$lbl_import' => t('Import profile from file'), '$lbl_export' => t('Export profile to file'), '$lbl_gender' => t('Your Gender'), - '$lbl_marital' => t(' Marital Status'), - '$lbl_with' => t("Who (if applicable)"), - '$lbl_ex1' => t('Examples: cathy123, Cathy Williams, cathy@example.com'), - '$lbl_howlong' => t('Since [date]'), + '$lbl_marital' => t('Marital Status'), '$lbl_sexual' => t('Sexual Preference'), '$lbl_homepage' => t('Homepage URL'), '$lbl_politic' => t('Political Views'), @@ -740,8 +737,8 @@ function profiles_content(&$a) { '$gender_min' => gender_selector_min($r[0]['gender']), '$marital' => marital_selector($r[0]['marital']), '$marital_min' => marital_selector_min($r[0]['marital']), - '$with' => $r[0]['with'], - '$howlong' => ($r[0]['howlong'] === NULL_DATE ? '' : datetime_convert('UTC',date_default_timezone_get(),$r[0]['howlong'])), + '$with' => array('with', t("Who (if applicable)"), $r[0]['with'], t('Examples: cathy123, Cathy Williams, cathy@example.com')), + '$howlong' => array('howlong', t('Since (date)'), ($r[0]['howlong'] === NULL_DATE ? '' : datetime_convert('UTC',date_default_timezone_get(),$r[0]['howlong']))), '$sexual' => sexpref_selector($r[0]['sexual']), '$sexual_min' => sexpref_selector_min($r[0]['sexual']), '$about' => $r[0]['about'], diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl index 1951025f5..1929820cb 100755 --- a/view/tpl/profile_edit.tpl +++ b/view/tpl/profile_edit.tpl @@ -90,7 +90,7 @@ {{if $fields.marital }}
- + {{if $advanced}} {{$marital}} {{else}} @@ -100,21 +100,14 @@
{{if $fields.with}} -
- - -
-
+{{include file="field_input.tpl" field=$with}} {{/if}} {{if $fields.howlong}} -
- - -
-
+{{include file="field_input.tpl" field=$howlong}} {{/if}} -
+ +
{{/if}} {{if $fields.homepage}} -- cgit v1.2.3