Code Duplication    Length = 16-16 lines in 2 locations

includes/admin/components/users/wsl.components.users.profiles.php 1 location

@@ 133-148 (lines=16) @@
130
						{
131
							$field_value = $profile_fields[ $item['field'] ];
132
133
							if( in_array( $item['field'], array( 'profileurl', 'websiteurl', 'email' ) ) )
134
							{
135
								?>
136
									<a href="<?php if( $item['field'] == 'email' ) echo 'mailto:'; echo $field_value; ?>" target="_blank"><?php echo $field_value; ?></a>
137
								<?php
138
							}
139
							elseif( $item['field'] == 'photourl' )
140
							{
141
								?>
142
									<a href="<?php echo $field_value; ?>" target="_blank"><img width="36" height="36" align="left" src="<?php echo $field_value; ?>" style="margin-right: 5px;" > <?php echo $field_value; ?></a>
143
								<?php
144
							}
145
							else
146
							{
147
								echo $field_value;
148
							}
149
150
							?>
151
								<p class="description">

includes/admin/components/auth-paly/index.php 1 location

@@ 312-327 (lines=16) @@
309
														{
310
															$field_value = $user_profile[ $item['field'] ];
311
312
															if( in_array( strtolower( $item['field'] ), array( 'profileurl', 'websiteurl', 'email' ) ) )
313
															{
314
																?>
315
																	<a href="<?php if( $item['field'] == 'email' ) echo 'mailto:'; echo $field_value; ?>" target="_blank"><?php echo $field_value; ?></a>
316
																<?php
317
															}
318
															elseif( strtolower( $item['field'] ) == 'photourl' )
319
															{
320
																?>
321
																	<a href="<?php echo $field_value; ?>" target="_blank"><img width="36" height="36" align="left" src="<?php echo $field_value; ?>" style="margin-right: 5px;" > <?php echo $field_value; ?></a>
322
																<?php
323
															}
324
															else
325
															{
326
																echo $field_value;
327
															}
328
														}
329
													?>
330
												</td>