diff --git a/public/main/lp/learnpath.class.php b/public/main/lp/learnpath.class.php index e95b09c543..a8d2c677bd 100644 --- a/public/main/lp/learnpath.class.php +++ b/public/main/lp/learnpath.class.php @@ -4540,10 +4540,10 @@ class learnpath public function getBuildTree($noWrapper = false, $dropElement = false): string { $mainUrl = api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?'.api_get_cidreq(); - $upIcon = ''; - $disableUpIcon = ''; - $downIcon = ''; - $previewImage = ''; + $upIcon = Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon', '', 16, get_lang('Up')); + $disableUpIcon = Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon-disabled', '', 16, get_lang('Up')); + $downIcon = Display::getMdiIcon('arrow-down-bold', 'ch-tool-icon', '', 16, get_lang('Down')); + $previewImage = Display::getMdiIcon('magnify-plus-outline', 'ch-tool-icon', '', 16, get_lang('Preview')); $lpItemRepo = Container::getLpItemRepository(); $itemRoot = $lpItemRepo->getRootItem($this->get_id()); @@ -4592,7 +4592,7 @@ class learnpath $moveIcon = ''; if (TOOL_LP_FINAL_ITEM !== $type) { $moveIcon .= ''; - $moveIcon .= ''; + $moveIcon .= Display::getMdiIcon('cursor-move', 'ch-tool-icon', '', 16, get_lang('Move')); $moveIcon .= ''; } @@ -4602,7 +4602,7 @@ class learnpath case 'chapter': case 'folder': case 'dir': - $icon = ''; + $icon = Display::getMdiIcon('bookmark-multiple', 'ch-tool-icon', '', 16); break; default: $icon = Display::return_icon( @@ -4628,7 +4628,7 @@ class learnpath $url = $mainUrl.'&view=build&id='.$itemId.'&lp_id='.$lpId; $preRequisitesIcon = Display::url( - '', + Display::getMdiIcon('graph', 'ch-tool-icon', '', 16, get_lang('Prerequisites')), $url.'&action=edit_item_prereq', ['class' => ''] ); @@ -4637,7 +4637,7 @@ class learnpath href="'.$mainUrl.'&action=edit_item&view=build&id='.$itemId.'&lp_id='.$lpId.'&path_item='.$node['path'].'" class="" >'; - $editIcon .= ''; + $editIcon .= Display::getMdiIcon('pencil', 'ch-tool-icon', '', 16, get_lang('Edit section description/name')); $editIcon .= ''; $orderIcons = ''; /*if ('final_item' !== $type) { @@ -4659,7 +4659,7 @@ class learnpath href="javascript:void(0);" onclick="return deleteItem(this);" class="">'; - $deleteIcon .= ''; + $deleteIcon .= Display::getMdiIcon('delete', 'ch-tool-icon', '', 16, get_lang('Delete section')); $deleteIcon .= ''; $extra = ''; @@ -4738,12 +4738,12 @@ class learnpath $lpId = $this->lp_id; if (!isset($extraField['backTo']) && empty($extraField['backTo'])) { $back = Display::url( - '', + Display::getMdiIcon('arrow-left-bold-box', 'ch-tool-icon', '', 32, get_lang('Back to learning paths')), 'lp_controller.php?'.api_get_cidreq() ); } else { $back = Display::url( - '', + Display::getMdiIcon('arrow-left-bold-box', 'ch-tool-icon', '', 32, get_lang('Back')), $extraField['backTo'] ); } @@ -4763,7 +4763,7 @@ class learnpath $actionsLeft = $back; $actionsLeft .= Display::url( - '', + Display::getMdiIcon('magnify-plus-outline', 'ch-tool-icon', '', 32, get_lang('Preview')), 'lp_controller.php?'.api_get_cidreq().'&'.http_build_query([ 'action' => 'view', 'lp_id' => $lpId, @@ -4790,7 +4790,7 @@ class learnpath $request = api_request_uri(); if (false === strpos($request, 'edit')) { $actionsLeft .= Display::url( - '', + Display::getMdiIcon('hammer-screwdriver', 'ch-tool-icon', '', 32, get_lang('Course settings')), 'lp_controller.php?'.api_get_cidreq().'&'.http_build_query([ 'action' => 'edit', 'lp_id' => $lpId, @@ -4803,7 +4803,7 @@ class learnpath in_array($action, ['add_audio'], true) ) { $actionsLeft .= Display::url( - '', + Display::getMdiIcon('pencil', 'ch-tool-icon', '', 32, get_lang('Edit')), 'lp_controller.php?'.http_build_query([ 'action' => 'build', 'lp_id' => $lpId, @@ -4815,7 +4815,7 @@ class learnpath if (1 == $this->subscribeUsers && $subscriptionSettings['allow_add_users_to_lp']) { $actionsLeft .= Display::url( - '', + Display::getMdiIcon('account-multiple-plus', 'ch-tool-icon', '', 32, get_lang('Subscribe users to learning path')), api_get_path(WEB_CODE_PATH)."lp/lp_subscribe_users.php?lp_id=$lpId&".api_get_cidreq() ); } @@ -4866,7 +4866,7 @@ class learnpath if (api_is_platform_admin() && isset($extraField['authorlp'])) { $actionsLeft .= Display::url( - '', + Display::getMdiIcon('account-multiple-plus', 'ch-tool-icon', '', 32, get_lang('Author')), 'lp_controller.php?'.api_get_cidreq().'&'.http_build_query([ 'action' => 'author_view', 'lp_id' => $lpId, @@ -5289,13 +5289,13 @@ class learnpath $finish = $this->getFinalItemForm(); $size = ICON_SIZE_MEDIUM; //ICON_SIZE_BIG $headers = [ - '', - '', - '', - '', - '', - '', - '', + Display::getMdiIcon('bookshelf', 'ch-tool-icon-gradient', '', 64, get_lang('Documents')), + Display::getMdiIcon('ballot', 'ch-tool-icon-gradient', '', 64, get_lang('Tests')), + Display::getMdiIcon('file-link', 'ch-tool-icon-gradient', '', 64, get_lang('Links')), + Display::getMdiIcon('inbox-full', 'ch-tool-icon-gradient', '', 64, get_lang('Assignments')), + Display::getMdiIcon('comment-quote', 'ch-tool-icon-gradient', '', 64, get_lang('Forums')), + Display::getMdiIcon('bookmark-multiple', 'ch-tool-icon-gradient', '', 64, get_lang('Add section')), + Display::getMdiIcon('certificate', 'ch-tool-icon-gradient', '', 64, get_lang('Certificate')), ]; $content = ''; /*$content = Display::return_message( @@ -6482,7 +6482,7 @@ class learnpath get_lang('Preview') ); $quizIcon = Display::return_icon('quiz.png', '', [], ICON_SIZE_TINY); - $moveIcon = ''; + $moveIcon = Display::getMdiIcon('cursor-move', 'ch-tool-icon', '', 16, get_lang('Move')); $exerciseUrl = api_get_path(WEB_CODE_PATH).'exercise/overview.php?'.api_get_cidreq(); foreach ($exercises as $exercise) { $exerciseId = $exercise->getIid(); @@ -6544,7 +6544,7 @@ class learnpath $courseIdReq = api_get_cidreq(); $userInfo = api_get_user_info(); - $moveEverywhereIcon = ''; + $moveEverywhereIcon = Display::getMdiIcon('cursor-move', 'ch-tool-icon', '', 16, get_lang('Move')); $categorizedLinks = []; $categories = []; @@ -6666,7 +6666,7 @@ class learnpath data-id="'.$workId.'" >'; $return .= ''; - $return .= ''; + $return .= Display::getMdiIcon('cursor-move', 'ch-tool-icon', '', 16, get_lang('Move')); $return .= ' '; $return .= $icon; @@ -6756,7 +6756,7 @@ class learnpath } } '; - $moveIcon = ''; + $moveIcon = Display::getMdiIcon('cursor-move', 'ch-tool-icon', '', 16, get_lang('Move')); foreach ($a_forums as $forum) { $forumId = $forum->getIid(); $title = Security::remove_XSS($forum->getForumTitle()); diff --git a/public/main/lp/lp_add.php b/public/main/lp/lp_add.php index d4d3d6253d..1800b16905 100644 --- a/public/main/lp/lp_add.php +++ b/public/main/lp/lp_add.php @@ -223,7 +223,7 @@ if ($form->validate()) { Display::display_header(get_lang('Create new learning path'), 'Path'); $actions = ''. - '' + Display::getMdiIcon('arrow-left-bold-box', 'ch-tool-icon', '', 32, get_lang('Return to learning paths')) .''; echo Display::toolbarAction('toolbar', [$actions]); diff --git a/public/main/lp/lp_list.php b/public/main/lp/lp_list.php index a1f52d5801..4c18b435cd 100644 --- a/public/main/lp/lp_list.php +++ b/public/main/lp/lp_list.php @@ -166,13 +166,13 @@ $hideScormPdfLink = api_get_setting('hide_scorm_pdf_link'); $options = learnpath::getIconSelect(); $cidReq = api_get_cidreq(); -$defaultLpIcon = ''; +$defaultLpIcon = Display::getMdiIcon('map-market-path', 'ch-tool-icon', '', 22, get_lang('Learning path name')); -$defaultDisableLpIcon = ''; +$defaultDisableLpIcon = Display::getMdiIcon('map-marker-path', 'ch-tool-icon-disabled', '', 22, get_lang('Learning path name')); -$courseSettingsIcon = Display::getMdiIcon('hammer-screwdriver', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'); +$courseSettingsIcon = Display::getMdiIcon('hammer-screwdriver', 'ch-tool-icon', '', 22); -$courseSettingsDisableIcon = ''; +$courseSettingsDisableIcon = Display::getMdiIcon('hammer-screwdriver', 'ch-tool-icon-disabled', '', 22, get_lang('Course settings')); $enableAutoLaunch = api_get_course_setting('enable_lp_auto_launch'); $gameMode = api_get_setting('gamification_mode'); @@ -411,12 +411,12 @@ foreach ($categories as $category) { $linkText = get_lang('You didn\'t spend the minimum time required in the learning path.').' - '. $formattedLpTime.' / '. $formattedAccumulateWorkTime; - $linkMinTime = ''; + $linkMinTime = Display::getMdiIcon('alert', 'ch-tool-icon', '', 22, $linkText); } else { $linkText = get_lang('You didn\'t spend the minimum time required in the learning path.').' - '. $formattedLpTime.' / '. $formattedAccumulateWorkTime; - $linkMinTime = ''; + $linkMinTime = Display::getMdiIcon('checkbox-marked', 'ch-tool-icon', '', 22, $linkText); } $linkMinTime .= ' '.$formattedLpTime.' / '.$formattedAccumulateWorkTime.''; @@ -467,7 +467,7 @@ foreach ($categories as $category) { if ($sessionId == $details['lp_session']) { if (1 == $details['lp_type'] || 2 == $details['lp_type']) { $dsp_build = Display::url( - Display::getMdiIcon('pencil', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('pencil', 'ch-tool-icon', '' , 22), 'lp_controller.php?'.$cidReq.'&' .http_build_query( [ @@ -480,10 +480,10 @@ foreach ($categories as $category) { ['title' => htmlentities(get_lang('Edit learnpath'))] ); } else { - $dsp_build = Display::getMdiIcon('pencil-off', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'); + $dsp_build = Display::getMdiIcon('pencil-off', 'ch-tool-icon', '', 22); } } else { - $dsp_build = Display::getMdiIcon('pencil-off', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'); + $dsp_build = Display::getMdiIcon('pencil-off', 'ch-tool-icon', '', 22); } /* VISIBILITY COMMAND */ @@ -496,13 +496,13 @@ foreach ($categories as $category) { ) { if (0 == $details['lp_visibility']) { $dsp_visible = Display::url( - Display::getMdiIcon('eye-off', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('eye-off', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_visible&new_status=1", ['title' => htmlentities(get_lang('Show'))] ); } else { $dsp_visible = Display::url( - Display::getMdiIcon('eye', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('eye', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_visible&new_status=0", ['title' => htmlentities(get_lang('Hide'))] ); @@ -515,7 +515,7 @@ foreach ($categories as $category) { ); $trackingAction = Display::url( - Display::getMdiIcon('chart-box', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('chart-box', 'ch-tool-icon', '', 22), $trackingActionUrl, ['title' => get_lang('Results and feedback')] ); @@ -524,19 +524,19 @@ foreach ($categories as $category) { if ($sessionId == $details['lp_session']) { if ('i' == $details['lp_published']) { $dsp_publish = Display::url( - Display::getMdiIcon('checkbox-multiple-blank-outline', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('checkbox-multiple-blank-outline', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_publish&new_status=v", ['title' => htmlentities(get_lang('Publish on course homepage'))] ); } else { $dsp_publish = Display::url( - Display::getMdiIcon('checkbox-multiple-blank', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('checkbox-multiple-blank', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_publish&new_status=i", ['title' => htmlentities(get_lang('do not publish'))] ); } } else { - $dsp_publish = ''; + $dsp_publish = Display::getMdiIcon('checkbox-multiple-blank-outline', 'ch-tool-icon', '', 22, get_lang('do not publish')); } /* MULTIPLE ATTEMPTS OR SERIOUS GAME MODE @@ -549,7 +549,7 @@ foreach ($categories as $category) { if (1 == $details['seriousgame_mode'] && 1 == $details['lp_prevent_reinit']) { // seriousgame mode | next = single $dsp_reinit = Display::url( - Display::getMdiIcon('sync-circle', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('sync-circle', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq."&action=switch_attempt_mode&lp_id=$id", ['title' => htmlentities(get_lang('Prevent multiple attempts'))] ); @@ -559,7 +559,7 @@ foreach ($categories as $category) { ) { // single mode | next = multiple $dsp_reinit = Display::url( - Display::getMdiIcon('sync', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('sync', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq."&action=switch_attempt_mode&lp_id=$id", ['title' => htmlentities(get_lang('Allow multiple attempts'))] ); @@ -569,13 +569,13 @@ foreach ($categories as $category) { ) { // multiple mode | next = seriousgame $dsp_reinit = Display::url( - Display::getMdiIcon('sync-circle', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('sync-circle', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq."&action=switch_attempt_mode&lp_id=$id", ['title' => htmlentities(get_lang('Allow multiple attempts'))] ); } } else { - $dsp_reinit = ''; + $dsp_reinit = Display::getMdiIcon('sync', 'ch-tool-icon', '', 22, get_lang('Allow multiple attempts')); } /* SCREEN LP VIEW */ @@ -583,28 +583,28 @@ foreach ($categories as $category) { switch ($details['lp_view_mode']) { case 'fullscreen': $dsp_default_view = Display::url( - Display::getMdiIcon('fullscreen', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('fullscreen', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq.'&action=switch_view_mode&lp_id='.$id.$token_parameter, ['title' => htmlentities(get_lang('Current view mode: fullscreen'))] ); break; case 'embedded': $dsp_default_view = Display::url( - Display::getMdiIcon('fullscreen-exit', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('fullscreen-exit', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq.'&action=switch_view_mode&lp_id='.$id.$token_parameter, ['title' => htmlentities(get_lang('Current view mode: embedded'))] ); break; case 'embedframe': $dsp_default_view = Display::url( - Display::getMdiIcon('overscan', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('overscan', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq.'&action=switch_view_mode&lp_id='.$id.$token_parameter, ['title' => htmlentities(get_lang('Current view mode: external embed. Use only for embedding in external sites.'))] ); break; case 'impress': $dsp_default_view = Display::url( - Display::getMdiIcon('play-box-outline', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('play-box-outline', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq.'&action=switch_view_mode&lp_id='.$id.$token_parameter, ['title' => htmlentities(get_lang('Current view mode: Impress'))] ); @@ -612,9 +612,9 @@ foreach ($categories as $category) { } } else { if ('fullscreen' === $details['lp_view_mode']) { - $dsp_default_view = ''; + $dsp_default_view = Display::getMdiIcon('fullscreen', 'ch-tool-icon-disabled', '', 22, get_lang('Current view mode: fullscreen')); } else { - $dsp_default_view = ''; + $dsp_default_view = Display::getMdiIcon('fit-to-screen', 'ch-tool-icon-disabled', '', 22, get_lang('Current view mode: embedded')); } } @@ -622,13 +622,13 @@ foreach ($categories as $category) { if ('test' === $test_mode || api_is_platform_admin()) { if (1 == $details['lp_scorm_debug']) { $dsp_debug = Display::url( - Display::getMdiIcon('bug-check', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('bug-check', 'ch-tool-icon', '', 22), "lp_controller.php?$cidReq&action=switch_scorm_debug&lp_id=$id", ['title' => htmlentities(get_lang('Hide debug'))] ); } else { $dsp_debug = Display::url( - Display::getMdiIcon('bug-outline', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('bug-outline', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq."&action=switch_scorm_debug&lp_id=$id", ['title' => htmlentities(get_lang('Show debug'))] ); @@ -638,24 +638,24 @@ foreach ($categories as $category) { /* Export */ if (1 == $details['lp_type']) { $dsp_disk = Display::url( - Display::getMdiIcon('package', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('package', 'ch-tool-icon', '', 22), api_get_self()."?$cidReq&action=export&lp_id=$id", ['title' => htmlentities(get_lang('Export as SCORM'))] ); } elseif (2 == $details['lp_type']) { $dsp_disk = Display::url( - Display::getMdiIcon('package', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('package', 'ch-tool-icon', '', 22), api_get_self()."?$cidReq&action=export&lp_id=$id&export_name=" .api_replace_dangerous_char($name).'.zip', ['title' => htmlentities(get_lang('Export as SCORM'))] ); } else { - $dsp_disk = ''; + $dsp_disk = Display::getMdiIcon('package', 'ch-tool-icon-disabled', '', 22, get_lang('Export as SCORM')); } // Copy $copy = Display::url( - Display::getMdiIcon('text-box-plus', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('text-box-plus', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&action=copy&lp_id=$id", ['title' => htmlentities(get_lang('Copy'))] ); @@ -666,7 +666,7 @@ foreach ($categories as $category) { $subscriptionSettings['allow_add_users_to_lp'] ) { $subscribeUsers = Display::url( - Display::getMdiIcon('account-multiple-plus', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('account-multiple-plus', 'ch-tool-icon', '', 22), api_get_path(WEB_CODE_PATH)."lp/lp_subscribe_users.php?lp_id=$id&".$cidReq, ['title' => htmlentities(get_lang('Subscribe users to learning path'))] ); @@ -679,13 +679,13 @@ foreach ($categories as $category) { ) { $autolaunch_exists = true; $lp_auto_launch_icon = Display::url( - Display::getMdiIcon('rocket-launch', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('rocket-launch', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&action=auto_launch&status=0&lp_id=$id", ['title' => htmlentities(get_lang('Disable learning path auto-launch'))] ); } else { $lp_auto_launch_icon = Display::url( - Display::getMdiIcon('rocket-launch', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('rocket-launch', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&action=auto_launch&status=1&lp_id=$id", ['title' => htmlentities(get_lang('Enable learning path auto-launch'))] ); @@ -694,7 +694,7 @@ foreach ($categories as $category) { // Export to PDF $export_icon = Display::url( - Display::getMdiIcon('pdf', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('pdf', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&action=export_to_pdf&lp_id=$id", ['title' => htmlentities(get_lang('Export to PDF web pages and images'))] ); @@ -702,7 +702,7 @@ foreach ($categories as $category) { /* Delete */ if ($sessionId == $details['lp_session']) { $dsp_delete = Display::url( - Display::getMdiIcon('delete', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('delete', 'ch-tool-icon', '', 22), 'lp_controller.php?'.$cidReq."&action=delete&lp_id=$id", [ 'title' => htmlentities(get_lang('Delete')), @@ -710,7 +710,7 @@ foreach ($categories as $category) { ] ); } else { - $dsp_delete = ''; + $dsp_delete = Display::getMdiIcon('delete', 'ch-tool-icon-disabled', '', 22, get_lang('Delete')); } /* COLUMN ORDER */ @@ -718,13 +718,13 @@ foreach ($categories as $category) { if (0 == $sessionId) { if (1 == $details['lp_display_order'] && 1 != $max) { $dsp_order .= Display::url( - Display::getMdiIcon('arrow-down-bold', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('arrow-down-bold', 'ch-tool-icon', '', 22), "lp_controller.php?$cidReq&action=move_lp_down&lp_id=$id&category_id=$categoryId", ['title' => htmlentities(get_lang('Move down'))] ); } elseif ($current == $max - 1 && 1 != $max) { $dsp_order .= Display::url( - Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon', '', 22), "lp_controller.php?$cidReq&action=move_lp_up&lp_id=$id&category_id=$categoryId", ['title' => htmlentities(get_lang('Move up'))] ); @@ -732,12 +732,12 @@ foreach ($categories as $category) { $dsp_order = ''; } else { $dsp_order .= Display::url( - Display::getMdiIcon('arrow-down-bold', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('arrow-down-bold', 'ch-tool-icon', '', 22), "lp_controller.php?$cidReq&action=move_lp_down&lp_id=$id&category_id=$categoryId", ['title' => htmlentities(get_lang('Move down'))] ); $dsp_order .= Display::url( - Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon', '', 22), "lp_controller.php?$cidReq&action=move_lp_up&lp_id=$id&category_id=$categoryId", ['title' => htmlentities(get_lang('Move up'))] ); @@ -747,7 +747,7 @@ foreach ($categories as $category) { if (2 == $details['lp_type']) { $url = api_get_path(WEB_CODE_PATH).'lp/lp_update_scorm.php?'.$cidReq."&lp_id=$id"; $actionUpdateScormFile = Display::url( - Display::getMdiIcon('upload', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('upload', 'ch-tool-icon', '', 22), $url, ['title' => htmlentities(get_lang('Update'))] ); @@ -755,7 +755,7 @@ foreach ($categories as $category) { if ($allowExportCourseFormat) { $actionExportToCourseBuild = Display::url( - Display::getMdiIcon('download', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('download', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&action=export_to_course_build&lp_id=$id", ['title' => htmlentities(get_lang('Export to Chamilo format'))] ); @@ -791,7 +791,7 @@ foreach ($categories as $category) { } else { // Student $export_icon = Display::url( - Display::getMdiIcon('file-pdf-box', 'ch-tool-icon', 'font-size: 22px; width: 22px; height: 22px;'), + Display::getMdiIcon('file-pdf-box', 'ch-tool-icon', '', 22), api_get_self().'?'.$cidReq."&action=export_to_pdf&lp_id=$id", ['title' => htmlentities(get_lang('Export to PDF'))] ); @@ -908,7 +908,7 @@ if ($ending && $allLpTimeValid && api_get_configuration_value('download_files_af $template = new Template($nameTools); $template->assign('first_session_category', $firstSessionCategoryId); -$template->assign('session_star_icon', ''); +$template->assign('session_star_icon', Display::getMdiIcon('star', 'ch-tool-icon', '', 22, get_lang('Session'))); $template->assign('subscription_settings', $subscriptionSettings); $template->assign('is_allowed_to_edit', $is_allowed_to_edit); $template->assign('is_invitee', $isInvitee); @@ -927,7 +927,7 @@ $template->assign('no_data', ''); if (false === $lpIsShown && api_is_allowed_to_edit()) { $noData = Display::noDataView( get_lang('Learning paths'), - '', + Display::getMdiIcon('map-marker-path', 'ch-tool-icon-gradient', '', 128, get_lang('Create new learning path')), get_lang('Create new learning path'), api_get_self().'?'.api_get_cidreq().'&action=add_lp' );