From 016e4a0efcc0d4a276239e9300b6705945a5d0b7 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 1 Aug 2017 17:47:13 +0200 Subject: [PATCH] Show contacts personal message in local profile --- mod/contacts.php | 2 ++ view/templates/contact_edit.tpl | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/mod/contacts.php b/mod/contacts.php index 8ba8e866de..6b40f04552 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -589,6 +589,8 @@ function contacts_content(App $a) { '$lbl_vis1' => t('Profile Visibility'), '$lbl_vis2' => sprintf( t('Please choose the profile you would like to display to %s when viewing your profile securely.'), $contact['name']), '$lbl_info1' => t('Contact Information / Notes'), + '$lbl_info2' => t('Their personal note'), + '$reason' => trim(notags($contact['reason'])), '$infedit' => t('Edit contact notes'), '$common_text' => $common_text, '$common_link' => 'common/loc/' . local_user() . '/' . $contact['id'], diff --git a/view/templates/contact_edit.tpl b/view/templates/contact_edit.tpl index e7856128a5..bad1b63c35 100644 --- a/view/templates/contact_edit.tpl +++ b/view/templates/contact_edit.tpl @@ -81,6 +81,14 @@
+ {{if $reason}} +
+

{{$lbl_info2}}

+

{{$reason}}

+
+
+ {{/if}} + {{if $profile_select}}

{{$lbl_vis1}}