A unified approach to combinatorial triangles: a generalized Eulerian polynomial