Skip to content
Snippets Groups Projects
Commit 2eccb56e authored by luniki's avatar luniki Committed by GitHub
Browse files

update to new Icon-API

parent 66ee7159
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,11 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -20,11 +20,11 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
{ {
parent::__construct(); parent::__construct();
$top = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array('view' => 'tiles'), "presenting/overview")); $top = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array('view' => 'tiles'), "presenting/overview"));
$top->setImage($this->getPluginURL()."/assets/topicon.svg"); $top->setImage(Icon::create($this->getPluginURL()."/assets/topicon.svg"));
$overview = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview")); $overview = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview"));
$top->addSubNavigation("presenting", $overview); $top->addSubNavigation("presenting", $overview);
$overview->addSubNavigation("overview", new AutoNavigation(_('bersicht'), PluginEngine::getURL($this, array(), "presenting/overview"))); $overview->addSubNavigation("overview", new AutoNavigation(_('Übersicht'), PluginEngine::getURL($this, array(), "presenting/overview")));
$overview->addSubNavigation("all", new AutoNavigation(_('Alle Plugins'), PluginEngine::getURL($this, array(), "presenting/all"))); $overview->addSubNavigation("all", new AutoNavigation(_('Alle Plugins'), PluginEngine::getURL($this, array(), "presenting/all")));
$overview->addSubNavigation("tools", new AutoNavigation(_('Tools'), PluginEngine::getURL($this, array(), "tools/sidebar_graphics_generator"))); $overview->addSubNavigation("tools", new AutoNavigation(_('Tools'), PluginEngine::getURL($this, array(), "tools/sidebar_graphics_generator")));
...@@ -41,13 +41,13 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -41,13 +41,13 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
} }
} }
if ($GLOBALS['perm']->have_perm("root")) { if ($GLOBALS['perm']->have_perm("root")) {
$approving = new Navigation(_("Qualittssicherung"), PluginEngine::getURL($this, array(), "approving/overview")); $approving = new Navigation(_("Qualitätssicherung"), PluginEngine::getURL($this, array(), "approving/overview"));
$top->addSubNavigation("approving", $approving); $top->addSubNavigation("approving", $approving);
} }
Navigation::addItem("/pluginmarket", $top); Navigation::addItem("/pluginmarket", $top);
$loginlink = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview")); $loginlink = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview"));
$loginlink->setDescription(_("Laden Sie hier Plugins fr Ihr Stud.IP herunter")); $loginlink->setDescription(_("Laden Sie hier Plugins für Ihr Stud.IP herunter"));
Navigation::addItem("/login/pluginmarket",$loginlink); Navigation::addItem("/login/pluginmarket",$loginlink);
NotificationCenter::addObserver($this, "triggerFollowingStudips", "PluginReleaseDidUpdateCode"); NotificationCenter::addObserver($this, "triggerFollowingStudips", "PluginReleaseDidUpdateCode");
...@@ -112,4 +112,4 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -112,4 +112,4 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment