Minor - remove display_icon calls

pull/3984/head
Julio 5 years ago
parent 4d6d471773
commit b67b583d1f
  1. 2
      public/main/admin/configure_extensions.php
  2. 2
      public/main/admin/ldap_import_students.php
  3. 8
      public/main/course_info/maintenance.php
  4. 2
      public/main/gradebook/lib/GradebookUtils.php
  5. 4
      public/main/session/session_category_list.php
  6. 4
      public/main/session/session_course_user_list.php
  7. 4
      public/main/survey/survey.php
  8. 2
      public/plugin/search_course/lib/search_course_widget.class.php

@ -151,7 +151,7 @@ Display::display_header($nameTool);
</div>
<div class="row">
<div class="col-md-5">
<?php Display::display_icon('screenshot_ppt2lp.jpg', get_lang('Chamilo RAPID'), ['class' => 'img-responsive']); ?>
<?php echo Display::return_icon('screenshot_ppt2lp.jpg', get_lang('Chamilo RAPID'), ['class' => 'img-responsive']); ?>
</div>
<div class="col-md-7">
<form method="POST" class="form-horizontal" action="<?php echo api_get_self(); ?>">

@ -51,7 +51,7 @@ $course = $_POST['course'];
if (empty($annee) && empty($course)) {
Display::display_header($tool_name);
echo '<div style="align:center">';
Display::display_icon('group.gif', get_lang('Select a filter to find a matching string at the end of the OU attribute'));
echo Display::return_icon('group.gif', get_lang('Select a filter to find a matching string at the end of the OU attribute'));
echo get_lang('Select a filter to find a matching string at the end of the OU attribute');
//echo '<em>'.get_lang('In order to do this, you must enter the year, the component and the component's step').'</em><br />';
///echo get_lang('Follow each of these steps, step by step').'<br />';

@ -23,7 +23,7 @@ echo Display::page_header($nameTools);
?>
<div class="sectiontitle">
<?php Display::display_icon('save_import.gif', get_lang('Backup and import and import')); ?>&nbsp;&nbsp;
<?php echo Display::return_icon('save_import.gif', get_lang('Backup and import and import')); ?>&nbsp;&nbsp;
<?php echo get_lang('Backup and import and import'); ?>
</div>
<div class="sectioncomment">
@ -50,7 +50,7 @@ echo Display::page_header($nameTools);
</div>
<div class="sectiontitle">
<?php Display::display_icon('copy.gif', get_lang('Copy course')); ?>&nbsp;&nbsp;
<?php echo Display::return_icon('copy.gif', get_lang('Copy course')); ?>&nbsp;&nbsp;
<a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Copy course'); ?></a>
</div>
@ -58,7 +58,7 @@ echo Display::page_header($nameTools);
</div>
<div class="sectiontitle">
<?php Display::display_icon('tool_delete.gif', get_lang('Empty this course')); ?>&nbsp;&nbsp;
<?php echo Display::return_icon('delete.png', get_lang('Empty this course')); ?>&nbsp;&nbsp;
<a href="../coursecopy/recycle_course.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Empty this course'); ?>
</a>
@ -66,7 +66,7 @@ echo Display::page_header($nameTools);
<div class="sectioncomment"><?php echo get_lang('This tool empties the course. It removes documents, forums, links. And allows you to select what parts you want to remove or decide to remove the whole.'); ?></div>
<div class="sectiontitle">
<?php Display::display_icon('delete.gif', get_lang('Completely delete this course')); ?>&nbsp;&nbsp;
<?php echo Display::return_icon('delete.png', get_lang('Completely delete this course')); ?>&nbsp;&nbsp;
<a href="../course_info/delete_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('Completely delete this course'); ?>
</a>
</div>

@ -1129,7 +1129,7 @@ class GradebookUtils
$badges[] = Display::badge($value, $class);
}
return Display::badge_group($badges);
return Display::badgeGroup($badges);
}
/**

@ -204,14 +204,14 @@ if (isset($_GET['search']) && 'advanced' === $_GET['search']) {
</td>
<td>
<a href="session_category_edit.php?&id=<?php echo $enreg['id']; ?>">
<?php Display::display_icon('edit.png', get_lang('Edit'), [], ICON_SIZE_SMALL); ?>
<?php echo Display::return_icon('edit.png', get_lang('Edit'), [], ICON_SIZE_SMALL); ?>
</a>
<a href="<?php echo api_get_self(
); ?>?sort=<?php echo $sort; ?>&action=delete_off_session&idChecked=<?php echo $enreg['id']; ?>"
onclick="if(!confirm('<?php echo get_lang(
'Please confirm your choice'
); ?>')) return false;">
<?php Display::display_icon('delete.png', get_lang('Delete'), [], ICON_SIZE_SMALL); ?>
<?php echo Display::return_icon('delete.png', get_lang('Delete'), [], ICON_SIZE_SMALL); ?>
</a>
</td>
</tr>

@ -209,14 +209,14 @@ echo Display::page_header($tool_name);
?>
<a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=delete&idChecked[]=<?php echo $enreg['user_id']; ?>"
onclick="javascript:if(!confirm('<?php echo get_lang('Please confirm your choice'); ?>')) return false;">
<?php Display::display_icon('delete.png', get_lang('Delete')); ?>
<?php echo Display::return_icon('delete.png', get_lang('Delete')); ?>
</a>
<?php
} else {
?>
<a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=add&idChecked[]=<?php echo $enreg['user_id']; ?>"
onclick="javascript:if(!confirm('<?php echo get_lang('Please confirm your choice'); ?>')) return false;">
<?php Display::display_icon('add.png', get_lang('Add'), [], ICON_SIZE_SMALL); ?>
<?php echo Display::return_icon('add.png', get_lang('Add'), [], ICON_SIZE_SMALL); ?>
</a>
<?php
} ?>

@ -343,7 +343,7 @@ while ($row = Database::fetch_array($result, 'ASSOC')) {
api_get_cidreq().'&action=moveup&survey_id='.$survey_id.'&question_id='.$questionId.'">'.
Display::return_icon('up.png', get_lang('Move up')).'</a>';
} else {
Display::display_icon('up_na.png', '&nbsp;', '', ICON_SIZE_SMALL);
echo Display::return_icon('up_na.png', '&nbsp;', '', ICON_SIZE_SMALL);
}
if ($question_counter < $question_counter_max) {
echo '<a
@ -351,7 +351,7 @@ while ($row = Database::fetch_array($result, 'ASSOC')) {
'survey/survey.php?'.api_get_cidreq().'&action=movedown&survey_id='.$survey_id.'&question_id='.$questionId.'">'.
Display::return_icon('down.png', get_lang('Move down')).'</a>';
} else {
Display::display_icon('down_na.png', '&nbsp;', '', ICON_SIZE_SMALL);
echo Display::return_icon('down_na.png', '&nbsp;', '', ICON_SIZE_SMALL);
}
}
echo ' </td>';

@ -231,7 +231,7 @@ EOT;
echo '<tr><td><b><a href="'.$href.'">'."$title</a></b><br/>$details</td><td>";
if (!api_is_anonymous()) {
if ($course['registration_code']) {
Display::display_icon(
echo Display::return_icon(
'passwordprotected.png',
'',
['style' => 'float:left;']

Loading…
Cancel
Save