Merge branch 'master' of gitlab.steinbeisschule-reutlingen.de:L_DA/block_timetable

This commit is contained in:
L_DA 2020-12-04 17:22:04 +00:00
commit e30061d84c
8 changed files with 9 additions and 7 deletions

View file

@ -1,8 +1,10 @@
# block_timetable # # block_timetable #
TODO Describe the plugin shortly here. block_timetable is a moodle-block-plugin that provides timetables based on Untis export data.
TODO Provide more detailed description here. ![timetable text](doc/timetable1_small.png)
The plugin requires that the mod_timetable plugin is installed.
## License ## ## License ##

View file

@ -89,7 +89,7 @@ class block_timetable extends block_base {
$today = new \DateTime(); $today = new \DateTime();
$week = $today->format("W"); $week = $today->format("W");
$dayofweek = $today->format('w'); $dayofweek = $today->format('w');
if ($dayofweek > 5 + get_config('timetable', 'saturday')) { if ($dayofweek > 5 + get_config('timetable', 'saturday') || ($dayofweek == 0)) {
$week++; $week++;
} }

0
doc/.gitkeep Normal file
View file

BIN
doc/timetable1.png Normal file

Binary file not shown.

After

(image error) Size: 39 KiB

BIN
doc/timetable1_small.png Normal file

Binary file not shown.

After

(image error) Size: 50 KiB

View file

@ -25,4 +25,4 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$string['pluginname'] = 'timetable'; $string['pluginname'] = 'Stundenplan';

View file

@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$string['pluginname'] = 'Stundenplan'; $string['pluginname'] = 'timetable';
$string['timetable:addinstance'] = 'add timetable'; $string['timetable:addinstance'] = 'add timetable';
$string['timetable:addmyinstance'] = 'add timetable'; $string['timetable:addmyinstance'] = 'add timetable';

View file

@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die();
$plugin->component = 'block_timetable'; $plugin->component = 'block_timetable';
$plugin->release = '0.1.0'; $plugin->release = '0.1.0';
$plugin->version = 2020091801; $plugin->version = 2020112101;
$plugin->requires = 2020061500; $plugin->requires = 2020061500;
$plugin->maturity = MATURITY_ALPHA; $plugin->maturity = MATURITY_ALPHA;
$plugin->dependencies = [ $plugin->dependencies = [