Code Duplication    Length = 7-8 lines in 3 locations

Themes/default/Calendar.template.php 3 locations

@@ 552-559 (lines=8) @@
549
					<h3 class="catbg centertext largetext">';
550
551
			// Previous Week Link...
552
			if (empty($calendar_data['previous_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
553
				echo '
554
						<span class="floatleft">
555
							<a href="', $calendar_data['previous_week']['href'], '">&#171;</a>
556
						</span>';
557
558
			// Next Week Link...
559
			if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
560
				echo '
561
						<span class="floatright">
562
							<a href="', $calendar_data['next_week']['href'], '">&#187;</a>
@@ 263-270 (lines=8) @@
260
					</span>';
261
262
		// Next Link: if we're showing prev / next and it's not a mini-calendar.
263
		if (empty($calendar_data['next_calendar']['disabled']) && $calendar_data['show_next_prev'] && $is_mini === false)
264
			echo '
265
					<span class="floatright">
266
						<a href="', $calendar_data['next_calendar']['href'], '">&#187;</a>
267
					</span>';
268
269
		// Arguably the most exciting part, the title!
270
		echo '
271
					<a href="', $scripturl, '?action=calendar;', $context['calendar_view'], ';year=', $calendar_data['current_year'], ';month=', $calendar_data['current_month'], '">', $txt['months_titles'][$calendar_data['current_month']], ' ', $calendar_data['current_year'], '</a>
272
				</h3>
273
			</div><!-- .cat_bar -->';
@@ 559-565 (lines=7) @@
556
						</span>';
557
558
			// Next Week Link...
559
			if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
560
				echo '
561
						<span class="floatright">
562
							<a href="', $calendar_data['next_week']['href'], '">&#187;</a>
563
						</span>';
564
565
			// The Month Title + Week Number...
566
			if (!empty($calendar_data['week_title']))
567
				echo $calendar_data['week_title'];
568