mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-09 01:44:25 +03:00
33 lines
1.2 KiB
Smarty
33 lines
1.2 KiB
Smarty
<table class="people">
|
|
<thead>
|
|
<tr>
|
|
<td class="user">{$aLang.blogs_title}</td>
|
|
{if $oUserCurrent}
|
|
<td class="join">{$aLang.blogs_join}</td>
|
|
{/if}
|
|
<td class="readers">{$aLang.blogs_readers}</td>
|
|
<td class="rating">{$aLang.blogs_rating}</td>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{foreach from=$aBlogs item=oBlog}
|
|
<tr>
|
|
<td class="blog-name">
|
|
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_BLOG}/{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(24)}" alt="" /></a>
|
|
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_BLOG}/{$oBlog->getUrl()}/" class="title">{$oBlog->getTitle()|escape:'html'}</a><br />
|
|
{$aLang.blogs_owner}: <a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PROFILE}/{$oBlog->getUserLogin()}/" class="author">{$oBlog->getUserLogin()}</a>
|
|
</td>
|
|
{if $oUserCurrent}
|
|
<td class="join {if $oBlog->getCurrentUserIsJoin()}active{/if}">
|
|
{if $oUserCurrent->getId()!=$oBlog->getOwnerId()}
|
|
<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> |