Now theming functions obey the page rendering mode.