The simpler media website CMS
Hi,
wondering if it possible to display a specific content on a page (via codeblocks) depending on the theme.
For example something like this:
<?php if (theme==paradigm) { ?><?php printAllTagsAs_zb('cloud', 'taglist', 'abc', false, true, 2.5, 30,null); ?><?php } ?>
Problem is the 'theme==....' part - not sure if such a parameter 'theme' exists.
Ralf
Comments
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.
if ( getCurrentTheme() == "paradigm" ) {....}
Hi Fretzl,
thanks a lot - that works perfect :-)