Code Duplication    Length = 7-8 lines in 3 locations

Themes/default/Calendar.template.php 3 locations

@@ 278-285 (lines=8) @@
275
				}
276
277
				// Next Link: if we're showing prev / next and it's not a mini-calendar.
278
				if (empty($calendar_data['next_calendar']['disabled']) && $calendar_data['show_next_prev'] && $is_mini === false)
279
				{
280
					echo '
281
						<span class="floatright">
282
							<a href="', $calendar_data['next_calendar']['href'], '">&#187;</a>
283
						</span>
284
					';
285
				}
286
287
				// Arguably the most exciting part, the title!
288
				echo '<a href="', $scripturl, '?action=calendar;year=', $calendar_data['current_year'], ';month=', $calendar_data['current_month'], '">', $txt['months_titles'][$calendar_data['current_month']], ' ', $calendar_data['current_year'], '</a>';
@@ 551-558 (lines=8) @@
548
				<div class="cat_bar">
549
					<h3 class="catbg centertext largetext">';
550
					// Previous Week Link...
551
					if (empty($calendar_data['previous_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
552
					{
553
						echo '
554
							<span class="floatleft">
555
								<a href="', $calendar_data['previous_week']['href'], '">&#171;</a>
556
							</span>
557
						';
558
					}
559
560
					// Next Week Link...
561
					if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
@@ 561-567 (lines=7) @@
558
					}
559
560
					// Next Week Link...
561
					if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
562
					{
563
						echo '
564
							<span class="floatright">
565
								<a href="', $calendar_data['next_week']['href'], '">&#187;</a>
566
							</span>';
567
					}
568
569
					// The Month Title + Week Number...
570
					if (!empty($calendar_data['week_title']))