File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
snippets/tutorial/tutorial-series/part-2 Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ The code for the table head is similar to the other `th` elements:
144144For the table body’s column, we need to make sure that the birthday is only show if it is actually set:
145145
146146``` smarty
147- <td class="columnDate columnBirthday">{if $person->birthday}{$person->birthday|strtotime|date }{/if}</td>
147+ <td class="columnDate columnBirthday">{if $person->birthday}{$person->birthday}{/if}</td>
148148```
149149
150150
Original file line number Diff line number Diff line change 1111 <templatelistener name =" personListBirthdayColumn" >
1212 <eventname >columns</eventname >
1313 <environment >admin</environment >
14- <templatecode ><![CDATA[ <td class="columnDate columnBirthday">{if $person->birthday}{$person->birthday|strtotime|date }{/if}</td>]]> </templatecode >
14+ <templatecode ><![CDATA[ <td class="columnDate columnBirthday">{if $person->birthday}{$person->birthday}{/if}</td>]]> </templatecode >
1515 <templatename >personList</templatename >
1616 </templatelistener >
1717 <!-- /admin -->
Original file line number Diff line number Diff line change 11{ if $person -> birthday }
22 <dt >{ lang} wcf.person.birthday{ /lang} </dt >
3- <dd >{ $person -> birthday |strtotime|date } </dd >
3+ <dd >{ $person -> birthday } </dd >
44{ /if }
You can’t perform that action at this time.
0 commit comments