diff options
Diffstat (limited to 'lib/modules/ContentsWidget.php')
| -rw-r--r-- | lib/modules/ContentsWidget.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/modules/ContentsWidget.php b/lib/modules/ContentsWidget.php new file mode 100644 index 0000000..1907ba6 --- /dev/null +++ b/lib/modules/ContentsWidget.php @@ -0,0 +1,30 @@ +<?php +/** + * Contents widget. + * + * @author David Siegfried <ds.siegfried@gmail.com> + * @license GPL2 or any later version + * @since Stud.IP 5.0 + */ + +class ContentsWidget extends CorePlugin implements PortalPlugin +{ + public function getPluginName() + { + return _('Mein Arbeitsplatz'); + } + + public function getMetadata() + { + return [ + 'description' => _('Mit diesem Widget haben Sie einen Überblick über Ihre Inhalte.') + ]; + } + + public function getPortalTemplate() + { + $template = $GLOBALS['template_factory']->open('start/contents'); + $template->tiles = Navigation::getItem('/contents'); + return $template; + } +} |
