function theme_forward_postcard in Forward 6
Same name and namespace in other branches
- 5 forward.theme \theme_forward_postcard()
- 7 forward.theme \theme_forward_postcard()
- 7.2 forward.theme \theme_forward_postcard()
Format the e-postcards
Parameters
vars: An array of email variables
File
- ./
forward.theme, line 67
Code
function theme_forward_postcard($vars) {
$output = '
<html>
<body>
<table width="400" cellspacing="0" cellpadding="10" border="0">
<thead>
<tr><td><h1 style="font-family: Arial, Helvetica, sans-serif; font-size: 18px;">' . l($vars['logo'] . ' ' . $vars['site_name'], 'forward/emailref', array(
'absolute' => TRUE,
'query' => 'path=' . variable_get('site_frontpage', 'node'),
'html' => TRUE,
)) . '</h1></td></tr>
</thead>
<tbody>
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">' . $vars['forward_message'];
if ($vars['message']) {
$output .= '<p>' . t('Message from Sender') . ':</p><p>' . $vars['message'] . '</p>';
}
$output .= '<p>' . l(t('Click here to read more on our site'), 'forward/emailref', array(
'absolute' => TRUE,
'query' => 'path=' . variable_get('site_frontpage', 'node'),
)) . '</p>';
$output .= '
</td>
</tr>
<tr><td style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">' . $vars['dynamic_content'] . '</td></tr>
<tr><td style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">' . $vars['forward_ad_footer'] . '</td></tr>
<tr><td style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">' . $vars['forward_footer'] . '</td></tr>
</tbody>
</table>
</body>
</html>
';
return $output;
}