Version: 2.10.3 Reporter: ericswierczek —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
If I have a custom plugin function that I want to use in a conditional like so:
{if {exp:custom_plugin:custom_function}{/exp:custom_plugin:custom_function}} … {/if}
In PHP I can just do return true;
or return false;
for the correct template logic, but I get a PHP warning when writing the template conditional this way.
Severity: Warning Message: Invalid argument supplied for foreach() Filename: Conditional/BooleanExpression.php Line Number: 151
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```