diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-23 19:23:17 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-23 19:23:17 -0800 |
commit | 2d91aed183a08a78bc2cc0f3554f3d4c277ae798 (patch) | |
tree | 4ba9973ffe68cee3a9d770ae027b2f2916d53ed8 /Zotlabs/Module/Profile_photo.php | |
parent | 3dd64e7916872d21122c8184abb80eaa5a79a3fc (diff) | |
download | volse-hubzilla-2d91aed183a08a78bc2cc0f3554f3d4c277ae798.tar.gz volse-hubzilla-2d91aed183a08a78bc2cc0f3554f3d4c277ae798.tar.bz2 volse-hubzilla-2d91aed183a08a78bc2cc0f3554f3d4c277ae798.zip |
use embed photos javascript widget to select existing photos for profile and cover photos
Diffstat (limited to 'Zotlabs/Module/Profile_photo.php')
-rw-r--r-- | Zotlabs/Module/Profile_photo.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php index 222b92721..6f517b695 100644 --- a/Zotlabs/Module/Profile_photo.php +++ b/Zotlabs/Module/Profile_photo.php @@ -441,14 +441,17 @@ class Profile_photo extends \Zotlabs\Web\Controller { '$importfile' => (($importing) ? \App::$data['importfile'] : ''), '$lbl_upfile' => t('Upload File:'), '$lbl_profiles' => t('Select a profile:'), - '$title' => (($importing) ? t('Use Photo for Profile') : t('Upload Profile Photo')), + '$title' => (($importing) ? t('Use Photo for Profile') : t('Change Profile Photo')), '$submit' => (($importing) ? t('Use') : t('Upload')), '$profiles' => $profiles, '$single' => ((count($profiles) == 1) ? true : false), '$profile0' => $profiles[0], + '$embedPhotos' => t('Use a photo from your albums'), + '$embedPhotosModalTitle' => t('Use a photo from your albums'), + '$embedPhotosModalCancel' => t('Cancel'), + '$embedPhotosModalOK' => t('OK'), '$form_security_token' => get_form_security_token("profile_photo"), - // FIXME - yuk - '$select' => sprintf('%s %s', t('or'), ($newuser) ? '<a href="' . z_root() . '">' . t('skip this step') . '</a>' : '<a href="'. z_root() . '/photos/' . \App::$channel['channel_address'] . '">' . t('select a photo from your photo albums') . '</a>') + '$select' => t('or select an existing photo'), )); call_hooks('profile_photo_content_end', $o); |