if (!$cntItems) { ?> <tr><th><?php echo _DML_MOD_NEWS_NO_ITEMS; ?> </th></tr><?php } else { $cntItems = $cntItems > $limit ? $limit : $cntItems; for ($j = 0; $j < $cntItems; $j++) { $item =& $rss->get_item($j); ?> <tr><td> <a href="<?php echo $item->get_link(); ?> " target="_blank"><?php echo $item->get_title(); ?> </a><?php if ($description = DOCMAN_Utils::snippet($item->get_description(), $desc_truncate)) { ?> <br /><?php echo $description; } ?> </td></tr><?php } } ?> </tbody> </table>