diff options
Diffstat (limited to 'public/app/views/components/top_bar.php')
| -rw-r--r-- | public/app/views/components/top_bar.php | 25 |
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 |
