Initial commit
This commit is contained in:
38
playarea/plugins/bive-admin-panel/main.php
Normal file
38
playarea/plugins/bive-admin-panel/main.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
$assets_path = $plugin_class->get_assets_path();
|
||||
|
||||
$favorite_load = function ()
|
||||
{
|
||||
global $b;
|
||||
$b->template_load("bive-admin-panel/template/menu/favorite.php");
|
||||
};
|
||||
|
||||
$bive_fonts_load = function ()
|
||||
{
|
||||
global $b;
|
||||
$b->template_load("bive-admin-panel/template/google-fonts.php");
|
||||
$b->template_load("bive-admin-panel/template/wingman.php");
|
||||
};
|
||||
|
||||
$dashboard = function ()
|
||||
{
|
||||
global $b;
|
||||
$b->template_load("bive-admin-panel/template/dashboard/dashboard.php");
|
||||
};
|
||||
|
||||
$navmenu_load = function ()
|
||||
{
|
||||
global $b;
|
||||
$b->template_load("bive-admin-panel/template/menu/submenu.php");
|
||||
};
|
||||
|
||||
$b->admin_page_set(null, "dashboard", "Рабочий стол", array(), $favorite_load, false, "home_max");
|
||||
$b->admin_page_set(null, "content", "Контент", array(), $navmenu_load, false, "art_track");
|
||||
$b->admin_page_set(null, "system", "Система", array(), $navmenu_load, false, "hub");
|
||||
|
||||
$plugin_dir = $plugin_class->plugin_dir;
|
||||
$plugin_path = $plugin_class->plugin_path;
|
||||
require $plugin_path . "scripts" . SLASH . "admin.php";
|
||||
|
||||
$b->event_add("header_start", $bive_fonts_load);
|
||||
Reference in New Issue
Block a user