Code Duplication    Length = 9-18 lines in 2 locations

Themes/default/Register.template.php 2 locations

@@ 177-194 (lines=18) @@
174
					</dl>';
175
176
	// If there is any field marked as required, show it here!
177
	if (!empty($context['custom_fields_required']) && !empty($context['custom_fields']))
178
	{
179
		echo '
180
					<dl class="register_form">';
181
182
		foreach ($context['custom_fields'] as $field)
183
			if ($field['show_reg'] > 1)
184
				echo '
185
						<dt>
186
							<strong', !empty($field['is_error']) ? ' class="red"' : '', '>', $field['name'], ':</strong>
187
							<span class="smalltext">', $field['desc'], '</span>
188
						</dt>
189
						<dd>', str_replace('name="', 'tabindex="' . $context['tabindex']++ . '" name="', $field['input_html']), '</dd>';
190
191
		echo '
192
					</dl>';
193
	}
194
195
	echo '
196
				</fieldset>
197
			</div><!-- .roundframe -->';
@@ 568-576 (lines=9) @@
565
	}
566
567
	// If there is any field marked as required, show it here!
568
	if (!empty($context['custom_fields_required']) && !empty($context['custom_fields']))
569
		foreach ($context['custom_fields'] as $field)
570
			if ($field['show_reg'] > 1)
571
				echo '
572
						<dt>
573
							<strong', !empty($field['is_error']) ? ' class="red"' : '', '>', $field['name'], ':</strong>
574
							<span class="smalltext">', $field['desc'], '</span>
575
						</dt>
576
						<dd>
577
							', str_replace('name="', 'tabindex="' . $context['tabindex']++ . '" name="', $field['input_html']), '
578
						</dd>';
579