Files
Testing/leptesting/latestblogs.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

45 lines
2.8 KiB
Smarty

{* LATEST BLOGS *}
<div class='header'><a href="http://bateworld.com/browse_blogs.php" title="Blogs">Latest Blogs</a></div>
<div style="background:#000;padding:10px 10px 10px 10px;" id="latest-blogs">
<ul>
{section name=blogentry_loop loop=$blogentries max=4}
<li>
<div style="padding:0px 10px 0px 10px;">
<div style='font-weight: bold; font-size: 13px;'>
<!--<img src="./images/icons/blog_blog16.gif" class='button' style='float: left;'>-->
<a href='{$url->url_create("blog_entry", $blogentries[blogentry_loop].blogentry_author->user_info.user_username, $blogentries[blogentry_loop].blogentry_id)}'>
{$blogentries[blogentry_loop].blogentry_title|truncate:30:"...":true}
</a>
</div>
<div class='blogs_browse_date'>
{assign var='blogentry_date' value=$datetime->time_since($blogentries[blogentry_loop].blogentry_date)}{capture assign="created"}{lang_sprintf id=$blogentry_date[0] 1=$blogentry_date[1]}{/capture}
{lang_sprintf id=1500039 1=$created 2=$url->url_create("profile", $blogentries[blogentry_loop].blogentry_author->user_info.user_username) 3=$blogentries[blogentry_loop].blogentry_author->user_displayname}
</div>
{if !empty($blogentries[blogentry_loop].blogentrycat_languagevar_id) || !empty($blogentries[blogentry_loop].blogentrycat_title)}
<div class='blogs_browse_date'>
{if !empty($blogentries[blogentry_loop].blogentrycat_languagevar_id)}{capture assign=blogentrycat_title}{lang_print id=$blogentries[blogentry_loop].blogentrycat_languagevar_id}{/capture}{else}{assign var=blogentrycat_title value=$blogentries[blogentry_loop].blogentrycat_title}{/if}
Category:
{if !$blogentries[blogentry_loop].blogentrycat_user_id}<a href='browse_blogs.php?c={$blogentries[blogentry_loop].blogentry_blogentrycat_id}'>{/if}
{$blogentrycat_title|truncate:48}
{if !$blogentries[blogentry_loop].blogentrycat_user_id}</a>{/if}
</div>
{/if}
<div style='margin-top: 5px;'>
{lang_sprintf id=1500041 1=$blogentries[blogentry_loop].blogentry_views},
{lang_sprintf id=1500042 1=$blogentries[blogentry_loop].blogentry_totalcomments}
</div>
<div style='margin-top: 8px; font-size: 12px;'>
{$blogentries[blogentry_loop].blogentry_body|strip_tags|truncate:140:"...":true}
</div>
</div>
{if $smarty.section.blogentry_loop.rownum < 4}
<div style="padding:3px 0 3px 0;"><hr style='text-align:center;width:100%;' /></div>
{/if}
</li>
{/section}
</ul>
</div>
<div class='portal_spacer'></div>