latestforumposts.tpl 1.17 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{if $foruminfo}
    <table class="fullwidth table panel-body" id="latestforumposts">
    {foreach from=$foruminfo item=postinfo}
        <tr class="{cycle values='r0,r1'}">
            <td><h3 class="title"><a href="{$WWWROOT}interaction/forum/topic.php?id={$postinfo->topic|escape}&post={$postinfo->id}">{$postinfo->topicname}</a></h3>
            <div class="detail">{$postinfo->body|str_shorten_html:100:true|safe}</div></td>
            <td class="valign right s"><a href="{profile_url($postinfo->author)}"><img src="{profile_icon_url user=$postinfo->author maxheight=20 maxwidth=20}" alt="{str tag=profileimagetext arg1=$postinfo->author|display_default_name}"> {$postinfo->author|display_name}</a>
            </td>
        </tr>
    {/foreach}
    </table>
{else}
    <table class="fullwidth table panel-body"><tr class="{cycle values='r0,r1'}">
            <td align="center">{str tag=noforumpostsyet section=interaction.forum}</td>
        </tr>
    </table>
{/if}
<a class="morelink panel-footer" href="{$WWWROOT}interaction/forum/index.php?group={$group->id}">
    {str tag=gotoforums section=interaction.forum}
    <span class="fa fa-arrow-circle-right mls pull-right"></span>
</a>