summaryrefslogtreecommitdiff
path: root/public/app/views/welcome.php
blob: c5552a81bb8afec1d954a44c95023d11f3daf720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?=SITE_TITLE?> - Welcome!</title>

    <?php   // header includes
        ////////////////////////////////////////////////////////////////////////
        Render::view('components/header_includes');
    ?>
    
</head>
<body class='classroom'>

    <?php        // top-bar
        ////////////////////////////////////////////////////////////////////////
        Render::view('components/top_bar');
    ?>


    <div class="main-content container">
        <div class="row">

            <div class="col col-md-5 col-lg-4 d-sm-none d-md-block side-bar">


    <?php    // tree of courses
        ////////////////////////////////////////////////////////////////////////
        Render::view('components/courses_menu', [
            'categories' => $categories,
            'open_path' => []
        ]);
    ?>
            </div>

            <div class="col col-sm-12 col-md-7 col-lg-8">
                the content goes here
            </div>

        </div>
    </div>


    <!-- TESTING STRINGS (while developing only) -->
    <?php /* --- print_r($_SESSION); ?>
    <?php print_r($_COOKIE); ?>
    <?php 
        if (isset($_SESSION)) echo '; session seted ; ';
    ?>
    <?=
        isset($_SESSION[UserTokenInterface::DEFAULT_PREFIX_KEY])
        ? var_dump($_SESSION[UserTokenInterface::DEFAULT_PREFIX_KEY])
        : 'none!'
    --- */ ?>
    

    <footer>
        <div class="container">

            <?php   // render footer
                ////////////////////////////////////////////////////////////////
                Render::view('components/footer', [ 'entity' => $entity ]);
            ?>

        </div>
    </footer>
    
    <script src="/assets/js/classroom.js"></script>

</body>
</html>