SJ77 Posted February 8, 2020 Posted February 8, 2020 Hi I have a dark theme and a light theme. I am creating some custom blocks. IS there some IPS template code to say if dark theme then use this media image, else use this other media image? Thank you 🙂
Rikki Posted February 9, 2020 Posted February 9, 2020 Sure - you can check \IPS\Member::loggedIn()->skin. That'll be the ID of the theme being used, so in your logic check compare that against the ID of your dark theme 🙂Â
Recommended Posts
Archived
This topic is now archived and is closed to further replies.