Learnpath: Change icon and help text for final item -refs BT#20362

pull/4550/head
NicoDucou 3 years ago
parent 53f453dca6
commit 03c7b4750a
  1. BIN
      main/img/flag_checkered.png
  2. BIN
      main/img/icons/128/flag_checkered.png
  3. BIN
      main/img/icons/16/flag_checkered.png
  4. BIN
      main/img/icons/22/flag_checkered.png
  5. BIN
      main/img/icons/32/flag_checkered.png
  6. BIN
      main/img/icons/48/flag_checkered.png
  7. BIN
      main/img/icons/64/flag_checkered.png
  8. 1
      main/img/icons/svg/flag_checkered.svg
  9. 2
      main/lp/final_item_template/template.html
  10. 18
      main/lp/learnpath.class.php

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.4,6H20V16H13L12.6,14H7V21H5V4H14L14.4,6M14,14H16V12H18V10H16V8H14V10L13,8V6H11V8H9V6H7V8H9V10H7V12H9V10H11V12H13V10L14,12V14M11,10V8H13V10H11M14,10H16V12H14V10Z" /></svg>

After

Width:  |  Height:  |  Size: 243 B

@ -1,5 +1,3 @@
<div>
Congratulations! You have finished this learning path
</div>
((certificate)) <br />
((skill))

@ -6344,7 +6344,7 @@ class learnpath
$icon = Display::return_icon('lp_'.$icon_name.'.gif');
} else {
if ($arrLP[$i]['item_type'] === TOOL_LP_FINAL_ITEM) {
$icon = Display::return_icon('certificate.png');
$icon = Display::return_icon('flag_checkered.png');
} elseif (TOOL_XAPI === $arrLP[$i]['item_type']) {
$icon = Display::return_icon('import_scorm.png');
} elseif (TOOL_SURVEY === $arrLP[$i]['item_type']) {
@ -7714,7 +7714,7 @@ class learnpath
$items[] = $xApiPlugin->getLpResourceBlock($this->lp_id);
}
$headers[] = Display::return_icon('certificate.png', get_lang('Certificate'), [], ICON_SIZE_BIG);
$headers[] = Display::return_icon('flag_checkered.png', get_lang('Certificate'), [], ICON_SIZE_BIG);
$items[] = $finish;
echo Display::return_message(get_lang('ClickOnTheLearnerViewToSeeYourLearningPath'), 'normal');
@ -13493,13 +13493,6 @@ EOD;
$form = new FormValidator('final_item', 'POST', $url);
$form->addText('title', get_lang('Title'));
$form->addButtonSave($buttonText);
$form->addHtml(
Display::return_message(
'Variables :</br></br> <b>((certificate))</b> </br> <b>((skill))</b>',
'normal',
false
)
);
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('&nbsp;{label}{element}', 'content_lp_certificate');
@ -13512,6 +13505,13 @@ EOD;
$editorConfig,
true
);
$form->addHtml(
Display::return_message(
get_lang('LPEndStepAddTagsToShowCertificateOrSkillAutomatically') . '</br></br> <b>((certificate))</b> </br> <b>((skill))</b>',
'normal',
false
)
);
$form->addHidden('action', 'add_final_item');
$form->addHidden('path', Session::read('pathItem'));
$form->addHidden('previous', $this->get_last());

Loading…
Cancel
Save