$tpl = get_markup_template('prv_message.tpl');
$o .= replace_macros($tpl,array(
- '$reply' => array(
- 'header' => t('Send Private Message'),
- 'to' => t('To:'),
- 'showinputs' => 'true',
- 'prefill' => $prefill,
- 'autocomp' => $autocomp,
- 'preid' => $preid,
- 'subject' => t('Subject:'),
- 'subjtxt' => ((x($_REQUEST,'subject')) ? strip_tags($_REQUEST['subject']) : ''),
- 'text' => ((x($_REQUEST,'body')) ? escape_tags(htmlspecialchars($_REQUEST['body'])) : ''),
- 'readonly' => '',
- 'yourmessage' => t('Your message:'),
- 'select' => $select,
- 'parent' => '',
- 'upload' => t('Upload photo'),
- 'insert' => t('Insert web link'),
- 'wait' => t('Please wait'),
- 'submit' => t('Submit')
- )
+ '$header' => t('Send Private Message'),
+ '$to' => t('To:'),
+ '$showinputs' => 'true',
+ '$prefill' => $prefill,
+ '$autocomp' => $autocomp,
+ '$preid' => $preid,
+ '$subject' => t('Subject:'),
+ '$subjtxt' => ((x($_REQUEST,'subject')) ? strip_tags($_REQUEST['subject']) : ''),
+ '$text' => ((x($_REQUEST,'body')) ? escape_tags(htmlspecialchars($_REQUEST['body'])) : ''),
+ '$readonly' => '',
+ '$yourmessage' => t('Your message:'),
+ '$select' => $select,
+ '$parent' => '',
+ '$upload' => t('Upload photo'),
+ '$insert' => t('Insert web link'),
+ '$wait' => t('Please wait'),
+ '$submit' => t('Submit')
));
return $o;
$tpl = get_markup_template('mail_display.tpl');
- $includes = array(
- '$mail_conv' => 'mail_conv.tpl',
- '$prv_message' => 'prv_message.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
if($a->theme['template_engine'] === 'internal') {
$subjtxt_e = template_escape($message['title']);
}
$subjtxt_e = $message['title'];
}
- $o = replace_macros($tpl, $includes + array(
+ $o = replace_macros($tpl, array(
'$thread_id' => $a->argv[1],
'$thread_subject' => $message['title'],
'$thread_seen' => $seen,
'$mails' => $mails,
// reply
- '$reply_info' => array(
- 'header' => t('Send Reply'),
- 'to' => t('To:'),
- 'showinputs' => '',
- 'subject' => t('Subject:'),
- 'subjtxt' => $subjtxt_e,
- 'readonly' => ' readonly="readonly" style="background: #BBBBBB;" ',
- 'yourmessage' => t('Your message:'),
- 'text' => '',
- 'select' => $select,
- 'parent' => $parent,
- 'upload' => t('Upload photo'),
- 'insert' => t('Insert web link'),
- 'submit' => t('Submit'),
- 'wait' => t('Please wait'),
- ),
+ '$header' => t('Send Reply'),
+ '$to' => t('To:'),
+ '$showinputs' => '',
+ '$subject' => t('Subject:'),
+ '$subjtxt' => template_escape($message['title']),
+ '$readonly' => ' readonly="readonly" style="background: #BBBBBB;" ',
+ '$yourmessage' => t('Your message:'),
+ '$text' => '',
+ '$select' => $select,
+ '$parent' => $parent,
+ '$upload' => t('Upload photo'),
+ '$insert' => t('Insert web link'),
+ '$submit' => t('Submit'),
+ '$wait' => t('Please wait')
));