blob: 1eb9a0bacce7865d1b41a250491686dfa01c5171 (
plain)
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
34
35
36
37
38
39
40
|
<?php
/**
* CalendarWidget.php
*
* @author Murtaza Sultani <sultani@data-quest.de>
* @license GPL2 or any later version
* @since Stud.IP 6.1
*/
class CalendarWidget extends CorePlugin implements PortalPlugin
{
/**
* Returns the name of the plugin/widget.
*
* @return String containing the name
*/
public function getPluginName()
{
return _('Kalender');
}
public function getMetadata()
{
return [
'description' => _('Mit diesem Widget haben Sie eine Übersicht über Ihren Kalender.')
];
}
/**
* Return the template for the widget.
*
* @return Flexi\PhpTemplate The template containing the widget contents
*/
public function getPortalTemplate()
{
$template = $GLOBALS['template_factory']->open('start/calendar_widget');
$template->fullcalendar = \Studip\Calendar\Helper::getPersonalFullcalendar()->render();
return $template;
}
}
|