<{assign var="bc" value=$block.BlockContent}>
<{if $bc.main_data}>
  <{if $isMyWeb}>
    <{$sweet_delete_link_func_code}>
  <{/if}>

  <{includeq file="$xoops_rootpath/modules/tad_web/templates/tad_web_block_title.tpl"}>

  <table class="footable table common_table">
    <thead>
      <tr>
        <th data-class="expand">
          <{$smarty.const._MD_TCW_LINKTITLE}>
        </th>
        <th data-hide="phone" class="common_counter" style="text-align: center;">
          <{$smarty.const._MD_TCW_ACTIONCOUNT}>
        </th>
      </tr>
    </thead>
    <{foreach item=link from=$bc.main_data}>
      <tr>
        <td>
          <i class="fa fa-external-link"></i>
          <{if isset($link.cate.CateID)}>
            <span class="badge badge-info"><a href="link.php?WebID=<{$link.WebID}>&CateID=<{$link.cate.CateID}>" style="color: #FFFFFF;"><{$link.cate.CateName}></a></span>
          <{/if}>
          <a href="link.php?WebID=<{$link.WebID}>&LinkID=<{$link.LinkID}>" target="_blank"><{$link.LinkTitle}></a>

          <{if $link.isMyWeb or $link.isAssistant}>
            <a href="javascript:delete_link_func(<{$link.LinkID}>);" class="text-danger"><i class="fa fa-trash-o"></i></a>
            <a href="link.php?WebID=<{$link.WebID}>&op=edit_form&LinkID=<{$link.LinkID}>" class="text-warning"><i class="fa fa-pencil"></i></a>
          <{/if}>

          <{if $link.hide_link!='1'}>
            <div style="margin: 6px 0px;"><a href="link.php?WebID=<{$link.WebID}>&LinkID=<{$link.LinkID}>" target="_blank"><{$link.LinkShortUrl}></a></div>
          <{/if}>

          <{if $link.hide_desc!='1' and $link.LinkDesc}>
            <div style="margin: 6px 0px; font-size:12px;color:#666699; line-height:1.5;"><{$link.LinkDesc}></div>
          <{/if}>
        </td>
        <td style="text-align:center;">
          <{$link.LinkCounter}>
        </td>
      </tr>
    <{/foreach}>
  </table>
<{/if}>