Code Duplication    Length = 4-8 lines in 3 locations

main/announcements/announcements.php 1 location

@@ 612-617 (lines=6) @@
609
            Display::return_icon('new_announce.png', get_lang('AddAnnouncement'), '', ICON_SIZE_MEDIUM)."</a>";
610
    }
611
    $show_actions = true;
612
} else {
613
    if (in_array($action, array('view'))) {
614
        $actionsLeft .= "<a href='".api_get_self()."?".api_get_cidreq()."'>".
615
            Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM)."</a>";
616
    }
617
}
618
619
if ($allowToEdit) {
620
    if (api_get_group_id() == 0) {

main/attendance/attendance_sheet.php 1 location

@@ 298-301 (lines=4) @@
295
                            }
296
                        }
297
                    }
298
                } else {
299
                    $result  = '<th width="2000px"><span><a href="index.php?'.api_get_cidreq().'&action=calendar_list&attendance_id='.$attendance_id.'">';
300
                    $result .= Display::return_icon('attendance_calendar.png',get_lang('AttendanceCalendar'),'',ICON_SIZE_MEDIUM).' '.get_lang('GoToAttendanceCalendar').'</a></span></th>';
301
                }
302
303
                echo '<tr class="tableFloatingHeader row_odd" style="position: absolute; top: 0px; left: 0px; visibility: hidden; margin:0px;padding:0px">';
304
                echo $result;

src/Chamilo/CoreBundle/Framework/PageController.php 1 location

@@ 840-847 (lines=8) @@
837
                            $session
838
                        );
839
840
                        if (api_is_platform_admin()) {
841
                            $params['right_actions'] = '<a href="'.api_get_path(WEB_CODE_PATH).'session/resume_session.php?id_session='.$session_id.'">'.Display::return_icon(
842
                                'edit.png',
843
                                get_lang('Edit'),
844
                                array('align' => 'absmiddle'),
845
                                ICON_SIZE_SMALL
846
                            ).'</a>';
847
                        }
848
                        $html_sessions .= CourseManager::course_item_html($params, true).$html_courses_session;
849
                    }
850
                }