/** * Adds the field for e-mail field label */ private function AddMailSubjectField() { $name = 'MailSubject'; $field = Input::Text($name, $this->register->GetMailSubject()); $this->AddField($field); $this->SetRequired($name); }
private function GetConfirmMessage() { $replacements = array(); $replacements['Text1'] = $this->register->GetMailText1(); $replacements['Text2'] = $this->register->GetMailText2(); $replacements['Title'] = Html($this->register->GetMailSubject()); $replacements['Styles'] = Html($this->register->GetMailStyles()); $confirmUrl = $this->register->GetConfirmUrl(); if ($confirmUrl) { $replacements['ConfirmUrl'] = Html(Confirmer::CalcUrl($this->member, $confirmUrl)); } $template = Path::Combine(PathUtil::BundleFolder($this->MyBundle()), 'MailTemplates/Confirm.phtml'); $parser = new TemplateParser($replacements); return $parser->Parse($template); }