1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-06 00:14:25 +03:00
ifhub.club/templates/skin/new-jquery/blog_list.tpl
Denis Shakhov cbbacabf40 New JQuery
2011-08-09 02:43:22 +00:00

35 lines
1.5 KiB
Smarty

<table class="table blog-list-table table-people">
<thead>
<tr>
<td>{$aLang.blogs_title}</td>
{if $oUserCurrent}<td align="center" width="100px">{$aLang.blog_join_leave}</td>{/if}
<td align="center" width="60px">{$aLang.blogs_readers}</td>
<td align="center" width="60px">{$aLang.blogs_rating}</td>
</tr>
</thead>
<tbody>
{foreach from=$aBlogs item=oBlog}
{assign var="oUserOwner" value=$oBlog->getOwner()}
<tr>
<td>
<a href="{router page='blog'}{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(24)}" alt="" class="avatar" /></a>
<a href="{router page='blog'}{$oBlog->getUrl()}/" class="title">{$oBlog->getTitle()|escape:'html'}</a>
{if $oBlog->getType()=='close'}<img src="{cfg name='path.static.skin'}/images/lock.png" alt="[x]" title="{$aLang.blog_closed}" class="private" />{/if}
<p>{$aLang.blogs_owner}: <a href="{router page='profile'}{$oUserOwner->getLogin()}/" class="user">{$oUserOwner->getLogin()}</a></p>
</td>
{if $oUserCurrent}
<td align="center">
{if $oUserCurrent->getId()!=$oBlog->getOwnerId() and $oBlog->getType()=='open'}
<div onclick="ls.blog.toggleJoin(this, {$oBlog->getId()}); return false;" class="join {if $oBlog->getUserIsJoin()}active{/if}"></div>
{else}
&mdash;
{/if}
</td>
{/if}
<td align="center" id="blog_user_count_{$oBlog->getId()}" class="date">{$oBlog->getCountUser()}</td>
<td align="center" class="rating"><strong>{$oBlog->getRating()}</strong></td>
</tr>
{/foreach}
</tbody>
</table>