Code Duplication    Length = 7-8 lines in 3 locations

Themes/default/Calendar.template.php 3 locations

@@ 100-107 (lines=8) @@
97
				}
98
99
				// Next Link: if we're showing prev / next and it's not a mini-calendar.
100
				if (empty($calendar_data['next_calendar']['disabled']) && $calendar_data['show_next_prev'] && $is_mini === false)
101
				{
102
					echo '
103
						<span class="floatright">
104
							<a href="', $calendar_data['next_calendar']['href'], '">&#187;</a>
105
						</span>
106
					';
107
				}
108
109
				// Arguably the most exciting part, the title!
110
				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>';
@@ 371-378 (lines=8) @@
368
				<div class="cat_bar">
369
					<h3 class="catbg centertext largetext">';
370
					// Previous Week Link...
371
					if (empty($calendar_data['previous_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
372
					{
373
						echo '
374
							<span class="floatleft">
375
								<a href="', $calendar_data['previous_week']['href'], '">&#171;</a>
376
							</span>
377
						';
378
					}
379
380
					// Next Week Link...
381
					if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
@@ 381-387 (lines=7) @@
378
					}
379
380
					// Next Week Link...
381
					if (empty($calendar_data['next_calendar']['disabled']) && !empty($calendar_data['show_next_prev']))
382
					{
383
						echo '
384
							<span class="floatright">
385
								<a href="', $calendar_data['next_week']['href'], '">&#187;</a>
386
							</span>';
387
					}
388
389
					// The Month Title + Week Number...
390
					if (!empty($calendar_data['week_title']))