]> git.mxchange.org Git - friendica.git/commitdiff
Show contacts personal message in local profile
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 1 Aug 2017 15:47:13 +0000 (17:47 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 1 Aug 2017 15:47:13 +0000 (17:47 +0200)
mod/contacts.php
view/templates/contact_edit.tpl

index 8ba8e866de6d56e3c4ae0e37310303b2ba74358c..6b40f045522cda4037492c99f2dc003fbb3d0829 100644 (file)
@@ -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'],
index e7856128a58357704e5c81a953d74724ea8512f0..bad1b63c35bceda795d9eb1d990b6b8706d310fd 100644 (file)
                                </div>
                                <div id="contact-edit-info-end"></div>
 
+                               {{if $reason}}
+                               <div id="contact-info-wrapper">
+                                       <h4>{{$lbl_info2}}</h4>
+                                       <p>{{$reason}}</p>
+                               </div>
+                               <div id="contact-info-end"></div>
+                               {{/if}}
+
                                {{if $profile_select}}
                                        <div id="contact-edit-profile-select-text">
                                        <h4>{{$lbl_vis1}}</h4>