aboutsummaryrefslogtreecommitdiff
path: root/lib/modules/ContentsWidget.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-05-11 07:19:42 +0000
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-05-11 07:19:42 +0000
commit20240b2aacb15ab3264afbfbbc9dae952db4bb63 (patch)
tree597cae73c5ae7ab9eda6d066d45430c3f17a4560 /lib/modules/ContentsWidget.php
parentc054faf90288a75fc3680480434ba93b7f5b287b (diff)
convert old core plugins to new model, re #814
Merge request studip/studip!440
Diffstat (limited to 'lib/modules/ContentsWidget.php')
-rw-r--r--lib/modules/ContentsWidget.php30
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;
+ }
+}