|
|
|
@ -328,13 +328,15 @@ $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class= |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Certificate settings |
|
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('certificate.png', Security::remove_XSS(get_lang('Certificates')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Certificates')).'</h3><div>'); |
|
|
|
|
if (api_get_setting('allow_public_certificates')=='true') { |
|
|
|
|
// Certificate settings |
|
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('certificate.png', Security::remove_XSS(get_lang('Certificates')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Certificates')).'</h3><div>'); |
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowPublicCertificates")), ''); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowPublicCertificates")), ''); |
|
|
|
|
|
|
|
|
|
$form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class="save"'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
@ -478,4 +480,4 @@ echo '<div id="course_settings">'; |
|
|
|
|
$form->display(); |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
Display::display_footer(); |
|
|
|
|
Display::display_footer(); |
|
|
|
|