diff --git a/block_verify_certificate.php b/block_verify_certificate.php index ba99e4e..ff28d38 100644 --- a/block_verify_certificate.php +++ b/block_verify_certificate.php @@ -9,27 +9,27 @@ class block_verify_certificate extends block_base { function applicable_formats() { return array('all' => true); } + function get_content() { - if ($this->content !== NULL) { - return $this->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') . ' ' . $issue->code . '
'; - echo '' . get_string('to', 'block_verify_certificate') . ': ' . fullname($user) . '
';
- echo '
' . get_string('course', 'block_verify_certificate') . ': ' . $course->fullname . '
';
- echo '
' . get_string('date', 'block_verify_certificate') . ': ' . $certificatedate . '
' . get_string('certificate', 'block_verify_certificate') . " {$issue->code}
"; + echo '' . get_string('to', 'block_verify_certificate') . ': ' . fullname($user) . '
'; + echo '' . get_string('course', 'block_verify_certificate') . ": {$course->fullname}
"; + echo '' . get_string('date', 'block_verify_certificate') . ": $certificatedate
"; + echo '' . get_string('enrol_period', 'block_verify_certificate') . ": $start_date - $end_date
"; + if ($certificate->printhours) { + echo '' . get_string('printhours', 'block_verify_certificate') . ": {$certificate->printhours}
"; + } if ($certificate->customtext !== '') { - echo '' . get_string('customtext', 'block_verify_certificate') . ':
' . get_string('customtext', 'block_verify_certificate') . ':
'; echo $certificate->customtext; } } } + echo $OUTPUT->box_end(); echo $OUTPUT->footer(); diff --git a/lang/de/block_verify_certificate.php b/lang/de/block_verify_certificate.php index 67b6920..81dec6c 100644 --- a/lang/de/block_verify_certificate.php +++ b/lang/de/block_verify_certificate.php @@ -9,3 +9,5 @@ $string['course'] = 'Kurs'; $string['date'] = 'Am'; $string['grade'] = 'Bewertung'; $string['customtext'] = 'Kurs details'; +$string['enrol_period'] = 'Einschreiben Zeitraum'; +$string['printhours'] = 'Stunden'; diff --git a/lang/en/block_verify_certificate.php b/lang/en/block_verify_certificate.php index 4c91c98..1d055b5 100644 --- a/lang/en/block_verify_certificate.php +++ b/lang/en/block_verify_certificate.php @@ -9,3 +9,5 @@ $string['course'] = 'Course'; $string['date'] = 'On'; $string['grade'] = 'Grade'; $string['customtext'] = 'Course details'; +$string['enrol_period'] = 'Enroll period'; +$string['printhours'] = 'Hours'; diff --git a/lang/pt_br/block_verify_certificate.php b/lang/pt_br/block_verify_certificate.php index b562690..c3d80ac 100644 --- a/lang/pt_br/block_verify_certificate.php +++ b/lang/pt_br/block_verify_certificate.php @@ -9,3 +9,5 @@ $string['course'] = 'Curso'; $string['date'] = 'Data'; $string['grade'] = 'Nota'; $string['customtext'] = 'Programa do curso'; +$string['enrol_period'] = 'Período de realização'; +$string['printhours'] = 'Carga horária';