Code Duplication    Length = 7-8 lines in 3 locations

Themes/default/Calendar.template.php 3 locations

@@ 275-282 (lines=8) @@
272
		}
273
274
		// Next Link: if we're showing prev / next and it's not a mini-calendar.
275
		if (empty($calendar_data['next_calendar']['disabled']) && $calendar_data['show_next_prev'] && $is_mini === false)
276
		{
277
			echo '
278
					<span class="floatright">
279
						<a href="', $calendar_data['next_calendar']['href'], '">&#187;</a>
280
					</span>';
281
		}
282
283
		// Arguably the most exciting part, the title!
284
		echo '
285
					<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>
@@ 576-583 (lines=8) @@
573
					<h3 class="catbg centertext largetext">';
574
575
			// Previous Week Link...
576
			if (empty($calendar_data['previous_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
577
			{
578
				echo '
579
						<span class="floatleft">
580
							<a href="', $calendar_data['previous_week']['href'], '">&#171;</a>
581
						</span>';
582
			}
583
584
			// Next Week Link...
585
			if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
586
			{
@@ 585-591 (lines=7) @@
582
			}
583
584
			// Next Week Link...
585
			if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
586
			{
587
				echo '
588
						<span class="floatright">
589
							<a href="', $calendar_data['next_week']['href'], '">&#187;</a>
590
						</span>';
591
			}
592
593
			// The Month Title + Week Number...
594
			if (!empty($calendar_data['week_title']))