<?php require_once 'includes/main.php'; ?>
<?php require_once 'elements/head.php'; ?>
<?php $section = isset($_GET['section']) ? clean($_GET['section']) : fetch_record("SELECT slug FROM pages ORDER BY name ASC LIMIT 1"); ?>
<?php $x = fetch_records("SELECT * FROM pages WHERE slug = '{$section}' ORDER BY id ASC LIMIT 1"); ?>

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

</head>

<body>

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

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

   <!-- TITLE --><h2 class="GLOB-Title"><?php echo $x['name']; ?>:</h2><!-- TITLE -->
   <!-- ARTICLE --><article class="Article RenderHTML"><?php echo $x['content'] ?></article><!-- ARTICLE -->
   
</section>
<!-- MAIN -->

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

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

</body>
</html>
