mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-09 01:44:25 +03:00
34 lines
1.5 KiB
Smarty
34 lines
1.5 KiB
Smarty
<table>
|
|
<thead>
|
|
<tr>
|
|
<td class="user">{$aLang.blogs_title}</td>
|
|
{if $oUserCurrent}
|
|
<td class="join-head"><img src="{cfg name='path.static.skin'}/images/join-head.gif" alt="" /></td>
|
|
{/if}
|
|
<td class="readers">{$aLang.blogs_readers}</td>
|
|
<td class="rating">{$aLang.blogs_rating}</td>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{foreach from=$aBlogs item=oBlog}
|
|
{assign var="oUserOwner" value=$oBlog->getOwner()}
|
|
<tr>
|
|
<td class="name">
|
|
<a href="{router page='blog'}{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(24)}" alt="" /></a>
|
|
<a href="{router page='blog'}{$oBlog->getUrl()}/" class="title {if $oBlog->getType()=='close'}close{/if}">{$oBlog->getTitle()|escape:'html'}</a><br />
|
|
{$aLang.blogs_owner}: <a href="{router page='profile'}{$oUserOwner->getLogin()}/" class="author">{$oUserOwner->getLogin()}</a>
|
|
</td>
|
|
{if $oUserCurrent}
|
|
<td class="join {if $oBlog->getUserIsJoin()}active{/if}">
|
|
{if $oUserCurrent->getId()!=$oBlog->getOwnerId() and $oBlog->getType()=='open'}
|
|
<a href="#" onclick="ajaxJoinLeaveBlog(this,{$oBlog->getId()}); return false;"></a>
|
|
{/if}
|
|
</td>
|
|
{/if}
|
|
<td id="blog_user_count_{$oBlog->getId()}" class="readers">{$oBlog->getCountUser()}</td>
|
|
<td class="rating"><strong>{$oBlog->getRating()}</strong></td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table> |