Created
December 4, 2010 06:09
-
-
Save rwetzlmayr/727971 to your computer and use it in GitHub Desktop.
wet_if_comment_submitted conditional Textpattern tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- somewhere in your template, forms, --> | |
<txp:php> | |
function wet_if_comment_submitted($attr, $thing) | |
{ | |
return parse(EvalElse($thing, isset($_GET['commented']))); | |
} | |
</txp:php> | |
<!-- in your comment form: --> | |
<txp:wet_if_comment_submitted> | |
yay | |
<txp:else /> | |
noes | |
</txp:wet_if_comment_submitted> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment