<xen:require css="message_user_info.css" />
<xen:require css="bb_code.css" />
<xen:require css="EWRblock_RecentNews.css" />
<div class="RecentNews_block">
<h3 class="block_title"><span>Mới nhất</span></h3>
<div class="block_newest">
<ul>
<xen:foreach loop="$RecentNews" value="$news" i="$i">
<xen:if is="{$i}<13">
<li class="block-content block-content <xen:if is="{$i}==1 | {$i}==4| {$i}==5 | {$i}==8 | {$i}==9 | {$i}==12">block-content-bg</xen:if>">
<div class="img-thumb">
<xen:if is="{$news.promote_icon} != 'disabled'">
<xen:if hascontent="true">
<xen:contentcheck>
<xen:if is="{$news.attach}">
<a href="{xen:link threads, $news}" ><img src="{$news.attach.thumbnailUrl}" alt="{$news.title}" /></a>
<xen:elseif is="{$news.medio}" />
<div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
<a href="{xen:link 'full:media/media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
</div>
<xen:elseif is="{$news.image}" />
<a href="{xen:link threads, $news}" ><img src="{$news.image}" alt="{$news.image}" /></a>
<xen:else />
<a href="{xen:link threads, $news}" ><img src="http://farm8.staticflickr.com/7181/14064253346_55a6578d47_b.jpg" /></a>
</xen:if>
</xen:contentcheck>
</xen:if>
</xen:if>
<h3 class="news-cat"><a href="{xen:link forums, $news}" title="{$news.node_title}" >{xen:helper snippet, $news.node_title, 15}</a></h3>
</div>
<div class="news-info">
<a href="{xen:link threads, $news}" title="{$news.title}" class="title">{$news.title}</a></h2>
<div class="posted">{xen:phrase by_x_at_y,
'user=<a href="{xen:link members, $news}" class="username">{$news.username}</a>,',
'date=<a href="{xen:link threads, $news}">{xen:time $news.post_date, 'absolute'}</a>'}</div>
<p class="desc">{xen:helper snippet, $news.message, 110}</p>
</div>
</li>
</xen:if>
</xen:foreach>
</ul>
</div>
</div>
<xen:if hascontent="true">
<div class="section sectionMain">
<xen:contentcheck>
<xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
<xen:pagenav link="articles" linkdata="{$category}" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
</xen:if>
</xen:contentcheck>
</div>
</xen:if>
<script type="text/javascript" src="js/loadmore/jquery.loadmore.min.js"></script>
<script>
jQuery.ias({
container : '.block_newest',
item: '.block-content',
pagination: '.PageNav',
next: '.PageNav a:last',
triggerPageThreshold: 2,
loader: 'Đang xử lý, bạn chờ chút nhé...',
trigger: 'Còn nhiều lắm! :D',
history: false,
onPageChange: function(pageNum, pageUrl, scrollOffset) {
// This will track a pageview every time the user
// scrolls up or down the screen to a different page.
path = jQuery('<a/>').attr('href',pageUrl)[0].pathname.replace(/^[^\/]/,'/');
//_gaq.push(['_trackPageview', path]);
}
});
</script>