Code Duplication    Length = 11-11 lines in 2 locations

get-posts-ajax.php 1 location

@@ 177-187 (lines=11) @@
174
									</span> 
175
								</td>
176
								<td class="comments">
177
									<?php if($showCommentIcon) {?>
178
									<span data-tooltip="Comments">
179
										<a href="index.php?getPostDetails=true&view=<?php echo $view;?>&postID=<?php echo $posts[$i]["post_id"];?>">
180
											<i class="fa fa-commenting-o"></i>
181
											<?php if(array_key_exists("child_count", $posts[$i])) {
182
														echo $posts[$i]["child_count"];
183
													} else echo "0";
184
											?>
185
											</a>
186
									</span>
187
									<?php } ?>
188
								</td>
189
								<td class="distance">
190
									<span data-tooltip="Distance">

index.php 1 location

@@ 285-295 (lines=11) @@
282
											</span> 
283
										</td>
284
										<td class="comments">
285
											<?php if($showCommentIcon) {?>
286
											<span data-tooltip="Comments">
287
												<a href="index.php?getPostDetails=true&view=<?php echo $view;?>&postID=<?php echo $posts[$i]["post_id"];?>">
288
													<i class="fa fa-commenting-o"></i>
289
													<?php if(array_key_exists("child_count", $posts[$i])) {
290
																echo $posts[$i]["child_count"];
291
															} else echo "0";
292
													?>
293
													</a>
294
											</span>
295
											<?php } ?>
296
										</td>
297
										<td class="distance">
298
											<span data-tooltip="Distance">