<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%Links::Utils::load_editors~%>
<html>
<head>
  <title><%site_title%>: <%category_name%></title>
<%include include_common_head.html%>
</head>
<body id="category">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>
  <%category_short%>
<%~if config.newsletter_enabled and not config.newsletter_global_subscribe%>
  <%~Links::Newsletter::subscription_info($ID)%><%-- SubscriptionStatus: 0 = not subscribed, 1 = indirectly subscribed, 2 = directly subscribed --%>
  <%if SubscriptionStatus == 2%><span class="hsmall">(<a href="<%config.db_cgi_url%>/subscribe.cgi?action=unsubscribe;ID=<%ID%>" title="Unsubscribe to stop getting updates from this category">Unsubscribe</a>)</span><%elsif SubscriptionStatus == 1%><%else%><span class="hsmall">(<a href="<%config.db_cgi_url%>/subscribe.cgi?action=subscribe;ID=<%ID%>" title="Subscribe to get updates from this category">Subscribe</a>)</span><%endif%>
<%~endif%>
</h2>

<%if category_loop.length~%>
<h3>Categories</h3>
<%~set split = Links::Utils::column_split($category_loop.length, $category_cols)%>
<div class="clear">
<%loop category_loop%>
  <%~set splitmod = $row_num % $split%>
  <%~if row_num == 1 or splitmod == 1 or split == 1%><dl><%endif%>
<%~include subcategory.html%>
  <%~if row_num == $category_loop.length or splitmod == 0%></dl><%endif%>
<%~endloop%>
</div>
<%~endif%>

<%if related_loop.length~%>
<h3>Related Categories</h3>
<ul>
<%~loop related_loop%>
  <li><a href="<%escape_html URL%>"><%Full_Name%></a></li>
<%~endloop%>
</ul>
<%endif%>

<%if links_loop.length~%>
<h3>Links</h3>
<%if paging.num_hits%><div class="paging"><%Links::Utils::paging()%></div><%endif%>

<%loop links_loop~%>
<%include link.html%>
<%~endloop%>

<%if paging.num_hits%><div class="paging"><%Links::Utils::paging(button_id => 'paging_button2')%></div><%endif%>
<%~endif%>

<%if editors_loop.length~%>
<h3>Editors</h3>
<ul>
<%~loop editors_loop%>
  <li><%escape_html Username%></li>
<%~endloop%>
</ul>
<%~endif%>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
