Below is quite a nice simple but clear diagram of the powerplant as a whole, showing a VERY simplified diagram of the shock system within the intake as well as the complex path for the secondary airflow, from over the intake ramps, through the secondary air dors into the engine bay and then finally into the secondary nozzle annulus.
Dude