Code Duplication    Length = 5-6 lines in 3 locations

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

@@ 3638-3642 (lines=5) @@
3635
3636
        $return .= '<div class="item_data" style="margin-left:' . ($num  * 18) . 'px;margin-right:5px;">';
3637
3638
        if ($add_move_button) {
3639
            $return .= '<a class="moved" href="#">';
3640
            $return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
3641
            $return .= '</a> ';
3642
        }
3643
        $return .= $link;
3644
        $return .= '</div></li>';
3645

main/gradebook/lib/GradebookUtils.php 1 location

@@ 706-711 (lines=6) @@
703
        $new_content_html = str_replace(SYS_CODE_PATH . 'img/', api_get_path(WEB_IMG_PATH), $new_content_html);
704
705
        //add print header
706
        if ($hide_print_button == false) {
707
            $print = '<style media="print" type="text/css">#print_div {visibility:hidden;}</style>';
708
            $print .= '<a href="javascript:window.print();" style="float:right; padding:4px;" id="print_div">';
709
            $print .= Display::return_icon('printmgr.gif', get_lang('Print'));
710
            $print .= '</a>';
711
        }
712
713
        // Add header
714
        $new_content_html =  $contentHead. $print . '</head>' . $new_content_html;

main/newscorm/learnpath.class.php 1 location

@@ 5654-5658 (lines=5) @@
5651
            $forumIcon = '';
5652
5653
            if ($is_allowed_to_edit) {
5654
                if (!$update_audio || $update_audio <> 'true') {
5655
                    $move_icon .= '<a class="moved" href="#">';
5656
                    $move_icon .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
5657
                    $move_icon .= '</a>';
5658
                }
5659
5660
                // No edit for this item types
5661
                if (!in_array($arrLP[$i]['item_type'], array('sco', 'asset'))) {