SJ77 Posted February 8, 2020 Share 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 🙂 Link to comment Share on other sites More sharing options...
Rikki Posted February 9, 2020 Share 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 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.