Changes to the Framework
This commit is contained in:
@@ -103,6 +103,24 @@ class Output {
|
||||
$SIDEBAR->add_on_new($key, $route, $name, $icon, $attributes, $weight);
|
||||
}
|
||||
|
||||
//========
|
||||
|
||||
public static function headAdd($route, $name){
|
||||
global $DROPDOWN;
|
||||
$DROPDOWN[] = ['route' => $route, 'name' => $name];
|
||||
}
|
||||
|
||||
public static function addSubHeader($key, $name, $icon = '', $attributes = [], $weight = 0){
|
||||
global $DROPDOWN;
|
||||
$DROPDOWN->create_submenu($key, $name, $icon, $attributes , $weight);
|
||||
}
|
||||
|
||||
public static function addOnSubHeader($key, $route, $name, $icon = '', $attributes = [], $weight = 0){
|
||||
global $DROPDOWN;
|
||||
$DROPDOWN->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