okay, this modified snippets function fixes the issues:
function BOLTMsnippets($var, $page='') {
$out = BOLTdomarkup(BOLTsnippets($var, $page));
if (strpos($out, "\n") === false) {
if (substr($out, 0, 3) == '<p>' && substr($out, -4) ==
'</p>') $out
= substr($out, 3, -4);
}
return $out;
}
Note I removed the BOLTescape from return BOLTescape($out);
This makes the snippet vars work inside text.
I left the BOLTdomarkup in the first line, as it renders the vars in
the template.
I removed the third argument $skin, as the function has only two arguments.
I still don't know why it was there, and why BOLTsnippets is called again.
Ohh, sorry, BOLTsnippets() is called, not BOLTMsnippets! Easy to
overlook the difference!
Still, function BOLTsnippets also just uses two arguments.
Cheers,
Hans
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---