Yudhishtira insisted that the Dog following him should be allowed into heaven along with him. So if Dog is allowed in heaven, it is allowed in temple.
As for non-hindus. when Lord Krishna says that "I am equally present in all beings-none is dear to me or hated by me"(Gita, 9:29), then how can u bar non-hindus from temple?