diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-25 16:45:03 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-25 16:45:03 +0300 |
| commit | b594effb847b86fc6b1dae49d7948c46bba35e58 (patch) | |
| tree | 8c5a090cf8746870521324797762bb0ff14c8ae5 /public/app/views/components | |
| parent | 65d07ba64d45c77d2db16272710ec5702b34d641 (diff) | |
| download | classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.tar.gz classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.tar.bz2 classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.zip | |
alfa version; uploaded into test server (coder)
Diffstat (limited to 'public/app/views/components')
| -rw-r--r-- | public/app/views/components/breadcrumbs.php | 2 | ||||
| -rw-r--r-- | public/app/views/components/lessons_list.php | 4 | ||||
| -rw-r--r-- | public/app/views/components/subcategories.php | 3 | ||||
| -rw-r--r-- | public/app/views/components/top_bar.php | 25 |
4 files changed, 31 insertions, 3 deletions
diff --git a/public/app/views/components/breadcrumbs.php b/public/app/views/components/breadcrumbs.php index 90b4af9..59c0fca 100644 --- a/public/app/views/components/breadcrumbs.php +++ b/public/app/views/components/breadcrumbs.php @@ -9,8 +9,8 @@ * @param $parents : array of parent nodes * ----------------------------------------------------------------------------- */ -?> +?> <div class="breadcrumb"> <!-- home --> <a href="/">Classroom</a> diff --git a/public/app/views/components/lessons_list.php b/public/app/views/components/lessons_list.php index 1c59164..46c1f7e 100644 --- a/public/app/views/components/lessons_list.php +++ b/public/app/views/components/lessons_list.php @@ -33,6 +33,10 @@ <a href="/lesson/<?=$post['id']?>"><?=$post['title']?></a> </h3> + <?php if (in_array('level', $fieldset)) : ?> + <p class="getegory">(επίπεδο πρόσβασης <?=$post['privilege_id']?>)</p> + <?php endif; ?> + <?php if (in_array('category', $fieldset)) : ?> <p class="category"><?=$post['course_id']?></p> <?php endif; ?> diff --git a/public/app/views/components/subcategories.php b/public/app/views/components/subcategories.php index 58f53fa..5c05a94 100644 --- a/public/app/views/components/subcategories.php +++ b/public/app/views/components/subcategories.php @@ -2,7 +2,8 @@ <?php if ($breadcrumbs[ $id ]['childs'] != []) : ?> - <h5>Υποκατηγορίες</h5> + <h5>Υποκεφάλαια</h5> + <div class="category-childs"> <?php foreach($breadcrumbs[ $id ]['childs'] as $key => $child) : ?> diff --git a/public/app/views/components/top_bar.php b/public/app/views/components/top_bar.php index 0e6e437..eaffe76 100644 --- a/public/app/views/components/top_bar.php +++ b/public/app/views/components/top_bar.php @@ -1,8 +1,31 @@ +<?php +/** top bar + * ----------------------------------------------------------------------------- + * + * rendrers breadcrumbs and user menu + * + * imported variables + * --- + * @param $id : category_id of last level + * @param $label : category title of last level + * @param $parents : array of parent nodes + * ----------------------------------------------------------------------------- + */ + +// initialize variables needed if not passed +// (needed while requiring breadcrumbs) +if (!isset($id)) { + $id = 0; + $label = ""; + $parents = []; +} + +?> <div class="top-bar"> <?php // breadcrumbs //////////////////////////////////////////////////////////////////////// - Render::template("components/breadcrumbs", [ + Render::view("components/breadcrumbs", [ 'id' => $id, 'label' => $label, 'parents' => $parents |
