Code Duplication    Length = 14-14 lines in 2 locations

Themes/default/Profile.template.php 1 location

@@ 1710-1723 (lines=14) @@
1707
						<input type="checkbox" name="default_options[', $setting['id'], ']" id="', $setting['id'], '"', !empty($context['member']['options'][$setting['id']]) ? ' checked' : '', ' value="1" class="input_check">';
1708
		}
1709
		// how about selection lists, we all love them
1710
		elseif ($setting['type'] == 'list')
1711
		{
1712
			echo '
1713
						&nbsp;<select class="floatleft" name="default_options[', $setting['id'], ']" id="', $setting['id'], '"', '>';
1714
1715
			foreach ($setting['options'] as $value => $label)
1716
			{
1717
				echo '
1718
							<option value="', $value, '"', $value == $context['member']['options'][$setting['id']] ? ' selected' : '', '>', $label, '</option>';
1719
			}
1720
1721
			echo '
1722
						</select>';
1723
		}
1724
		// a textbox it is then
1725
		else
1726
		{

Themes/default/Themes.template.php 1 location

@@ 633-646 (lines=14) @@
630
					</dd>';
631
		}
632
		// A list with options?
633
		elseif ($setting['type'] == 'list')
634
		{
635
			echo '
636
					<dd>
637
						<select name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="', $setting['id'], '">';
638
639
			foreach ($setting['options'] as $value => $label)
640
				echo '
641
							<option value="', $value, '"', $value == $setting['value'] ? ' selected' : '', '>', $label, '</option>';
642
643
			echo '
644
						</select>
645
					</dd>';
646
		}
647
		// A Textarea?
648
        	elseif ($setting['type'] == 'textarea')
649
		{