{literal}
<style>
div.count1 {
        width: 65px;
        color: #FF0000;
        font-size:16px;
       text-align: center;
       margin-top: 10px;
       }
div.count2 {
        width: 65px;
       font-size:16px;
       text-align: center;
        margin-top: 10px;
       }    
 div.comm {
        background: url(/modules/mod_inblogs/comm.png) top left no-repeat;
        width: 33px;
        height: 19px;
        color: #fff;
        line-height: 19px;
        text-align: center;
        padding-left: 10px;
    }
 </style> 
{/literal} 
 {assign var="q" value="1"}   

{foreach key=tid item=autor from=$autors}
{if $q<=$cfg.col} <table width="100%" border="0"> 
    <tr><td>
<table width="100%" cellpadding="5px;"> 
 <tr><td  width="60px;" valign="top">
 <div {if $tid==0} class="count1" {else} class="count2" {/if}> 
{$autor.count} записей </div></td>
<td width="100px;" align="center" valign="top">
<img src="{$autor.avatar}" width="55px;"><br>{$autor.nick}</td>
<td>
<table width="100%">
<tr><td><h6>{$autor.title}<h6> </td><td></td></tr> 
{foreach key=tid item=post from=$autor.blogs}
<tr>
<td>{$post.pubdate} <a href="/blogs/{$autor.seolink}/{$post.seolink}.html">{$post.title} </a></td>
<td width="45"> <div class="comm">{$post.comments} </div></td>
</tr>
{/foreach}
<tr><td style="float:right;"> <a href="/blogs/{$autor.seolink}/">Все записи блога <a></td><td></td></tr>
</table> 

</td> </tr>
</table>
    </td> </tr> </table> 
    {math equation="x + 1" x=$q assign="q"}
{else} {if $q==$cfg.col+1}<span style="color:#FF9900;font-size:16px;"> Остальные блоггеры:</span><br> {/if}
<a href="/blogs/{$autor.seolink}/">{$autor.nick}</a><span style="color:#FF0000;">({$autor.count})</span> 
 {math equation="x + 1" x=$q assign="q"} 
{/if}
{/foreach}
