Hello everyone,
I'm developing my first "block" moodle plugin by following the tutorial below :
https://docs.moodle.org/dev/Blocks
Unfortunately, I'm stuck at the "I Just Hear Static" part.
<?php
class block_timer extends block_base
{
//Gives a value for all variables that are instantiated in the class
public function init()
{
$this->title = get_string('timer', 'block_timer'); //Title displayed in the block header
}
public function get_content() {
if ($this->content !== null) {
return $this->content;
}
$this->content = new stdClass;
$this->content->text = 'The content of our SimpleHTML block!';
$this->content->footer = 'Footer here...';
return $this->content;
}
}
Help meee pleaseeee