blog->settings->addNamespace('licenseBootstrap'); dcCore::app()->addBehavior('adminDashboardFavoritesV2', function ($favs) { $favs->register('licenseBootstrap', [ 'title' => __('License bootstrap'), 'url' => dcCore::app()->adminurl->get('admin.plugin.licenseBootstrap'), 'small-icon' => urldecode(dcPage::getPF('licenseBootstrap/icon.svg')), 'large-icon' => urldecode(dcPage::getPF('licenseBootstrap/icon.svg')), 'permissions' => dcCore::app()->auth->isSuperAdmin(), ]); }); dcCore::app()->addBehavior('packmanBeforeCreatePackage', function ($module) { licenseBootstrap::addLicense($module); }); dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem( __('License bootstrap'), dcCore::app()->adminurl->get('admin.plugin.licenseBootstrap'), urldecode(dcPage::getPF('licenseBootstrap/icon.svg')), preg_match('/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.licenseBootstrap')) . '(&.*)?$/', $_SERVER['REQUEST_URI']), dcCore::app()->auth->isSuperAdmin() );