Code:
	    {* BEGIN COMMENTS *}
  <div id="wall" class="flexOpen">
  <div class="bOpen">
    <div class="flexHeader clearFix" onclick="return collapseBox('wall', this, 0.5, 0.25, true)" onfocus="blur()">
    <div><h2>Стена <span id='total_comments'>({$total_comments})</span></h2></div>
    {$upl}
    </div>
  </div>
  <div class="c" >
    <div class="fSub clearFix">
    <h3>
      <div style="float: left;">
      {if $total_comments == 0}На стене пока нет записей.{/if}
      {if $total_comments < 10 AND $total_comments > 0}Показаны <a href="group_comments.php?group_id={$group->group_info.group_id}">{$total_comments}</a> записей.{/if}
      {if $total_comments >= 10}Показаны 10 записей из <a href="group_comments.php?group_id={$group->group_info.group_id}">{$total_comments}</a>.{/if}
      </div>
      <div style="float: right;" >
      <a href="javascript: quickReply('quickReply', 0.55, 0.40, 1); ge('reply_field').value = ''; shide('br');">Написать</a>
      </div>
    </h3>
    </div>
      <div id="quickReply">
    <div id="r" class="r" style="display:none">
      <div style="padding: 5px 12px">
          <form action='group_comments.php' method='post' target='AddCommentWindow' onSubmit='checkText()' name="postMessage" id="postMessage">
          <textarea name='comment_body' id='comment_body' rows='2' cols='65' onfocus='removeText(this)' onblur='addText(this)' style='width:360px; height:80px'></textarea>
          <input type='hidden' name='group_id' value='{$group->group_info.group_id}'>
          <input type='hidden' name='task' value='dopost'>
        </form>
      <div style="height:1.3em; height:25px;">
        <div id = "br" style="text-align:right">
      <ul class="buttonRow" style="float:right;" class="clearFix">
      <li style="width:6.4em;"> <a style="width:5.4em;" onclick="return checkLinks();" id='comment_submit' href="javascript:document.postMessage.submit(); quickReply('quickReply', 0.55, 0.40, 1); ge('reply_field').value = ''; shide('br');">Отправить</a></li>
      </ul>
        </div>
      </div>
      </div>
    </div>
    </div>
        <div id='comment_error' style='display: none;'></div>
        <iframe name='AddCommentWindow' style='display: none' src=''></iframe>
  <div class="flexBox clearFix" id="fBox2">
 
 
    <div id='profile_comments'>
      {* LOOP THROUGH PROFILE COMMENTS *}
      {section name=comment_loop loop=$comments}
      <div id='comment_{math equation='t-c' t=$comments|@count c=$smarty.section.comment_loop.index}'>
      <table class="wallpost" border="0" cellspacing="0" width="100%">
      <tr>
      <td class="image">
        <a href='{$url->url_create('profile',$comments[comment_loop].comment_author->user_info.user_username)}'>
        <img src='{$comments[comment_loop].comment_author->user_photo('./images/nophoto.gif')}' class='photo' border='0' width='{$misc->photo_size($comments[comment_loop].comment_author->user_photo('./images/nophoto.gif'),'50','175','w')}'>
      </a>
      </td>
      <td class="info">
        <div class="header">
        <a style="font-weight: bold;" href='/id{$comments[comment_loop].comment_author->user_info.user_id}'>{$comments[comment_loop].comment_author->profile_info.profile_8} {$comments[comment_loop].comment_author->profile_info.profile_10}</a> <b>написал(а)</b><br />
        <small>{$datetime->cdate("`$setting.setting_dateformat` в `$setting.setting_timeformat`", $datetime->timezone($comments[comment_loop].comment_date, $global_timezone))}</small>
        </div>
        <div class="text">{$comments[comment_loop].comment_body}</div>
        <div class="actions">
        <a href="user_messages_new.php?to={$comments[comment_loop].comment_author->user_info.user_username}"><small>Сообщение</small></a> <span style='font-size:10px'>|</span> <a href="{$url->url_create('profile',$comments[comment_loop].comment_author->user_info.user_username)}#comments"><small>Написать на его стене</small></a>
        </div>
      </td>
      </tr>
    </table></div>
      {/section}
    </div>
    </div>
  </div>
  </div>
 
    {* END COMMENTS *}