<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="Created" content="2025-02-27">
    <meta name="Author" content="Kārlis Grīnvalds">
    <meta name="Last edited" content="2026-05-12">
    <meta name="Edited by" content="Kārlis Grīnvalds">
    <meta name="csrf-token" content="<?= csrf_hash() ?>">
    <meta name="csrf-name" content="<?= csrf_token() ?>">
    <title>Media CMS</title>
    <script src="js/jquery/jquery-3.7.1.min.js"></script>
    <script src="js/index.js"></script>
    <script src="js/script.js"></script>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/elements.css">
</head>
<body>
    <?php echo $BodyParts ?>
    <!-- Shows create account and log in links or log out link and welcome message for the user -->
    <div id="UserProfile" class="user-profile"></div>
    <!-- Page layout -->
    <div class="container">
        <header></header>
        <div class="main">
            <!-- Main body -->
            <h1>Media Content Management System</h1><hr>
            <p>Welcome!</p>
            <!--<h2>About</h2><hr>
            <p>Soon<sup>TM</sup></p>-->
            <h3>Available topics</h3><hr>
            <p>These topics are public and anyone can access them.</p>
            <select id="TopicSelect"></select>
            <button id="VisitBtn">Visit</button>
            <h3>Create a topic</h3><hr>
            <p>
                To create a new topic, visit the <a href="/topic_form">topic form</a> and fill that out.
                After submitting it, you will be able to visit that topic. You must have an account.
            </p>
            <button id="TopicFormBtn">Topic form</button>
            <h3>Guide</h3><hr>
            <p>Visit the <a href="/wiki/Page:Main">guide</a> to learn how everything works.</p>
            <button id="GuideBtn">Guide</button>
        </div>
        <footer>Developed by Kārlis Grīnvalds</footer>
    </div>
</body>
</html>