Code Duplication    Length = 5-6 lines in 3 locations

main/gradebook/lib/GradebookUtils.php 1 location

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

main/newscorm/learnpath.class.php 1 location

@@ 5637-5641 (lines=5) @@
5634
            $forumIcon = '';
5635
5636
            if ($is_allowed_to_edit) {
5637
                if (!$update_audio || $update_audio <> 'true') {
5638
                    $move_icon .= '<a class="moved" href="#">';
5639
                    $move_icon .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
5640
                    $move_icon .= '</a>';
5641
                }
5642
5643
                // No edit for this item types
5644
                if (!in_array($arrLP[$i]['item_type'], array('sco', 'asset'))) {

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