X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Finvite.php;h=df6e3b7147c145c6559da824ee08f77912de8e6b;hb=5caeeabfc266985c8ac2cc19a2143092f9e1b5fd;hp=62609f56641cf33794e4c2e8a3d4acd6ad24b14c;hpb=03ce6aee2eb228aaf32c0b095284b95722d661b2;p=quix0rs-gnu-social.git diff --git a/actions/invite.php b/actions/invite.php index 62609f5664..df6e3b7147 100644 --- a/actions/invite.php +++ b/actions/invite.php @@ -22,6 +22,10 @@ if (!defined('LACONICA')) { exit(1); } class InviteAction extends Action { var $mode = null; + var $error = null; + var $already = null; + var $subbed = null; + var $sent = null; function isReadOnly() { @@ -163,20 +167,27 @@ class InviteAction extends Action function showInviteForm() { $this->elementStart('form', array('method' => 'post', - 'id' => 'invite', + 'id' => 'form_invite', + 'class' => 'form_settings', 'action' => common_local_url('invite'))); + $this->elementStart('fieldset'); + $this->element('legend', null, 'Send an invitation'); $this->hidden('token', common_session_token()); + $this->elementStart('ul', 'form_data'); + $this->elementStart('li'); $this->textarea('addresses', _('Email addresses'), $this->trimmed('addresses'), _('Addresses of friends to invite (one per line)')); - + $this->elementEnd('li'); + $this->elementStart('li'); $this->textarea('personal', _('Personal message'), $this->trimmed('personal'), _('Optionally add a personal message to the invitation.')); - + $this->elementEnd('li'); + $this->elementEnd('ul'); $this->submit('send', _('Send')); - + $this->elementEnd('fieldset'); $this->elementEnd('form'); } @@ -227,4 +238,9 @@ class InviteAction extends Action mail_send($recipients, $headers, $body); } + function showLocalNav() + { + $nav = new SubGroupNav($this, common_current_user()); + $nav->show(); + } }