Extensive modification of https://github.com/Kylegoslin/moodle-block_signinsheet