diff --git a/app/core/template/Output.class.php b/app/core/template/Output.class.php index fcac54f..1a01ef0 100755 --- a/app/core/template/Output.class.php +++ b/app/core/template/Output.class.php @@ -87,4 +87,24 @@ class Output { $class->setView($instance->view)->render(); } + + public static function addMenu($route, $name, $icon = '', $attributes = [], $weight = 0){ + global $SIDEBAR; + $SIDEBAR->add($route, $name, $icon, $attributes, $weight); + } + + public static function addSubmenu($key, $name, $icon = '', $attributes = [], $weight = 0){ + global $SIDEBAR; + $SIDEBAR->create_submenu($key, $name, $icon, $attributes , $weight); + } + + public static function addOnSubmenu($key, $route, $name, $icon = '', $attributes = [], $weight = 0){ + global $SIDEBAR; + $SIDEBAR->add_on_new($key, $route, $name, $icon, $attributes, $weight); + } + + public static function icon($icon){ + return ""; + } + } diff --git a/app/core/template/classes/dashboard/template.html b/app/core/template/classes/dashboard/template.html index 88d8e71..aba8d0f 100755 --- a/app/core/template/classes/dashboard/template.html +++ b/app/core/template/classes/dashboard/template.html @@ -7,19 +7,17 @@