The 1780240000 from Weidmuller is an 8-position shrouded (4 side) terminal block header with male pins, a 0.200" (5.08 mm) pitch, and 90° right-angle through-hole mounting.
The 1780244 from Phoenix Contact is a 4-position vertical terminal block header with male pins, shrouded on four sides, 0.138" (3.50 mm) pitch and through-hole mounting.