Code Duplication    Length = 3-3 lines in 5 locations

class/APCal.php 5 locations

@@ 1877-1879 (lines=3) @@
1874
                    if ($event->allday) {
1875
                        if ($event->allday & 4) {
1876
                            $date_part_append .= "<span style='font-size: x-small; '><a href='{$this->make_event_link($event->id, $get_target)}' class='cal_summary_specialday'><font color='$this->holiday_color'>$summary</a></span>";
1877
                            if ($event->extkey0 == 1) {
1878
                                $event_str .= "&nbsp;&nbsp;<img src='{$roimage}' height='15px' alt='" . _APCAL_RO_ONLINE_POSS . "' title='" . _APCAL_RO_ONLINE_POSS . "' />";
1879
                            } // added by goffy: mark this event, that online registration is active
1880
                            $event_str .= "</a></font><br>\n";
1881
                            continue;
1882
                        } else {
@@ 1899-1901 (lines=3) @@
1896
                    <td valign='top'>
1897
                      $picture
1898
                      <span style='font-size: x-small; '><a href='{$this->make_event_link($event->id, $get_target)}' class='$summary_class'>$summary</a></span>";
1899
                    if ($event->extkey0 == 1) {
1900
                        $event_str .= "&nbsp;&nbsp;<img src='{$roimage}' height='15px' alt='" . _APCAL_RO_ONLINE_POSS . "' title='" . _APCAL_RO_ONLINE_POSS . "' />";
1901
                    } // added by goffy: mark this event, that online registration is active
1902
                    $event_str .= "
1903
                    </td>
1904
                  </tr>
@@ 1954-1956 (lines=3) @@
1951
                          <span style='font-size: x-small; '><a href='{$this->make_event_link($event->id, $get_target)}' class='$summary_class'><font color='#00FF00'>$summary("
1952
                                      . _APCAL_MB_EVENT_NEEDADMIT
1953
                                      . ')</a></span>';
1954
                        if ($event->extkey0 == 1) {
1955
                            $event_str .= "&nbsp;&nbsp;<img src='{$roimage}' height='15px' alt='" . _APCAL_RO_ONLINE_POSS . "' title='" . _APCAL_RO_ONLINE_POSS . "' />";
1956
                        } // added by goffy: mark this event, that online registration is active
1957
                        $event_str .= "
1958
                        </td>
1959
                      </tr>
@@ 2140-2142 (lines=3) @@
2137
             <td valign='middle'>
2138
               <a href='{$this->make_event_link($event->id, $get_target)}'>{$picture}</a>
2139
               <font size='3'><a href='{$this->make_event_link($event->id, $get_target)}' class='$summary_class'>$summary</a></font>";
2140
                    if ($event->extkey0 == 1) {
2141
                        $ret .= "&nbsp;&nbsp;<img src='{$roimage}' height='15px' alt='" . _APCAL_RO_ONLINE_POSS . "' title='" . _APCAL_RO_ONLINE_POSS . "'>";
2142
                    }    // added by goffy: mark this event, that online registration is active
2143
                    $ret .= "<br>
2144
               <span style='font-size: x-small; '>$description</span><br>
2145
               &nbsp;
@@ 2173-2175 (lines=3) @@
2170
             </td>
2171
             <td vlalign='top'>
2172
               <font size='3'><a href='{$this->make_event_link($event->id, $get_target)}' class='$summary_class'><font color='#00FF00'>{$summary}</a></font>";
2173
                    if ($event->extkey0 == 1) {
2174
                        $ret .= "&nbsp;&nbsp;<img src='{$roimage}' height='15px' alt='" . _APCAL_RO_ONLINE_POSS . "' title='" . _APCAL_RO_ONLINE_POSS . "'>";
2175
                    }    // added by goffy: mark this event, that online registration is active
2176
                    $ret .= ' (' . _APCAL_MB_EVENT_NEEDADMIT . ")
2177
             </td>
2178
           </tr>\n";