<{if $mylinksadcodes.all}>
<{$mylinksadcodes.all}>
<{elseif $mylinksadcodes.viewcat}>
<{$mylinksadcodes.viewcat}>
<{/if}>
<br /><br />
<{if $mylinksshowlogo}>
<div style='text-align: center;'><{$mylinkslogoimage}></div>
<br />
<{/if}>
<{if $mylinksshowsearch}>
<{include file='db:mylinks_search_inc.html'}>
<{/if}>
<{if $catarray.letters}><div style='text-align: center;' class='itemPermaLink'><{$catarray.letters}></div><br /><{/if}>
<{if $catarray.toolbar}><div class='toolbar'><{$catarray.toolbar}></div><br /><{/if}>

<table style='width: 97%; margin: 0px; padding: 0px; border-width: 0px; text-align: center;'>
  <tr>
    <td class='newstitle' style='text-align: left; margin: 1px; padding: 2px; border-width: 0px;'>
      <strong><{$category_path}></strong>
    </td>
  </tr>
  <tr>
    <td style='text-align: center;'>
      <table style='width: 90%;'>
        <tr>
          <{foreach item=subcat from=$subcategories}>
            <td style='text-align: left'><strong><a href='viewcat.php?cid=<{$subcat.id}>'><{$subcat.title}></a></strong>&nbsp;(<{$subcat.totallinks}>)<br /><span class='subcategories'><{$subcat.infercategories}></span></td>
            <{if $subcat.count is div by 4}>
            </tr><tr>
            <{/if}>
          <{/foreach}>
        </tr>
      </table>
      <br />
      <hr />

      <{if $show_links == true}>

    <{if $show_nav == true}>
      <div>
      <{$lang_sortby}>&nbsp;&nbsp;<{$lang_title}> (
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=titleA'><img src='images/icons/up.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=titleD'><img src='images/icons/down.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      )
      <{$lang_date}>&nbsp;(
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=dateA'><img src='images/icons/up.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=dateD'><img src='images/icons/down.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      )
      <{$lang_rating}>&nbsp;(
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=ratingA'><img src='images/icons/up.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=ratingD'><img src='images/icons/down.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      )
      <{$lang_popularity}>&nbsp;(
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=hitsA'><img src='images/icons/up.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      <a href='viewcat.php?cid=<{$category_id}>&amp;orderby=hitsD'><img src='images/icons/down.gif' style='border-width: 0px; vertical-align: middle;' alt='' /></a>
      )
        <br />
        <strong><{$lang_cursortedby}></strong>
      </div>
      <hr />
      <{/if}>
      <br />
    </td>
  </tr>
</table>
<{if ($list_mode != true && $mylinksshowfeed) || ($mylinksshowthemechanger) }>
<table style='margin: 0px; width: 100%;'>
  <tr>
    <{if $list_mode != true && $mylinksshowfeed}>
    <td style='text-align: left;'>
    <a href="javascript:openWithSelfMain('<{$mylinks_weburl}>/feedsubscription.php?feedtype=RSS&feedurl=<{"$mylinks_weburl/rss.php?cid=$category_id"|escape:"url"}>','modulefeedsubscription',300,500);">
    <img src='<{$mylinks_imgurl}>/icons/feed-icon.gif' alt='<{$lang_feedsubscript}>' title='<{$lang_feedsubscript_desc}>'  /></a>
      <strong><{$lang_categoryfeed}></strong>
      <a href="<{$mylinks_weburl}>/rss.php?cid=<{$category_id}>" target="_blank">
      <img src="<{$mylinks_imgurl}>/icons/rss.png"  alt="<{$lang_rssfeed_cat}>" title="<{$lang_rssfeed_cat}>"  /></a>
      <a href="<{$mylinks_weburl}>/atom.php?cid=<{$category_id}>" target="_blank">
      <img src="<{$mylinks_imgurl}>/icons/atom.png"  alt="<{$lang_atomfeed_cat}>" title="<{$lang_atomfeed_cat}>" /></a>
      <a href="<{$mylinks_weburl}>/pda.php?cid=<{$category_id}>" target="_blank">
      <img src="<{$mylinks_imgurl}>/icons/pda.png"  alt="<{$lang_pdafeed_cat}>" title="<{$lang_pdafeed_cat}>" /></a>
   </td>
   <{/if}>
   <{if $mylinksshowthemechanger}>
   <td style='text-align: right;'>
      <form action='<{$xoops_requesturi}>' method='post'>
        <strong><{$lang_themechanger}></strong><{$mylinksthemeoption}>
      </form>
   </td>
   <{/if}>
  </tr>
</table>
<{/if}>
<div style='text-align:center;'><{$page_nav}></div>
<br />
<table style='width: 100%; margin: 0px; padding: 10px; border-width: 0px;'>
  <tr>
    <td style='width: 100%; text-align: right;'>
      <a id='itemtop'>
      <a href='#itembottom'><img src='<{$mylinks_imgurl}>/icons/bottom.gif' alt='<{$lang_gotobottom}>' title='<{$lang_gotobottom}>'  /></a>
    </td>
  </tr>
  <tr>
    <td style='width: 100%; text-align: center; vertical-align: top;'>
    <!-- Start link loop -->
    <{section name=i loop=$links}>
      <{include file="db:mylinks_link.html" link=$links[i]}>
    <{/section}>
    <!-- End link loop -->
    </td>
  </tr>
  <tr>
    <td style='width: 100%; text-align: right;'>
    <a id='itembottom'>
    <a href='#itemtop'><img src='<{$mylinks_imgurl}>/icons/top.gif' alt='<{$lang_gototop}>' title='<{$lang_gototop}>'  /></a>
    </td>
  </tr>
</table>
<br />
<div style='text-align: center;'><{$page_nav}></div>
<br />
<div style='text-align: right;'><{$mylinksjumpbox}></div>
<{else}>
    </td>
  </tr>
</table>
<{/if}>

<{if $list_mode != true}><{$moremetasearch}><{/if}>

<{include file='db:system_notification_select.html'}>
