diff --git a/mod/invite.php b/mod/invite.php index 6807ff2c1..813dbf704 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -144,14 +144,13 @@ function invite_content(App $a) { $o = replace_macros($tpl, [ '$form_security_token' => get_form_security_token("send_invite"), - '$invite' => L10n::t('Send invitations'), - '$addr_text' => L10n::t('Enter email addresses, one per line:'), - '$msg_text' => L10n::t('Your message:'), - '$default_message' => L10n::t('You are cordially invited to join me and other close friends on Friendica - and help us to create a better social web.') . "\r\n" . "\r\n" + '$title' => L10n::t('Send invitations'), + '$recipients' => ['recipients', L10n::t('Enter email addresses, one per line:')], + '$message' => ['message', L10n::t('Your message:'),L10n::t('You are cordially invited to join me and other close friends on Friendica - and help us to create a better social web.') . "\r\n" . "\r\n" . $linktxt . "\r\n" . "\r\n" . (($invonly) ? L10n::t('You will need to supply this invitation code: $invite_code') . "\r\n" . "\r\n" : '') .L10n::t('Once you have registered, please connect with me via my profile page at:') . "\r\n" . "\r\n" . System::baseUrl() . '/profile/' . $a->user['nickname'] - . "\r\n" . "\r\n" . L10n::t('For more information about the Friendica project and why we feel it is important, please visit http://friendi.ca') . "\r\n" . "\r\n" , + . "\r\n" . "\r\n" . L10n::t('For more information about the Friendica project and why we feel it is important, please visit http://friendi.ca') . "\r\n" . "\r\n"], '$submit' => L10n::t('Submit') ]); diff --git a/view/templates/invite.tpl b/view/templates/invite.tpl index 6fd8539c5..2087635e4 100644 --- a/view/templates/invite.tpl +++ b/view/templates/invite.tpl @@ -1,31 +1,18 @@
diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 1614547b8..8a3ca8629 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -2118,7 +2118,7 @@ ul.dropdown-menu li:hover { #adminpage, .delegate-content-wrapper, .uexport-content-wrapper, .viewcontacts-content-wrapper, .dfrn_request-content-wrapper, .friendica-content-wrapper, .credits-content-wrapper, .nogroup-content-wrapper, -.profperm-content-wrapper { +.profperm-content-wrapper, .invite-content-wrapper { min-height: calc(100vh - 150px); padding: 15px; padding-bottom: 20px; diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index 56df75d7b..46bb1e514 100644 --- a/view/theme/frio/js/modal.js +++ b/view/theme/frio/js/modal.js @@ -207,6 +207,10 @@ function addToModal(url) { //Get first element with the class "heading" //and use it as title. loadModalTitle(); + + // We need to initialize autosize again for new + // modal conent. + autosize($('.modal .text-autosize')); } }); } diff --git a/view/theme/frio/templates/invite.tpl b/view/theme/frio/templates/invite.tpl new file mode 100644 index 000000000..9ff20240a --- /dev/null +++ b/view/theme/frio/templates/invite.tpl @@ -0,0 +1,19 @@ + +