Updates from hell
This commit is contained in:
@@ -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 "<i class='$icon' aria-hidden='true'></i>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user