Remove certificate for course creation with exemplary content #2758

pull/2808/head
Angel Fernando Quiroz Campos 7 years ago
parent c422b0f84a
commit e1938aa4c3
  1. 1
      main/default_course_document/certificates/default.html
  2. 1
      main/inc/lib/add_course.lib.inc.php
  3. 7
      main/install/update-files-1.10.0-1.11.0.inc.php

@ -1 +0,0 @@
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css">a:visited { text-decoration: none;}a:hover { text-decoration: none; color: #f3840d;}a:active { text-decoration: none; color : #3757f7;}footer { background-color: #ED970E; background-image: url(/main/css/beeznest/images/bg-footer.gif); background-repeat:repeat-x; color:#ffffff;}body { background: #264878; }#certif-main { background: #fff; }#certif-header { background-image: url('../../../../main/css/chamilo/images/header-logo.png'); background-repeat: no-repeat; background-position: center;}</style> <style type="text/css"> body{margin:10px;}</style> <link type="text/css" href="./css/frames.css" rel="stylesheet" /> </head> <body dir="ltr"><div id="certif-main"><p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <table border="0"> <tbody> <tr> <td width="150">&nbsp;</td> <td width="500" height="100" style="text-align: left;" id="certif-header">&nbsp;</td> <td width="150">&nbsp;((date_certificate))</td> </tr> <tr> <td height="300">&nbsp;</td> <td style="text-align: center;font-size: larger;">This document certifies that<br /> ((user_firstname)) ((user_lastname))<br /> has successfully passed the certification exam for the course<br /> ((course_title)) (((course_code)))</td> <td>&nbsp;</td> </tr> <tr> <td height="200">&nbsp;</td> <td style="text-align: center;"><p>- - - - - - - - - - - - - - - - - - -</p> <p>((teacher_firstname)) ((teacher_lastname))</p> <p>((gradebook_sitename)) - ((gradebook_institution))<br /> &nbsp;</p></td> <td>&nbsp;</td> </tr> </tbody> </table></div></body></html>

@ -744,7 +744,6 @@ class AddCourse
'audio',
'flash',
'video',
'certificates',
];
$default_course_path = api_get_path(SYS_CODE_PATH).'default_course_document/';

@ -59,6 +59,13 @@ if (defined('SYSTEM_INSTALLATION')) {
error_log('Could not delete. It seems the file '.$entity.' does not exists.');
}
}
$oldDefaultCertificatePath = api_get_path(SYS_CODE_PATH).'default_course_document/certificates/';
if (is_dir($oldDefaultCertificatePath)) {
@rrmdir($oldDefaultCertificatePath);
}
if ($debug) {
error_log('Folders cleaned up');
}

Loading…
Cancel
Save