<!DOCTYPE html >
<html lang="en">
<head>
  <title><%site_title%></title>
<%include include_common_head.html%>
</head>
<body id="home">
  <%~if ad_wallpaper%>
  <%ad_wallpaper%>
  <%~endif%>
  <div class="container">
    <%include include_header.html%>

    <div class="main">
      <div class="contentwrapper clearfix">
        <%include include_breadcrumb.html%>
        <%~if not links_loop.length%>
        <section class="section category-list section-has-widgets section-reverse">
        <div class="sidebar-b">
          <%~set widgets_loop = Plugins::UI::fetch_widgets('category', $ID)%>
          <%~set widget_end   = $widgets_loop.length%>
          <%include include_widgets.html%>
        </div>
        <div class="content content-has-widgets">
          <div class="grid">

            <!-- latest articles -->
            <div class="clearfix">
              <h1><%Name%></h1>
              <%~loop category_loop%>
              <%include include_category.html%>
              <%~endloop%>
            </div>
          </div>
        </div><!-- end content -->
        </section><!-- end section -->
        <%~else%>
        <%include subcategory.html%>
        <%~endif%>

        <div class="section-spacer"></div>

      </div><!-- End contentwrapper -->
    </div>
    <%include include_footer.html%>
  </div>
</body>
<%~include include_global_js.html%>
