summaryrefslogtreecommitdiff
path: root/public/app/views/components/breadcrumbs.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/views/components/breadcrumbs.php')
-rw-r--r--public/app/views/components/breadcrumbs.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/public/app/views/components/breadcrumbs.php b/public/app/views/components/breadcrumbs.php
deleted file mode 100644
index 59c0fca..0000000
--- a/public/app/views/components/breadcrumbs.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/** breadcrumbs
- * -----------------------------------------------------------------------------
- *
- * imported variables
- * ---
- * @param $id : category_id of last level
- * @param $label : category title of last level
- * @param $parents : array of parent nodes
- * -----------------------------------------------------------------------------
- */
-
-?>
-<div class="breadcrumb">
- <!-- home -->
- <a href="/">Classroom</a>
-
- <!-- parent nodes -->
- <?php if ($id != 0) : ?>
- <?php foreach($parents as $node) : ?>
- <i class="fas fa-angle-right"></i> <a href="/course/<?=$node['id']?>"><?=$node['label']?></a>
- <?php endforeach; ?>
- <?php endif; ?>
-
- <!-- last (current) node -->
- <?php if ($id != 0) : ?>
- <i class="fas fa-angle-right"></i> <a href="/course/<?=$id?>"><?=$label?></a>
- <?php endif; ?>
-
-</div> \ No newline at end of file