Code Duplication    Length = 5-16 lines in 7 locations

Themes/default/Profile.template.php 7 locations

@@ 158-173 (lines=16) @@
155
		<div id="basicinfo">';
156
157
	// Are there any custom profile fields for above the name?
158
	if (!empty($context['print_custom_fields']['above_member']))
159
	{
160
		echo '
161
			<div class="custom_fields_above_name">
162
				<ul>';
163
164
		foreach ($context['print_custom_fields']['above_member'] as $field)
165
			if (!empty($field['output_html']))
166
				echo '
167
					<li>', $field['output_html'], '</li>';
168
169
		echo '
170
				</ul>
171
			</div>
172
			<br>';
173
	}
174
175
	echo '
176
			<div class="username clear">
@@ 179-183 (lines=5) @@
176
			<div class="username clear">
177
				<h4>';
178
179
	if (!empty($context['print_custom_fields']['before_member']))
180
		foreach ($context['print_custom_fields']['before_member'] as $field)
181
			if (!empty($field['output_html']))
182
				echo '
183
					<span>', $field['output_html'], '</span>';
184
185
	echo '
186
					', $context['member']['name'];
@@ 188-192 (lines=5) @@
185
	echo '
186
					', $context['member']['name'];
187
188
	if (!empty($context['print_custom_fields']['after_member']))
189
		foreach ($context['print_custom_fields']['after_member'] as $field)
190
			if (!empty($field['output_html']))
191
				echo '
192
					<span>', $field['output_html'], '</span>';
193
194
195
	echo '
@@ 202-217 (lines=16) @@
199
			', $context['member']['avatar']['image'];
200
201
	// Are there any custom profile fields for below the avatar?
202
	if (!empty($context['print_custom_fields']['below_avatar']))
203
	{
204
		echo '
205
			<div class="custom_fields_below_avatar">
206
				<ul>';
207
208
		foreach ($context['print_custom_fields']['below_avatar'] as $field)
209
			if (!empty($field['output_html']))
210
				echo '
211
					<li>', $field['output_html'], '</li>';
212
213
		echo '
214
				</ul>
215
			</div>
216
			<br>';
217
	}
218
219
	echo '
220
			<ul class="clear">';
@@ 270-284 (lines=15) @@
267
			<a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '" class="infolinks">', $txt['statPanel'], '</a>';
268
269
	// Are there any custom profile fields for bottom?
270
	if (!empty($context['print_custom_fields']['bottom_poster']))
271
	{
272
		echo '
273
			<div class="custom_fields_bottom">
274
				<ul class="nolist">';
275
276
		foreach ($context['print_custom_fields']['bottom_poster'] as $field)
277
			if (!empty($field['output_html']))
278
				echo '
279
					<li>', $field['output_html'], '</li>';
280
281
		echo '
282
				</ul>
283
			</div>';
284
	}
285
286
	echo '
287
		</div><!-- #basicinfo -->
@@ 436-450 (lines=15) @@
433
			</dl>';
434
435
	// Are there any custom profile fields for above the signature?
436
	if (!empty($context['print_custom_fields']['above_signature']))
437
	{
438
		echo '
439
			<div class="custom_fields_above_signature">
440
				<ul class="nolist">';
441
442
		foreach ($context['print_custom_fields']['above_signature'] as $field)
443
			if (!empty($field['output_html']))
444
				echo '
445
					<li>', $field['output_html'], '</li>';
446
447
		echo '
448
				</ul>
449
			</div>';
450
	}
451
452
	// Show the users signature.
453
	if ($context['signature_enabled'] && !empty($context['member']['signature']))
@@ 461-475 (lines=15) @@
458
			</div>';
459
460
	// Are there any custom profile fields for below the signature?
461
	if (!empty($context['print_custom_fields']['below_signature']))
462
	{
463
		echo '
464
			<div class="custom_fields_below_signature">
465
				<ul class="nolist">';
466
467
		foreach ($context['print_custom_fields']['below_signature'] as $field)
468
			if (!empty($field['output_html']))
469
				echo '
470
					<li>', $field['output_html'], '</li>';
471
472
		echo '
473
				</ul>
474
			</div>';
475
	}
476
477
	echo '
478
		</div><!-- #detailedinfo -->