Skip to content
Snippets Groups Projects
Commit 4eaeba71 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

adjustments for stud.ip 5.3, fixes #1

parent 00e57612
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,17 @@ final class IconOverview extends StudIPPlugin implements SystemPlugin
{
parent::__construct();
if (Navigation::hasItem('/profile/settings')) {
Navigation::addItem('/profile/settings/icon-overview', new Navigation(
$navigation = new Navigation(
_('Icon-Übersicht'),
PluginEngine::getURL($this, [], 'index')
));
);
$navigation->setImage(Icon::create('block-gallery'));
$navigation->setDescription(_('Übersicht aller Icons'));
if (Navigation::hasItem('/contents')) {
Navigation::addItem('/contents/icon-overview', $navigation);
} elseif (Navigation::hasItem('/profile/settings')) {
Navigation::addItem('/profile/settings/icon-overview', $navigation);
}
}
......@@ -32,18 +38,22 @@ final class IconOverview extends StudIPPlugin implements SystemPlugin
$options = new OptionsWidget(_('Einstellungen'));
$options->id = 'icon-options';
$options->addSelect(_('Farbe wählen'), '#', 'color', [
'black' => _('Schwarz'),
'blue' => _('Blau'),
'green' => _('Grün'),
'grey' => _('Grau'),
'red' => _('Rot'),
'white' => _('Weiß'),
'yellow' => _('Gelb'),
'black' => _('Schwarz (info)'),
'blue' => _('Blau (clickable)'),
'green' => _('Grün (status-green)'),
'grey' => _('Grau (inactive)'),
'red' => _('Rot (status-red)'),
'white' => _('Weiß (info-alt)'),
'yellow' => _('Gelb (status-yellow)'),
], 'blue');
$options->addSelect(_('Größe wählen'), '#', 'size', $sizes, 32);
Sidebar::get()->addWidget($options);
if (Navigation::hasItem('/contents/icon-overview')) {
Navigation::activateItem('/contents/icon-overview');
} else {
Navigation::activateItem('/profile/settings/icon-overview');
}
$icons = $this->getIcons();
......
pluginname=Icon overview
pluginclassname=IconOverview
version=1.0
version=1.1
origin=UOL
studipMinVersion=5.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment