$storytime = new Story(); include './php/header.php'; if (isset($_GET['top'])) { $title = "Top Stories"; } elseif (isset($_GET['recent'])) { $title = "Recent Stories"; } elseif (isset($_GET['search'])) { $title = "Stories related to \"" . $_SESSION['search'] . "\""; } else { $title = "Stories"; } ?> <section class="title"> <h1><?php echo $title; ?> </h1> </section> <section class="content"> <ul class="list more-info"> <?php $storytime->listStories(); ?> </ul> </section> <?php include './php/footer.php'; ?> </body> </html>