From f535e0d207942b9c7b1dcb66bf0d8a79b3cc6367 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Tue, 22 Jun 2021 14:49:24 -0300 Subject: [PATCH] Entidade certificadora passa a ser parametrizado --- type/ILB_flex/certificate.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/type/ILB_flex/certificate.php b/type/ILB_flex/certificate.php index 2aba729..909fb06 100644 --- a/type/ILB_flex/certificate.php +++ b/type/ILB_flex/certificate.php @@ -28,7 +28,6 @@ if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); // It must be included from view.php } - /** * Gets the course start date (for ILB start date is the date of enrollment) * and completion date from course completion framework. @@ -66,6 +65,7 @@ if($tipo_acao == "") { $tipo_acao = 'do curso'; } $modalidade_acao = certificate_obtemCampoCustomizadoCurso($course->id, 'modalidade_capacitacao'); +$titulo = certificate_obtemCampoCustomizadoCurso($course->id, 'entidade_certificadora'); //MASK para CPF function mask($val, $mask) @@ -155,7 +155,8 @@ certificate_print_image($pdf, $certificate, CERT_IMAGE_SIGNATURE, $sigx, $sigy, // Add text $pdf->SetTextColor(0, 0, 0); -certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 20, get_string('title', 'certificate')); + +certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 20, $titulo); certificate_print_text($pdf, $x, $y + 15, 'C', 'freesans', '', 18, get_string('certify', 'certificate')); certificate_print_text($pdf, $x, $y + 25, 'C', 'freesans', 'B', 18, mb_strtoupper(fullname($USER), 'UTF-8').","); if($modalidade_acao == "") {