mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-07 20:42:37 +09:00
Fix some little issues
This commit is contained in:
1 parent
e96da0908e
commit
7f13d8560d
15 files changed
+380
-27
No files matched your search
@@ -18,6 +18,28 @@
|
||||
return $this->core;
|
||||
}
|
||||
|
||||
public function addButton($button) {
|
||||
$this->addFilter('buttons', function($buttons) use($button) {
|
||||
$buttons[] = $button;
|
||||
return $buttons;
|
||||
});
|
||||
}
|
||||
|
||||
public function addModal($modal) {
|
||||
$this->addFilter('modals', function($modals) use($modal) {
|
||||
$modals[] = $modal;
|
||||
return $modals;
|
||||
});
|
||||
}
|
||||
|
||||
public function assign($name, $value) {
|
||||
$this->getCore()->getTemplate()->assign($name, $value);
|
||||
}
|
||||
|
||||
public function url($path) {
|
||||
$this->getCore()->getTemplate()->url($path);
|
||||
}
|
||||
|
||||
/* Filter */
|
||||
public function addFilter($name, $method, $priority = 10) {
|
||||
return $this->core->getHooks()->addFilter($name, $method, $priority);
|
||||
|
||||
Reference in new issue
Block a user