aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-04 15:44:33 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-04 15:44:33 +0100
commitedf6da7189b69e05128ae6c433b9744f6a09b28f (patch)
treeaa6cdb48d0c4b7ca863eac5e81da4745059e7c40
parenta59d1b22f6ab1bf5b3cf5df555d71b893c05540a (diff)
downloadvolse-hubzilla-edf6da7189b69e05128ae6c433b9744f6a09b28f.tar.gz
volse-hubzilla-edf6da7189b69e05128ae6c433b9744f6a09b28f.tar.bz2
volse-hubzilla-edf6da7189b69e05128ae6c433b9744f6a09b28f.zip
add cover photo upload link to edit profile
-rw-r--r--mod/profiles.php1
-rwxr-xr-xview/tpl/profile_edit.tpl1
2 files changed, 2 insertions, 0 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 282d741ac..3ae1390df 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -675,6 +675,7 @@ function profiles_content(&$a) {
'$submit' => t('Submit'),
'$viewprof' => t('View this profile'),
'$editvis' => t('Edit visibility'),
+ '$coverpic' => t('Change Cover Photo'),
'$profpic' => t('Change Profile Photo'),
'$cr_prof' => t('Create a new profile using these settings'),
'$cl_prof' => t('Clone this profile'),
diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl
index 535aa19dd..c70bf148b 100755
--- a/view/tpl/profile_edit.tpl
+++ b/view/tpl/profile_edit.tpl
@@ -8,6 +8,7 @@
<div id="profile-edit-links">
<span class="btn btn-default"><a href="profile_photo" id="profile-photo_upload-link" title="{{$profpic}}">{{$profpic}}</a></span>
+<span class="btn btn-default"><a href="cover_photo" id="cover-photo_upload-link" title="{{$coverpic}}">{{$coverpic}}</a></span>
<span class="btn btn-default"><a href="profile/{{$profile_id}}/view" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a></span>
{{if ! $is_default}}<span class="btn btn-default"><a href="profperm/{{$profile_id}}" id="profile-edit-view-link" title="{{$editvis}}">{{$editvis}}</a></span>{{/if}}
{{if $profile_clone_link}}<span class="btn btn-default"><a href="{{$profile_clone_link}}" id="profile-edit-clone-link" title="{{$cr_prof}}">{{$cl_prof}}</a></span>{{/if}}