2009-01-18 17:57:48 +02:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2009-04-05 16:56:18 +03:00
|
|
|
<td class="user">{$aLang.blogs_title}</td>
|
2009-01-18 17:57:48 +02:00
|
|
|
{if $oUserCurrent}
|
2009-11-29 18:50:37 +02:00
|
|
|
<td class="join-head"><img src="{cfg name='path.static.skin'}/images/join-head.gif" alt="" /></td>
|
2009-01-18 17:57:48 +02:00
|
|
|
{/if}
|
2009-04-05 16:56:18 +03:00
|
|
|
<td class="readers">{$aLang.blogs_readers}</td>
|
|
|
|
<td class="rating">{$aLang.blogs_rating}</td>
|
2009-01-18 17:57:48 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{foreach from=$aBlogs item=oBlog}
|
2009-06-09 18:55:10 +03:00
|
|
|
{assign var="oUserOwner" value=$oBlog->getOwner()}
|
2009-01-18 17:57:48 +02:00
|
|
|
<tr>
|
|
|
|
<td class="name">
|
2009-08-19 21:27:36 +03:00
|
|
|
<a href="{router page='blog'}{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(24)}" alt="" /></a>
|
2009-09-18 23:42:07 +03:00
|
|
|
<a href="{router page='blog'}{$oBlog->getUrl()}/" class="title {if $oBlog->getType()=='close'}close{/if}">{$oBlog->getTitle()|escape:'html'}</a><br />
|
2009-08-19 21:27:36 +03:00
|
|
|
{$aLang.blogs_owner}: <a href="{router page='profile'}{$oUserOwner->getLogin()}/" class="author">{$oUserOwner->getLogin()}</a>
|
2009-01-18 17:57:48 +02:00
|
|
|
</td>
|
|
|
|
{if $oUserCurrent}
|
2009-06-09 18:55:10 +03:00
|
|
|
<td class="join {if $oBlog->getUserIsJoin()}active{/if}">
|
2009-09-19 17:48:28 +03:00
|
|
|
{if $oUserCurrent->getId()!=$oBlog->getOwnerId() and $oBlog->getType()=='open'}
|
2009-01-18 17:57:48 +02:00
|
|
|
<a href="#" onclick="ajaxJoinLeaveBlog(this,{$oBlog->getId()}); return false;"></a>
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
{/if}
|
2009-01-21 18:44:21 +02:00
|
|
|
<td id="blog_user_count_{$oBlog->getId()}" class="readers">{$oBlog->getCountUser()}</td>
|
2009-01-18 17:57:48 +02:00
|
|
|
<td class="rating"><strong>{$oBlog->getRating()}</strong></td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|