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

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