General developer forum

What function processes CSS pix:theme to image URLs?

 
Picture of Dave Balch
What function processes CSS pix:theme to image URLs?
Core developersParticularly helpful MoodlersPlugin developers

Hi,

I'd like to use CSS to include theme images in Database activities (e.g. a background image on a table), using the normal [[pix:theme|path/to/image/imagename]] approach - but I can't find the bit of code that transforms the pix:theme reference into a URL.

Can anyone point me to the right file/function?

Cheers,
Dave.

 
Average of ratings: -
Picture of Dave Balch
Re: What function processes CSS pix:theme to image URLs?
Core developersParticularly helpful MoodlersPlugin developers

Bingo!

I figured it out. For anyone else that might want to know, it's:

    $PAGE->theme->post_process($css)

Cheers,
Dave.

 
Average of ratings: -