Added conditional tag for public profile links

If public profiles are disabled, don't prompt people to view their
public profile.