diff options
Diffstat (limited to 'public/app/views/components/top_bar.php')
| -rw-r--r-- | public/app/views/components/top_bar.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/public/app/views/components/top_bar.php b/public/app/views/components/top_bar.php new file mode 100644 index 0000000..eaffe76 --- /dev/null +++ b/public/app/views/components/top_bar.php @@ -0,0 +1,40 @@ +<?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::view("components/breadcrumbs", [ + 'id' => $id, + 'label' => $label, + 'parents' => $parents + ]); + ?> + + <?php // User management drop-down + //////////////////////////////////////////////////////////////////////// + Render::view('components/user-management'); + ?> + +</div><!-- /top-bar -->
\ No newline at end of file |
