XoopsModules25x/news

View on GitHub
templates/blocks/news_block_randomnews.tpl

Summary

Maintainability
Test Coverage
<div class="news-random">
    <{foreach item=news from=$block.stories}>
        <div class="item">
            <h3>
           <span>
            <{if $block.sort=='counter'}>
                [<{$news.hits}>]
            <{elseif $block.sort=='published'}>
                [<{$news.date}>]
            <{else}>
                [<{$news.rating}>]
            <{/if}>
            </span>
                <{$news.topic_title}> - <a
                        href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}>><{$news.title}></a>
            </h3>
            <{if $news.teaser}><p><{$news.teaser}></p><{/if}>
        </div>
    <{/foreach}>
</div>