We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d58a873 commit 91c15deCopy full SHA for 91c15de
html-templates/events/event.tpl
@@ -142,12 +142,11 @@
142
143
<ol class="list-unstyled">
144
{foreach item=Segment from=$Event->Segments}
145
- <li class="event-segment my-3" id="{$Segment->StartTime}">
+ <li class="event-segment my-3" id="{unique_dom_id}{$Segment->Handle}{/unique_dom_id}">
146
{$thisDate = date("l, F jS", $Segment->StartTime)}
147
148
{if $lastDate != $thisDate}
149
- {* TODO: use friendlier but html compliant date ID *}
150
- <h3 class="h5 font-weight-normal" id="{$Segment->StartTime}">
+ <h3 class="h5 font-weight-normal" id="{date("Y-m-d", $Segment->StartTime)}">
151
<span class="event-segment__day-of-week">{date("l", $Segment->StartTime)},</span>
152
{date("F jS", $Segment->StartTime)}
153
</h3>
0 commit comments