Conditional placeholders in custom template
-
Hi,
I’ve currently created my own single-event.php file and I am customising it nicely to meet my website requirements. So far all good.
However I have some conditional placeholders that need to be conditioned like so:
{is_future} The event is on! {/is_future}
{is_past} <p>This event has passed!</p> {/is_past}
Now I understand how to create my placeholders with a bit of PHP like so:
<h1><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1>
Though I’m confused about the
‘{is_future}{/is_future}
{is_past}{/is_past}`How would I call these conditional chunks of code in my php template?
Many thanks! ??
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Conditional placeholders in custom template’ is closed to new replies.