diff --git a/README.md b/README.md index 507c1cb..d92f8d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -moodle_block_verify_certificate +Moodle block Verify certificate =============================== + +This module was written by Jean-Michel Védrine and my only contribution was to add the Brazilian Portuguese localization file. diff --git a/block_verify_certificate.php b/block_verify_certificate.php new file mode 100644 index 0000000..ba99e4e --- /dev/null +++ b/block_verify_certificate.php @@ -0,0 +1,35 @@ +title = get_string('title', 'block_verify_certificate'); + } + + function applicable_formats() { + return array('all' => true); + } + function get_content() { + + if ($this->content !== NULL) { + return $this->content; + } + + $this->content = new stdClass; + $this->content->text = '
'.get_string('entercode', 'certificate').'
'; + $url = new moodle_url('/blocks/verify_certificate/index.php'); + $this->content->text .= '' . get_string('certificate', 'block_verify_certificate') . ' ' . $certrecord->code . '
'; + echo '' . get_string('to', 'block_verify_certificate') . ': ' . $certrecord->studentname . '
';
+ echo '
' . get_string('course', 'block_verify_certificate') . ': ' . $certrecord->classname . '
';
+ echo '
' . get_string('date', 'block_verify_certificate') . ': ' . $certificatedate . '
' . get_string('grade', 'block_verify_certificate') . ': ' . $certrecord->reportgrade . '