forked from dehnhardt/nc_dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin-settings.php
executable file
·33 lines (26 loc) · 1.07 KB
/
admin-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Created by PhpStorm.
* User: flost
* Date: 20.07.15
* Time: 08:10
*/
OCP\User::checkAdminUser();
/*
\OCP\Util::addStyle('templateeditor', 'settings-admin');
\OCP\Util::addScript('templateeditor', 'settings-admin');
$themes = \OCA\TemplateEditor\MailTemplate::getEditableThemes();
$editableTemplates = \OCA\TemplateEditor\MailTemplate::getEditableTemplates();
*/
/** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
$app = new \OCA\Dashboard\AppInfo\Application();
$container = $app->getContainer();
/** @var $widgetManagementService \OCA\Dashboard\Services\WidgetManagementService */
$widgetManagementService= $container->query('WidgetManagementService');
$L10N = $container->query('L10N');
$groups = \OC_Group::getGroups();
$template = new \OCP\Template('dashboard', 'admin-settings');
$template->assign('availableWidgets', $widgetManagementService->getAvailable());
$template->assign('enabledWidgetGroups', $widgetManagementService->getEnabledWidgetGroups());
$template->assign('groups', $groups);
return $template->fetchPage();