PHx is already supported in MaxiGallery templates.. try:
[[lang:is=`de`:then=`[+maxigallery.picture.description:htmlent+]`:else=`[+maxigallery.picture.title:htmlent+]`]]
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
is that "lang" a snippet?
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Yes, it’s a snippet. I just thought of it, that I should told you so.
This works (tried it):
[+phx:if=`[[lang]]`:is=`de`:then=`[+maxigallery.picture.descr:htmlent+]`:else=`[+maxigallery.picture.title:htmlent+]`+]
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
I am an idiot, using description instead of descr. Thank you, Doze.