Code Duplication    Length = 4-4 lines in 3 locations

main/inc/lib/document.lib.php 1 location

@@ 5384-5387 (lines=4) @@
5381
                    Display::return_icon('pdf.png', get_lang('Export2PDF'), array(), ICON_SIZE_SMALL) . '</a> ';
5382
            }
5383
5384
            if ($is_browser_viewable_file) {
5385
                $open_in_new_window_link = '<a href="' . $www . str_replace('%2F', '/', $url_path) . '?' . $courseParams . '" style="float:right"' . $prevent_multiple_click . ' target="_blank">' .
5386
                    Display::return_icon('open_in_new_window.png', get_lang('OpenInANewWindow'), array(), ICON_SIZE_SMALL) . '&nbsp;&nbsp;</a>';
5387
            }
5388
5389
            if ($filetype == 'file') {
5390
                // Sound preview with jplayer

main/admin/user_information.php 1 location

@@ 309-312 (lines=4) @@
306
                '<a href="'.$courseInfo['course_public_url'].'?id_session='.$id_session.'">'.
307
                Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'</a>';
308
309
            if ($my_course['status'] == STUDENT) {
310
                $tools .= '<a href="user_information.php?action=unsubscribeSessionCourse&course_code='.$courseInfo['code'].'&user_id='.$userId.'&id_session='.$id_session.'">'.
311
                    Display::return_icon('delete.png', get_lang('Delete')).'</a>';
312
            }
313
314
            $timeSpent = api_time_to_hms(
315
                Tracking :: get_time_spent_on_the_course(

main/work/work.lib.php 1 location

@@ 2061-2064 (lines=4) @@
2058
                $link_to_download = null;
2059
2060
                // If URL is present then there's a file to download keep BC.
2061
                if ($work['contains_file'] || !empty($work['url'])) {
2062
                    $link_to_download = '<a href="'.$url.'download.php?id='.$item_id.'&'.api_get_cidreq().'">'.
2063
                        Display::return_icon('save.png', get_lang('Save'),array(), ICON_SIZE_SMALL).'</a> ';
2064
                }
2065
2066
                $send_to = Portfolio::share('work', $work['id'],  array('style' => 'white-space:nowrap;'));
2067