diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-23 13:21:49 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-23 13:24:50 -0800 |
commit | 3dd64e7916872d21122c8184abb80eaa5a79a3fc (patch) | |
tree | 70061431b73792e60b1c182e7bcb0352c83e56df | |
parent | 048a636315671b7e9aaf9152273d101994e37c43 (diff) | |
download | volse-hubzilla-3dd64e7916872d21122c8184abb80eaa5a79a3fc.tar.gz volse-hubzilla-3dd64e7916872d21122c8184abb80eaa5a79a3fc.tar.bz2 volse-hubzilla-3dd64e7916872d21122c8184abb80eaa5a79a3fc.zip |
usability: click your own profile photo to change it instead of hunting it down in the profile edit navmenu. We still need work on the 'or use a photo from your albums' to use something like the photo selection widget in the post editor as you otherwise have to track down the 'use as profile photo' entry in the photo detail navmenu instead of just clicking an image.
-rw-r--r-- | include/channel.php | 1 | ||||
-rwxr-xr-x | view/tpl/profile_vcard.tpl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php index d1d41d378..a8ddfa978 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1449,6 +1449,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = fa '$reddress' => $reddress, '$rating' => '', '$contact_block' => $contact_block, + '$change_photo' => t('Change your profile photo'), '$editmenu' => profile_edit_menu($profile['uid']) )); diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 0f30e5816..07e6dcc0a 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -1,6 +1,6 @@ <div class="vcard h-card"> {{if ! $zcard}} - <div id="profile-photo-wrapper"><img class="photo u-photo" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.fullname}}"></div> + <div id="profile-photo-wrapper">{{if $editmenu}}<a href="profile_photo" title="{{$change_photo}}">{{/if}}<img class="photo u-photo" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.fullname}}">{{if $editmenu}}</a>{{/if}}</div> {{/if}} {{if $connect}} <div class="connect-btn-wrapper"><a href="{{$connect_url}}" class="btn btn-block btn-success btn-sm"><i class="fa fa-plus"></i> {{$connect}}</a></div> |