From baec21363982b75df4104522898af13d48d2f395 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Mon, 17 Jun 2019 15:49:43 -0300 Subject: [PATCH] Retirada de lixo de modelo de certificado para oficinas --- type/Oficinas/certificate.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/type/Oficinas/certificate.php b/type/Oficinas/certificate.php index 66e17cc..a18fd88 100644 --- a/type/Oficinas/certificate.php +++ b/type/Oficinas/certificate.php @@ -121,8 +121,8 @@ $cpf = mask($USER->username, '###.###.###-##'); require_once($CFG->dirroot.'/user/profile/field/cpf/field.class.php'); -$pdf = new PDF($certificate->orientation, 'mm', 'A4', true, 'UTF-8', false); +$pdf = new PDF($certificate->orientation, 'mm', 'A4', true, 'UTF-8', false); $pdf->SetTitle($certificate->name); $pdf->SetProtection(array('modify')); $pdf->setPrintHeader(false); @@ -130,6 +130,7 @@ $pdf->setPrintFooter(false); $pdf->SetAutoPageBreak(false, 0); $pdf->AddPage(); + // Define variables // Landscape if ($certificate->orientation == 'L') { @@ -171,8 +172,6 @@ if ($certificate->orientation == 'L') { $codex = $x; $codey = 245; } -$pdf->SetTextColor(0, 0, 0); -certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 20, get_string('title', 'certificate')); // Front page ------------------------------------------------------------------------------------------------------------ // Add images and lines @@ -188,11 +187,6 @@ certificate_print_image($pdf, $certificate, CERT_IMAGE_SIGNATURE, $sigx, $sigy, $certificador = 'O Instituto Legislativo Brasileiro, órgão gestor do Programa Interlegis, certifica que'; -/* -participou da oficina de "PORTAL MODELO", na Câmara Municipal de Franca SP, no período de 26 a 28 -de novembro de 2018, com carga horária de 20 horas-aula. -*/ - // Add text $pdf->SetTextColor(0, 0, 0); certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 20, get_string('title', 'certificate'));