rendered paste body<?php
/**
* SMForumNews - A Module that displays news pulled from a Simple Machines forum
* @version 1.1
* @package SMForumNews
* @copyright (C) 2004 by Ben - All rights reserved!
**/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$forum = $params->def( 'forum', '1' );
$limit = $params->def( 'limit', '5' );
$length = $params->def( 'length', '' );
$showicon = $params->get( 'icon', '1' );
$showpostinfo = $params->get( 'postinfo', '1' );
$showlink = $params->get( 'link', '1' );
$moduleclass_sfx = $params->get( 'moduleclass_sfx', '' );
$array = ssi_boardNews($forum, $limit, null, $length, 'array');
foreach ($array as $news)
{
if ($showicon) {
echo '<div style="position: static; width: 99%; text-align: left; vertical-align: bottom;"><b>', $news['icon'], ' ', $news['subject'], '</b></div>';
}
else {
echo '<div style="position: static; width: 99%; text-align: left; vertical-align: bottom;"><b>', $news['subject'], '</b></div>';
}
if ($showpostinfo) {
echo '<div style="position: static; width: 99%; text-align: left; vertical-align: bottom;"><span class="smaller">', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '</span><br /></div>';
}
echo '<br /><div style="position: static; width: 99%; text-align: left; vertical-align: bottom;">', $news['body'], '<br /><br /></div>';
if ($showlink) {
echo '<div style="position: static; width: 99%; text-align: right; vertical-align: bottom;">', $news['link'], ' | ', $news['new_comment'], '<br /><br /></div>';
}
if (!$news['is_last'])
echo '
<hr width="100%" />
<br />';
}
?>