Small shrines lead from the hall, honoring local gods, and a temple to Imhotep, the great architect of the pyramids who was deified in the centuries after his death.
There is both a temple to Imhotep and small shrines for local gods. 
mnli hypothesis: There is both a temple to Imhotep and small shrines for local gods.  premise: Small shrines lead from the hall, honoring local gods, and a temple to Imhotep, the great architect of the pyramids who was deified in the centuries after his death.