<?php require_once 'includes/main.php'; ?>
<?php require_once 'elements/head.php'; ?>

<!-- META: TITLE -->
<title><?php echo $set['categories_title']; ?> - <?php echo $set['website_name']; ?></title>

</head>

<body>

<?php include_once 'elements/header.php'; ?>

<!-- CONTENT -->
<section class="Content">

   <?php $sql = "SELECT * FROM categories ORDER BY name ASC"; ?>

   <h2 class="GLOB-Title">Categories: <span class="FR"><?php echo fetch_rows($sql); ?></span></h2>

   <?php fetch_elements($sql, 'elements/categories/main.php', 'a'); ?>

</section>
<!-- CONTENT -->

<?php include_once 'elements/sidebar/main.php'; ?>

<?php include_once 'elements/footer.php'; ?>

</body>
</html>
