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/Cover_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/Cover_photo.php')
-rw-r--r-- | Zotlabs/Module/Cover_photo.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Cover_photo.php b/Zotlabs/Module/Cover_photo.php index cfb513365..7dd53ab19 100644 --- a/Zotlabs/Module/Cover_photo.php +++ b/Zotlabs/Module/Cover_photo.php @@ -357,12 +357,17 @@ class Cover_photo extends \Zotlabs\Web\Controller { '$user' => \App::$channel['channel_address'], '$lbl_upfile' => t('Upload File:'), '$lbl_profiles' => t('Select a profile:'), - '$title' => t('Upload Cover Photo'), + '$title' => t('Change Cover Photo'), '$submit' => t('Upload'), '$profiles' => $profiles, + '$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("cover_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('cover_photo_content_end', $o); |