summaryrefslogtreecommitdiff
path: root/public/app/views/components/top_bar.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-25 16:45:03 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-25 16:45:03 +0300
commitb594effb847b86fc6b1dae49d7948c46bba35e58 (patch)
tree8c5a090cf8746870521324797762bb0ff14c8ae5 /public/app/views/components/top_bar.php
parent65d07ba64d45c77d2db16272710ec5702b34d641 (diff)
downloadclassroom-b594effb847b86fc6b1dae49d7948c46bba35e58.tar.gz
classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.tar.bz2
classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.zip
alfa version; uploaded into test server (coder)
Diffstat (limited to 'public/app/views/components/top_bar.php')
-rw-r--r--public/app/views/components/top_bar.php25
1 files changed, 24 insertions, 1 deletions
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