';
}
/**
* The main page. This shows the relevant info in a printer-friendly format
*/
function template_main()
{
global $context, $options, $txt, $scripturl, $topic;
if (!empty($context['poll']))
{
echo '
', $txt['poll'], '
', $txt['poll_question'], ':
', $context['poll']['question'], '';
$options = 1;
foreach ($context['poll']['options'] as $option)
echo '
', $txt['option'], ' ', $options++, ': ', $option['option'], '
', $context['allow_poll_view'] ? $txt['votes'] . ': ' . $option['votes'] . '' : '', '
';
echo '
';
}
foreach ($context['posts'] as $post)
{
echo '
', $post['body'];
// Show attachment images
if (isset($_GET['images']) && !empty($context['printattach'][$post['id_msg']]))
{
echo '
';
foreach ($context['printattach'][$post['id_msg']] as $attach)
echo '
';
}
echo '
';
}
}
/**
* The footer.
*/
function template_print_below()
{
echo '
';
template_print_options();
echo '