Code Duplication    Length = 15-16 lines in 5 locations

Themes/default/Profile.template.php 5 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">
@@ 187-202 (lines=16) @@
184
			', $context['member']['avatar']['image'];
185
186
	// Are there any custom profile fields for below the avatar?
187
	if (!empty($context['print_custom_fields']['below_avatar']))
188
	{
189
		echo '
190
			<div class="custom_fields_below_avatar">
191
				<ul>';
192
193
		foreach ($context['print_custom_fields']['below_avatar'] as $field)
194
			if (!empty($field['output_html']))
195
				echo '
196
					<li>', $field['output_html'], '</li>';
197
198
		echo '
199
				</ul>
200
			</div>
201
			<br>';
202
	}
203
204
	echo '
205
			<ul class="clear">';
@@ 255-269 (lines=15) @@
252
			<a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '" class="infolinks">', $txt['statPanel'], '</a>';
253
254
	// Are there any custom profile fields for bottom?
255
	if (!empty($context['print_custom_fields']['bottom_poster']))
256
	{
257
		echo '
258
			<div class="custom_fields_bottom">
259
				<ul class="nolist">';
260
261
		foreach ($context['print_custom_fields']['bottom_poster'] as $field)
262
			if (!empty($field['output_html']))
263
				echo '
264
					<li>', $field['output_html'], '</li>';
265
266
		echo '
267
				</ul>
268
			</div>';
269
	}
270
271
	echo '
272
		</div><!-- #basicinfo -->
@@ 421-435 (lines=15) @@
418
			</dl>';
419
420
	// Are there any custom profile fields for above the signature?
421
	if (!empty($context['print_custom_fields']['above_signature']))
422
	{
423
		echo '
424
			<div class="custom_fields_above_signature">
425
				<ul class="nolist">';
426
427
		foreach ($context['print_custom_fields']['above_signature'] as $field)
428
			if (!empty($field['output_html']))
429
				echo '
430
					<li>', $field['output_html'], '</li>';
431
432
		echo '
433
				</ul>
434
			</div>';
435
	}
436
437
	// Show the users signature.
438
	if ($context['signature_enabled'] && !empty($context['member']['signature']))
@@ 446-460 (lines=15) @@
443
			</div>';
444
445
	// Are there any custom profile fields for below the signature?
446
	if (!empty($context['print_custom_fields']['below_signature']))
447
	{
448
		echo '
449
			<div class="custom_fields_below_signature">
450
				<ul class="nolist">';
451
452
		foreach ($context['print_custom_fields']['below_signature'] as $field)
453
			if (!empty($field['output_html']))
454
				echo '
455
					<li>', $field['output_html'], '</li>';
456
457
		echo '
458
				</ul>
459
			</div>';
460
	}
461
462
	echo '
463
		</div><!-- #detailedinfo -->