diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-25 03:40:09 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-25 03:40:09 +0300 |
| commit | 65d07ba64d45c77d2db16272710ec5702b34d641 (patch) | |
| tree | 4578793e288cd1a6dc08f87ab44d0e3568904c12 /public/app/views/templates/course.php | |
| parent | 13753d58d6aceaea8f246040518d50f2eb06a8d9 (diff) | |
| download | classroom-65d07ba64d45c77d2db16272710ec5702b34d641.tar.gz classroom-65d07ba64d45c77d2db16272710ec5702b34d641.tar.bz2 classroom-65d07ba64d45c77d2db16272710ec5702b34d641.zip | |
front-end: putting everything together
Diffstat (limited to 'public/app/views/templates/course.php')
| -rw-r--r-- | public/app/views/templates/course.php | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/public/app/views/templates/course.php b/public/app/views/templates/course.php new file mode 100644 index 0000000..9d42297 --- /dev/null +++ b/public/app/views/templates/course.php @@ -0,0 +1,82 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title><?=SITE_TITLE?> - <?=$title?></title> + + <?php // header includes + //////////////////////////////////////////////////////////////////////// + Render::view('components/header_includes'); + ?> + +</head> +<body class="classroom"> + + <?php // top-bar + //////////////////////////////////////////////////////////////////////// + Render::view('components/top_bar', [ + 'id' => $id, + 'label' => $breadcrumbs[ $id ]['rec']['label'], + 'parents' => $breadcrumbs[ $id ]['parents'] + ]); + ?> + + +<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' => $course_path + ]); + ?> + + </div> + + <div class="col col-sm-12 col-md-7 col-lg-8 course-view"> + + <!-- Category Title --> + <h3> + <?=$breadcrumbs[ $id ]['rec']['label']?> + </h3> + + + <!-- Sub-Categories --> + <?php + Render::view('components/subcategories',[ + 'id' => $id, + 'breadcrumbs' => $breadcrumbs + ]) + ?> + + + <!-- Articles List --> + <?php if ($lessons) : ?> + + <h5>Μαθήματα</h5> + + <?php // list of posts/articles + //////////////////////////////////////////////////// + Render::view("components/lessons_list", [ + 'lessons' => $lessons, + 'fieldset' => ['intro'] // ['intro', 'date'] + ]); + ?> + <?php endif; ?> + + + + + </div> + + </div> + </div> + + + <script src="/assets/js/classroom.js"></script> +</body> +</html> |
