@@ 196-199 (lines=4) @@ | ||
193 | Display::return_icon('invisible.png', get_lang('Show'), array(), ICON_SIZE_SMALL).'</a>'; |
|
194 | $attendance[2] = '<span class="muted">'.$attendance[2].'</span>'; |
|
195 | } |
|
196 | if ($allowDelete === 'true') { |
|
197 | $actions .= '<a href="index.php?' . api_get_cidreq() . '&action=attendance_delete&attendance_id=' . $attendance[0]. '">' . |
|
198 | Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
199 | } |
|
200 | } else { |
|
201 | $is_locked_attendance = self::is_locked_attendance($attendance[0]); |
|
202 | if ($is_locked_attendance) { |
|
@@ 217-220 (lines=4) @@ | ||
214 | Display::return_icon('invisible.png', get_lang('Show'), array(), ICON_SIZE_SMALL).'</a>'; |
|
215 | $attendance[2] = '<span class="muted">'.$attendance[2].'</span>'; |
|
216 | } |
|
217 | if ($allowDelete === 'true') { |
|
218 | $actions .= ' <a href="index.php?' . api_get_cidreq() . '&action=attendance_delete&attendance_id=' . $attendance[0].'">' . |
|
219 | Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
220 | } |
|
221 | } |
|
222 | } |
|
223 |
@@ 51-54 (lines=4) @@ | ||
48 | ||
49 | $header .= '<a href="' . api_get_self() . '?'.api_get_cidreq().'&print=&selecteval=' . $evalobj->get_id() . '" target="_blank">' . |
|
50 | Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
51 | } else { |
|
52 | $header .= '<a href="gradebook_view_result.php?'.api_get_cidreq().'&selecteval=' . Security::remove_XSS($_GET['selecteval']) . '"> ' . |
|
53 | Display::return_icon(('back.png'), get_lang('FolderView'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
54 | } |
|
55 | $header .= '</div>'; |
|
56 | } |
|
57 |
@@ 611-614 (lines=4) @@ | ||
608 | if (in_array($action, array('add', 'modify', 'view'))) { |
|
609 | $actionsLeft .= "<a href='".api_get_self()."?".api_get_cidreq()."&origin=".$origin."'>". |
|
610 | Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM)."</a>"; |
|
611 | } else { |
|
612 | $actionsLeft .= "<a href='".api_get_self()."?".api_get_cidreq()."&action=add&origin=".$origin."'>". |
|
613 | Display::return_icon('new_announce.png', get_lang('AddAnnouncement'), '', ICON_SIZE_MEDIUM)."</a>"; |
|
614 | } |
|
615 | $show_actions = true; |
|
616 | } else { |
|
617 | if (in_array($action, array('view'))) { |
@@ 5250-5253 (lines=4) @@ | ||
5247 | Display::return_icon($forcedownload_icon, get_lang('Download'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
5248 | } |
|
5249 | } |
|
5250 | } else { |
|
5251 | $force_download_html = ($size == 0) ? '' : '<a href="' . $forcedownload_link . '" style="float:right"' . $prevent_multiple_click . '>' . |
|
5252 | Display::return_icon($forcedownload_icon, get_lang('Download'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
5253 | } |
|
5254 | ||
5255 | // Copy files to users myfiles |
|
5256 | if (api_get_setting('allow_social_tool') == 'true' && |
|
@@ 5621-5624 (lines=4) @@ | ||
5618 | //Edit button |
|
5619 | if (in_array($path, DocumentManager::get_system_folders())) { |
|
5620 | $modify_icons = Display::return_icon('edit_na.png', get_lang('Modify'), '', ICON_SIZE_SMALL); |
|
5621 | } elseif ($is_certificate_mode ) { |
|
5622 | // gradebook category doesn't seem to be taken into account |
|
5623 | $modify_icons = '<a href="edit_document.php?' . api_get_cidreq() . '&id=' . $document_id . '&curdirpath=/certificates">' . Display::return_icon('edit.png', get_lang('Modify'), '', ICON_SIZE_SMALL) . '</a>'; |
|
5624 | } else { |
|
5625 | if (api_get_session_id()) { |
|
5626 | if ($document_data['session_id'] == api_get_session_id()) { |
|
5627 | if ($extension == 'svg' && api_browser_support('svg') && api_get_setting('enabled_support_svg') == 'true') { |
|
@@ 5728-5740 (lines=13) @@ | ||
5725 | // @TODO: add prompt to select a format target |
|
5726 | if (in_array($path, DocumentManager::get_system_folders())) { |
|
5727 | // nothing to do |
|
5728 | } else { |
|
5729 | if ($usePpt2lp && $formatType) { |
|
5730 | $modify_icons .= ' <a class="convertAction" href="#" ' . |
|
5731 | 'data-documentId = ' . $document_id . |
|
5732 | ' data-formatType = ' . $formatType . '>' . |
|
5733 | Display::return_icon( |
|
5734 | 'convert.png', |
|
5735 | get_lang('Convert'), |
|
5736 | array(), |
|
5737 | ICON_SIZE_SMALL |
|
5738 | ) . '</a>'; |
|
5739 | } |
|
5740 | } |
|
5741 | } |
|
5742 | ||
5743 | if ($type == 'file' && ($extension == 'html' || $extension == 'htm')) { |