Code Duplication    Length = 14-16 lines in 6 locations

Themes/default/Profile.template.php 6 locations

@@ 161-176 (lines=16) @@
158
		<div id="basicinfo">';
159
160
	// Are there any custom profile fields for above the name?
161
	if (!empty($context['print_custom_fields']['above_member']))
162
	{
163
		echo '
164
			<div class="custom_fields_above_name">
165
				<ul >';
166
167
		foreach ($context['print_custom_fields']['above_member'] as $field)
168
			if (!empty($field['output_html']))
169
				echo '
170
					<li>', $field['output_html'], '</li>';
171
172
		echo '
173
				</ul>
174
			</div>
175
			<br>';
176
	}
177
178
	echo '
179
			<div class="username clear">
@@ 185-200 (lines=16) @@
182
			', $context['member']['avatar']['image'];
183
184
	// Are there any custom profile fields for below the avatar?
185
	if (!empty($context['print_custom_fields']['below_avatar']))
186
	{
187
		echo '
188
			<div class="custom_fields_below_avatar">
189
				<ul >';
190
191
		foreach ($context['print_custom_fields']['below_avatar'] as $field)
192
			if (!empty($field['output_html']))
193
				echo '
194
					<li>', $field['output_html'], '</li>';
195
196
		echo '
197
				</ul>
198
			</div>
199
			<br>';
200
	}
201
202
		echo '
203
			<ul class="clear">';
@@ 250-264 (lines=15) @@
247
			<a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '" class="infolinks">', $txt['statPanel'], '</a>';
248
249
	// Are there any custom profile fields for bottom?
250
	if (!empty($context['print_custom_fields']['bottom_poster']))
251
	{
252
		echo '
253
			<div class="custom_fields_bottom">
254
				<ul class="nolist">';
255
256
		foreach ($context['print_custom_fields']['bottom_poster'] as $field)
257
			if (!empty($field['output_html']))
258
				echo '
259
					<li>', $field['output_html'], '</li>';
260
261
		echo '
262
				</ul>
263
			</div>';
264
	}
265
266
	echo '
267
		</div>';
@@ 308-321 (lines=14) @@
305
			</dl>';
306
307
	// Any custom fields for standard placement?
308
	if (!empty($context['print_custom_fields']['standard']))
309
	{
310
		echo '
311
				<dl class="settings">';
312
313
		foreach ($context['print_custom_fields']['standard'] as $field)
314
			if (!empty($field['output_html']))
315
				echo '
316
					<dt>', $field['name'], ':</dt>
317
					<dd>', $field['output_html'], '</dd>';
318
319
		echo '
320
				</dl>';
321
	}
322
323
	echo '
324
				<dl class="settings noborder">';
@@ 405-419 (lines=15) @@
402
				</dl>';
403
404
	// Are there any custom profile fields for above the signature?
405
	if (!empty($context['print_custom_fields']['above_signature']))
406
	{
407
		echo '
408
				<div class="custom_fields_above_signature">
409
					<ul class="nolist">';
410
411
		foreach ($context['print_custom_fields']['above_signature'] as $field)
412
			if (!empty($field['output_html']))
413
				echo '
414
						<li>', $field['output_html'], '</li>';
415
416
		echo '
417
					</ul>
418
				</div>';
419
	}
420
421
	// Show the users signature.
422
	if ($context['signature_enabled'] && !empty($context['member']['signature']))
@@ 430-444 (lines=15) @@
427
				</div>';
428
429
	// Are there any custom profile fields for below the signature?
430
	if (!empty($context['print_custom_fields']['below_signature']))
431
	{
432
		echo '
433
				<div class="custom_fields_below_signature">
434
					<ul class="nolist">';
435
436
		foreach ($context['print_custom_fields']['below_signature'] as $field)
437
			if (!empty($field['output_html']))
438
				echo '
439
						<li>', $field['output_html'], '</li>';
440
441
		echo '
442
					</ul>
443
				</div>';
444
	}
445
446
	echo '
447
		</div>