Code Duplication    Length = 3-3 lines in 3 locations

Themes/default/Themes.template.php 2 locations

@@ 54-56 (lines=3) @@
51
					<dd>
52
						<div id="known_themes_list">';
53
54
	foreach ($context['themes'] as $theme)
55
		echo '
56
							<label for="options-known_themes_', $theme['id'], '"><input type="checkbox" name="options[known_themes][]" id="options-known_themes_', $theme['id'], '" value="', $theme['id'], '"', $theme['known'] ? ' checked' : '', '> ', $theme['name'], '</label><br>';
57
58
	echo '
59
						</div>
@@ 73-75 (lines=3) @@
70
						<select name="options[theme_guests]" id="theme_guests">';
71
72
	// Put an option for each theme in the select box.
73
	foreach ($context['themes'] as $theme)
74
		echo '
75
							<option value="', $theme['id'], '"', $modSettings['theme_guests'] == $theme['id'] ? ' selected' : '', '>', $theme['name'], '</option>';
76
77
	echo '
78
						</select>

Themes/default/ManageBoards.template.php 1 location

@@ 532-534 (lines=3) @@
529
							<select name="boardtheme" id="boardtheme" onchange="refreshOptions();">
530
								<option value="0"', $context['board']['theme'] == 0 ? ' selected' : '', '>', $txt['mboards_theme_default'], '</option>';
531
532
	foreach ($context['themes'] as $theme)
533
		echo '
534
									<option value="', $theme['id'], '"', $context['board']['theme'] == $theme['id'] ? ' selected' : '', '>', $theme['name'], '</option>';
535
536
	echo '
537
							</select>