<%if $header%>
<%$header%>
<%else%>
<%include file="header.html"
          title="Browse by categories: $page_title"
          meta_keywords="$meta_keywords"
          meta_description="$meta_description"
%>
<%/if%>

    </td>
  </tr>
  <tr>
    <td>

    <!-- main content here -->

    <br />
    <div align="right">
    <a href="<%$site_url%>/cp/subscribe.php?cat=<%$cat%>">Subscribe to this category</a>
    </div>

    <br />

    <span style="vertical-align: middle;"><b><%$category_path%></b></span> &nbsp; <a href="<%$site_url%>/rss.php?type=category&amp;cat=<%$cat%>"><img src="<%$tpl_base%>/images/rss.gif" border="0" style="vertical-align: middle;" alt="" /></a>
    <br />
    <br />

    <%if $content%>
    <%$content%>
    <br />
    <%/if%>

    <!-- category -->

    <%if $category%>
    <table cellpadding="1" cellspacing="0" align="center" border="0" width="100%" style="background-color: #ffffff;">
      <tr>
        <td>
          <!-- category header -->
          <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="tbl_border">
            <tr>
              <td height="24" colspan="2" class="tbl_caption"> <b>Categories </b></td>
            </tr>
          </table>
          <br />
          <%$category%>
        </td>
      </tr>
    </table>
    <%/if%>

    <!-- searchfeed -->
    <%block_searchfeed track_id="xxx" pub_id="xxx" sf_keyword="$page_title" max_item=6%>

    <!-- sponsored links -->

    <%if $sponsored_link%>
    <table cellpadding="1" cellspacing="0" align="center" border="0" width="100%" style="background-color: #ffffff;">
      <tr>
        <td><!-- link header -->
          <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="tbl_border">
            <tr>
              <td height="24" colspan="2" class="tbl_caption"> Sponsored Web Links</td>
            </tr>
          </table>
          <br />
          <%$sponsored_link%>
          </td>
      </tr>
    </table>
    <%/if%>

    <!-- links -->

    <%if $link%>
    <table cellpadding="1" cellspacing="0" align="center" border="0" width="100%" style="background-color: #ffffff;">
      <tr>
        <td>
          <!-- link header -->
          <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="tbl_border">
            <tr>
              <td height="24" colspan="2" class="tbl_caption"> Web Links</td>
            </tr>
          </table>

          <!-- sort links -->
          <table width="100%" cellpadding="2" cellspacing="0">
            <tr>
              <td align="right"><%block_sort_links use_pagerank="yes" use_custom_field="yes" exclude_custom_field=""%></td>
            </tr>
          </table>

          <%$link%>
          </td>
      </tr>
    </table>
    <%else%>
    <p>There's no web links here.</p>
    <%/if%>

    <!-- pagination -->
    <%if $pagination%>
    <center>
    <p class="pagination1"><%$pagination%></p>
    </center>
    <%/if%>

    <!-- category jump -->
    <div align="right">
    <%block_category_jump type="all"%>
    </div>

    <!-- editors -->
    <%if $editors%>
    <center>
    <br />
    <b>Editors:</b> &nbsp;
    <%section name=i loop=$editors%>
    <a href="<%$site_url%>/user_detail.php?u=<%$editors[i]%>"><%$editors[i]%></a>&nbsp;
    <%/section%>
    <br />
    </center>
    <%/if%>

    <!-- become editor -->
    <center>
    <br /><a href="<%$site_url%>/become_editor.php?cat=<%$cat%>"><img src="<%$tpl_base%>/images/be_editor.jpg" border="0" alt="" /></a><br />
    </center>
    
    <br />

    <!-- end of main content -->

    </td>
  </tr>
  <tr>
    <td>


<%if $footer%>
<%$footer%>
<%else%>
<%include file="footer.html"%>
<%/if%>

