diff --git a/public/main/user/add_users_to_session.php b/public/main/user/add_users_to_session.php
index 7758bdee4f..9aef768350 100644
--- a/public/main/user/add_users_to_session.php
+++ b/public/main/user/add_users_to_session.php
@@ -469,15 +469,15 @@ if ('true' === $allowTutors) {
if ('multiple' === $add_type) {
$link_add_type_unique = ''.
- Display::return_icon('single.gif').get_lang('Single registration').'';
- $link_add_type_multiple = Display::return_icon('multiple.gif').get_lang('Multiple registration');
+ Display::getMdiIcon('note-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL).get_lang('Single registration').'';
+ $link_add_type_multiple = Display::getMdiIcon('note-multiple-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL).get_lang('Multiple registration');
} else {
- $link_add_type_unique = Display::return_icon('single.gif').get_lang('Single registration');
+ $link_add_type_unique = Display::getMdiIcon('note-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL).get_lang('Single registration');
$link_add_type_multiple = ''.
- Display::return_icon('multiple.gif').get_lang('Multiple registration').'';
+ Display::getMdiIcon('note-multiple-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL).get_lang('Multiple registration').'';
}
$link_add_group = ''.
- Display::return_icon('multiple.gif', get_lang('Enrolment by classes')).get_lang('Enrolment by classes').''; ?>
+ Display::getMdiIcon('note-multiple-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Enrolment by classes')).get_lang('Enrolment by classes').''; ?>
| |
diff --git a/public/main/user/class.php b/public/main/user/class.php
index 558ea4217a..14c65e2c53 100644
--- a/public/main/user/class.php
+++ b/public/main/user/class.php
@@ -2,6 +2,8 @@
/* For licensing terms, see /license.txt */
+use Chamilo\CoreBundle\Component\Utils\ActionIcon;
+
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_COURSES;
@@ -44,10 +46,10 @@ $sessionId = api_get_session_id();
if (api_is_allowed_to_edit()) {
if ('registered' === $type) {
$actionsLeft .= ''.
- Display::return_icon('add-class.png', get_lang('Add classes to a course'), [], ICON_SIZE_MEDIUM).'';
+ Display::getMdiIcon(ActionIcon::ADD, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Add classes to a course')).'';
} else {
$actionsLeft .= ''.
- Display::return_icon('back.png', get_lang('Classes'), [], ICON_SIZE_MEDIUM).'';
+ Display::getMdiIcon(ActionIcon::BACK, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Classes')).'';
$form = new FormValidator(
'groups',
diff --git a/public/main/user/resume_session.php b/public/main/user/resume_session.php
index 24f18f5b92..e546a474a5 100644
--- a/public/main/user/resume_session.php
+++ b/public/main/user/resume_session.php
@@ -10,6 +10,7 @@ use Chamilo\CoreBundle\Component\Utils\NameConvention;
use Chamilo\CoreBundle\Entity\Session;
use Chamilo\CoreBundle\Entity\SessionRelCourseRelUser;
use Chamilo\CoreBundle\Framework\Container;
+use Chamilo\CoreBundle\Component\Utils\ActionIcon;
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
@@ -98,9 +99,7 @@ if ('true' === $allowTutors) {
Display::display_header($tool_name);
echo Display::page_header(
- Display::return_icon(
- 'session.png',
- get_lang('Session')
+ Display::getMdiIcon('google-classroom', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Session')
).' '.$session->getName()
);
echo Display::page_subheader(get_lang('General properties').$url); ?>
@@ -257,8 +256,8 @@ if ('true' === $allowTutors) {
if ($multiple_url_is_on) {
if ($user['access_url_id'] != $url_id) {
- $user_link .= ' '.Display::return_icon('warning.png', get_lang('Users not added to the URL'), [], ICON_SIZE_SMALL);
- $add = Display::return_icon('add.png', get_lang('Add users to an URL'), [], ICON_SIZE_SMALL);
+ $user_link .= ' '.Display::getMdiIcon('alert', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Users not added to the URL'));
+ $add = Display::getMdiIcon(ActionIcon::ADD, get_lang('Add users to an URL'));
$link_to_add_user_in_url = ''.$add.'';
}
}
@@ -269,11 +268,11 @@ if ('true' === $allowTutors) {
'.
- Display::return_icon('statistics.gif', get_lang('Reporting')).'
+ Display::getMdiIcon('chart-box', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Reporting')).'
'.
- Display::return_icon('course.png', get_lang('Block user from courses in this session')).'
+ Display::getMdiIcon('book-open-page-variant', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Block user from courses in this session')).'
'.
- Display::return_icon('delete.png', get_lang('Delete')).'
+ Display::getMdiIcon(ActionIcon::DELETE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Delete')).'
'.$link_to_add_user_in_url.'
|
';
diff --git a/public/main/user/session_list.php b/public/main/user/session_list.php
index d2bbae6cb3..bc9bddf8ea 100644
--- a/public/main/user/session_list.php
+++ b/public/main/user/session_list.php
@@ -5,6 +5,9 @@
/**
* List sessions in an efficient and usable way.
*/
+
+use Chamilo\CoreBundle\Component\Utils\ActionIcon;
+
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
@@ -74,7 +77,7 @@ $extra_params['height'] = 'auto';
//With this function we can add actions to the jgrid (edit, delete, etc)
$action_links = 'function action_formatter(cellvalue, options, rowObject) {
- return \' '.Display::return_icon('user_subscribe_session.png', get_lang('Subscribe users to this session'), '', ICON_SIZE_SMALL).''.
+ return \' '.Display::getMdiIcon('account-plus-outline', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Subscribe users to this session')).''.
'\';
}';
?>
@@ -139,11 +142,11 @@ $(function() {
if (api_is_platform_admin()) {
echo '';
echo '
'.
- Display::return_icon('new_session.png', get_lang('Add a training session'), '', ICON_SIZE_MEDIUM).'';
+ Display::getMdiIcon(ActionIcon::ADD, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Add a training session')).'';
echo '
'.
- Display::return_icon('session_to_category.png', get_lang('Add a training sessionsInCategories'), '', ICON_SIZE_MEDIUM).'';
+ Display::getMdiIcon(ActionIcon::CREATE_CATEGORY, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Add a training sessionsInCategories')).'';
echo '
'.
- Display::return_icon('folder.png', get_lang('Sessions categories list'), '', ICON_SIZE_MEDIUM).'';
+ Display::getMdiIcon('file-tree-outline', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Sessions categories list')).'';
echo '
';
}
echo Display::grid_html('sessions');
diff --git a/public/main/user/subscribe_user.php b/public/main/user/subscribe_user.php
index b6d5527026..ac77f90950 100644
--- a/public/main/user/subscribe_user.php
+++ b/public/main/user/subscribe_user.php
@@ -4,6 +4,7 @@
use Chamilo\CoreBundle\Entity\ExtraField;
use ExtraField as ExtraFieldModel;
+use Chamilo\CoreBundle\Component\Utils\ActionIcon;
/**
* This script allows teachers to subscribe existing users
@@ -185,7 +186,7 @@ $actionsLeft = Display::url(
if (isset($_GET['subscribe_user_filter_value']) && !empty($_GET['subscribe_user_filter_value'])) {
$actionsLeft .= ''.
- Display::return_icon('clean_group.gif').' '.get_lang('Clear filter results').'';
+ Display::getMdiIcon(ActionIcon::RESET, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Clear filter results')).' '.get_lang('Clear filter results').'';
}
$extraForm = '';
if ('true' === api_get_setting('ProfilingFilterAddingUsers')) {
diff --git a/public/main/user/user.php b/public/main/user/user.php
index 4b9b8708bf..c772583e89 100644
--- a/public/main/user/user.php
+++ b/public/main/user/user.php
@@ -4,6 +4,7 @@
use Chamilo\CoreBundle\Entity\Session;
use Chamilo\CoreBundle\Framework\Container;
+use Chamilo\CoreBundle\Component\Utils\ActionIcon;
/**
* This script displays a list of the users of the current course.
@@ -591,7 +592,7 @@ if ($canRead) {
$selectedTab = 1;
$url = api_get_path(WEB_CODE_PATH).'user/subscribe_user.php?'.api_get_cidreq().'&type='.STUDENT;
$icon = Display::url(
- Display::return_icon('add-user.png', get_lang('Add'), [], ICON_SIZE_MEDIUM),
+ Display::getMdiIcon(ActionIcon::ADD_USER, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Add')),
$url
);
break;
@@ -599,7 +600,7 @@ if ($canRead) {
$selectedTab = 2;
$url = api_get_path(WEB_CODE_PATH).'user/subscribe_user.php?'.api_get_cidreq().'&type='.COURSEMANAGER;
$icon = Display::url(
- Display::return_icon('add-teacher.png', get_lang('Add'), [], ICON_SIZE_MEDIUM),
+ Display::getMdiIcon(ActionIcon::ADD_USER, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Add')),
$url
);
break;
@@ -612,19 +613,19 @@ if ($canRead) {
if ($canRead) {
$actionsLeft .= ''.
- Display::return_icon('export_csv.png', get_lang('CSV export'), [], ICON_SIZE_MEDIUM).' ';
+ Display::getMdiIcon('export_csv', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('CSV export')).' ';
$actionsLeft .= ''.
- Display::return_icon('export_excel.png', get_lang('Excel export'), [], ICON_SIZE_MEDIUM).' ';
+ Display::getMdiIcon('export_excel', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Excel export')).' ';
}
if ($canEditUsers && $canEdit) {
$actionsLeft .= ''.
- Display::return_icon('import_csv.png', get_lang('Import users list'), [], ICON_SIZE_MEDIUM).' ';
+ Display::getMdiIcon('import_csv', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Import users list')).' ';
}
if ($canRead) {
$actionsLeft .= ''.
- Display::return_icon('pdf.png', get_lang('Export to PDF'), [], ICON_SIZE_MEDIUM).' ';
+ Display::getMdiIcon('pdf', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Export to PDF')).' ';
}
// Build search-form
@@ -1021,7 +1022,7 @@ function modify_filter($user_id, $row, $data)
if ($is_allowed_to_track) {
$result .= '
- '.Display::return_icon('statistics.png', get_lang('Reporting')).'
+ '.Display::getMdiIcon('statistics', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Reporting')).'
';
}
@@ -1030,7 +1031,7 @@ function modify_filter($user_id, $row, $data)
if (api_is_platform_admin()) {
$result .= ' '.
- Display::return_icon('login_as.png', get_lang('Login as')).' ';
+ Display::getMdiIcon('login_as', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Login as')).' ';
}
if (api_is_allowed_to_edit(null, true)) {
@@ -1054,7 +1055,7 @@ function modify_filter($user_id, $row, $data)
$result .= ''.
- Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL).
+ Display::getMdiIcon(ActionIcon::EDIT, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Edit')).
' ';
}