I'm generating our Events pages using SimpleXML. Some of the Events take place only on one day while others occur repeatedly. I'm stuck trying to write an if-else statement.
If there's a repeating event, repeatRuleID will equal 1. If not, it will equal 0 (and the event takes place only once).
My question is, how can I edit the code below to say, for example, "through July 15" OR "on August 1" (obviously using the XML dates).
Here is my page, XML (single and repeating events) and code:
<h3><?= $event->title ?></h3>
<p><strong>
<? if ($event->repeatRuleID=1): ?>
through <?= $event->repeatUntilDate ?>
<? else: ?>
<?= $event->beginTime ?>
<? endif; ?>
</strong></p>
<p><?= $event->locationText ?></p>
($event->repeatRuleID=1)and it should be($event->repeatRuleID==1)$event->repeatRuleID==1- unfortunately this doesn't return "through <date>" on repeating events. Any idea what I'm doing wrong?