Turkey's Hagia Sophia will open to visitors outside prayer times and its Christian icons will remain, religious officials said on Tuesday, after a court ruling paved the way for it to become a mosque.