Complex sentence: Theater in the Middle Ages took its subject matter from religion and seems to have been largely endorsed and only peripherally shunned.
Split into simpler sentences: Theater in the Middle Ages seems to have been largely endorsed. It took its subject matter from religion and was only peripherally shunned.