<?php $page="Events"; ?>
<?php include "../routes/event.php"; ?>
<?php include "../layout/header.php"; ?>
<?php include "../layout/socialbar.php"; ?>
<?php include "../layout/navbar.php"; ?>
<body>
    <?php if (isset($_GET['url'])) { 
        include "../events/view.php";
    } else {
        include "../pages/events.php"; 
    } ?>
</body>
<?php include "../layout/footer.php"; ?>
<?php include "../sections/scripts.php"; ?>