ZenphotoCMS Forum
Tag Cloud depending on theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Tag Cloud depending on theme (/thread-13489.html)



Tag Cloud depending on theme - Ralf - 2020-12-11

Hi,
wondering if it possible to display a specific content on a page (via codeblocks) depending on the theme.
For example something like this:

Problem is the 'theme==....' part - not sure if such a parameter 'theme' exists.

Ralf




Tag Cloud depending on theme - acrylian - 2020-12-11

You can use this function to get the current theme:
https://docs.zenphoto.org/1.5.x/function-getCurrentTheme.html

I personally would not do things like this via codeblocks but rather modify a theme (in fact I never use codeblocks myself). Codeblocks are a workaround and you easily forget what you did in a codeblock or did something at all especially if you have a lot of pages etc.




Tag Cloud depending on theme - fretzl - 2020-12-11

if ( getCurrentTheme() == "paradigm" ) {....}




Tag Cloud depending on theme - Ralf - 2020-12-11

Hi Fretzl,

thanks a lot - that works perfect :-)