<?php if ($newslist): ?>
    <ul>
        <?php foreach ($newslist as $item): ?>
            <li>
                <?php echo $item->title; ?>
            </li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>