Text this: Theory of Electron-Phonon Interactions in Extended Correlated Systems Probed by Resonant Inelastic X-Ray Scattering