Here's a closer look at the pressure-balancing valve. (A pressure-balancing valve minimizes the change in temperature when another water-demand fixture turns on, such as a toilet).
Hot water on the left, cold on the right, bath faucet at the bottom, and shower line on the top of the valve.